@algorithm-shift/design-system 1.2.22 → 1.2.24

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.ts CHANGED
@@ -60,6 +60,9 @@ interface TableProps extends ElementProps {
60
60
  columns?: Record<string, any>;
61
61
  rowActions?: Record<string, any>;
62
62
  data?: Record<string, any>;
63
+ pagination?: boolean;
64
+ itemsPerPage?: number;
65
+ onPageChange?: (page: number) => void;
63
66
  }
64
67
 
65
68
  interface TabsProps extends ElementProps {
@@ -93,12 +96,67 @@ interface LogoProps extends ElementProps {
93
96
 
94
97
  interface ButtonProps extends ElementProps {
95
98
  textContent?: string;
99
+ }
100
+
101
+ interface PieChartProps extends ElementProps {
102
+ data?: Record<string, any>;
103
+ showPercentage?: boolean;
104
+ showLegends?: boolean;
105
+ labelType?: string;
106
+ canvasMode?: 'desktop' | 'tablet' | 'mobile';
107
+ }
108
+
109
+ interface BarChartProps extends ElementProps {
110
+ data?: Record<string, any>;
111
+ chartType?: string;
112
+ legendsPosition?: string;
113
+ canvasMode?: 'desktop' | 'tablet' | 'mobile';
114
+ }
115
+
116
+ interface ModalProps extends ElementProps {
117
+ label?: string;
118
+ onClose?: () => void;
119
+ }
120
+
121
+ interface EmailComposerProps extends ElementProps {
122
+ to?: string;
123
+ setTo?: (to: string) => void;
124
+ showCc?: boolean;
125
+ setShowCc?: (showCc: boolean) => void;
126
+ showBcc?: boolean;
127
+ setShowBcc?: (showBcc: boolean) => void;
128
+ cc?: string;
129
+ setCc?: (cc: string) => void;
130
+ bcc?: string;
131
+ setBcc?: (bcc: string) => void;
132
+ subject?: string;
133
+ setSubject?: (subject: string) => void;
134
+ body?: string;
135
+ setBody?: (body: string) => void;
136
+ }
137
+
138
+ interface NavbarProps extends ElementProps {
139
+ style?: React.CSSProperties;
140
+ badgeType?: 'number' | 'dot';
141
+ badgeCount?: number;
142
+ hideBadgeWhenZero?: boolean;
143
+ profileType?: 'avatar' | 'initial';
144
+ showName?: boolean;
145
+ imageUrl?: string;
146
+ altText?: string;
147
+ canvasMode?: 'desktop' | 'tablet' | 'mobile';
148
+ LinkComponent?: React.ComponentType<any>;
149
+ ImageComponent?: React.ComponentType<any>;
96
150
  }
97
151
 
152
+ declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
153
+
98
154
  declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
99
155
 
100
156
  declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
101
157
 
158
+ declare const Container: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
159
+
102
160
  declare const ButtonComponent: ({ className, style, textContent, }: ButtonProps) => react_jsx_runtime.JSX.Element;
103
161
 
104
162
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -144,7 +202,15 @@ declare function DatePicker({ className, style, ...props }: DatePickerInputProps
144
202
 
145
203
  declare const DateRange: ({ className, style }: DateRangeInputProps) => react_jsx_runtime.JSX.Element;
146
204
 
147
- declare const Table: ({ columns, data, rowActions, className, style }: TableProps) => react_jsx_runtime.JSX.Element;
205
+ declare const Table: ({ columns, data, rowActions, className, style, pagination, itemsPerPage, onPageChange }: TableProps) => react_jsx_runtime.JSX.Element;
206
+
207
+ interface CustomPaginationProps {
208
+ totalPages: number;
209
+ currentPage: number;
210
+ onPageChange: (page: number) => void;
211
+ maxVisiblePages?: number;
212
+ }
213
+ declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
148
214
 
149
215
  declare const Tabs: ({ tabs, className, style, pathname, LinkComponent }: TabsProps) => react_jsx_runtime.JSX.Element;
150
216
 
@@ -158,6 +224,14 @@ declare const Notification: ({ className, style, badgeType, badgeCount, hideBadg
158
224
 
159
225
  declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => react_jsx_runtime.JSX.Element;
160
226
 
227
+ declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, LinkComponent, ImageComponent }: NavbarProps): react_jsx_runtime.JSX.Element;
228
+
229
+ declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
230
+
231
+ declare const DonutChart: ({ className, style, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element;
232
+
233
+ 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;
234
+
161
235
  declare function cn(...inputs: ClassValue[]): string;
162
236
 
163
- export { ButtonComponent as Button, CheckboxInput as Checkbox, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, MultiCheckbox, Notification, NumberInput, PasswordInput, PhoneInput, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, cn };
237
+ export { ChartComponent as BarChart, ButtonComponent as Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailComposer, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, Modal, MultiCheckbox, Navbar, Notification, NumberInput, CustomPagination as Pagination, PasswordInput, PhoneInput, DonutChart as PieChart, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, cn };