@instructure/platform-widget-dashboard 6.0.0 → 6.1.0

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.
@@ -6,7 +6,7 @@ export declare function convertDateFilterToParams(filter: DateFilterOption): {
6
6
  includeNoDueDate: boolean;
7
7
  onlySubmitted: boolean;
8
8
  };
9
- export declare function convertDateFilterToStatisticsRange(filter: DateFilterOption, timezone: string): {
9
+ export declare function convertDateFilterToStatisticsRange(timezone: string): {
10
10
  startDate: Date;
11
11
  endDate: Date;
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../src/utils/dateUtils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAE9E,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG;IACnE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,OAAO,EAAE,SAAS,CAAA;IAClB,cAAc,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,OAAO,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;CACvB,CAqCA;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,gBAAgB,EACxB,QAAQ,EAAE,MAAM,GACf;IACD,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;CACd,CAUA"}
1
+ {"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../src/utils/dateUtils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAE9E,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG;IACnE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,OAAO,EAAE,SAAS,CAAA;IAClB,cAAc,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,OAAO,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;CACvB,CAqCA;AAED,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG;IACpE,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;CACd,CAMA"}
@@ -0,0 +1,13 @@
1
+ export type SubmissionStatusColorName = 'blue' | 'red' | 'orange' | 'green' | 'grey';
2
+ export interface SubmissionStatusColor {
3
+ background: string;
4
+ textColor: string;
5
+ }
6
+ export type SubmissionStatusColors = Record<SubmissionStatusColorName, SubmissionStatusColor>;
7
+ export declare const SUBMISSION_STATUS_COLORS_LIGHT: SubmissionStatusColors;
8
+ export declare const SUBMISSION_STATUS_COLORS_DARK: SubmissionStatusColors;
9
+ export declare function getStatusColors(isDark: boolean): SubmissionStatusColors;
10
+ export declare const STATISTICS_CARD_BACKGROUND_LIGHT = "#F5F5F5";
11
+ export declare const STATISTICS_CARD_BACKGROUND_DARK: string;
12
+ export declare function getStatisticsCardBackground(isDark: boolean): string;
13
+ //# sourceMappingURL=submissionStatusColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submissionStatusColors.d.ts","sourceRoot":"","sources":["../../src/utils/submissionStatusColors.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAEpF,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,yBAAyB,EAAE,qBAAqB,CAAC,CAAA;AAE7F,eAAO,MAAM,8BAA8B,EAAE,sBAM5C,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,sBAM3C,CAAA;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAEvE;AAED,eAAO,MAAM,gCAAgC,YAAY,CAAA;AACzD,eAAO,MAAM,+BAA+B,QAAgD,CAAA;AAE5F,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAEnE"}
package/locales/en.json CHANGED
@@ -68,6 +68,7 @@
68
68
  "notSubmitted": "Not submitted",
69
69
  "submissionStatus": "Submission status:",
70
70
  "late": "Late",
71
+ "excused": "Excused",
71
72
  "pendingReview": "Pending Review",
72
73
  "noDueDate": "No due date",
73
74
  "today": "Today",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-widget-dashboard",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",