@algorithm-shift/design-system 1.2.55 → 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.d.mts +17 -13
- package/dist/index.d.ts +17 -13
- package/dist/index.js +365 -346
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +322 -305
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -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 { }
|
|
@@ -119,7 +119,7 @@ interface StagesProps extends ElementProps {
|
|
|
119
119
|
|
|
120
120
|
type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
|
|
121
121
|
textContent?: string;
|
|
122
|
-
type?: 'button' | 'submit';
|
|
122
|
+
type?: 'button' | 'submit' | 'reset';
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
interface PieChartProps extends ElementProps {
|
|
@@ -161,10 +161,10 @@ interface EmailComposerProps extends ElementProps {
|
|
|
161
161
|
|
|
162
162
|
interface NavbarProps extends ElementProps {
|
|
163
163
|
style?: React.CSSProperties;
|
|
164
|
-
badgeType?:
|
|
165
|
-
badgeCount?: number;
|
|
164
|
+
badgeType?: string;
|
|
165
|
+
badgeCount?: number | string;
|
|
166
166
|
hideBadgeWhenZero?: boolean;
|
|
167
|
-
profileType?:
|
|
167
|
+
profileType?: string;
|
|
168
168
|
showName?: boolean;
|
|
169
169
|
imageUrl?: string;
|
|
170
170
|
altText?: string;
|
|
@@ -183,9 +183,9 @@ interface ButtonGroupProps extends ElementProps {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
interface IconProps extends ElementProps {
|
|
186
|
-
iconType?:
|
|
186
|
+
iconType?: string;
|
|
187
187
|
name?: string;
|
|
188
|
-
fontSize?: number;
|
|
188
|
+
fontSize?: number | string;
|
|
189
189
|
}
|
|
190
190
|
interface AccordionProps extends ElementProps {
|
|
191
191
|
name?: string;
|
|
@@ -201,6 +201,10 @@ declare const Container: ({ children, className, style, ...props }: ElementProps
|
|
|
201
201
|
|
|
202
202
|
declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
203
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
|
+
|
|
204
208
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
205
209
|
|
|
206
210
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -308,4 +312,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
308
312
|
declare function cn(...inputs: ClassValue[]): string;
|
|
309
313
|
declare function getInitials(name: string): string;
|
|
310
314
|
|
|
311
|
-
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 { }
|
|
@@ -119,7 +119,7 @@ interface StagesProps extends ElementProps {
|
|
|
119
119
|
|
|
120
120
|
type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
|
|
121
121
|
textContent?: string;
|
|
122
|
-
type?: 'button' | 'submit';
|
|
122
|
+
type?: 'button' | 'submit' | 'reset';
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
interface PieChartProps extends ElementProps {
|
|
@@ -161,10 +161,10 @@ interface EmailComposerProps extends ElementProps {
|
|
|
161
161
|
|
|
162
162
|
interface NavbarProps extends ElementProps {
|
|
163
163
|
style?: React.CSSProperties;
|
|
164
|
-
badgeType?:
|
|
165
|
-
badgeCount?: number;
|
|
164
|
+
badgeType?: string;
|
|
165
|
+
badgeCount?: number | string;
|
|
166
166
|
hideBadgeWhenZero?: boolean;
|
|
167
|
-
profileType?:
|
|
167
|
+
profileType?: string;
|
|
168
168
|
showName?: boolean;
|
|
169
169
|
imageUrl?: string;
|
|
170
170
|
altText?: string;
|
|
@@ -183,9 +183,9 @@ interface ButtonGroupProps extends ElementProps {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
interface IconProps extends ElementProps {
|
|
186
|
-
iconType?:
|
|
186
|
+
iconType?: string;
|
|
187
187
|
name?: string;
|
|
188
|
-
fontSize?: number;
|
|
188
|
+
fontSize?: number | string;
|
|
189
189
|
}
|
|
190
190
|
interface AccordionProps extends ElementProps {
|
|
191
191
|
name?: string;
|
|
@@ -201,6 +201,10 @@ declare const Container: ({ children, className, style, ...props }: ElementProps
|
|
|
201
201
|
|
|
202
202
|
declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
203
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
|
+
|
|
204
208
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
205
209
|
|
|
206
210
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -308,4 +312,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
308
312
|
declare function cn(...inputs: ClassValue[]): string;
|
|
309
313
|
declare function getInitials(name: string): string;
|
|
310
314
|
|
|
311
|
-
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 };
|