dga-ui-react 1.5.2 → 1.6.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.
@@ -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 };
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "dga-ui-react",
3
+ "version": "1.0.0",
4
+ "description": "Metric component",
5
+ "author": "Ashraf Ainia",
6
+ "license": "MIT",
7
+ "main": "cjs/index.js",
8
+ "module": "esm/index.js",
9
+ "types": "index.d.ts"
10
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dga-ui-react",
3
- "version": "1.1.1",
4
- "description": "DGA ui library",
3
+ "version": "1.0.0",
4
+ "description": "DGA UI Charts",
5
5
  "author": "Ashraf Ainia",
6
6
  "license": "MIT",
7
7
  "main": "cjs/index.js",
package/dist/cjs/index.js CHANGED
@@ -623,6 +623,10 @@
623
623
  margin-inline-start: 4px;
624
624
  display: inline-flex;
625
625
  }
626
+
627
+ .iconOnly {
628
+ display: inline-flex;
629
+ }
626
630
  `,Ur=er.div`
627
631
  direction: ${e=>e.$theme.direction};
628
632
  /* pointer-events: ${e=>e.$pointerEvents}; */