@algorithm-shift/design-system 1.3.119 → 1.3.121
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.css +21 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +495 -317
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +496 -319
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -128,6 +128,8 @@ interface DatePickerInputProps extends ElementProps, InputProperties {
|
|
|
128
128
|
customMinimumDate?: string;
|
|
129
129
|
maximumDate?: string;
|
|
130
130
|
customMaximumDate?: string;
|
|
131
|
+
defaultDateValue?: string;
|
|
132
|
+
customDefaultDate?: string;
|
|
131
133
|
mode?: string;
|
|
132
134
|
}
|
|
133
135
|
|
|
@@ -190,8 +192,11 @@ interface PieChartProps extends ElementProps {
|
|
|
190
192
|
loading?: boolean;
|
|
191
193
|
dataKey?: string;
|
|
192
194
|
dataLabel?: string;
|
|
195
|
+
source?: 'api' | 'static';
|
|
196
|
+
legendPosition?: 'bottom' | 'right';
|
|
193
197
|
apiUrl?: string;
|
|
194
198
|
axiosInstance?: typeof axios;
|
|
199
|
+
onLegendClick?: (payload: { name: string; value: number; [key: string]: any }) => void;
|
|
195
200
|
}
|
|
196
201
|
|
|
197
202
|
interface BarChartProps extends ElementProps {
|
|
@@ -206,6 +211,10 @@ interface BarChartProps extends ElementProps {
|
|
|
206
211
|
limit?: number;
|
|
207
212
|
apiUrl?: string;
|
|
208
213
|
axiosInstance?: typeof axios;
|
|
214
|
+
source?: 'api' | 'static';
|
|
215
|
+
showLegends?: boolean;
|
|
216
|
+
onLegendClick?: (payload: { name: string; value: number; [key: string]: any }) => void;
|
|
217
|
+
legendPosition?: 'bottom' | 'right';
|
|
209
218
|
}
|
|
210
219
|
|
|
211
220
|
interface EmailComposerProps extends ElementProps {
|
|
@@ -450,7 +459,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
|
|
|
450
459
|
axiosInstance?: any;
|
|
451
460
|
outputFormat?: 'array' | 'comma' | 'semicolon';
|
|
452
461
|
}
|
|
453
|
-
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className,
|
|
462
|
+
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
|
|
454
463
|
|
|
455
464
|
interface PageChangeProps {
|
|
456
465
|
page: number;
|
|
@@ -506,9 +515,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
506
515
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, // desktop | mobile | tablet
|
|
507
516
|
list, profileMenu, userName, isBuilder, source, navList, onSearch, primaryColor }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
508
517
|
|
|
509
|
-
declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, isPaginationEnabled, limit, canvasMode, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
518
|
+
declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, source, isPaginationEnabled, limit, canvasMode, showLegends, legendPosition, onLegendClick, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
510
519
|
|
|
511
|
-
declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
520
|
+
declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, source, legendPosition, onLegendClick, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
512
521
|
|
|
513
522
|
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;
|
|
514
523
|
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,8 @@ interface DatePickerInputProps extends ElementProps, InputProperties {
|
|
|
128
128
|
customMinimumDate?: string;
|
|
129
129
|
maximumDate?: string;
|
|
130
130
|
customMaximumDate?: string;
|
|
131
|
+
defaultDateValue?: string;
|
|
132
|
+
customDefaultDate?: string;
|
|
131
133
|
mode?: string;
|
|
132
134
|
}
|
|
133
135
|
|
|
@@ -190,8 +192,11 @@ interface PieChartProps extends ElementProps {
|
|
|
190
192
|
loading?: boolean;
|
|
191
193
|
dataKey?: string;
|
|
192
194
|
dataLabel?: string;
|
|
195
|
+
source?: 'api' | 'static';
|
|
196
|
+
legendPosition?: 'bottom' | 'right';
|
|
193
197
|
apiUrl?: string;
|
|
194
198
|
axiosInstance?: typeof axios;
|
|
199
|
+
onLegendClick?: (payload: { name: string; value: number; [key: string]: any }) => void;
|
|
195
200
|
}
|
|
196
201
|
|
|
197
202
|
interface BarChartProps extends ElementProps {
|
|
@@ -206,6 +211,10 @@ interface BarChartProps extends ElementProps {
|
|
|
206
211
|
limit?: number;
|
|
207
212
|
apiUrl?: string;
|
|
208
213
|
axiosInstance?: typeof axios;
|
|
214
|
+
source?: 'api' | 'static';
|
|
215
|
+
showLegends?: boolean;
|
|
216
|
+
onLegendClick?: (payload: { name: string; value: number; [key: string]: any }) => void;
|
|
217
|
+
legendPosition?: 'bottom' | 'right';
|
|
209
218
|
}
|
|
210
219
|
|
|
211
220
|
interface EmailComposerProps extends ElementProps {
|
|
@@ -450,7 +459,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
|
|
|
450
459
|
axiosInstance?: any;
|
|
451
460
|
outputFormat?: 'array' | 'comma' | 'semicolon';
|
|
452
461
|
}
|
|
453
|
-
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className,
|
|
462
|
+
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
|
|
454
463
|
|
|
455
464
|
interface PageChangeProps {
|
|
456
465
|
page: number;
|
|
@@ -506,9 +515,9 @@ declare const Spacer: ({ className, style }: ElementProps) => react_jsx_runtime.
|
|
|
506
515
|
declare function Navbar({ style, badgeType, badgeCount, hideBadgeWhenZero, profileType, showName, imageUrl, altText, canvasMode, // desktop | mobile | tablet
|
|
507
516
|
list, profileMenu, userName, isBuilder, source, navList, onSearch, primaryColor }: NavbarProps): react_jsx_runtime.JSX.Element;
|
|
508
517
|
|
|
509
|
-
declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, isPaginationEnabled, limit, canvasMode, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
518
|
+
declare const _default$1: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, source, isPaginationEnabled, limit, canvasMode, showLegends, legendPosition, onLegendClick, ...props }: BarChartProps) => react_jsx_runtime.JSX.Element>;
|
|
510
519
|
|
|
511
|
-
declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
520
|
+
declare const _default: React$1.MemoExoticComponent<({ className, style, loading: externalLoading, dataKey, dataLabel, apiUrl, source, legendPosition, onLegendClick, ...props }: PieChartProps) => react_jsx_runtime.JSX.Element | null>;
|
|
512
521
|
|
|
513
522
|
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;
|
|
514
523
|
|