@algorithm-shift/design-system 1.2.74 → 1.2.76
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.d.mts +4 -4
- package/dist/client.d.ts +4 -4
- package/dist/index.css +116 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +27 -8
- package/dist/index.d.ts +27 -8
- package/dist/index.js +541 -336
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +557 -353
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
import { ToasterProps } from 'sonner';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
6
|
|
|
@@ -7,11 +8,11 @@ interface ModalProps {
|
|
|
7
8
|
isOpen: boolean | string;
|
|
8
9
|
onModalClose?: () => void;
|
|
9
10
|
title: string;
|
|
10
|
-
children:
|
|
11
|
+
children: React__default.ReactNode;
|
|
11
12
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
12
13
|
showCloseButton?: boolean;
|
|
13
14
|
className?: string;
|
|
14
|
-
style?:
|
|
15
|
+
style?: React__default.CSSProperties;
|
|
15
16
|
}
|
|
16
17
|
declare function Modal({ isOpen, onModalClose, title, children, size, showCloseButton, className, style }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
17
18
|
|
|
@@ -244,8 +245,8 @@ declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, alt
|
|
|
244
245
|
|
|
245
246
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
246
247
|
|
|
247
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) =>
|
|
248
|
-
style:
|
|
248
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
249
|
+
style: React__default.CSSProperties | undefined;
|
|
249
250
|
className: string;
|
|
250
251
|
}, HTMLElement>;
|
|
251
252
|
|
|
@@ -291,6 +292,24 @@ declare const DateRange: ({ className, style, ...props }: DateRangeInputProps) =
|
|
|
291
292
|
|
|
292
293
|
declare const TextInputGroup: ({ className, style, prepend, append, ...props }: TextInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
293
294
|
|
|
295
|
+
interface Option {
|
|
296
|
+
label: string;
|
|
297
|
+
value: string;
|
|
298
|
+
}
|
|
299
|
+
interface MultiSelectProps {
|
|
300
|
+
value: string[];
|
|
301
|
+
onChange: (value: string[]) => void;
|
|
302
|
+
data: Option[];
|
|
303
|
+
placeholder?: string;
|
|
304
|
+
disabled?: boolean;
|
|
305
|
+
searchable?: boolean;
|
|
306
|
+
className?: string;
|
|
307
|
+
errorMessage?: string;
|
|
308
|
+
dataKey?: string;
|
|
309
|
+
dataLabel?: string;
|
|
310
|
+
}
|
|
311
|
+
declare const MultiSelect: React$1.FC<MultiSelectProps>;
|
|
312
|
+
|
|
294
313
|
interface PageChangeProps {
|
|
295
314
|
page: number;
|
|
296
315
|
itemsPerPage: number;
|
|
@@ -336,9 +355,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
336
355
|
|
|
337
356
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
338
357
|
|
|
339
|
-
declare const _default$1:
|
|
358
|
+
declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
340
359
|
|
|
341
|
-
declare const _default:
|
|
360
|
+
declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
342
361
|
|
|
343
362
|
declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
|
|
344
363
|
|
|
@@ -358,4 +377,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
|
|
|
358
377
|
declare function cn(...inputs: ClassValue[]): string;
|
|
359
378
|
declare function getInitials(name: string): string;
|
|
360
379
|
|
|
361
|
-
export { Accordion, AccordionGroup, _default$1 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, _default 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, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
380
|
+
export { Accordion, AccordionGroup, _default$1 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, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default 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, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
import { ToasterProps } from 'sonner';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
6
|
|
|
@@ -7,11 +8,11 @@ interface ModalProps {
|
|
|
7
8
|
isOpen: boolean | string;
|
|
8
9
|
onModalClose?: () => void;
|
|
9
10
|
title: string;
|
|
10
|
-
children:
|
|
11
|
+
children: React__default.ReactNode;
|
|
11
12
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
12
13
|
showCloseButton?: boolean;
|
|
13
14
|
className?: string;
|
|
14
|
-
style?:
|
|
15
|
+
style?: React__default.CSSProperties;
|
|
15
16
|
}
|
|
16
17
|
declare function Modal({ isOpen, onModalClose, title, children, size, showCloseButton, className, style }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
17
18
|
|
|
@@ -244,8 +245,8 @@ declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, alt
|
|
|
244
245
|
|
|
245
246
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
246
247
|
|
|
247
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) =>
|
|
248
|
-
style:
|
|
248
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
249
|
+
style: React__default.CSSProperties | undefined;
|
|
249
250
|
className: string;
|
|
250
251
|
}, HTMLElement>;
|
|
251
252
|
|
|
@@ -291,6 +292,24 @@ declare const DateRange: ({ className, style, ...props }: DateRangeInputProps) =
|
|
|
291
292
|
|
|
292
293
|
declare const TextInputGroup: ({ className, style, prepend, append, ...props }: TextInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
293
294
|
|
|
295
|
+
interface Option {
|
|
296
|
+
label: string;
|
|
297
|
+
value: string;
|
|
298
|
+
}
|
|
299
|
+
interface MultiSelectProps {
|
|
300
|
+
value: string[];
|
|
301
|
+
onChange: (value: string[]) => void;
|
|
302
|
+
data: Option[];
|
|
303
|
+
placeholder?: string;
|
|
304
|
+
disabled?: boolean;
|
|
305
|
+
searchable?: boolean;
|
|
306
|
+
className?: string;
|
|
307
|
+
errorMessage?: string;
|
|
308
|
+
dataKey?: string;
|
|
309
|
+
dataLabel?: string;
|
|
310
|
+
}
|
|
311
|
+
declare const MultiSelect: React$1.FC<MultiSelectProps>;
|
|
312
|
+
|
|
294
313
|
interface PageChangeProps {
|
|
295
314
|
page: number;
|
|
296
315
|
itemsPerPage: number;
|
|
@@ -336,9 +355,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
336
355
|
|
|
337
356
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
338
357
|
|
|
339
|
-
declare const _default$1:
|
|
358
|
+
declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
340
359
|
|
|
341
|
-
declare const _default:
|
|
360
|
+
declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
342
361
|
|
|
343
362
|
declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
|
|
344
363
|
|
|
@@ -358,4 +377,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
|
|
|
358
377
|
declare function cn(...inputs: ClassValue[]): string;
|
|
359
378
|
declare function getInitials(name: string): string;
|
|
360
379
|
|
|
361
|
-
export { Accordion, AccordionGroup, _default$1 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, _default 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, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
380
|
+
export { Accordion, AccordionGroup, _default$1 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, MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default 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, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|