@algorithm-shift/design-system 1.2.50 → 1.2.52

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
@@ -21,13 +21,13 @@ interface ImageProps extends ElementProps {
21
21
 
22
22
  type InputProperties = {
23
23
  name?: string;
24
- value?: string;
25
- placeholder?: string;
26
- errorMessage?: string;
27
- isEditable?: boolean;
28
- isDisabled?: boolean;
29
- isReadonly?: boolean;
30
- isAutocomplete?: boolean;
24
+ value?: string | undefined;
25
+ placeholder?: string | undefined;
26
+ errorMessage?: string | undefined;
27
+ isEditable?: boolean | undefined;
28
+ isDisabled?: boolean | undefined;
29
+ isReadonly?: boolean | undefined;
30
+ isAutocomplete?: boolean | undefined;
31
31
  label?: string;
32
32
  text?: string;
33
33
  hasFormContainer?: boolean;
@@ -49,15 +49,15 @@ interface TextAreaProps extends ElementProps, InputProperties { }
49
49
  interface UrlInputProps extends ElementProps, InputProperties { }
50
50
  interface SearchInputProps extends ElementProps, InputProperties { }
51
51
  interface FileInputProps extends ElementProps, InputProperties { }
52
- interface TextInputGroupProps extends ElementProps, InputProperties {
52
+ interface TextInputGroupProps extends ElementProps, InputProperties {
53
53
  prepend?: string | React.ReactNode;
54
54
  append?: string | React.ReactNode;
55
55
  }
56
- interface CheckboxInputProps extends ElementProps, InputProperties {
56
+ interface CheckboxInputProps extends ElementProps, InputProperties {
57
57
  value?: boolean;
58
58
  onChange?: (value: boolean) => void;
59
59
  }
60
- interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
60
+ interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
61
61
  value?: string;
62
62
  onChange?: (value: string) => void;
63
63
  }
@@ -65,7 +65,7 @@ interface MultiCheckboxInputProps extends ElementProps, InputSourceProperties, I
65
65
  value?: Record<string, boolean>;
66
66
  onChange?: (value: Record<string, boolean>) => void;
67
67
  }
68
- interface RichTextInputProps extends ElementProps, InputProperties {
68
+ interface RichTextInputProps extends ElementProps, InputProperties {
69
69
  value?: string;
70
70
  onChange?: (value: string) => void;
71
71
  }
@@ -73,12 +73,12 @@ interface SelectDropdownInputProps extends ElementProps, InputProperties, InputS
73
73
  value?: string;
74
74
  onChange?: (value: string) => void;
75
75
  }
76
- interface SwitchToggleInputProps extends ElementProps, InputProperties {
76
+ interface SwitchToggleInputProps extends ElementProps, InputProperties {
77
77
  value?: boolean;
78
78
  onChange?: (value: boolean) => void;
79
79
  }
80
80
  interface PhoneInputProps extends ElementProps, InputProperties { }
81
- interface DateRangeInputProps extends ElementProps {
81
+ interface DateRangeInputProps extends ElementProps {
82
82
  value?: { from?: Date; to?: Date } | undefined;
83
83
  onChange?: (value: { from?: Date; to?: Date } | undefined) => void;
84
84
  errorMessage?: string;
@@ -92,9 +92,9 @@ interface DatePickerInputProps extends ElementProps, InputProperties {
92
92
  }
93
93
 
94
94
  interface TableProps extends ElementProps {
95
- columns?: Record<string, any>;
96
- rowActions?: Record<string, any>;
97
- data?: Record<string, any>;
95
+ columns?: Array<any>;
96
+ rowActions?: Array<any>;
97
+ data?: Array<any>;
98
98
  pagination?: boolean;
99
99
  itemsPerPage?: number;
100
100
  loading?: boolean;
@@ -185,6 +185,15 @@ interface ButtonGroupProps extends ElementProps {
185
185
  textContent?: string;
186
186
  list?: Record<string, any>;
187
187
  LinkComponent?: React.ComponentType<any>;
188
+ }
189
+
190
+ interface IconProps extends ElementProps {
191
+ iconType?: 'fontawesome' | 'lucide';
192
+ name?: string;
193
+ fontSize?: number;
194
+ }
195
+ interface AccordionProps extends ElementProps {
196
+ name?: string;
188
197
  }
189
198
 
190
199
  declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
@@ -195,6 +204,8 @@ declare const Grid: ({ children, className, style, ...props }: ElementProps) =>
195
204
 
196
205
  declare const Container: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
197
206
 
207
+ declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
208
+
198
209
  declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
199
210
 
200
211
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -210,6 +221,8 @@ declare const Breadcrumb: ({ list, className, style, LinkComponent }: Breadcrumb
210
221
 
211
222
  declare function SplitButton({ style, textContent, className, list, LinkComponent }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
212
223
 
224
+ declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
225
+
213
226
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
214
227
 
215
228
  declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
@@ -300,4 +313,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
300
313
  declare function cn(...inputs: ClassValue[]): string;
301
314
  declare function getInitials(name: string): string;
302
315
 
303
- 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, 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, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
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 };
package/dist/index.d.ts CHANGED
@@ -21,13 +21,13 @@ interface ImageProps extends ElementProps {
21
21
 
22
22
  type InputProperties = {
23
23
  name?: string;
24
- value?: string;
25
- placeholder?: string;
26
- errorMessage?: string;
27
- isEditable?: boolean;
28
- isDisabled?: boolean;
29
- isReadonly?: boolean;
30
- isAutocomplete?: boolean;
24
+ value?: string | undefined;
25
+ placeholder?: string | undefined;
26
+ errorMessage?: string | undefined;
27
+ isEditable?: boolean | undefined;
28
+ isDisabled?: boolean | undefined;
29
+ isReadonly?: boolean | undefined;
30
+ isAutocomplete?: boolean | undefined;
31
31
  label?: string;
32
32
  text?: string;
33
33
  hasFormContainer?: boolean;
@@ -49,15 +49,15 @@ interface TextAreaProps extends ElementProps, InputProperties { }
49
49
  interface UrlInputProps extends ElementProps, InputProperties { }
50
50
  interface SearchInputProps extends ElementProps, InputProperties { }
51
51
  interface FileInputProps extends ElementProps, InputProperties { }
52
- interface TextInputGroupProps extends ElementProps, InputProperties {
52
+ interface TextInputGroupProps extends ElementProps, InputProperties {
53
53
  prepend?: string | React.ReactNode;
54
54
  append?: string | React.ReactNode;
55
55
  }
56
- interface CheckboxInputProps extends ElementProps, InputProperties {
56
+ interface CheckboxInputProps extends ElementProps, InputProperties {
57
57
  value?: boolean;
58
58
  onChange?: (value: boolean) => void;
59
59
  }
60
- interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
60
+ interface RadioInputProps extends ElementProps, InputSourceProperties, InputProperties {
61
61
  value?: string;
62
62
  onChange?: (value: string) => void;
63
63
  }
@@ -65,7 +65,7 @@ interface MultiCheckboxInputProps extends ElementProps, InputSourceProperties, I
65
65
  value?: Record<string, boolean>;
66
66
  onChange?: (value: Record<string, boolean>) => void;
67
67
  }
68
- interface RichTextInputProps extends ElementProps, InputProperties {
68
+ interface RichTextInputProps extends ElementProps, InputProperties {
69
69
  value?: string;
70
70
  onChange?: (value: string) => void;
71
71
  }
@@ -73,12 +73,12 @@ interface SelectDropdownInputProps extends ElementProps, InputProperties, InputS
73
73
  value?: string;
74
74
  onChange?: (value: string) => void;
75
75
  }
76
- interface SwitchToggleInputProps extends ElementProps, InputProperties {
76
+ interface SwitchToggleInputProps extends ElementProps, InputProperties {
77
77
  value?: boolean;
78
78
  onChange?: (value: boolean) => void;
79
79
  }
80
80
  interface PhoneInputProps extends ElementProps, InputProperties { }
81
- interface DateRangeInputProps extends ElementProps {
81
+ interface DateRangeInputProps extends ElementProps {
82
82
  value?: { from?: Date; to?: Date } | undefined;
83
83
  onChange?: (value: { from?: Date; to?: Date } | undefined) => void;
84
84
  errorMessage?: string;
@@ -92,9 +92,9 @@ interface DatePickerInputProps extends ElementProps, InputProperties {
92
92
  }
93
93
 
94
94
  interface TableProps extends ElementProps {
95
- columns?: Record<string, any>;
96
- rowActions?: Record<string, any>;
97
- data?: Record<string, any>;
95
+ columns?: Array<any>;
96
+ rowActions?: Array<any>;
97
+ data?: Array<any>;
98
98
  pagination?: boolean;
99
99
  itemsPerPage?: number;
100
100
  loading?: boolean;
@@ -185,6 +185,15 @@ interface ButtonGroupProps extends ElementProps {
185
185
  textContent?: string;
186
186
  list?: Record<string, any>;
187
187
  LinkComponent?: React.ComponentType<any>;
188
+ }
189
+
190
+ interface IconProps extends ElementProps {
191
+ iconType?: 'fontawesome' | 'lucide';
192
+ name?: string;
193
+ fontSize?: number;
194
+ }
195
+ interface AccordionProps extends ElementProps {
196
+ name?: string;
188
197
  }
189
198
 
190
199
  declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
@@ -195,6 +204,8 @@ declare const Grid: ({ children, className, style, ...props }: ElementProps) =>
195
204
 
196
205
  declare const Container: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
197
206
 
207
+ declare const Accordion: ({ children, name, style, className }: AccordionProps) => react_jsx_runtime.JSX.Element;
208
+
198
209
  declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
199
210
 
200
211
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
@@ -210,6 +221,8 @@ declare const Breadcrumb: ({ list, className, style, LinkComponent }: Breadcrumb
210
221
 
211
222
  declare function SplitButton({ style, textContent, className, list, LinkComponent }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
212
223
 
224
+ declare const Icon: ({ iconType, name, className, fontSize, style }: IconProps) => react_jsx_runtime.JSX.Element | null;
225
+
213
226
  declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
214
227
 
215
228
  declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
@@ -300,4 +313,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
300
313
  declare function cn(...inputs: ClassValue[]): string;
301
314
  declare function getInitials(name: string): string;
302
315
 
303
- 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, 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, SwitchToggle, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
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 };