@algorithm-shift/design-system 1.2.54 → 1.2.56
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.css +25 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +21 -22
- package/dist/index.d.ts +21 -22
- package/dist/index.js +376 -354
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +333 -313
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -54,27 +54,27 @@ interface TextInputGroupProps extends ElementProps, InputProperties {
|
|
|
54
54
|
append?: string | React.ReactNode;
|
|
55
55
|
}
|
|
56
56
|
interface CheckboxInputProps extends ElementProps, InputProperties {
|
|
57
|
-
value?: boolean;
|
|
57
|
+
value?: boolean | any;
|
|
58
58
|
onChange?: (value: boolean) => void;
|
|
59
59
|
}
|
|
60
60
|
interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
|
|
61
|
-
value?: string;
|
|
61
|
+
value?: string | any;
|
|
62
62
|
onChange?: (value: string) => void;
|
|
63
63
|
}
|
|
64
64
|
interface MultiCheckboxInputProps extends ElementProps, InputSourceProperties, InputProperties {
|
|
65
|
-
value?: Record<string, boolean
|
|
65
|
+
value?: Record<string, boolean> | any;
|
|
66
66
|
onChange?: (value: Record<string, boolean>) => void;
|
|
67
67
|
}
|
|
68
68
|
interface RichTextInputProps extends ElementProps, InputProperties {
|
|
69
|
-
value?: string;
|
|
69
|
+
value?: string | any;
|
|
70
70
|
onChange?: (value: string) => void;
|
|
71
71
|
}
|
|
72
72
|
interface SelectDropdownInputProps extends ElementProps, InputProperties, InputSourceProperties {
|
|
73
|
-
value?: string;
|
|
73
|
+
value?: string | any;
|
|
74
74
|
onChange?: (value: string) => void;
|
|
75
75
|
}
|
|
76
76
|
interface SwitchToggleInputProps extends ElementProps, InputProperties {
|
|
77
|
-
value?: boolean;
|
|
77
|
+
value?: boolean | any;
|
|
78
78
|
onChange?: (value: boolean) => void;
|
|
79
79
|
}
|
|
80
80
|
interface PhoneInputProps extends ElementProps, InputProperties { }
|
|
@@ -107,7 +107,6 @@ interface TableProps extends ElementProps {
|
|
|
107
107
|
interface TabsProps extends ElementProps {
|
|
108
108
|
tabs?: Record<string, any>;
|
|
109
109
|
pathname?: string;
|
|
110
|
-
LinkComponent?: React.ComponentType<any>;
|
|
111
110
|
verticalMenu?: boolean;
|
|
112
111
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
113
112
|
}
|
|
@@ -120,7 +119,7 @@ interface StagesProps extends ElementProps {
|
|
|
120
119
|
|
|
121
120
|
type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
|
|
122
121
|
textContent?: string;
|
|
123
|
-
type?: 'button' | 'submit';
|
|
122
|
+
type?: 'button' | 'submit' | 'reset';
|
|
124
123
|
}
|
|
125
124
|
|
|
126
125
|
interface PieChartProps extends ElementProps {
|
|
@@ -162,35 +161,31 @@ interface EmailComposerProps extends ElementProps {
|
|
|
162
161
|
|
|
163
162
|
interface NavbarProps extends ElementProps {
|
|
164
163
|
style?: React.CSSProperties;
|
|
165
|
-
badgeType?:
|
|
166
|
-
badgeCount?: number;
|
|
164
|
+
badgeType?: string;
|
|
165
|
+
badgeCount?: number | string;
|
|
167
166
|
hideBadgeWhenZero?: boolean;
|
|
168
|
-
profileType?:
|
|
167
|
+
profileType?: string;
|
|
169
168
|
showName?: boolean;
|
|
170
169
|
imageUrl?: string;
|
|
171
170
|
altText?: string;
|
|
172
171
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
173
|
-
LinkComponent?: React.ComponentType<any>;
|
|
174
|
-
ImageComponent?: React.ComponentType<any>;
|
|
175
172
|
list?: Record<string, any>;
|
|
176
173
|
userName?: string;
|
|
177
174
|
}
|
|
178
175
|
|
|
179
176
|
interface BreadcrumbProps extends ElementProps {
|
|
180
177
|
list?: Record<string, any>;
|
|
181
|
-
LinkComponent?: React.ComponentType<any>;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
180
|
interface ButtonGroupProps extends ElementProps {
|
|
185
181
|
textContent?: string;
|
|
186
182
|
list?: Record<string, any>;
|
|
187
|
-
LinkComponent?: React.ComponentType<any>;
|
|
188
183
|
}
|
|
189
184
|
|
|
190
185
|
interface IconProps extends ElementProps {
|
|
191
|
-
iconType?:
|
|
186
|
+
iconType?: string;
|
|
192
187
|
name?: string;
|
|
193
|
-
fontSize?: number;
|
|
188
|
+
fontSize?: number | string;
|
|
194
189
|
}
|
|
195
190
|
interface AccordionProps extends ElementProps {
|
|
196
191
|
name?: string;
|
|
@@ -206,6 +201,10 @@ declare const Container: ({ children, className, style, ...props }: ElementProps
|
|
|
206
201
|
|
|
207
202
|
declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
208
203
|
|
|
204
|
+
declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
207
|
+
|
|
209
208
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
210
209
|
|
|
211
210
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -217,9 +216,9 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
|
|
|
217
216
|
className: string;
|
|
218
217
|
}, HTMLElement>;
|
|
219
218
|
|
|
220
|
-
declare const Breadcrumb: ({ list, className, style
|
|
219
|
+
declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
221
220
|
|
|
222
|
-
declare function SplitButton({ style, textContent, className, list
|
|
221
|
+
declare function SplitButton({ style, textContent, className, list }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
223
222
|
|
|
224
223
|
declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
|
225
224
|
|
|
@@ -285,13 +284,13 @@ declare const Table: ({ columns, data, rowActions, className, style, pagination,
|
|
|
285
284
|
|
|
286
285
|
declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
287
286
|
|
|
288
|
-
declare const Tabs: ({ className, style, tabs, verticalMenu,
|
|
287
|
+
declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
289
288
|
|
|
290
289
|
declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style }: StagesProps) => react_jsx_runtime.JSX.Element;
|
|
291
290
|
|
|
292
291
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
293
292
|
|
|
294
|
-
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode,
|
|
293
|
+
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
295
294
|
|
|
296
295
|
declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
297
296
|
|
|
@@ -313,4 +312,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
313
312
|
declare function cn(...inputs: ClassValue[]): string;
|
|
314
313
|
declare function getInitials(name: string): string;
|
|
315
314
|
|
|
316
|
-
export { Accordion, 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, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
315
|
+
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, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,27 +54,27 @@ interface TextInputGroupProps extends ElementProps, InputProperties {
|
|
|
54
54
|
append?: string | React.ReactNode;
|
|
55
55
|
}
|
|
56
56
|
interface CheckboxInputProps extends ElementProps, InputProperties {
|
|
57
|
-
value?: boolean;
|
|
57
|
+
value?: boolean | any;
|
|
58
58
|
onChange?: (value: boolean) => void;
|
|
59
59
|
}
|
|
60
60
|
interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
|
|
61
|
-
value?: string;
|
|
61
|
+
value?: string | any;
|
|
62
62
|
onChange?: (value: string) => void;
|
|
63
63
|
}
|
|
64
64
|
interface MultiCheckboxInputProps extends ElementProps, InputSourceProperties, InputProperties {
|
|
65
|
-
value?: Record<string, boolean
|
|
65
|
+
value?: Record<string, boolean> | any;
|
|
66
66
|
onChange?: (value: Record<string, boolean>) => void;
|
|
67
67
|
}
|
|
68
68
|
interface RichTextInputProps extends ElementProps, InputProperties {
|
|
69
|
-
value?: string;
|
|
69
|
+
value?: string | any;
|
|
70
70
|
onChange?: (value: string) => void;
|
|
71
71
|
}
|
|
72
72
|
interface SelectDropdownInputProps extends ElementProps, InputProperties, InputSourceProperties {
|
|
73
|
-
value?: string;
|
|
73
|
+
value?: string | any;
|
|
74
74
|
onChange?: (value: string) => void;
|
|
75
75
|
}
|
|
76
76
|
interface SwitchToggleInputProps extends ElementProps, InputProperties {
|
|
77
|
-
value?: boolean;
|
|
77
|
+
value?: boolean | any;
|
|
78
78
|
onChange?: (value: boolean) => void;
|
|
79
79
|
}
|
|
80
80
|
interface PhoneInputProps extends ElementProps, InputProperties { }
|
|
@@ -107,7 +107,6 @@ interface TableProps extends ElementProps {
|
|
|
107
107
|
interface TabsProps extends ElementProps {
|
|
108
108
|
tabs?: Record<string, any>;
|
|
109
109
|
pathname?: string;
|
|
110
|
-
LinkComponent?: React.ComponentType<any>;
|
|
111
110
|
verticalMenu?: boolean;
|
|
112
111
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
113
112
|
}
|
|
@@ -120,7 +119,7 @@ interface StagesProps extends ElementProps {
|
|
|
120
119
|
|
|
121
120
|
type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
|
|
122
121
|
textContent?: string;
|
|
123
|
-
type?: 'button' | 'submit';
|
|
122
|
+
type?: 'button' | 'submit' | 'reset';
|
|
124
123
|
}
|
|
125
124
|
|
|
126
125
|
interface PieChartProps extends ElementProps {
|
|
@@ -162,35 +161,31 @@ interface EmailComposerProps extends ElementProps {
|
|
|
162
161
|
|
|
163
162
|
interface NavbarProps extends ElementProps {
|
|
164
163
|
style?: React.CSSProperties;
|
|
165
|
-
badgeType?:
|
|
166
|
-
badgeCount?: number;
|
|
164
|
+
badgeType?: string;
|
|
165
|
+
badgeCount?: number | string;
|
|
167
166
|
hideBadgeWhenZero?: boolean;
|
|
168
|
-
profileType?:
|
|
167
|
+
profileType?: string;
|
|
169
168
|
showName?: boolean;
|
|
170
169
|
imageUrl?: string;
|
|
171
170
|
altText?: string;
|
|
172
171
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
173
|
-
LinkComponent?: React.ComponentType<any>;
|
|
174
|
-
ImageComponent?: React.ComponentType<any>;
|
|
175
172
|
list?: Record<string, any>;
|
|
176
173
|
userName?: string;
|
|
177
174
|
}
|
|
178
175
|
|
|
179
176
|
interface BreadcrumbProps extends ElementProps {
|
|
180
177
|
list?: Record<string, any>;
|
|
181
|
-
LinkComponent?: React.ComponentType<any>;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
180
|
interface ButtonGroupProps extends ElementProps {
|
|
185
181
|
textContent?: string;
|
|
186
182
|
list?: Record<string, any>;
|
|
187
|
-
LinkComponent?: React.ComponentType<any>;
|
|
188
183
|
}
|
|
189
184
|
|
|
190
185
|
interface IconProps extends ElementProps {
|
|
191
|
-
iconType?:
|
|
186
|
+
iconType?: string;
|
|
192
187
|
name?: string;
|
|
193
|
-
fontSize?: number;
|
|
188
|
+
fontSize?: number | string;
|
|
194
189
|
}
|
|
195
190
|
interface AccordionProps extends ElementProps {
|
|
196
191
|
name?: string;
|
|
@@ -206,6 +201,10 @@ declare const Container: ({ children, className, style, ...props }: ElementProps
|
|
|
206
201
|
|
|
207
202
|
declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
208
203
|
|
|
204
|
+
declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
207
|
+
|
|
209
208
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
210
209
|
|
|
211
210
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -217,9 +216,9 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
|
|
|
217
216
|
className: string;
|
|
218
217
|
}, HTMLElement>;
|
|
219
218
|
|
|
220
|
-
declare const Breadcrumb: ({ list, className, style
|
|
219
|
+
declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
221
220
|
|
|
222
|
-
declare function SplitButton({ style, textContent, className, list
|
|
221
|
+
declare function SplitButton({ style, textContent, className, list }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
223
222
|
|
|
224
223
|
declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
|
225
224
|
|
|
@@ -285,13 +284,13 @@ declare const Table: ({ columns, data, rowActions, className, style, pagination,
|
|
|
285
284
|
|
|
286
285
|
declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVisiblePages, perPage, }: CustomPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
287
286
|
|
|
288
|
-
declare const Tabs: ({ className, style, tabs, verticalMenu,
|
|
287
|
+
declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
289
288
|
|
|
290
289
|
declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style }: StagesProps) => react_jsx_runtime.JSX.Element;
|
|
291
290
|
|
|
292
291
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
293
292
|
|
|
294
|
-
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode,
|
|
293
|
+
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
295
294
|
|
|
296
295
|
declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
297
296
|
|
|
@@ -313,4 +312,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
313
312
|
declare function cn(...inputs: ClassValue[]): string;
|
|
314
313
|
declare function getInitials(name: string): string;
|
|
315
314
|
|
|
316
|
-
export { Accordion, 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, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
315
|
+
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, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|