@algorithm-shift/design-system 1.2.954 → 1.2.956

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
@@ -1,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
- import React__default from 'react';
2
+ import React$1 from 'react';
4
3
  import axios from 'axios';
5
4
  import { ToasterProps } from 'sonner';
6
5
  import { ClassValue } from 'clsx';
@@ -9,11 +8,11 @@ interface ModalProps {
9
8
  isOpen: boolean | string;
10
9
  onModalClose?: () => void;
11
10
  title: string;
12
- children: React__default.ReactNode;
11
+ children: React$1.ReactNode;
13
12
  size?: 'sm' | 'md' | 'lg' | 'xl';
14
13
  showCloseButton?: boolean;
15
14
  className?: string;
16
- style?: React__default.CSSProperties;
15
+ style?: React$1.CSSProperties;
17
16
  }
18
17
  declare function Modal({ isOpen, onModalClose, title, children, size, showCloseButton, className, style }: ModalProps): react_jsx_runtime.JSX.Element | null;
19
18
 
@@ -258,9 +257,9 @@ declare function TabGroupComponent({ children, style, className, list, activeTab
258
257
  interface RepeaterProps<T> {
259
258
  data: T[];
260
259
  count?: number;
261
- render: (item: T, index: number, array: T[]) => React__default.ReactNode;
262
- emptyFallback?: React__default.ReactNode;
263
- wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
260
+ render: (item: T, index: number, array: T[]) => React$1.ReactNode;
261
+ emptyFallback?: React$1.ReactNode;
262
+ wrapper?: (children: React$1.ReactNode) => React$1.ReactNode;
264
263
  className?: string;
265
264
  loading?: boolean;
266
265
  loadingText?: string;
@@ -274,8 +273,8 @@ declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, alt
274
273
 
275
274
  declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
276
275
 
277
- declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
278
- style: React__default.CSSProperties | undefined;
276
+ declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
277
+ style: React$1.CSSProperties | undefined;
279
278
  className: string;
280
279
  }, HTMLElement>;
281
280
 
@@ -322,23 +321,26 @@ declare const DateRange: ({ className, style, ...props }: DateRangeInputProps) =
322
321
  declare const TextInputGroup: ({ className, style, prepend, append, ...props }: TextInputGroupProps) => react_jsx_runtime.JSX.Element;
323
322
 
324
323
  interface Option {
325
- label: string;
326
- value: string;
324
+ id: string;
325
+ name: string;
327
326
  }
328
- interface MultiSelectProps {
329
- value: string[] | undefined;
330
- onChange: (value: string[], name: string) => void;
331
- data: Option[];
332
- placeholder?: string;
327
+ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
328
+ options?: Option[];
333
329
  disabled?: boolean;
334
- searchable?: boolean;
335
- className?: string;
336
- errorMessage?: string;
330
+ readOnly?: boolean;
331
+ id?: string;
332
+ source?: string;
333
+ apiUrl?: string;
334
+ pageSize?: number;
337
335
  dataKey?: string;
338
336
  dataLabel?: string;
339
- name: string;
337
+ value: string[] | string;
338
+ onChange: (val: string[] | string, id?: string) => void;
339
+ errorMessage?: string;
340
+ axiosInstance?: any;
341
+ outputFormat?: 'array' | 'comma' | 'semicolon';
340
342
  }
341
- declare const MultiSelect: React$1.FC<MultiSelectProps>;
343
+ declare function LazyMultiSelectDropdown({ options, value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
342
344
 
343
345
  interface PageChangeProps {
344
346
  page: number;
@@ -388,9 +390,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
388
390
 
389
391
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
390
392
 
391
- declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
393
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
392
394
 
393
- declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
395
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
394
396
 
395
397
  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;
396
398
 
@@ -410,4 +412,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
410
412
  declare function cn(...inputs: ClassValue[]): string;
411
413
  declare function getInitials(name: string): string;
412
414
 
413
- 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, _default$2 as Repeater, 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 };
415
+ 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, LazyMultiSelectDropdown as MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, _default$2 as Repeater, 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,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
- import React__default from 'react';
2
+ import React$1 from 'react';
4
3
  import axios from 'axios';
5
4
  import { ToasterProps } from 'sonner';
6
5
  import { ClassValue } from 'clsx';
@@ -9,11 +8,11 @@ interface ModalProps {
9
8
  isOpen: boolean | string;
10
9
  onModalClose?: () => void;
11
10
  title: string;
12
- children: React__default.ReactNode;
11
+ children: React$1.ReactNode;
13
12
  size?: 'sm' | 'md' | 'lg' | 'xl';
14
13
  showCloseButton?: boolean;
15
14
  className?: string;
16
- style?: React__default.CSSProperties;
15
+ style?: React$1.CSSProperties;
17
16
  }
18
17
  declare function Modal({ isOpen, onModalClose, title, children, size, showCloseButton, className, style }: ModalProps): react_jsx_runtime.JSX.Element | null;
19
18
 
@@ -258,9 +257,9 @@ declare function TabGroupComponent({ children, style, className, list, activeTab
258
257
  interface RepeaterProps<T> {
259
258
  data: T[];
260
259
  count?: number;
261
- render: (item: T, index: number, array: T[]) => React__default.ReactNode;
262
- emptyFallback?: React__default.ReactNode;
263
- wrapper?: (children: React__default.ReactNode) => React__default.ReactNode;
260
+ render: (item: T, index: number, array: T[]) => React$1.ReactNode;
261
+ emptyFallback?: React$1.ReactNode;
262
+ wrapper?: (children: React$1.ReactNode) => React$1.ReactNode;
264
263
  className?: string;
265
264
  loading?: boolean;
266
265
  loadingText?: string;
@@ -274,8 +273,8 @@ declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, alt
274
273
 
275
274
  declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
276
275
 
277
- declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
278
- style: React__default.CSSProperties | undefined;
276
+ declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
277
+ style: React$1.CSSProperties | undefined;
279
278
  className: string;
280
279
  }, HTMLElement>;
281
280
 
@@ -322,23 +321,26 @@ declare const DateRange: ({ className, style, ...props }: DateRangeInputProps) =
322
321
  declare const TextInputGroup: ({ className, style, prepend, append, ...props }: TextInputGroupProps) => react_jsx_runtime.JSX.Element;
323
322
 
324
323
  interface Option {
325
- label: string;
326
- value: string;
324
+ id: string;
325
+ name: string;
327
326
  }
328
- interface MultiSelectProps {
329
- value: string[] | undefined;
330
- onChange: (value: string[], name: string) => void;
331
- data: Option[];
332
- placeholder?: string;
327
+ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
328
+ options?: Option[];
333
329
  disabled?: boolean;
334
- searchable?: boolean;
335
- className?: string;
336
- errorMessage?: string;
330
+ readOnly?: boolean;
331
+ id?: string;
332
+ source?: string;
333
+ apiUrl?: string;
334
+ pageSize?: number;
337
335
  dataKey?: string;
338
336
  dataLabel?: string;
339
- name: string;
337
+ value: string[] | string;
338
+ onChange: (val: string[] | string, id?: string) => void;
339
+ errorMessage?: string;
340
+ axiosInstance?: any;
341
+ outputFormat?: 'array' | 'comma' | 'semicolon';
340
342
  }
341
- declare const MultiSelect: React$1.FC<MultiSelectProps>;
343
+ declare function LazyMultiSelectDropdown({ options, value, onChange, placeholder, className, id, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
342
344
 
343
345
  interface PageChangeProps {
344
346
  page: number;
@@ -388,9 +390,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
388
390
 
389
391
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
390
392
 
391
- declare const _default$1: React__default.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
393
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
392
394
 
393
- declare const _default: React__default.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
395
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
394
396
 
395
397
  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;
396
398
 
@@ -410,4 +412,4 @@ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Ele
410
412
  declare function cn(...inputs: ClassValue[]): string;
411
413
  declare function getInitials(name: string): string;
412
414
 
413
- 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, _default$2 as Repeater, 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 };
415
+ 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, LazyMultiSelectDropdown as MultiSelect, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, _default as PieChart, RadioInput as RadioGroup, _default$2 as Repeater, 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 };