@algorithm-shift/design-system 1.2.975 → 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/client.js +9 -6
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +9 -6
- package/dist/client.mjs.map +1 -1
- package/dist/index.css +468 -23
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +655 -180
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +663 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 {
|
|
@@ -387,6 +397,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
387
397
|
onCellClick?: (props: CellClickProps) => void;
|
|
388
398
|
onDeleteRow?: (props: CellClickProps) => void;
|
|
389
399
|
enableDelete?: boolean;
|
|
400
|
+
enableRowSelection?: boolean;
|
|
390
401
|
getRowSelection?: (rowSelection: any) => void;
|
|
391
402
|
}
|
|
392
403
|
|
|
@@ -396,15 +407,15 @@ declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVis
|
|
|
396
407
|
|
|
397
408
|
declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
398
409
|
|
|
399
|
-
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;
|
|
400
411
|
|
|
401
412
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
402
413
|
|
|
403
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;
|
|
404
415
|
|
|
405
|
-
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>;
|
|
406
417
|
|
|
407
|
-
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>;
|
|
408
419
|
|
|
409
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;
|
|
410
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 {
|
|
@@ -387,6 +397,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
387
397
|
onCellClick?: (props: CellClickProps) => void;
|
|
388
398
|
onDeleteRow?: (props: CellClickProps) => void;
|
|
389
399
|
enableDelete?: boolean;
|
|
400
|
+
enableRowSelection?: boolean;
|
|
390
401
|
getRowSelection?: (rowSelection: any) => void;
|
|
391
402
|
}
|
|
392
403
|
|
|
@@ -396,15 +407,15 @@ declare const CustomPagination: ({ totalPages, currentPage, onPageChange, maxVis
|
|
|
396
407
|
|
|
397
408
|
declare const Tabs: ({ className, style, tabs, verticalMenu, pathname, canvasMode, isBuilder, source, parentKey, menuNameKey, menuUrlKey, loading, bgActiveColor, textActiveColor }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
398
409
|
|
|
399
|
-
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;
|
|
400
411
|
|
|
401
412
|
declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
402
413
|
|
|
403
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;
|
|
404
415
|
|
|
405
|
-
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>;
|
|
406
417
|
|
|
407
|
-
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>;
|
|
408
419
|
|
|
409
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;
|
|
410
421
|
|