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