@algorithm-shift/design-system 1.2.73 → 1.2.75
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 +31 -8
- package/dist/index.d.ts +31 -8
- package/dist/index.js +539 -337
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +555 -354
- 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,22 @@ 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
|
+
}
|
|
309
|
+
declare const MultiSelect: React$1.FC<MultiSelectProps>;
|
|
310
|
+
|
|
294
311
|
interface PageChangeProps {
|
|
295
312
|
page: number;
|
|
296
313
|
itemsPerPage: number;
|
|
@@ -306,6 +323,11 @@ interface CustomPaginationProps {
|
|
|
306
323
|
|
|
307
324
|
type PaginationMode = 'client' | 'server';
|
|
308
325
|
|
|
326
|
+
interface CellClickProps {
|
|
327
|
+
id: string;
|
|
328
|
+
column: any;
|
|
329
|
+
}
|
|
330
|
+
|
|
309
331
|
interface ExtendedTableProps extends TableProps {
|
|
310
332
|
paginationMode?: PaginationMode;
|
|
311
333
|
page?: number;
|
|
@@ -314,6 +336,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
314
336
|
onSortChange?: (props: SortChangeProps) => void;
|
|
315
337
|
onFilterChange?: (props: FilterChangeProps) => void;
|
|
316
338
|
onGlobalSearch?: (props: SearchChangeProps) => void;
|
|
339
|
+
onCellClick?: (props: CellClickProps) => void;
|
|
317
340
|
sort_by?: string;
|
|
318
341
|
sort_order?: string;
|
|
319
342
|
}
|
|
@@ -330,9 +353,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
330
353
|
|
|
331
354
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
332
355
|
|
|
333
|
-
declare const _default$1:
|
|
356
|
+
declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
334
357
|
|
|
335
|
-
declare const _default:
|
|
358
|
+
declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
336
359
|
|
|
337
360
|
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;
|
|
338
361
|
|
|
@@ -352,4 +375,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
|
|
|
352
375
|
declare function cn(...inputs: ClassValue[]): string;
|
|
353
376
|
declare function getInitials(name: string): string;
|
|
354
377
|
|
|
355
|
-
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 };
|
|
378
|
+
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,22 @@ 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
|
+
}
|
|
309
|
+
declare const MultiSelect: React$1.FC<MultiSelectProps>;
|
|
310
|
+
|
|
294
311
|
interface PageChangeProps {
|
|
295
312
|
page: number;
|
|
296
313
|
itemsPerPage: number;
|
|
@@ -306,6 +323,11 @@ interface CustomPaginationProps {
|
|
|
306
323
|
|
|
307
324
|
type PaginationMode = 'client' | 'server';
|
|
308
325
|
|
|
326
|
+
interface CellClickProps {
|
|
327
|
+
id: string;
|
|
328
|
+
column: any;
|
|
329
|
+
}
|
|
330
|
+
|
|
309
331
|
interface ExtendedTableProps extends TableProps {
|
|
310
332
|
paginationMode?: PaginationMode;
|
|
311
333
|
page?: number;
|
|
@@ -314,6 +336,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
314
336
|
onSortChange?: (props: SortChangeProps) => void;
|
|
315
337
|
onFilterChange?: (props: FilterChangeProps) => void;
|
|
316
338
|
onGlobalSearch?: (props: SearchChangeProps) => void;
|
|
339
|
+
onCellClick?: (props: CellClickProps) => void;
|
|
317
340
|
sort_by?: string;
|
|
318
341
|
sort_order?: string;
|
|
319
342
|
}
|
|
@@ -330,9 +353,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
330
353
|
|
|
331
354
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
332
355
|
|
|
333
|
-
declare const _default$1:
|
|
356
|
+
declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
334
357
|
|
|
335
|
-
declare const _default:
|
|
358
|
+
declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
336
359
|
|
|
337
360
|
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;
|
|
338
361
|
|
|
@@ -352,4 +375,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
|
|
|
352
375
|
declare function cn(...inputs: ClassValue[]): string;
|
|
353
376
|
declare function getInitials(name: string): string;
|
|
354
377
|
|
|
355
|
-
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 };
|
|
378
|
+
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 };
|