@opensite/ui 3.5.9 → 3.6.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/navbar-animated-preview.cjs +18 -18
- package/dist/navbar-animated-preview.js +18 -18
- package/dist/registry.cjs +1747 -401
- package/dist/registry.js +1747 -401
- package/package.json +1 -1
|
@@ -1230,35 +1230,35 @@ var FeaturedImageLink = ({
|
|
|
1230
1230
|
) }) });
|
|
1231
1231
|
};
|
|
1232
1232
|
var FeaturedLink = ({ link, optixFlowConfig }) => {
|
|
1233
|
+
const hasBgImg = !!link.background;
|
|
1233
1234
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1234
1235
|
pressable.Pressable,
|
|
1235
1236
|
{
|
|
1236
1237
|
href: getLinkUrl(link),
|
|
1237
|
-
className:
|
|
1238
|
+
className: `group relative flex w-full overflow-hidden rounded-xl px-4 pt-24 pb-4 ${hasBgImg ? "" : "bg-primary"}`,
|
|
1238
1239
|
children: [
|
|
1239
1240
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-10 flex w-full items-center gap-6", children: [
|
|
1240
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-12 shrink-0 rounded-lg border bg-
|
|
1241
|
-
|
|
1241
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-12 shrink-0 rounded-lg border bg-card text-card-foreground shadow-lg", children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: link.icon || link.iconName, size: 20 }) }),
|
|
1242
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1243
|
+
"div",
|
|
1242
1244
|
{
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1245
|
+
className: `flex flex-col ${hasBgImg ? "text-white text-shadow-lg" : "text-primary-foreground"}`,
|
|
1246
|
+
children: [
|
|
1247
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-lg font-semibold", children: link.label }),
|
|
1248
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium", children: link.description })
|
|
1249
|
+
]
|
|
1246
1250
|
}
|
|
1247
|
-
)
|
|
1248
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col text-white text-shadow-lg", children: [
|
|
1249
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-lg font-semibold", children: link.label }),
|
|
1250
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium", children: link.description })
|
|
1251
|
-
] })
|
|
1251
|
+
)
|
|
1252
1252
|
] }),
|
|
1253
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1253
|
+
link.background && link.background?.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1254
1254
|
img.Img,
|
|
1255
1255
|
{
|
|
1256
1256
|
src: link.background,
|
|
1257
|
-
alt: typeof link.label === "string" ? link.label : "",
|
|
1257
|
+
alt: link.label && typeof link.label === "string" ? link.label : "Featured link background image",
|
|
1258
1258
|
className: "absolute top-0 left-0 size-full brightness-50 object-cover object-center opacity-90 transition-opacity duration-300 ease-in-out group-hover:opacity-100",
|
|
1259
1259
|
optixFlowConfig
|
|
1260
1260
|
}
|
|
1261
|
-
)
|
|
1261
|
+
) : null
|
|
1262
1262
|
]
|
|
1263
1263
|
}
|
|
1264
1264
|
);
|
|
@@ -1274,17 +1274,17 @@ var NavLink = React.forwardRef(
|
|
|
1274
1274
|
onMouseEnter,
|
|
1275
1275
|
onMouseLeave,
|
|
1276
1276
|
children: [
|
|
1277
|
-
|
|
1277
|
+
link.icon || link.iconName ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-6 shrink-0 rounded-md border shadow", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1278
1278
|
DynamicIcon,
|
|
1279
1279
|
{
|
|
1280
1280
|
name: link.icon || link.iconName,
|
|
1281
1281
|
size: 14,
|
|
1282
1282
|
className: "m-auto"
|
|
1283
1283
|
}
|
|
1284
|
-
) }),
|
|
1285
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start gap-
|
|
1284
|
+
) }) : null,
|
|
1285
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start gap-1", children: [
|
|
1286
1286
|
link.label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm leading-normal", children: link.label }),
|
|
1287
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-normal
|
|
1287
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-normal opacity-70", children: link.description })
|
|
1288
1288
|
] })
|
|
1289
1289
|
]
|
|
1290
1290
|
}
|
|
@@ -1205,35 +1205,35 @@ var FeaturedImageLink = ({
|
|
|
1205
1205
|
) }) });
|
|
1206
1206
|
};
|
|
1207
1207
|
var FeaturedLink = ({ link, optixFlowConfig }) => {
|
|
1208
|
+
const hasBgImg = !!link.background;
|
|
1208
1209
|
return /* @__PURE__ */ jsxs(
|
|
1209
1210
|
Pressable,
|
|
1210
1211
|
{
|
|
1211
1212
|
href: getLinkUrl(link),
|
|
1212
|
-
className:
|
|
1213
|
+
className: `group relative flex w-full overflow-hidden rounded-xl px-4 pt-24 pb-4 ${hasBgImg ? "" : "bg-primary"}`,
|
|
1213
1214
|
children: [
|
|
1214
1215
|
/* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full items-center gap-6", children: [
|
|
1215
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-12 shrink-0 rounded-lg border bg-
|
|
1216
|
-
|
|
1216
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-12 shrink-0 rounded-lg border bg-card text-card-foreground shadow-lg", children: /* @__PURE__ */ jsx(DynamicIcon, { name: link.icon || link.iconName, size: 20 }) }),
|
|
1217
|
+
/* @__PURE__ */ jsxs(
|
|
1218
|
+
"div",
|
|
1217
1219
|
{
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1220
|
+
className: `flex flex-col ${hasBgImg ? "text-white text-shadow-lg" : "text-primary-foreground"}`,
|
|
1221
|
+
children: [
|
|
1222
|
+
/* @__PURE__ */ jsx("div", { className: "text-lg font-semibold", children: link.label }),
|
|
1223
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: link.description })
|
|
1224
|
+
]
|
|
1221
1225
|
}
|
|
1222
|
-
)
|
|
1223
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col text-white text-shadow-lg", children: [
|
|
1224
|
-
/* @__PURE__ */ jsx("div", { className: "text-lg font-semibold", children: link.label }),
|
|
1225
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: link.description })
|
|
1226
|
-
] })
|
|
1226
|
+
)
|
|
1227
1227
|
] }),
|
|
1228
|
-
/* @__PURE__ */ jsx(
|
|
1228
|
+
link.background && link.background?.length > 0 ? /* @__PURE__ */ jsx(
|
|
1229
1229
|
Img,
|
|
1230
1230
|
{
|
|
1231
1231
|
src: link.background,
|
|
1232
|
-
alt: typeof link.label === "string" ? link.label : "",
|
|
1232
|
+
alt: link.label && typeof link.label === "string" ? link.label : "Featured link background image",
|
|
1233
1233
|
className: "absolute top-0 left-0 size-full brightness-50 object-cover object-center opacity-90 transition-opacity duration-300 ease-in-out group-hover:opacity-100",
|
|
1234
1234
|
optixFlowConfig
|
|
1235
1235
|
}
|
|
1236
|
-
)
|
|
1236
|
+
) : null
|
|
1237
1237
|
]
|
|
1238
1238
|
}
|
|
1239
1239
|
);
|
|
@@ -1249,17 +1249,17 @@ var NavLink = forwardRef(
|
|
|
1249
1249
|
onMouseEnter,
|
|
1250
1250
|
onMouseLeave,
|
|
1251
1251
|
children: [
|
|
1252
|
-
|
|
1252
|
+
link.icon || link.iconName ? /* @__PURE__ */ jsx("div", { className: "flex size-6 shrink-0 rounded-md border shadow", children: /* @__PURE__ */ jsx(
|
|
1253
1253
|
DynamicIcon,
|
|
1254
1254
|
{
|
|
1255
1255
|
name: link.icon || link.iconName,
|
|
1256
1256
|
size: 14,
|
|
1257
1257
|
className: "m-auto"
|
|
1258
1258
|
}
|
|
1259
|
-
) }),
|
|
1260
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-
|
|
1259
|
+
) }) : null,
|
|
1260
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-1", children: [
|
|
1261
1261
|
link.label && /* @__PURE__ */ jsx("div", { className: "text-sm leading-normal", children: link.label }),
|
|
1262
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs leading-normal
|
|
1262
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs leading-normal opacity-70", children: link.description })
|
|
1263
1263
|
] })
|
|
1264
1264
|
]
|
|
1265
1265
|
}
|