catchup-library-web 1.18.3 → 1.18.5
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.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
- package/src/components/labels/ActivityLabel.tsx +1 -1
- package/src/components/labels/ActivityTemplateLabel.tsx +1 -1
- package/src/components/labels/BrandLabel.tsx +1 -1
- package/src/components/labels/CategoryLabel.tsx +1 -1
- package/src/components/labels/CoterieLabel.tsx +1 -1
- package/src/components/labels/GradeLabel.tsx +1 -1
- package/src/components/labels/OutcomeLabel.tsx +1 -1
- package/src/components/labels/PersonalLabel.tsx +1 -1
- package/src/components/labels/PublishingHouseLabel.tsx +1 -1
- package/src/utilization/DateUtilization.ts +13 -5
package/dist/index.js
CHANGED
|
@@ -7662,7 +7662,7 @@ var ActivityTemplateLabel = ({
|
|
|
7662
7662
|
icon,
|
|
7663
7663
|
font
|
|
7664
7664
|
}) => {
|
|
7665
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
7665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7666
7666
|
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7667
7667
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7668
7668
|
] }) });
|
|
@@ -7672,7 +7672,7 @@ var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
|
7672
7672
|
// src/components/labels/BrandLabel.tsx
|
|
7673
7673
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7674
7674
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7675
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7676
7676
|
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7677
7677
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7678
7678
|
] }) });
|
|
@@ -7682,7 +7682,7 @@ var BrandLabel_default = BrandLabel;
|
|
|
7682
7682
|
// src/components/labels/CategoryLabel.tsx
|
|
7683
7683
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7684
7684
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7685
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge
|
|
7685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7686
7686
|
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7687
7687
|
BaseImage_default,
|
|
7688
7688
|
{
|
|
@@ -7699,21 +7699,21 @@ var CategoryLabel_default = CategoryLabel;
|
|
|
7699
7699
|
// src/components/labels/CoterieLabel.tsx
|
|
7700
7700
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7701
7701
|
var CoterieLabel = ({ title, font }) => {
|
|
7702
|
-
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7703
7703
|
};
|
|
7704
7704
|
var CoterieLabel_default = CoterieLabel;
|
|
7705
7705
|
|
|
7706
7706
|
// src/components/labels/GradeLabel.tsx
|
|
7707
7707
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7708
7708
|
var GradeLabel = ({ title, font }) => {
|
|
7709
|
-
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
7709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7710
7710
|
};
|
|
7711
7711
|
var GradeLabel_default = GradeLabel;
|
|
7712
7712
|
|
|
7713
7713
|
// src/components/labels/OutcomeLabel.tsx
|
|
7714
7714
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7715
7715
|
var OutcomeLabel = ({ title, font }) => {
|
|
7716
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7717
7717
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7718
7718
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7719
7719
|
] }) });
|
|
@@ -7723,7 +7723,7 @@ var OutcomeLabel_default = OutcomeLabel;
|
|
|
7723
7723
|
// src/components/labels/PersonalLabel.tsx
|
|
7724
7724
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7725
7725
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7726
|
-
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge
|
|
7726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7727
7727
|
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7728
7728
|
BaseImage_default,
|
|
7729
7729
|
{
|
|
@@ -7740,7 +7740,7 @@ var PersonalLabel_default = PersonalLabel;
|
|
|
7740
7740
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7741
7741
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7742
7742
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7743
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
7743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7744
7744
|
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7745
7745
|
BaseImage_default,
|
|
7746
7746
|
{
|
|
@@ -7757,7 +7757,7 @@ var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
|
7757
7757
|
// src/components/labels/ActivityLabel.tsx
|
|
7758
7758
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7759
7759
|
var ActivityLabel = ({ title, font }) => {
|
|
7760
|
-
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
7760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7761
7761
|
};
|
|
7762
7762
|
var ActivityLabel_default = ActivityLabel;
|
|
7763
7763
|
|
package/dist/index.mjs
CHANGED
|
@@ -7446,7 +7446,7 @@ var ActivityTemplateLabel = ({
|
|
|
7446
7446
|
icon,
|
|
7447
7447
|
font
|
|
7448
7448
|
}) => {
|
|
7449
|
-
return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
7449
|
+
return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7450
7450
|
icon ? icon : /* @__PURE__ */ jsx58(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7451
7451
|
/* @__PURE__ */ jsx58("p", { className: font ? font : "text-sm", children: title })
|
|
7452
7452
|
] }) });
|
|
@@ -7456,7 +7456,7 @@ var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
|
7456
7456
|
// src/components/labels/BrandLabel.tsx
|
|
7457
7457
|
import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7458
7458
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7459
|
-
return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7459
|
+
return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7460
7460
|
icon ? icon : /* @__PURE__ */ jsx59(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7461
7461
|
/* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title })
|
|
7462
7462
|
] }) });
|
|
@@ -7466,7 +7466,7 @@ var BrandLabel_default = BrandLabel;
|
|
|
7466
7466
|
// src/components/labels/CategoryLabel.tsx
|
|
7467
7467
|
import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7468
7468
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7469
|
-
return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge
|
|
7469
|
+
return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7470
7470
|
icon ? icon : /* @__PURE__ */ jsx60(
|
|
7471
7471
|
BaseImage_default,
|
|
7472
7472
|
{
|
|
@@ -7483,21 +7483,21 @@ var CategoryLabel_default = CategoryLabel;
|
|
|
7483
7483
|
// src/components/labels/CoterieLabel.tsx
|
|
7484
7484
|
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7485
7485
|
var CoterieLabel = ({ title, font }) => {
|
|
7486
|
-
return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7486
|
+
return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx61("p", { className: font ? font : "text-sm", children: title }) });
|
|
7487
7487
|
};
|
|
7488
7488
|
var CoterieLabel_default = CoterieLabel;
|
|
7489
7489
|
|
|
7490
7490
|
// src/components/labels/GradeLabel.tsx
|
|
7491
7491
|
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7492
7492
|
var GradeLabel = ({ title, font }) => {
|
|
7493
|
-
return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
7493
|
+
return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx62("p", { className: font ? font : "text-sm", children: title }) });
|
|
7494
7494
|
};
|
|
7495
7495
|
var GradeLabel_default = GradeLabel;
|
|
7496
7496
|
|
|
7497
7497
|
// src/components/labels/OutcomeLabel.tsx
|
|
7498
7498
|
import { jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7499
7499
|
var OutcomeLabel = ({ title, font }) => {
|
|
7500
|
-
return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
7500
|
+
return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7501
7501
|
/* @__PURE__ */ jsx63(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7502
7502
|
/* @__PURE__ */ jsx63("p", { className: font ? font : "text-sm", children: title })
|
|
7503
7503
|
] }) });
|
|
@@ -7507,7 +7507,7 @@ var OutcomeLabel_default = OutcomeLabel;
|
|
|
7507
7507
|
// src/components/labels/PersonalLabel.tsx
|
|
7508
7508
|
import { jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7509
7509
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7510
|
-
return /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge
|
|
7510
|
+
return /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7511
7511
|
icon ? icon : /* @__PURE__ */ jsx64(
|
|
7512
7512
|
BaseImage_default,
|
|
7513
7513
|
{
|
|
@@ -7524,7 +7524,7 @@ var PersonalLabel_default = PersonalLabel;
|
|
|
7524
7524
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7525
7525
|
import { jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7526
7526
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7527
|
-
return /* @__PURE__ */ jsx65("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
7527
|
+
return /* @__PURE__ */ jsx65("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsxs48("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7528
7528
|
icon ? icon : /* @__PURE__ */ jsx65(
|
|
7529
7529
|
BaseImage_default,
|
|
7530
7530
|
{
|
|
@@ -7541,7 +7541,7 @@ var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
|
7541
7541
|
// src/components/labels/ActivityLabel.tsx
|
|
7542
7542
|
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7543
7543
|
var ActivityLabel = ({ title, font }) => {
|
|
7544
|
-
return /* @__PURE__ */ jsx66("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
7544
|
+
return /* @__PURE__ */ jsx66("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ jsx66("p", { className: font ? font : "text-sm", children: title }) });
|
|
7545
7545
|
};
|
|
7546
7546
|
var ActivityLabel_default = ActivityLabel;
|
|
7547
7547
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { IActivityLabelProps } from "../../properties/LabelProperties";
|
|
|
2
2
|
|
|
3
3
|
const ActivityLabel = ({ title, font }: IActivityLabelProps) => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
5
|
+
<div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center">
|
|
6
6
|
<p className={font ? font : "text-sm"}>{title}</p>
|
|
7
7
|
</div>
|
|
8
8
|
);
|
|
@@ -7,7 +7,7 @@ const ActivityTemplateLabel = ({
|
|
|
7
7
|
font,
|
|
8
8
|
}: IActivityTemplateLabelProps) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
10
|
+
<div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center">
|
|
11
11
|
<div className="flex flex-row items-center gap-x-2">
|
|
12
12
|
{icon ? (
|
|
13
13
|
icon
|
|
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
|
|
|
3
3
|
|
|
4
4
|
const BrandLabel = ({ title, icon, font }: IBrandLabelProps) => {
|
|
5
5
|
return (
|
|
6
|
-
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
6
|
+
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
|
|
7
7
|
<div className="flex flex-row items-center gap-x-2">
|
|
8
8
|
{icon ? (
|
|
9
9
|
icon
|
|
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
|
|
|
3
3
|
|
|
4
4
|
const CategoryLabel = ({ title, icon, font }: ICategoryLabelProps) => {
|
|
5
5
|
return (
|
|
6
|
-
<div className="px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge
|
|
6
|
+
<div className="px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center">
|
|
7
7
|
<div className="flex flex-row items-center gap-x-2">
|
|
8
8
|
{icon ? (
|
|
9
9
|
icon
|
|
@@ -2,7 +2,7 @@ import { ICoterieLabelProps } from "../../properties/LabelProperties";
|
|
|
2
2
|
|
|
3
3
|
const CoterieLabel = ({ title, font }: ICoterieLabelProps) => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
5
|
+
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
|
|
6
6
|
<p className={font ? font : "text-sm"}>{title}</p>
|
|
7
7
|
</div>
|
|
8
8
|
);
|
|
@@ -2,7 +2,7 @@ import { IGradeLabelProps } from "../../properties/LabelProperties";
|
|
|
2
2
|
|
|
3
3
|
const GradeLabel = ({ title, font }: IGradeLabelProps) => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge
|
|
5
|
+
<div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center">
|
|
6
6
|
<p className={font ? font : "text-sm"}>{title}</p>
|
|
7
7
|
</div>
|
|
8
8
|
);
|
|
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
|
|
|
3
3
|
|
|
4
4
|
const OutcomeLabel = ({ title, font }: IOutcomeLabelProps) => {
|
|
5
5
|
return (
|
|
6
|
-
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge
|
|
6
|
+
<div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
|
|
7
7
|
<div className="flex flex-row items-center gap-x-2">
|
|
8
8
|
<BaseImage src="/icons/category.webp" alt="label" size="xsmall" />
|
|
9
9
|
<p className={font ? font : "text-sm"}>{title}</p>
|
|
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
|
|
|
3
3
|
|
|
4
4
|
const PersonalLabel = ({ title, icon, font }: IPersonalLabelProps) => {
|
|
5
5
|
return (
|
|
6
|
-
<div className="px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge
|
|
6
|
+
<div className="px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center">
|
|
7
7
|
<div className="flex flex-row items-center gap-x-2">
|
|
8
8
|
{icon ? (
|
|
9
9
|
icon
|
|
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
|
|
|
3
3
|
|
|
4
4
|
const PublishingHouseLabel = ({ title, icon, font }: IPublishingLabelProps) => {
|
|
5
5
|
return (
|
|
6
|
-
<div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge
|
|
6
|
+
<div className="px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center">
|
|
7
7
|
<div className="flex flex-row items-center gap-x-2">
|
|
8
8
|
{icon ? (
|
|
9
9
|
icon
|
|
@@ -55,7 +55,7 @@ export const retrieveDateIntervalOptionList = () => {
|
|
|
55
55
|
];
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
export const calculateStartDateOfWeek = (date: Date) => {
|
|
58
|
+
export const calculateStartDateOfWeek = (date: Date, isGMT: boolean) => {
|
|
59
59
|
var diff = date.getDate() - date.getDay() + (date.getDay() === 0 ? -6 : 1);
|
|
60
60
|
|
|
61
61
|
const startDate = new Date(date.setDate(diff));
|
|
@@ -63,18 +63,26 @@ export const calculateStartDateOfWeek = (date: Date) => {
|
|
|
63
63
|
startDate.setMinutes(0);
|
|
64
64
|
startDate.setSeconds(0);
|
|
65
65
|
startDate.setMilliseconds(0);
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
if (isGMT) {
|
|
67
|
+
return adjustForTimezone(startDate);
|
|
68
|
+
} else {
|
|
69
|
+
return startDate;
|
|
70
|
+
}
|
|
68
71
|
};
|
|
69
72
|
|
|
70
|
-
export const calculateEndDateOfWeek = (date: Date) => {
|
|
73
|
+
export const calculateEndDateOfWeek = (date: Date, isGMT: boolean) => {
|
|
71
74
|
var lastday = date.getDate() - (date.getDay() - 1) + 6;
|
|
72
75
|
const endDate = new Date(date.setDate(lastday));
|
|
73
76
|
endDate.setHours(23);
|
|
74
77
|
endDate.setMinutes(59);
|
|
75
78
|
endDate.setSeconds(59);
|
|
76
79
|
endDate.setMilliseconds(999);
|
|
77
|
-
|
|
80
|
+
|
|
81
|
+
if (isGMT) {
|
|
82
|
+
return adjustForTimezone(endDate);
|
|
83
|
+
} else {
|
|
84
|
+
return endDate;
|
|
85
|
+
}
|
|
78
86
|
};
|
|
79
87
|
|
|
80
88
|
export const adjustForTimezone = (date: Date) => {
|