subos-frontend 1.0.15 → 1.0.16
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 +72 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -42
- 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/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);
|
|
@@ -1081,11 +1082,19 @@ var PlanCard = ({
|
|
|
1081
1082
|
children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "w-4 h-4" })
|
|
1082
1083
|
}
|
|
1083
1084
|
) }),
|
|
1085
|
+
isActive && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1086
|
+
"div",
|
|
1087
|
+
{
|
|
1088
|
+
className: "text-white rounded-full p-1",
|
|
1089
|
+
style: { backgroundColor: "var(--subos-muted-foreground, #6c757d)" },
|
|
1090
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "w-4 h-4" })
|
|
1091
|
+
}
|
|
1092
|
+
) }),
|
|
1084
1093
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1085
1094
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xl font-bold mb-2", style: { color: "var(--subos-foreground, inherit)" }, children: plan.name }),
|
|
1086
1095
|
/* @__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-
|
|
1096
|
+
/* @__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: [
|
|
1097
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-3xl font-bold", style: { color: "var(--subos-primary-500, #3f51b5)" }, children: [
|
|
1089
1098
|
"$",
|
|
1090
1099
|
plan.fixedCost
|
|
1091
1100
|
] }),
|
|
@@ -1095,52 +1104,73 @@ var PlanCard = ({
|
|
|
1095
1104
|
] })
|
|
1096
1105
|
] }) })
|
|
1097
1106
|
] }),
|
|
1107
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("hr", { style: { borderColor: "var(--subos-border,rgb(3, 39, 75))" } }) }),
|
|
1098
1108
|
/* @__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
1109
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1100
|
-
|
|
1110
|
+
"div",
|
|
1101
1111
|
{
|
|
1102
|
-
className: "
|
|
1103
|
-
style: {
|
|
1112
|
+
className: "mr-2 flex-shrink-0 rounded-full p-0.5",
|
|
1113
|
+
style: { backgroundColor: isActive ? "var(--subos-muted-foreground, #6c757d)" : "var(--subos-primary-500, #3f51b5)" },
|
|
1114
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "w-3 h-3 text-white" })
|
|
1104
1115
|
}
|
|
1105
1116
|
),
|
|
1106
1117
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--subos-foreground, inherit)" }, children: feature })
|
|
1107
1118
|
] }, 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
|
-
|
|
1119
|
+
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." }) }),
|
|
1120
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-auto space-y-3", children: [
|
|
1121
|
+
!isFree && (isActive ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1122
|
+
"button",
|
|
1123
|
+
{
|
|
1124
|
+
className: "w-full border py-2 px-4 rounded-md font-medium cursor-default",
|
|
1125
|
+
style: {
|
|
1126
|
+
backgroundColor: "var(--subos-muted, #f8f9fa)",
|
|
1127
|
+
borderColor: "var(--subos-border, #dee2e6)",
|
|
1128
|
+
color: "var(--subos-muted-foreground, #6c757d)"
|
|
1129
|
+
},
|
|
1130
|
+
disabled: true,
|
|
1131
|
+
children: "Active"
|
|
1132
|
+
}
|
|
1133
|
+
) : isSelected ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1134
|
+
"button",
|
|
1135
|
+
{
|
|
1136
|
+
className: "w-full subos-btn-primary text-white py-2 px-4 rounded-md font-medium",
|
|
1137
|
+
children: "Selected"
|
|
1138
|
+
}
|
|
1139
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1140
|
+
"button",
|
|
1141
|
+
{
|
|
1142
|
+
className: "w-full border py-2 px-4 rounded-md font-medium transition-colors",
|
|
1143
|
+
style: {
|
|
1144
|
+
backgroundColor: "var(--subos-background, #ffffff)",
|
|
1145
|
+
borderColor: "var(--subos-border, #dee2e6)",
|
|
1146
|
+
color: "var(--subos-foreground, inherit)"
|
|
1147
|
+
},
|
|
1148
|
+
onMouseEnter: (e) => {
|
|
1149
|
+
e.currentTarget.style.backgroundColor = "var(--subos-muted, #f8f9fa)";
|
|
1150
|
+
},
|
|
1151
|
+
onMouseLeave: (e) => {
|
|
1152
|
+
e.currentTarget.style.backgroundColor = "var(--subos-background, #ffffff)";
|
|
1153
|
+
},
|
|
1154
|
+
children: "Select"
|
|
1155
|
+
}
|
|
1156
|
+
)),
|
|
1157
|
+
comparisonUrl && !isFree && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1158
|
+
"button",
|
|
1159
|
+
{
|
|
1160
|
+
className: "w-full py-2 px-4 font-medium text-sm transition-colors",
|
|
1161
|
+
style: {
|
|
1162
|
+
backgroundColor: "transparent",
|
|
1163
|
+
border: "none",
|
|
1164
|
+
color: "var(--subos-primary-500, #3f51b5)"
|
|
1165
|
+
},
|
|
1166
|
+
onClick: (e) => {
|
|
1167
|
+
e.stopPropagation();
|
|
1168
|
+
window.open(comparisonUrl, "_blank");
|
|
1169
|
+
},
|
|
1170
|
+
children: "Show Plan Comparision"
|
|
1171
|
+
}
|
|
1172
|
+
)
|
|
1173
|
+
] })
|
|
1144
1174
|
]
|
|
1145
1175
|
}
|
|
1146
1176
|
);
|