dga-ui-react 1.5.2 → 1.6.1
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/Metric/cjs/index.js +102 -0
- package/Metric/cjs/index.js.map +1 -0
- package/Metric/esm/index.js +102 -0
- package/Metric/esm/index.js.map +1 -0
- package/Metric/index.d.ts +27 -0
- package/Metric/package.json +10 -0
- package/charts/package.json +2 -2
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/.prettierrc.json +0 -19
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DGA_MetricProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
|
|
4
|
+
style?: "smallChart" | "largeChart";
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
percentage?: React.ReactNode;
|
|
7
|
+
featuredIcon?: React.ReactNode;
|
|
8
|
+
showChart?: boolean;
|
|
9
|
+
chart?: {
|
|
10
|
+
type: "realistic" | "wavy" | "straight" | "layers";
|
|
11
|
+
trend: "negative" | "positive";
|
|
12
|
+
showMarker?: boolean;
|
|
13
|
+
};
|
|
14
|
+
showInfo?: boolean;
|
|
15
|
+
change?: {
|
|
16
|
+
content: React.ReactNode;
|
|
17
|
+
type: "01" | "02";
|
|
18
|
+
trend: "positive" | "negative";
|
|
19
|
+
};
|
|
20
|
+
text?: React.ReactNode;
|
|
21
|
+
showActions?: boolean;
|
|
22
|
+
moreButton?: React.ReactNode;
|
|
23
|
+
actions?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const Metric: React.FC<DGA_MetricProps>;
|
|
26
|
+
|
|
27
|
+
export { Metric as default };
|
package/charts/package.json
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -236,10 +236,13 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
&:hover {
|
|
239
|
-
background-color: ${e=>e.$theme.palette.neutral[
|
|
239
|
+
background-color: ${e=>e.$theme.palette.neutral[100]};
|
|
240
240
|
}
|
|
241
241
|
&:active {
|
|
242
|
-
background-color: ${e=>e.$theme.palette.neutral[
|
|
242
|
+
background-color: ${e=>e.$theme.palette.neutral[200]};
|
|
243
|
+
}
|
|
244
|
+
&:focus {
|
|
245
|
+
border: 2px solid ${e=>e.$theme.textColor};
|
|
243
246
|
}
|
|
244
247
|
|
|
245
248
|
.dgaui_checkbox {
|
|
@@ -623,6 +626,10 @@
|
|
|
623
626
|
margin-inline-start: 4px;
|
|
624
627
|
display: inline-flex;
|
|
625
628
|
}
|
|
629
|
+
|
|
630
|
+
.iconOnly {
|
|
631
|
+
display: inline-flex;
|
|
632
|
+
}
|
|
626
633
|
`,Ur=er.div`
|
|
627
634
|
direction: ${e=>e.$theme.direction};
|
|
628
635
|
/* pointer-events: ${e=>e.$pointerEvents}; */
|