@instructure/platform-widget-dashboard 4.0.1 → 4.0.3
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/components/WidgetGrid.d.ts +1 -2
- package/dist/components/WidgetGrid.d.ts.map +1 -1
- package/dist/components/shared/AccountStatistics.d.ts.map +1 -1
- package/dist/components/shared/StatisticsCard.d.ts +1 -0
- package/dist/components/shared/StatisticsCard.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { WidgetConfig } from '../types';
|
|
3
|
-
interface WidgetGridProps {
|
|
3
|
+
export interface WidgetGridProps {
|
|
4
4
|
config?: WidgetConfig;
|
|
5
5
|
isEditMode?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const WidgetGrid: React.FC<WidgetGridProps>;
|
|
8
|
-
export {};
|
|
9
8
|
//# sourceMappingURL=WidgetGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetGrid.d.ts","sourceRoot":"","sources":["../../src/components/WidgetGrid.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,UAAU,CAAA;AAGpD,
|
|
1
|
+
{"version":3,"file":"WidgetGrid.d.ts","sourceRoot":"","sources":["../../src/components/WidgetGrid.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,UAAU,CAAA;AAGpD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwChD,CAAA"}
|
|
@@ -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,
|
|
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"}
|
|
@@ -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;
|
|
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.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as WidgetDashboard, default as WidgetDashboardContainer, } from './components/WidgetDashboardContainer';
|
|
2
|
+
export type { WidgetGridProps } from './components/WidgetGrid';
|
|
3
|
+
export { WidgetGrid } from './components/WidgetGrid';
|
|
2
4
|
export { AccountRollupWidget } from './components/widgets/AccountRollupWidget';
|
|
3
5
|
export type { AccountRollupViewOption } from './components/widgets/AccountRollupWidget/AccountRollupWidget';
|
|
4
6
|
export { DirectoryWidget } from './components/widgets/DirectoryWidget/DirectoryWidget';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,OAAO,IAAI,wBAAwB,GACpC,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,OAAO,IAAI,wBAAwB,GACpC,MAAM,uCAAuC,CAAA;AAC9C,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAA;AAC9E,YAAY,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAA;AAC3G,OAAO,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAA;AACtF,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,OAAO,EACL,kCAAkC,EAClC,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAA;AACpF,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,mBAAmB,GACpB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,cAAc,GACf,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEvF,YAAY,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEzE,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,gCAAgC,CAAA;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,oBAAoB,GACrB,MAAM,yBAAyB,CAAA;AAChC,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,GACb,MAAM,aAAa,CAAA;AACpB,YAAY,EACV,eAAe,EACf,MAAM,EACN,YAAY,EACZ,cAAc,EACd,UAAU,GACX,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6463,22 +6463,27 @@ function nc(e) {
|
|
|
6463
6463
|
enabled: !!M
|
|
6464
6464
|
});
|
|
6465
6465
|
}
|
|
6466
|
-
const Oc = ({
|
|
6467
|
-
|
|
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:
|
|
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 = {
|
|
@@ -16692,7 +16698,7 @@ function Ed({
|
|
|
16692
16698
|
const { translations: p } = e0(), { accounts: c } = T0(), t = c.length > 1, [a, i] = B1(
|
|
16693
16699
|
e.id,
|
|
16694
16700
|
"selectedTimeFilter",
|
|
16695
|
-
"
|
|
16701
|
+
"24h",
|
|
16696
16702
|
Xd
|
|
16697
16703
|
), [u, s] = B1(
|
|
16698
16704
|
e.id,
|
|
@@ -17035,6 +17041,7 @@ export {
|
|
|
17035
17041
|
P4 as WidgetDashboardContainer,
|
|
17036
17042
|
_4 as WidgetDashboardEditProvider,
|
|
17037
17043
|
E4 as WidgetDashboardProvider,
|
|
17044
|
+
Dd as WidgetGrid,
|
|
17038
17045
|
I4 as WidgetLayoutProvider,
|
|
17039
17046
|
w3 as getMoveActionDescription,
|
|
17040
17047
|
pn as useRenderSlots,
|