@algorithm-shift/design-system 1.2.976 → 1.2.977

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
@@ -47,6 +47,7 @@ type InputProperties = {
47
47
  hasFormContainer?: boolean;
48
48
  defaultValue?: string | boolean;
49
49
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>, name: string) => void;
50
+ inputType?: HTMLInputElement['type'];
50
51
  };
51
52
 
52
53
  type InputSourceProperties = {
@@ -159,6 +160,7 @@ interface StagesProps extends ElementProps {
159
160
  loading?: boolean;
160
161
  triggerOnClick?: boolean;
161
162
  saving?: boolean;
163
+ canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
162
164
  }
163
165
 
164
166
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -175,6 +177,9 @@ interface PieChartProps extends ElementProps {
175
177
  labelType?: string;
176
178
  canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
177
179
  loading?: boolean;
180
+ dataKey?: string;
181
+ dataLabel?: string;
182
+ apiUrl?: string;
178
183
  }
179
184
 
180
185
  interface BarChartProps extends ElementProps {
@@ -183,6 +188,11 @@ interface BarChartProps extends ElementProps {
183
188
  legendsPosition?: string;
184
189
  canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
185
190
  loading?: boolean;
191
+ dataKey?: string;
192
+ dataLabel?: string;
193
+ isPaginationEnabled?: boolean;
194
+ limit?: number;
195
+ apiUrl?: string;
186
196
  }
187
197
 
188
198
  interface EmailComposerProps extends ElementProps {
@@ -397,15 +407,15 @@ declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVis
397
407
 
398
408
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }: TabsProps) => react_jsx_runtime.JSX.Element;
399
409
 
400
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage, dataKey, dataLabel, loading, saving, triggerOnClick }: StagesProps) => react_jsx_runtime.JSX.Element;
410
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage, dataKey, dataLabel, loading, saving, triggerOnClick, canvasMode }: StagesProps) => react_jsx_runtime.JSX.Element;
401
411
 
402
412
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
403
413
 
404
414
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
405
415
 
406
- declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
416
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, isPaginationEnabled, limit, canvasMode, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
407
417
 
408
- declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
418
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
409
419
 
410
420
  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;
411
421
 
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ type InputProperties = {
47
47
  hasFormContainer?: boolean;
48
48
  defaultValue?: string | boolean;
49
49
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>, name: string) => void;
50
+ inputType?: HTMLInputElement['type'];
50
51
  };
51
52
 
52
53
  type InputSourceProperties = {
@@ -159,6 +160,7 @@ interface StagesProps extends ElementProps {
159
160
  loading?: boolean;
160
161
  triggerOnClick?: boolean;
161
162
  saving?: boolean;
163
+ canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
162
164
  }
163
165
 
164
166
  type ButtonProps = ElementProps & React.ComponentProps<"button"> & {
@@ -175,6 +177,9 @@ interface PieChartProps extends ElementProps {
175
177
  labelType?: string;
176
178
  canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
177
179
  loading?: boolean;
180
+ dataKey?: string;
181
+ dataLabel?: string;
182
+ apiUrl?: string;
178
183
  }
179
184
 
180
185
  interface BarChartProps extends ElementProps {
@@ -183,6 +188,11 @@ interface BarChartProps extends ElementProps {
183
188
  legendsPosition?: string;
184
189
  canvasMode?: 'desktop' | 'tablet' | 'mobile' | 'app';
185
190
  loading?: boolean;
191
+ dataKey?: string;
192
+ dataLabel?: string;
193
+ isPaginationEnabled?: boolean;
194
+ limit?: number;
195
+ apiUrl?: string;
186
196
  }
187
197
 
188
198
  interface EmailComposerProps extends ElementProps {
@@ -397,15 +407,15 @@ declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVis
397
407
 
398
408
  declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }: TabsProps) => react_jsx_runtime.JSX.Element;
399
409
 
400
- declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage, dataKey, dataLabel, loading, saving, triggerOnClick }: StagesProps) => react_jsx_runtime.JSX.Element;
410
+ declare const StagesComponent: ({ stages, isShowBtn, buttonText, className, style, onStageChange, currentStage, dataKey, dataLabel, loading, saving, triggerOnClick, canvasMode }: StagesProps) => react_jsx_runtime.JSX.Element;
401
411
 
402
412
  declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
403
413
 
404
414
  declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, list, profileMenu, userName, isBuilder, source, navList }: NavbarProps): react_jsx_runtime.JSX.Element;
405
415
 
406
- declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
416
+ declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, isPaginationEnabled, limit, canvasMode, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
407
417
 
408
- declare const _default: React$1.MemoExoticComponent<({ className, style, loading, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
418
+ declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
409
419
 
410
420
  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;
411
421