@algorithm-shift/design-system 1.2.76 → 1.2.78

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
@@ -126,6 +126,11 @@ interface TabsProps extends ElementProps {
126
126
  verticalMenu?: boolean;
127
127
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
128
128
  isBuilder?: boolean;
129
+ source?: string;
130
+ parentKey?: string;
131
+ menuNameKey?: string;
132
+ menuUrlKey?: string;
133
+ loading?: boolean;
129
134
  }
130
135
 
131
136
  interface StagesProps extends ElementProps {
@@ -133,6 +138,7 @@ interface StagesProps extends ElementProps {
133
138
  isShowBtn?: boolean;
134
139
  buttonText?: string;
135
140
  onStageChange?: (stageId: string) => void;
141
+ currentStage?: string;
136
142
  }
137
143
 
138
144
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -239,6 +245,17 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
239
245
 
240
246
  declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
241
247
 
248
+ interface RepeaterProps<T> {
249
+ items: T[];
250
+ count?: number;
251
+ render: (item: T, index: number, array: T[]) => React__default.ReactNode;
252
+ emptyFallback?: React__default.ReactNode;
253
+ wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
254
+ className?: string;
255
+ }
256
+ declare function Repeater<T>({ items, count, render, emptyFallback, wrapper, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element | null;
257
+ declare const _default$2: typeof Repeater;
258
+
242
259
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
243
260
 
244
261
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -341,15 +358,18 @@ interface ExtendedTableProps extends TableProps {
341
358
  onCellClick?: (props: CellClickProps) => void;
342
359
  sort_by?: string;
343
360
  sort_order?: string;
361
+ onCellClick?: (props: CellClickProps) => void;
362
+ onDeleteRow?: (props: CellClickProps) => void;
363
+ enableDelete?: boolean;
344
364
  }
345
365
 
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;
366
+ 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
367
 
348
368
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
349
369
 
350
- declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
370
+ declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading }: TabsProps) => react_jsx_runtime.JSX.Element;
351
371
 
352
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange }: StagesProps) => react_jsx_runtime.JSX.Element;
372
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage }: StagesProps) => react_jsx_runtime.JSX.Element;
353
373
 
354
374
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
355
375
 
@@ -377,4 +397,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
377
397
  declare function cn(...inputs: ClassValue[]): string;
378
398
  declare function getInitials(name: string): string;
379
399
 
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 };
400
+ 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
@@ -126,6 +126,11 @@ interface TabsProps extends ElementProps {
126
126
  verticalMenu?: boolean;
127
127
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
128
128
  isBuilder?: boolean;
129
+ source?: string;
130
+ parentKey?: string;
131
+ menuNameKey?: string;
132
+ menuUrlKey?: string;
133
+ loading?: boolean;
129
134
  }
130
135
 
131
136
  interface StagesProps extends ElementProps {
@@ -133,6 +138,7 @@ interface StagesProps extends ElementProps {
133
138
  isShowBtn?: boolean;
134
139
  buttonText?: string;
135
140
  onStageChange?: (stageId: string) => void;
141
+ currentStage?: string;
136
142
  }
137
143
 
138
144
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -239,6 +245,17 @@ declare function TabList({ children, style, className, activeTab, tabId }: TabLi
239
245
 
240
246
  declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
241
247
 
248
+ interface RepeaterProps<T> {
249
+ items: T[];
250
+ count?: number;
251
+ render: (item: T, index: number, array: T[]) => React__default.ReactNode;
252
+ emptyFallback?: React__default.ReactNode;
253
+ wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
254
+ className?: string;
255
+ }
256
+ declare function Repeater<T>({ items, count, render, emptyFallback, wrapper, className, }: RepeaterProps<T>): react_jsx_runtime.JSX.Element | null;
257
+ declare const _default$2: typeof Repeater;
258
+
242
259
  declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
243
260
 
244
261
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -341,15 +358,18 @@ interface ExtendedTableProps extends TableProps {
341
358
  onCellClick?: (props: CellClickProps) => void;
342
359
  sort_by?: string;
343
360
  sort_order?: string;
361
+ onCellClick?: (props: CellClickProps) => void;
362
+ onDeleteRow?: (props: CellClickProps) => void;
363
+ enableDelete?: boolean;
344
364
  }
345
365
 
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;
366
+ 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
367
 
348
368
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
349
369
 
350
- declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder }: TabsProps) => react_jsx_runtime.JSX.Element;
370
+ declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading }: TabsProps) => react_jsx_runtime.JSX.Element;
351
371
 
352
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange }: StagesProps) => react_jsx_runtime.JSX.Element;
372
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage }: StagesProps) => react_jsx_runtime.JSX.Element;
353
373
 
354
374
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
355
375
 
@@ -377,4 +397,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
377
397
  declare function cn(...inputs: ClassValue[]): string;
378
398
  declare function getInitials(name: string): string;
379
399
 
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 };
400
+ 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 };