subos-frontend 1.0.15 → 1.0.17
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 +66 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -43
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +6 -0
- package/dist/types/components/plans/PlanCard.d.ts +1 -0
- package/dist/types/components/plans/PlanCard.d.ts.map +1 -1
- package/dist/types/components/subscription/SubscriptionInfoGrid.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1048,7 +1048,8 @@ var PlanCard = ({
|
|
|
1048
1048
|
isSelected,
|
|
1049
1049
|
billingCycle,
|
|
1050
1050
|
onSelect,
|
|
1051
|
-
isActive = false
|
|
1051
|
+
isActive = false,
|
|
1052
|
+
comparisonUrl = "https://knovator.com/products/job-board/pricing/"
|
|
1052
1053
|
}) => {
|
|
1053
1054
|
const features = getPlanFeatures(plan);
|
|
1054
1055
|
const description = getPlanDescription(plan);
|
|
@@ -1084,8 +1085,8 @@ var PlanCard = ({
|
|
|
1084
1085
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1085
1086
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xl font-bold mb-2", style: { color: "var(--subos-foreground, inherit)" }, children: plan.name }),
|
|
1086
1087
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mb-4", style: { color: "var(--subos-muted-foreground, #6c757d)" }, children: description }),
|
|
1087
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: isFree ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-3xl font-bold", style: { color: "var(--subos-
|
|
1088
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-3xl font-bold", style: { color: "var(--subos-
|
|
1088
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: isFree ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-3xl font-bold", style: { color: "var(--subos-primary-500, #3f51b5)" }, children: "Free" }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1089
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-3xl font-bold", style: { color: "var(--subos-primary-500, #3f51b5)" }, children: [
|
|
1089
1090
|
"$",
|
|
1090
1091
|
plan.fixedCost
|
|
1091
1092
|
] }),
|
|
@@ -1095,52 +1096,73 @@ var PlanCard = ({
|
|
|
1095
1096
|
] })
|
|
1096
1097
|
] }) })
|
|
1097
1098
|
] }),
|
|
1099
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("hr", { style: { borderColor: "var(--subos-border,rgb(3, 39, 75))" } }) }),
|
|
1098
1100
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2 mb-6 flex-grow", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center text-sm", children: [
|
|
1099
1101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1100
|
-
|
|
1102
|
+
"div",
|
|
1101
1103
|
{
|
|
1102
|
-
className: "
|
|
1103
|
-
style: {
|
|
1104
|
+
className: "mr-2 flex-shrink-0 rounded-full p-0.5",
|
|
1105
|
+
style: { backgroundColor: isActive ? "var(--subos-muted-foreground,rgb(148, 150, 153))" : "var(--subos-primary-500, #3f51b5)" },
|
|
1106
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "w-3 h-3 text-white" })
|
|
1104
1107
|
}
|
|
1105
1108
|
),
|
|
1106
1109
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--subos-foreground, inherit)" }, children: feature })
|
|
1107
1110
|
] }, index)) }),
|
|
1108
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1111
|
+
isFree && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mb-4", style: { color: "var(--subos-muted-foreground, #6c757d)" }, children: "The mentioned plan will become the default once the current subscription expires, provided the tier requirement is met." }) }),
|
|
1112
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-auto space-y-3", children: [
|
|
1113
|
+
!isFree && (isActive ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1114
|
+
"button",
|
|
1115
|
+
{
|
|
1116
|
+
className: "w-full border py-2 px-4 rounded-md font-medium cursor-default",
|
|
1117
|
+
style: {
|
|
1118
|
+
backgroundColor: "var(--subos-muted, #f8f9fa)",
|
|
1119
|
+
borderColor: "var(--subos-border, #dee2e6)",
|
|
1120
|
+
color: "var(--subos-muted-foreground, #6c757d)"
|
|
1121
|
+
},
|
|
1122
|
+
disabled: true,
|
|
1123
|
+
children: "Active"
|
|
1124
|
+
}
|
|
1125
|
+
) : isSelected ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1126
|
+
"button",
|
|
1127
|
+
{
|
|
1128
|
+
className: "w-full subos-btn-primary text-white py-2 px-4 rounded-md font-medium",
|
|
1129
|
+
children: "Selected"
|
|
1130
|
+
}
|
|
1131
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1132
|
+
"button",
|
|
1133
|
+
{
|
|
1134
|
+
className: "w-full border py-2 px-4 rounded-md font-medium transition-colors",
|
|
1135
|
+
style: {
|
|
1136
|
+
backgroundColor: "var(--subos-background, #ffffff)",
|
|
1137
|
+
borderColor: "var(--subos-border, #dee2e6)",
|
|
1138
|
+
color: "var(--subos-foreground, inherit)"
|
|
1139
|
+
},
|
|
1140
|
+
onMouseEnter: (e) => {
|
|
1141
|
+
e.currentTarget.style.backgroundColor = "var(--subos-muted, #f8f9fa)";
|
|
1142
|
+
},
|
|
1143
|
+
onMouseLeave: (e) => {
|
|
1144
|
+
e.currentTarget.style.backgroundColor = "var(--subos-background, #ffffff)";
|
|
1145
|
+
},
|
|
1146
|
+
children: "Select"
|
|
1147
|
+
}
|
|
1148
|
+
)),
|
|
1149
|
+
comparisonUrl && !isFree && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1150
|
+
"button",
|
|
1151
|
+
{
|
|
1152
|
+
className: "w-full py-2 px-4 font-medium text-sm transition-colors",
|
|
1153
|
+
style: {
|
|
1154
|
+
backgroundColor: "transparent",
|
|
1155
|
+
border: "none",
|
|
1156
|
+
color: "var(--subos-primary-500, #3f51b5)"
|
|
1157
|
+
},
|
|
1158
|
+
onClick: (e) => {
|
|
1159
|
+
e.stopPropagation();
|
|
1160
|
+
window.open(comparisonUrl, "_blank");
|
|
1161
|
+
},
|
|
1162
|
+
children: "Show Plan Comparision"
|
|
1163
|
+
}
|
|
1164
|
+
)
|
|
1165
|
+
] })
|
|
1144
1166
|
]
|
|
1145
1167
|
}
|
|
1146
1168
|
);
|
|
@@ -2046,7 +2068,8 @@ var defaultFields = [
|
|
|
2046
2068
|
label: "Subscription Type",
|
|
2047
2069
|
getValue: (subscription) => {
|
|
2048
2070
|
var _a;
|
|
2049
|
-
|
|
2071
|
+
const interval = ((_a = subscription == null ? void 0 : subscription.plan) == null ? void 0 : _a.interval) || "N/A";
|
|
2072
|
+
return interval !== "N/A" ? interval.charAt(0) + interval.slice(1).toLowerCase() : interval;
|
|
2050
2073
|
}
|
|
2051
2074
|
},
|
|
2052
2075
|
{
|