@instructure/platform-widget-dashboard 4.0.1 → 4.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AccountStatistics.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AccountStatistics.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmE9D,CAAA"}
1
+ {"version":3,"file":"AccountStatistics.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AccountStatistics.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoE9D,CAAA"}
@@ -3,6 +3,7 @@ interface StatisticsCardProps {
3
3
  count: number;
4
4
  label: string;
5
5
  backgroundColor: string;
6
+ borderRadius?: string;
6
7
  }
7
8
  declare const StatisticsCard: React.FC<StatisticsCardProps>;
8
9
  export default StatisticsCard;
@@ -1 +1 @@
1
- {"version":3,"file":"StatisticsCard.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StatisticsCard.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4BjD,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"StatisticsCard.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StatisticsCard.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiCjD,CAAA;AAED,eAAe,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -6463,22 +6463,27 @@ function nc(e) {
6463
6463
  enabled: !!M
6464
6464
  });
6465
6465
  }
6466
- const Oc = ({ count: e, label: b, backgroundColor: M }) => {
6467
- const z = (o) => o >= 1e3 ? `${(o / 1e3).toFixed(1).replace(/\.0$/, "")}k` : o.toLocaleString();
6466
+ const Oc = ({
6467
+ count: e,
6468
+ label: b,
6469
+ backgroundColor: M,
6470
+ borderRadius: z
6471
+ }) => {
6472
+ const o = (p) => p >= 1e3 ? `${(p / 1e3).toFixed(1).replace(/\.0$/, "")}k` : p.toLocaleString();
6468
6473
  return /* @__PURE__ */ E(
6469
6474
  k,
6470
6475
  {
6471
6476
  as: "div",
6472
6477
  padding: "small",
6473
- borderRadius: "medium",
6474
6478
  background: "primary",
6475
6479
  textAlign: "center",
6480
+ borderRadius: z ?? "medium",
6476
6481
  themeOverride: {
6477
6482
  backgroundPrimary: M
6478
6483
  },
6479
6484
  "data-testid": `statistics-card-${b}`,
6480
6485
  children: [
6481
- /* @__PURE__ */ O(j, { size: "x-large", weight: "bold", children: z(e) }),
6486
+ /* @__PURE__ */ O(j, { size: "x-large", weight: "bold", children: o(e) }),
6482
6487
  /* @__PURE__ */ O(k, { as: "div", margin: "x-small 0 0", children: /* @__PURE__ */ O(j, { size: "small", children: b }) })
6483
6488
  ]
6484
6489
  }
@@ -6521,7 +6526,8 @@ const Oc = ({ count: e, label: b, backgroundColor: M }) => {
6521
6526
  {
6522
6527
  count: t.count,
6523
6528
  label: t.label,
6524
- backgroundColor: t.backgroundColor
6529
+ backgroundColor: t.backgroundColor,
6530
+ borderRadius: "0.75rem"
6525
6531
  }
6526
6532
  ) }, t.key)) });
6527
6533
  }, be = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-widget-dashboard",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",