@algorithm-shift/design-system 1.2.65 → 1.2.67

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
@@ -104,6 +104,7 @@ interface TableProps extends ElementProps {
104
104
  onCellClick?: (cellData: Record<string, any>, columnId: string) => void;
105
105
  getRowSelection?: (rowSelection: Record<string, boolean>) => void;
106
106
  totalRecords?: number;
107
+ globalSearch?: boolean;
107
108
  }
108
109
 
109
110
  interface TabsProps extends ElementProps {
@@ -132,6 +133,7 @@ interface PieChartProps extends ElementProps {
132
133
  showLegends?: boolean;
133
134
  labelType?: string;
134
135
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
136
+ loading?: boolean;
135
137
  }
136
138
 
137
139
  interface BarChartProps extends ElementProps {
@@ -139,6 +141,7 @@ interface BarChartProps extends ElementProps {
139
141
  chartType?: string;
140
142
  legendsPosition?: string;
141
143
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
144
+ loading?: boolean;
142
145
  }
143
146
 
144
147
  interface ModalProps extends ElementProps {
@@ -299,9 +302,14 @@ interface ExtendedTableProps extends TableProps {
299
302
  page?: number;
300
303
  itemsPerPage?: number;
301
304
  onPageChange?: (props: PageChangeProps) => void;
305
+ onSortChange?: (props: SortChangeProps) => void;
306
+ onFilterChange?: (props: FilterChangeProps) => void;
307
+ onGlobalSearch?: (props: SearchChangeProps) => void;
308
+ sort_by?: string;
309
+ sort_order?: string;
302
310
  }
303
311
 
304
- declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, page, loading, totalRecords, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
312
+ 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;
305
313
 
306
314
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
307
315
 
@@ -313,9 +321,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
313
321
 
314
322
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
315
323
 
316
- declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
324
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
317
325
 
318
- declare const DonutChart: ({ className, style, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element;
326
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element>;
319
327
 
320
328
  declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
321
329
 
@@ -335,4 +343,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
335
343
  declare function cn(...inputs: ClassValue[]): string;
336
344
  declare function getInitials(name: string): string;
337
345
 
338
- export { Accordion, AccordionGroup, ChartComponent 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, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart 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 };
346
+ 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, 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 };
package/dist/index.d.ts CHANGED
@@ -104,6 +104,7 @@ interface TableProps extends ElementProps {
104
104
  onCellClick?: (cellData: Record<string, any>, columnId: string) => void;
105
105
  getRowSelection?: (rowSelection: Record<string, boolean>) => void;
106
106
  totalRecords?: number;
107
+ globalSearch?: boolean;
107
108
  }
108
109
 
109
110
  interface TabsProps extends ElementProps {
@@ -132,6 +133,7 @@ interface PieChartProps extends ElementProps {
132
133
  showLegends?: boolean;
133
134
  labelType?: string;
134
135
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
136
+ loading?: boolean;
135
137
  }
136
138
 
137
139
  interface BarChartProps extends ElementProps {
@@ -139,6 +141,7 @@ interface BarChartProps extends ElementProps {
139
141
  chartType?: string;
140
142
  legendsPosition?: string;
141
143
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
144
+ loading?: boolean;
142
145
  }
143
146
 
144
147
  interface ModalProps extends ElementProps {
@@ -299,9 +302,14 @@ interface ExtendedTableProps extends TableProps {
299
302
  page?: number;
300
303
  itemsPerPage?: number;
301
304
  onPageChange?: (props: PageChangeProps) => void;
305
+ onSortChange?: (props: SortChangeProps) => void;
306
+ onFilterChange?: (props: FilterChangeProps) => void;
307
+ onGlobalSearch?: (props: SearchChangeProps) => void;
308
+ sort_by?: string;
309
+ sort_order?: string;
302
310
  }
303
311
 
304
- declare const Table: ({ columns, data, rowActions, className, style, pagination, paginationMode, itemsPerPage, onPageChange, page, loading, totalRecords, ...props }: ExtendedTableProps) => react_jsx_runtime.JSX.Element;
312
+ 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;
305
313
 
306
314
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
307
315
 
@@ -313,9 +321,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
313
321
 
314
322
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
315
323
 
316
- declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
324
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
317
325
 
318
- declare const DonutChart: ({ className, style, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element;
326
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element>;
319
327
 
320
328
  declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
321
329
 
@@ -335,4 +343,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
335
343
  declare function cn(...inputs: ClassValue[]): string;
336
344
  declare function getInitials(name: string): string;
337
345
 
338
- export { Accordion, AccordionGroup, ChartComponent 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, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart 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 };
346
+ 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, 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 };