@algorithm-shift/design-system 1.2.59 → 1.2.61

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
@@ -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;
@@ -119,6 +120,8 @@ interface StagesProps extends ElementProps {
119
120
 
120
121
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
121
122
  textContent?: string;
123
+ loading?: boolean;
124
+ loadingText?: string;
122
125
  type?: 'button' | 'submit' | 'reset';
123
126
  }
124
127
 
@@ -139,7 +142,8 @@ interface BarChartProps extends ElementProps {
139
142
 
140
143
  interface ModalProps extends ElementProps {
141
144
  label?: string;
142
- onClose?: () => void;
145
+ showModal: boolean;
146
+ onModalClose?: (show: boolean) => void;
143
147
  }
144
148
 
145
149
  interface EmailComposerProps extends ElementProps {
@@ -170,6 +174,7 @@ interface NavbarProps extends ElementProps {
170
174
  altText?: string;
171
175
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
172
176
  list?: Record<string, any>;
177
+ profileMenu?: Record<string, any>;
173
178
  userName?: string;
174
179
  }
175
180
 
@@ -189,9 +194,20 @@ interface IconProps extends ElementProps {
189
194
  }
190
195
  interface AccordionProps extends ElementProps {
191
196
  name?: string;
197
+ }
198
+
199
+ interface TabListProps extends ElementProps {
200
+ activeTab?: string;
201
+ tabId?: string;
202
+ }
203
+
204
+ interface TabGroupProps extends ElementProps {
205
+ list?: Record<string, any>;
206
+ activeTab?: string;
207
+ onTabChange?: (tabId: string) => void;
192
208
  }
193
209
 
194
- declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
210
+ declare const Modal: ({ children, className, style, showModal, onModalClose, label }: ModalProps) => react_jsx_runtime.JSX.Element | null;
195
211
 
196
212
  declare const Flex: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
197
213
 
@@ -205,7 +221,11 @@ declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Elemen
205
221
 
206
222
  declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
207
223
 
208
- declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
224
+ declare function TabList({ children, style, className, activeTab, tabId }: TabListProps): react_jsx_runtime.JSX.Element;
225
+
226
+ declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
227
+
228
+ declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
209
229
 
210
230
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
211
231
 
@@ -290,7 +310,7 @@ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, styl
290
310
 
291
311
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
292
312
 
293
- declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
313
+ declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
294
314
 
295
315
  declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
296
316
 
@@ -312,4 +332,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
312
332
  declare function cn(...inputs: ClassValue[]): string;
313
333
  declare function getInitials(name: string): string;
314
334
 
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 };
335
+ 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;
@@ -119,6 +120,8 @@ interface StagesProps extends ElementProps {
119
120
 
120
121
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
121
122
  textContent?: string;
123
+ loading?: boolean;
124
+ loadingText?: string;
122
125
  type?: 'button' | 'submit' | 'reset';
123
126
  }
124
127
 
@@ -139,7 +142,8 @@ interface BarChartProps extends ElementProps {
139
142
 
140
143
  interface ModalProps extends ElementProps {
141
144
  label?: string;
142
- onClose?: () => void;
145
+ showModal: boolean;
146
+ onModalClose?: (show: boolean) => void;
143
147
  }
144
148
 
145
149
  interface EmailComposerProps extends ElementProps {
@@ -170,6 +174,7 @@ interface NavbarProps extends ElementProps {
170
174
  altText?: string;
171
175
  canvasMode?: 'desktop' | 'tablet' | 'mobile';
172
176
  list?: Record<string, any>;
177
+ profileMenu?: Record<string, any>;
173
178
  userName?: string;
174
179
  }
175
180
 
@@ -189,9 +194,20 @@ interface IconProps extends ElementProps {
189
194
  }
190
195
  interface AccordionProps extends ElementProps {
191
196
  name?: string;
197
+ }
198
+
199
+ interface TabListProps extends ElementProps {
200
+ activeTab?: string;
201
+ tabId?: string;
202
+ }
203
+
204
+ interface TabGroupProps extends ElementProps {
205
+ list?: Record<string, any>;
206
+ activeTab?: string;
207
+ onTabChange?: (tabId: string) => void;
192
208
  }
193
209
 
194
- declare const Modal: ({ children, onClose, label, className, style }: ModalProps) => react_jsx_runtime.JSX.Element;
210
+ declare const Modal: ({ children, className, style, showModal, onModalClose, label }: ModalProps) => react_jsx_runtime.JSX.Element | null;
195
211
 
196
212
  declare const Flex: ({ children, className, style, ...props }: ElementProps) => react_jsx_runtime.JSX.Element;
197
213
 
@@ -205,7 +221,11 @@ declare const Slot: ({ children }: ElementProps) => react_jsx_runtime.JSX.Elemen
205
221
 
206
222
  declare const AccordionGroup: ({ children, style, className }: ElementProps) => react_jsx_runtime.JSX.Element;
207
223
 
208
- declare const ButtonWrapper: ({ className, style, textContent, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
224
+ declare function TabList({ children, style, className, activeTab, tabId }: TabListProps): react_jsx_runtime.JSX.Element;
225
+
226
+ declare function TabGroupComponent({ children, style, className, list, activeTab, onTabChange, }: TabGroupProps): react_jsx_runtime.JSX.Element;
227
+
228
+ declare const ButtonWrapper: ({ className, style, textContent, loadingText, loading, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
209
229
 
210
230
  declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
211
231
 
@@ -290,7 +310,7 @@ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, styl
290
310
 
291
311
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
292
312
 
293
- declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
313
+ declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName }: NavbarProps): react_jsx_runtime.JSX.Element;
294
314
 
295
315
  declare const ChartComponent: ({ className, style, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element;
296
316
 
@@ -312,4 +332,4 @@ declare function showSonnerToast({ title, description, variant, duration, action
312
332
  declare function cn(...inputs: ClassValue[]): string;
313
333
  declare function getInitials(name: string): string;
314
334
 
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 };
335
+ 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 };