@algorithm-shift/design-system 1.2.40 → 1.2.41

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
@@ -110,6 +110,8 @@ interface TabsProps extends ElementProps {
110
110
  tabs?: Record<string, any>;
111
111
  pathname?: string;
112
112
  LinkComponent?: React.ComponentType<any>;
113
+ verticalMenu?: boolean;
114
+ canvasMode?: 'desktop' | 'tablet' | 'mobile';
113
115
  }
114
116
 
115
117
  interface StagesProps extends ElementProps {
@@ -118,23 +120,6 @@ interface StagesProps extends ElementProps {
118
120
  buttonText?: string;
119
121
  }
120
122
 
121
- interface ProfileProps extends ElementProps {
122
- profileType?: 'avatar' | 'initial';
123
- showName?: boolean;
124
- userName?: string;
125
- }
126
-
127
- interface NotificationProps extends ElementProps {
128
- badgeType?: 'number' | 'dot';
129
- badgeCount?: number;
130
- hideBadgeWhenZero?: boolean;
131
- }
132
-
133
- interface LogoProps extends ElementProps {
134
- imageUrl?: string;
135
- altText?: string;
136
- }
137
-
138
123
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
139
124
  textContent?: string;
140
125
  type?: 'button' | 'submit';
@@ -189,6 +174,19 @@ interface NavbarProps extends ElementProps {
189
174
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
190
175
  LinkComponent?: React.ComponentType<any>;
191
176
  ImageComponent?: React.ComponentType<any>;
177
+ list?: Record<string, any>;
178
+ userName?: string;
179
+ }
180
+
181
+ interface BreadcrumbProps extends ElementProps {
182
+ list?: Record<string, any>;
183
+ LinkComponent?: React.ComponentType<any>;
184
+ }
185
+
186
+ interface ButtonGroupProps extends ElementProps {
187
+ textContent?: string;
188
+ list?: Record<string, any>;
189
+ LinkComponent?: React.ComponentType<any>;
192
190
  }
193
191
 
194
192
  declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
@@ -210,6 +208,10 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
210
208
  className: string;
211
209
  }, HTMLElement>;
212
210
 
211
+ declare const Breadcrumb: ({ list, className, style, LinkComponent }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
212
+
213
+ declare function SplitButton({ style, textContent, className, list, LinkComponent }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
214
+
213
215
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
214
216
 
215
217
  declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
@@ -256,19 +258,13 @@ interface CustomPaginationProps {
256
258
  }
257
259
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
258
260
 
259
- declare const Tabs: ({ tabs, className, style, pathname, LinkComponent }: TabsProps) => react_jsx_runtime.JSX.Element;
261
+ declare const Tabs: ({ className, style, tabs, verticalMenu, LinkComponent, pathname, canvasMode }: TabsProps) => react_jsx_runtime.JSX.Element;
260
262
 
261
263
  declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style }: StagesProps) => react_jsx_runtime.JSX.Element;
262
264
 
263
265
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
264
266
 
265
- declare const Profile: ({ profileType, showName, userName, className, style }: ProfileProps) => react_jsx_runtime.JSX.Element;
266
-
267
- declare const Notification: ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }: NotificationProps) => react_jsx_runtime.JSX.Element;
268
-
269
- declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => react_jsx_runtime.JSX.Element;
270
-
271
- declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, LinkComponent, ImageComponent }: NavbarProps): react_jsx_runtime.JSX.Element;
267
+ declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, LinkComponent, ImageComponent, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
272
268
 
273
269
  declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
274
270
 
@@ -311,5 +307,6 @@ interface FormWrapperProps<T extends z.ZodObject<any>> {
311
307
  declare const FormWrapper: <T extends z.ZodObject<any>>({ validation, defaultValues, children, onSubmit, onReset, }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
312
308
 
313
309
  declare function cn(...inputs: ClassValue[]): string;
310
+ declare function getInitials(name: string): string;
314
311
 
315
- export { ChartComponent as BarChart, ButtonWrapper as Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, FormWrapper as Form, Grid as GridLayout, ImageControl as Image, Logo, Modal, MultiCheckbox, Navbar, Notification, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, Profile, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Spacer, StagesComponent as Stages, StateProvider, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, showSonnerToast, stateReducer, useAppState };
312
+ export { 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, FormWrapper as Form, Grid as GridLayout, 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, Spacer, StagesComponent as Stages, StateProvider, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast, stateReducer, useAppState };
package/dist/index.d.ts CHANGED
@@ -110,6 +110,8 @@ interface TabsProps extends ElementProps {
110
110
  tabs?: Record<string, any>;
111
111
  pathname?: string;
112
112
  LinkComponent?: React.ComponentType<any>;
113
+ verticalMenu?: boolean;
114
+ canvasMode?: 'desktop' | 'tablet' | 'mobile';
113
115
  }
114
116
 
115
117
  interface StagesProps extends ElementProps {
@@ -118,23 +120,6 @@ interface StagesProps extends ElementProps {
118
120
  buttonText?: string;
119
121
  }
120
122
 
121
- interface ProfileProps extends ElementProps {
122
- profileType?: 'avatar' | 'initial';
123
- showName?: boolean;
124
- userName?: string;
125
- }
126
-
127
- interface NotificationProps extends ElementProps {
128
- badgeType?: 'number' | 'dot';
129
- badgeCount?: number;
130
- hideBadgeWhenZero?: boolean;
131
- }
132
-
133
- interface LogoProps extends ElementProps {
134
- imageUrl?: string;
135
- altText?: string;
136
- }
137
-
138
123
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
139
124
  textContent?: string;
140
125
  type?: 'button' | 'submit';
@@ -189,6 +174,19 @@ interface NavbarProps extends ElementProps {
189
174
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
190
175
  LinkComponent?: React.ComponentType<any>;
191
176
  ImageComponent?: React.ComponentType<any>;
177
+ list?: Record<string, any>;
178
+ userName?: string;
179
+ }
180
+
181
+ interface BreadcrumbProps extends ElementProps {
182
+ list?: Record<string, any>;
183
+ LinkComponent?: React.ComponentType<any>;
184
+ }
185
+
186
+ interface ButtonGroupProps extends ElementProps {
187
+ textContent?: string;
188
+ list?: Record<string, any>;
189
+ LinkComponent?: React.ComponentType<any>;
192
190
  }
193
191
 
194
192
  declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
@@ -210,6 +208,10 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
210
208
  className: string;
211
209
  }, HTMLElement>;
212
210
 
211
+ declare const Breadcrumb: ({ list, className, style, LinkComponent }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
212
+
213
+ declare function SplitButton({ style, textContent, className, list, LinkComponent }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
214
+
213
215
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
214
216
 
215
217
  declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
@@ -256,19 +258,13 @@ interface CustomPaginationProps {
256
258
  }
257
259
  declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
258
260
 
259
- declare const Tabs: ({ tabs, className, style, pathname, LinkComponent }: TabsProps) => react_jsx_runtime.JSX.Element;
261
+ declare const Tabs: ({ className, style, tabs, verticalMenu, LinkComponent, pathname, canvasMode }: TabsProps) => react_jsx_runtime.JSX.Element;
260
262
 
261
263
  declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style }: StagesProps) => react_jsx_runtime.JSX.Element;
262
264
 
263
265
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
264
266
 
265
- declare const Profile: ({ profileType, showName, userName, className, style }: ProfileProps) => react_jsx_runtime.JSX.Element;
266
-
267
- declare const Notification: ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }: NotificationProps) => react_jsx_runtime.JSX.Element;
268
-
269
- declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => react_jsx_runtime.JSX.Element;
270
-
271
- declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, LinkComponent, ImageComponent }: NavbarProps): react_jsx_runtime.JSX.Element;
267
+ declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, LinkComponent, ImageComponent, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
272
268
 
273
269
  declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
274
270
 
@@ -311,5 +307,6 @@ interface FormWrapperProps<T extends z.ZodObject<any>> {
311
307
  declare const FormWrapper: <T extends z.ZodObject<any>>({ validation, defaultValues, children, onSubmit, onReset, }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
312
308
 
313
309
  declare function cn(...inputs: ClassValue[]): string;
310
+ declare function getInitials(name: string): string;
314
311
 
315
- export { ChartComponent as BarChart, ButtonWrapper as Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, FormWrapper as Form, Grid as GridLayout, ImageControl as Image, Logo, Modal, MultiCheckbox, Navbar, Notification, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, Profile, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Spacer, StagesComponent as Stages, StateProvider, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, showSonnerToast, stateReducer, useAppState };
312
+ export { 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, FormWrapper as Form, Grid as GridLayout, 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, Spacer, StagesComponent as Stages, StateProvider, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast, stateReducer, useAppState };