catchup-library-web 1.13.0 → 1.13.1

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 CHANGED
@@ -378,7 +378,7 @@ var ScoreBar = ({ score, className }) => {
378
378
  className: `h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
379
379
  score
380
380
  )}`,
381
- style: { width: `${score.toFixed(1)}%` }
381
+ style: { width: `${score}%` }
382
382
  }
383
383
  ) }),
384
384
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
@@ -388,7 +388,7 @@ var ScoreBar = ({ score, className }) => {
388
388
  score
389
389
  )}`,
390
390
  children: [
391
- score,
391
+ score.toFixed(1),
392
392
  "%"
393
393
  ]
394
394
  }
@@ -9090,13 +9090,17 @@ var retrieveTimeFilterOptionList = (isDetailed) => {
9090
9090
  title: i18n_default.t("last_month"),
9091
9091
  value: "last_month",
9092
9092
  id: "last_month"
9093
- },
9094
- {
9093
+ }
9094
+ );
9095
+ if (isDetailed) {
9096
+ baseTimeFilterOptionList.push({
9095
9097
  text: i18n_default.t("last_7_days"),
9096
9098
  title: i18n_default.t("last_7_days"),
9097
9099
  value: "last_7_days",
9098
9100
  id: "last_7_days"
9099
- },
9101
+ });
9102
+ }
9103
+ baseTimeFilterOptionList.push(
9100
9104
  {
9101
9105
  text: i18n_default.t("last_30_days"),
9102
9106
  title: i18n_default.t("last_30_days"),
package/dist/index.mjs CHANGED
@@ -168,7 +168,7 @@ var ScoreBar = ({ score, className }) => {
168
168
  className: `h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
169
169
  score
170
170
  )}`,
171
- style: { width: `${score.toFixed(1)}%` }
171
+ style: { width: `${score}%` }
172
172
  }
173
173
  ) }),
174
174
  /* @__PURE__ */ jsxs2(
@@ -178,7 +178,7 @@ var ScoreBar = ({ score, className }) => {
178
178
  score
179
179
  )}`,
180
180
  children: [
181
- score,
181
+ score.toFixed(1),
182
182
  "%"
183
183
  ]
184
184
  }
@@ -8880,13 +8880,17 @@ var retrieveTimeFilterOptionList = (isDetailed) => {
8880
8880
  title: i18n_default.t("last_month"),
8881
8881
  value: "last_month",
8882
8882
  id: "last_month"
8883
- },
8884
- {
8883
+ }
8884
+ );
8885
+ if (isDetailed) {
8886
+ baseTimeFilterOptionList.push({
8885
8887
  text: i18n_default.t("last_7_days"),
8886
8888
  title: i18n_default.t("last_7_days"),
8887
8889
  value: "last_7_days",
8888
8890
  id: "last_7_days"
8889
- },
8891
+ });
8892
+ }
8893
+ baseTimeFilterOptionList.push(
8890
8894
  {
8891
8895
  text: i18n_default.t("last_30_days"),
8892
8896
  title: i18n_default.t("last_30_days"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@ const ScoreBar = ({ score, className }: IScoreBarProperties) => {
20
20
  className={`h-full rounded-catchup-full transition-all duration-300 ${getProgressBarColor(
21
21
  score
22
22
  )}`}
23
- style={{ width: `${score.toFixed(1)}%` }}
23
+ style={{ width: `${score}%` }}
24
24
  />
25
25
  </div>
26
26
  <span
@@ -28,7 +28,7 @@ const ScoreBar = ({ score, className }: IScoreBarProperties) => {
28
28
  score
29
29
  )}`}
30
30
  >
31
- {score}%
31
+ {score.toFixed(1)}%
32
32
  </span>
33
33
  </div>
34
34
  );
@@ -161,6 +161,7 @@ export const retrieveTimeFilterOptionList = (isDetailed: boolean) => {
161
161
  }
162
162
  );
163
163
  }
164
+
164
165
  baseTimeFilterOptionList.push(
165
166
  {
166
167
  text: i18n.t("this_month"),
@@ -173,13 +174,19 @@ export const retrieveTimeFilterOptionList = (isDetailed: boolean) => {
173
174
  title: i18n.t("last_month"),
174
175
  value: "last_month",
175
176
  id: "last_month",
176
- },
177
- {
177
+ }
178
+ );
179
+
180
+ if (isDetailed) {
181
+ baseTimeFilterOptionList.push({
178
182
  text: i18n.t("last_7_days"),
179
183
  title: i18n.t("last_7_days"),
180
184
  value: "last_7_days",
181
185
  id: "last_7_days",
182
- },
186
+ });
187
+ }
188
+
189
+ baseTimeFilterOptionList.push(
183
190
  {
184
191
  text: i18n.t("last_30_days"),
185
192
  title: i18n.t("last_30_days"),