@ammarkhalidfarooq/dashboard-package 0.6.37 → 0.6.39
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.cjs.js +23 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +23 -15
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1568,8 +1568,10 @@ var THEME = {
|
|
|
1568
1568
|
pageBg: "#F8FAFC",
|
|
1569
1569
|
panelBg: "#FFFFFF",
|
|
1570
1570
|
panelBorder: "#DDE3EA",
|
|
1571
|
-
|
|
1572
|
-
|
|
1571
|
+
kpiBgPrimary: "#EEF2FF",
|
|
1572
|
+
kpiBorderPrimary: "#C7D2FE",
|
|
1573
|
+
kpiBgSecondary: "#F8FAFF",
|
|
1574
|
+
kpiBorderSecondary: "#DDE3EA",
|
|
1573
1575
|
tableHeadBg: "#EEF2FF",
|
|
1574
1576
|
tableAltBg: "#F8FAFF",
|
|
1575
1577
|
muted: "#94A3B8",
|
|
@@ -1954,14 +1956,17 @@ var KpiCard = function KpiCard(_ref7) {
|
|
|
1954
1956
|
var title = _ref7.title,
|
|
1955
1957
|
value = _ref7.value,
|
|
1956
1958
|
trend = _ref7.trend,
|
|
1957
|
-
detail = _ref7.detail
|
|
1959
|
+
detail = _ref7.detail,
|
|
1960
|
+
_ref7$variant = _ref7.variant,
|
|
1961
|
+
variant = _ref7$variant === void 0 ? "secondary" : _ref7$variant;
|
|
1958
1962
|
var neg = "".concat(trend).trim().startsWith("-");
|
|
1963
|
+
var isPrimary = variant === "primary";
|
|
1959
1964
|
return /*#__PURE__*/jsxs("div", {
|
|
1960
1965
|
style: {
|
|
1961
|
-
border: "1px solid ".concat(THEME.
|
|
1966
|
+
border: "1px solid ".concat(isPrimary ? THEME.kpiBorderPrimary : THEME.kpiBorderSecondary),
|
|
1962
1967
|
borderRadius: 8,
|
|
1963
1968
|
padding: "10px 12px 9px",
|
|
1964
|
-
background: THEME.
|
|
1969
|
+
background: isPrimary ? THEME.kpiBgPrimary : THEME.kpiBgSecondary,
|
|
1965
1970
|
width: "100%",
|
|
1966
1971
|
minWidth: 0,
|
|
1967
1972
|
boxSizing: "border-box",
|
|
@@ -2129,24 +2134,26 @@ var PageHeader = function PageHeader(_ref9) {
|
|
|
2129
2134
|
}), !!"".concat(activeFilters || "").trim() && /*#__PURE__*/jsxs("div", {
|
|
2130
2135
|
style: {
|
|
2131
2136
|
marginTop: 7,
|
|
2132
|
-
display: "inline-
|
|
2133
|
-
gap: 5,
|
|
2137
|
+
display: "inline-block",
|
|
2134
2138
|
background: "#EEF2FF",
|
|
2135
2139
|
border: "1px solid #D7DEFF",
|
|
2136
2140
|
borderRadius: 4,
|
|
2137
|
-
padding: "
|
|
2138
|
-
fontSize:
|
|
2141
|
+
padding: "4px 9px",
|
|
2142
|
+
fontSize: 9,
|
|
2143
|
+
lineHeight: 1.35,
|
|
2144
|
+
color: "#374151",
|
|
2145
|
+
maxWidth: "100%"
|
|
2139
2146
|
},
|
|
2140
2147
|
children: [/*#__PURE__*/jsx("span", {
|
|
2141
2148
|
style: {
|
|
2142
2149
|
fontWeight: 700,
|
|
2143
|
-
|
|
2144
|
-
letterSpacing: "0.4px"
|
|
2150
|
+
letterSpacing: "0.3px"
|
|
2145
2151
|
},
|
|
2146
|
-
children: "ACTIVE FILTERS"
|
|
2147
|
-
}), /*#__PURE__*/jsx("span", {
|
|
2152
|
+
children: "ACTIVE FILTERS:"
|
|
2153
|
+
}), " ", /*#__PURE__*/jsx("span", {
|
|
2148
2154
|
style: {
|
|
2149
|
-
|
|
2155
|
+
fontWeight: 500,
|
|
2156
|
+
color: "#334155"
|
|
2150
2157
|
},
|
|
2151
2158
|
children: activeFilters
|
|
2152
2159
|
})]
|
|
@@ -2426,7 +2433,8 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2426
2433
|
title: "Total Raised",
|
|
2427
2434
|
value: hero.value,
|
|
2428
2435
|
trend: hero.trend,
|
|
2429
|
-
detail: hero.detail
|
|
2436
|
+
detail: hero.detail,
|
|
2437
|
+
variant: "primary"
|
|
2430
2438
|
}), /*#__PURE__*/jsxs("div", {
|
|
2431
2439
|
style: {
|
|
2432
2440
|
display: "grid",
|