@algorithm-shift/design-system 1.2.59 → 1.2.60
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/client.js +6 -0
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +7 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.css +13 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +451 -371
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +431 -353
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36,6 +36,7 @@ type InputProperties = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
type InputSourceProperties = {
|
|
39
|
+
dataLoading?: boolean;
|
|
39
40
|
data?: Record<string, any>[];
|
|
40
41
|
dataKey?: string;
|
|
41
42
|
dataLabel?: string;
|
|
@@ -139,7 +140,8 @@ interface BarChartProps extends ElementProps {
|
|
|
139
140
|
|
|
140
141
|
interface ModalProps extends ElementProps {
|
|
141
142
|
label?: string;
|
|
142
|
-
|
|
143
|
+
showModal: boolean;
|
|
144
|
+
onModalClose?: (show: boolean) => void;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
interface EmailComposerProps extends ElementProps {
|
|
@@ -170,6 +172,7 @@ interface NavbarProps extends ElementProps {
|
|
|
170
172
|
altText?: string;
|
|
171
173
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
172
174
|
list?: Record<string, any>;
|
|
175
|
+
profileMenu?: Record<string, any>;
|
|
173
176
|
userName?: string;
|
|
174
177
|
}
|
|
175
178
|
|
|
@@ -189,9 +192,20 @@ interface IconProps extends ElementProps {
|
|
|
189
192
|
}
|
|
190
193
|
interface AccordionProps extends ElementProps {
|
|
191
194
|
name?: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface TabListProps extends ElementProps {
|
|
198
|
+
activeTab?: string;
|
|
199
|
+
tabId?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface TabGroupProps extends ElementProps {
|
|
203
|
+
list?: Record<string, any>;
|
|
204
|
+
activeTab?: string;
|
|
205
|
+
onTabChange?: (tabId: string) => void;
|
|
192
206
|
}
|
|
193
207
|
|
|
194
|
-
declare const Modal: ({ children,
|
|
208
|
+
declare const Modal: ({ children, className, style, showModal, onModalClose, label }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
195
209
|
|
|
196
210
|
declare const Flex: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
197
211
|
|
|
@@ -205,6 +219,10 @@ declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Elemen
|
|
|
205
219
|
|
|
206
220
|
declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
207
221
|
|
|
222
|
+
declare function TabList({ children, style, className, activeTab, tabId }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
208
226
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
209
227
|
|
|
210
228
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -290,7 +308,7 @@ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, styl
|
|
|
290
308
|
|
|
291
309
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
292
310
|
|
|
293
|
-
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
311
|
+
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
294
312
|
|
|
295
313
|
declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
296
314
|
|
|
@@ -312,4 +330,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
312
330
|
declare function cn(...inputs: ClassValue[]): string;
|
|
313
331
|
declare function getInitials(name: string): string;
|
|
314
332
|
|
|
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 };
|
|
333
|
+
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, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ type InputProperties = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
type InputSourceProperties = {
|
|
39
|
+
dataLoading?: boolean;
|
|
39
40
|
data?: Record<string, any>[];
|
|
40
41
|
dataKey?: string;
|
|
41
42
|
dataLabel?: string;
|
|
@@ -139,7 +140,8 @@ interface BarChartProps extends ElementProps {
|
|
|
139
140
|
|
|
140
141
|
interface ModalProps extends ElementProps {
|
|
141
142
|
label?: string;
|
|
142
|
-
|
|
143
|
+
showModal: boolean;
|
|
144
|
+
onModalClose?: (show: boolean) => void;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
interface EmailComposerProps extends ElementProps {
|
|
@@ -170,6 +172,7 @@ interface NavbarProps extends ElementProps {
|
|
|
170
172
|
altText?: string;
|
|
171
173
|
canvasMode?: 'desktop' | 'tablet' | 'mobile';
|
|
172
174
|
list?: Record<string, any>;
|
|
175
|
+
profileMenu?: Record<string, any>;
|
|
173
176
|
userName?: string;
|
|
174
177
|
}
|
|
175
178
|
|
|
@@ -189,9 +192,20 @@ interface IconProps extends ElementProps {
|
|
|
189
192
|
}
|
|
190
193
|
interface AccordionProps extends ElementProps {
|
|
191
194
|
name?: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface TabListProps extends ElementProps {
|
|
198
|
+
activeTab?: string;
|
|
199
|
+
tabId?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface TabGroupProps extends ElementProps {
|
|
203
|
+
list?: Record<string, any>;
|
|
204
|
+
activeTab?: string;
|
|
205
|
+
onTabChange?: (tabId: string) => void;
|
|
192
206
|
}
|
|
193
207
|
|
|
194
|
-
declare const Modal: ({ children,
|
|
208
|
+
declare const Modal: ({ children, className, style, showModal, onModalClose, label }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
195
209
|
|
|
196
210
|
declare const Flex: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
197
211
|
|
|
@@ -205,6 +219,10 @@ declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Elemen
|
|
|
205
219
|
|
|
206
220
|
declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
207
221
|
|
|
222
|
+
declare function TabList({ children, style, className, activeTab, tabId }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
208
226
|
declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
209
227
|
|
|
210
228
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -290,7 +308,7 @@ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, styl
|
|
|
290
308
|
|
|
291
309
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
292
310
|
|
|
293
|
-
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
311
|
+
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
294
312
|
|
|
295
313
|
declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
|
|
296
314
|
|
|
@@ -312,4 +330,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
|
|
|
312
330
|
declare function cn(...inputs: ClassValue[]): string;
|
|
313
331
|
declare function getInitials(name: string): string;
|
|
314
332
|
|
|
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 };
|
|
333
|
+
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, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|