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.
@@ -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
@@ -236,10 +236,13 @@
236
236
  }
237
237
 
238
238
  &:hover {
239
- background-color: ${e=>e.$theme.palette.neutral[25]};
239
+ background-color: ${e=>e.$theme.palette.neutral[100]};
240
240
  }
241
241
  &:active {
242
- background-color: ${e=>e.$theme.palette.neutral[50]};
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}; */