@streamoid/settings 0.1.8 → 0.2.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.
package/dist/index.js CHANGED
@@ -5633,7 +5633,7 @@ function BillingContent({ embedded = false } = {}) {
5633
5633
  const usedCredits = availableCredits != null && totalCredits != null ? Math.max(0, totalCredits - availableCredits) : null;
5634
5634
  const progressPct = usedCredits != null && totalCredits != null && totalCredits > 0 ? Math.min(100, Math.round(usedCredits / totalCredits * 100)) : 0;
5635
5635
  const remainingPct = 100 - progressPct;
5636
- const usageText = usedCredits != null && totalCredits != null ? `${formatCredits(usedCredits)} / ${formatCredits(totalCredits)}` : availableCredits != null ? `${formatCredits(availableCredits)} available` : customPlanCredits != null ? `${formatCredits(customPlanCredits)} credits` : "\u2014";
5636
+ const usageText = usedCredits != null ? formatCredits(usedCredits) : availableCredits != null ? `${formatCredits(availableCredits)} available` : customPlanCredits != null ? `${formatCredits(customPlanCredits)} credits` : "\u2014";
5637
5637
  const handleExport = async (startDate, endDate) => {
5638
5638
  const end = new Date(endDate);
5639
5639
  end.setHours(23, 59, 59, 999);
@@ -5865,7 +5865,7 @@ function BillingContent({ embedded = false } = {}) {
5865
5865
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
5866
5866
  import_ui5.ScCreditsUsageCard,
5867
5867
  {
5868
- usageLabel: "Credits usage",
5868
+ usageLabel: "Credits used",
5869
5869
  usageText,
5870
5870
  remainingText: availableCredits != null ? `${formatCredits(availableCredits)} (${remainingPct}%) Remaining` : `${remainingPct}% Remaining`,
5871
5871
  buyButtonText: "Buy credits",
package/dist/index.mjs CHANGED
@@ -5648,7 +5648,7 @@ function BillingContent({ embedded = false } = {}) {
5648
5648
  const usedCredits = availableCredits != null && totalCredits != null ? Math.max(0, totalCredits - availableCredits) : null;
5649
5649
  const progressPct = usedCredits != null && totalCredits != null && totalCredits > 0 ? Math.min(100, Math.round(usedCredits / totalCredits * 100)) : 0;
5650
5650
  const remainingPct = 100 - progressPct;
5651
- const usageText = usedCredits != null && totalCredits != null ? `${formatCredits(usedCredits)} / ${formatCredits(totalCredits)}` : availableCredits != null ? `${formatCredits(availableCredits)} available` : customPlanCredits != null ? `${formatCredits(customPlanCredits)} credits` : "\u2014";
5651
+ const usageText = usedCredits != null ? formatCredits(usedCredits) : availableCredits != null ? `${formatCredits(availableCredits)} available` : customPlanCredits != null ? `${formatCredits(customPlanCredits)} credits` : "\u2014";
5652
5652
  const handleExport = async (startDate, endDate) => {
5653
5653
  const end = new Date(endDate);
5654
5654
  end.setHours(23, 59, 59, 999);
@@ -5880,7 +5880,7 @@ function BillingContent({ embedded = false } = {}) {
5880
5880
  /* @__PURE__ */ jsx11(
5881
5881
  ScCreditsUsageCard,
5882
5882
  {
5883
- usageLabel: "Credits usage",
5883
+ usageLabel: "Credits used",
5884
5884
  usageText,
5885
5885
  remainingText: availableCredits != null ? `${formatCredits(availableCredits)} (${remainingPct}%) Remaining` : `${remainingPct}% Remaining`,
5886
5886
  buyButtonText: "Buy credits",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/settings",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",