@omnikit-js/ui 0.9.41 → 0.9.43

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.
@@ -650,7 +650,7 @@ function BillingContent({
650
650
  const unit = usage.unit ? ` ${usage.unit}` : "";
651
651
  return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
652
652
  /* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
653
- /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-gray-300", children: featureName }),
653
+ /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-neutral-300", children: featureName }),
654
654
  /* @__PURE__ */ jsxs("span", { className: "text-gray-600 dark:text-gray-400", children: [
655
655
  usage.current_usage.toLocaleString(),
656
656
  " / ",
@@ -673,14 +673,14 @@ function BillingContent({
673
673
  const stringValue = entitlement?.value ? typeof entitlement.value === "object" && entitlement.value !== null && "value" in entitlement.value ? String(entitlement.value.value) : String(entitlement.value) : null;
674
674
  if (stringValue) {
675
675
  return /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-sm", children: [
676
- /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-gray-300", children: featureName }),
676
+ /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-neutral-300", children: featureName }),
677
677
  /* @__PURE__ */ jsx("span", { className: "text-gray-900 dark:text-gray-100 font-medium", children: stringValue })
678
678
  ] }, usage.feature_key);
679
679
  }
680
680
  }
681
681
  const isEnabled = usage.feature_type === "boolean" || usage.limit === 0;
682
682
  return /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-sm", children: [
683
- /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-gray-300", children: featureName }),
683
+ /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-neutral-300", children: featureName }),
684
684
  isEnabled ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 text-green-600 dark:text-green-400", children: [
685
685
  /* @__PURE__ */ jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }),
686
686
  "Included"
@@ -738,7 +738,7 @@ function BillingContent({
738
738
  )
739
739
  }
740
740
  ),
741
- /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-gray-300", children: feature })
741
+ /* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-neutral-300", children: feature })
742
742
  ] }, idx)) }),
743
743
  /* @__PURE__ */ jsx(
744
744
  Button,
@@ -764,11 +764,11 @@ function BillingContent({
764
764
  /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6", children: "View and download your past invoices" }),
765
765
  invoices.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-gray-500 dark:text-gray-400", children: "No invoices yet." }) : /* @__PURE__ */ jsx("div", { className: "space-y-3", children: invoices.map((invoice) => /* @__PURE__ */ jsxs(Card, { className: "flex items-center justify-between", children: [
766
766
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
767
- /* @__PURE__ */ jsx("div", { className: "h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-5 h-5 text-blue-600 dark:text-blue-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) }) }),
767
+ /* @__PURE__ */ jsx("div", { className: "h-10 w-10 rounded-full bg-blue-100 dark:bg-neutral-700 flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-5 h-5 text-blue-600 dark:text-neutral-300", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) }) }),
768
768
  /* @__PURE__ */ jsxs("div", { children: [
769
769
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
770
770
  /* @__PURE__ */ jsx("p", { className: "font-medium text-sm", children: invoice.id }),
771
- /* @__PURE__ */ jsx("span", { className: `inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${invoice.status === "paid" ? "bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-300" : invoice.status === "open" ? "bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300" : "bg-gray-100 dark:bg-neutral-800 text-gray-800 dark:text-gray-300"}`, children: invoice.status })
771
+ /* @__PURE__ */ jsx("span", { className: `inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${invoice.status === "paid" ? "bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-300" : invoice.status === "open" ? "bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300" : "bg-gray-100 dark:bg-neutral-800 text-gray-800 dark:text-neutral-300"}`, children: invoice.status })
772
772
  ] }),
773
773
  /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-600 dark:text-gray-400", children: invoice.date })
774
774
  ] })
@@ -808,7 +808,7 @@ function BillingContent({
808
808
  " \u2022\u2022\u2022\u2022 ",
809
809
  pm.card_last4 || pm.bank_last4 || "****"
810
810
  ] }),
811
- pm.is_default && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-blue-100 dark:bg-blue-900/30 px-2 py-0.5 text-xs font-medium text-blue-800 dark:text-blue-300", children: "Default" })
811
+ pm.is_default && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-blue-100 dark:bg-neutral-700 px-2 py-0.5 text-xs font-medium text-blue-800 dark:text-neutral-300", children: "Default" })
812
812
  ] }),
813
813
  pm.card_exp_month && pm.card_exp_year && /* @__PURE__ */ jsxs("p", { className: "text-xs text-gray-600 dark:text-gray-400", children: [
814
814
  "Expires ",
@@ -863,7 +863,7 @@ function BillingContent({
863
863
  preferencesSuccess && /* @__PURE__ */ jsx(Alert, { variant: "success", className: "mb-6", children: "Preferences saved successfully" }),
864
864
  /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
865
865
  /* @__PURE__ */ jsxs("div", { children: [
866
- /* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: "Customer Type" }),
866
+ /* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2", children: "Customer Type" }),
867
867
  /* @__PURE__ */ jsx(
868
868
  Radio,
869
869
  {
@@ -929,7 +929,7 @@ function BillingContent({
929
929
  }
930
930
  ),
931
931
  /* @__PURE__ */ jsxs("div", { children: [
932
- /* @__PURE__ */ jsx("h4", { className: "text-sm font-medium text-gray-700 dark:text-gray-300 mb-3", children: "Billing Address" }),
932
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-medium text-gray-700 dark:text-neutral-300 mb-3", children: "Billing Address" }),
933
933
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
934
934
  /* @__PURE__ */ jsx("div", { className: "md:col-span-2", children: /* @__PURE__ */ jsx(
935
935
  TextInput,
@@ -1200,7 +1200,7 @@ function BillingContent({
1200
1200
  /* @__PURE__ */ jsx("span", { className: "font-medium text-gray-900 dark:text-white", children: "$0.00" })
1201
1201
  ] }) : null
1202
1202
  ] }),
1203
- taxInfo && taxInfo.reverse_charge && /* @__PURE__ */ jsx("div", { className: "mt-2 p-2 border border-gray-200 dark:border-neutral-700 rounded text-xs text-gray-700 dark:text-gray-300", children: "EU reverse charge applies - you are responsible for reporting VAT in your country." }),
1203
+ taxInfo && taxInfo.reverse_charge && /* @__PURE__ */ jsx("div", { className: "mt-2 p-2 border border-gray-200 dark:border-neutral-700 rounded text-xs text-gray-700 dark:text-neutral-300", children: "EU reverse charge applies - you are responsible for reporting VAT in your country." }),
1204
1204
  /* @__PURE__ */ jsx("div", { className: "border-t border-gray-200 dark:border-neutral-700 mt-3 pt-3", children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
1205
1205
  /* @__PURE__ */ jsx("span", { className: "font-semibold text-gray-900 dark:text-white", children: selectedPlan && parseFloat(selectedPlan.price.replace(/[^0-9.]/g, "")) === 0 ? "Total:" : "Charged Today:" }),
1206
1206
  /* @__PURE__ */ jsx("span", { className: "font-bold text-lg text-gray-900 dark:text-white", children: selectedPlan && parseFloat(selectedPlan.price.replace(/[^0-9.]/g, "")) === 0 ? /* @__PURE__ */ jsx("span", { className: "text-green-600 dark:text-green-400", children: "FREE" }) : taxInfo ? `$${(taxInfo.total / 100).toFixed(2)}` : selectedPlan?.price || "$0" })
@@ -1211,7 +1211,7 @@ function BillingContent({
1211
1211
  /* @__PURE__ */ jsx("div", { className: "space-y-2", children: paymentMethods.map((method) => /* @__PURE__ */ jsxs(
1212
1212
  "label",
1213
1213
  {
1214
- className: `flex items-center gap-3 p-3 border-2 rounded-lg cursor-pointer transition-all ${selectedUpgradePaymentMethod === method.id ? "border-blue-500 bg-blue-50 dark:bg-blue-900/20" : "border-gray-200 dark:border-neutral-700 hover:border-gray-300 dark:hover:border-neutral-600"}`,
1214
+ className: `flex items-center gap-3 p-3 border-2 rounded-lg cursor-pointer transition-all ${selectedUpgradePaymentMethod === method.id ? "border-blue-500 bg-blue-50 dark:border-gray-400 dark:bg-neutral-700/50" : "border-gray-200 dark:border-neutral-700 hover:border-gray-300 dark:hover:border-neutral-600"}`,
1215
1215
  children: [
1216
1216
  /* @__PURE__ */ jsx(
1217
1217
  "input",
@@ -1227,7 +1227,7 @@ function BillingContent({
1227
1227
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
1228
1228
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1229
1229
  /* @__PURE__ */ jsx("span", { className: "font-medium text-gray-900 dark:text-white text-sm", children: method.card_brand ? method.card_brand.charAt(0).toUpperCase() + method.card_brand.slice(1) : "Card" }),
1230
- method.is_default && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-blue-100 dark:bg-blue-900/30 px-2 py-0.5 text-xs font-medium text-blue-800 dark:text-blue-300", children: "Default" })
1230
+ method.is_default && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center rounded-full bg-blue-100 dark:bg-neutral-700 px-2 py-0.5 text-xs font-medium text-blue-800 dark:text-neutral-300", children: "Default" })
1231
1231
  ] }),
1232
1232
  /* @__PURE__ */ jsxs("span", { className: "text-xs text-gray-600 dark:text-gray-400", children: [
1233
1233
  "\u2022\u2022\u2022\u2022 ",
@@ -1315,5 +1315,5 @@ function BillingContent({
1315
1315
  }
1316
1316
 
1317
1317
  export { AddPaymentMethodForm, BillingContent };
1318
- //# sourceMappingURL=chunk-XYCOFFYZ.js.map
1319
- //# sourceMappingURL=chunk-XYCOFFYZ.js.map
1318
+ //# sourceMappingURL=chunk-3AQCVPQI.js.map
1319
+ //# sourceMappingURL=chunk-3AQCVPQI.js.map