@digital-ai/dot-components 3.9.0 → 3.10.0
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/index.esm.js
CHANGED
|
@@ -12790,6 +12790,7 @@ const DotPill = ({
|
|
|
12790
12790
|
icon,
|
|
12791
12791
|
label,
|
|
12792
12792
|
labelcolor,
|
|
12793
|
+
onClick,
|
|
12793
12794
|
size = 'medium',
|
|
12794
12795
|
status = 'default',
|
|
12795
12796
|
variant = 'filled'
|
|
@@ -12802,11 +12803,12 @@ const DotPill = ({
|
|
|
12802
12803
|
classes: {
|
|
12803
12804
|
root: rootClasses
|
|
12804
12805
|
},
|
|
12805
|
-
clickable:
|
|
12806
|
+
clickable: !!onClick,
|
|
12806
12807
|
"data-testid": dataTestId,
|
|
12807
12808
|
icon: icon,
|
|
12808
12809
|
label: label,
|
|
12809
12810
|
labelcolor: labelcolor,
|
|
12811
|
+
onClick: onClick,
|
|
12810
12812
|
size: size,
|
|
12811
12813
|
variant: variant
|
|
12812
12814
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonProps } from '../CommonProps';
|
|
2
|
-
export type LinearProgressColor = '
|
|
2
|
+
export type LinearProgressColor = 'error' | 'inherit' | 'primary' | 'purple' | 'secondary' | 'warning';
|
|
3
3
|
export type LinearProgressVariant = 'buffer' | 'determinate' | 'indeterminate' | 'query';
|
|
4
4
|
export interface LinearProgressProps extends CommonProps {
|
|
5
5
|
/** The color of the component. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { ReactElement, MouseEvent } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
export type PillSize = 'small' | 'medium';
|
|
4
4
|
export type PillStatus = 'success' | 'error' | 'warning' | 'in-progress' | 'default';
|
|
@@ -14,6 +14,8 @@ export interface PillProps extends CommonProps {
|
|
|
14
14
|
label: string;
|
|
15
15
|
/** Label color for the pill, ignored if 'status' is not 'default' */
|
|
16
16
|
labelcolor?: string;
|
|
17
|
+
/** Event callback on click */
|
|
18
|
+
onClick?: (event: MouseEvent) => void;
|
|
17
19
|
/** Determines the size of the pill 'medium' or 'small' */
|
|
18
20
|
size?: PillSize;
|
|
19
21
|
/** Determines the status of the pill component */
|
|
@@ -21,4 +23,4 @@ export interface PillProps extends CommonProps {
|
|
|
21
23
|
/** Determines the variant of the pill 'filled' or 'outlined' */
|
|
22
24
|
variant?: PillVariant;
|
|
23
25
|
}
|
|
24
|
-
export declare const DotPill: ({ ariaLabel, backgroundcolor, bordercolor, className, "data-testid": dataTestId, icon, label, labelcolor, size, status, variant, }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const DotPill: ({ ariaLabel, backgroundcolor, bordercolor, className, "data-testid": dataTestId, icon, label, labelcolor, onClick, size, status, variant, }: PillProps) => import("react/jsx-runtime").JSX.Element;
|