@opensite/ui 1.2.2 → 1.2.4

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.
Files changed (51) hide show
  1. package/dist/auto-scroll-carousel.cjs +2 -2
  2. package/dist/auto-scroll-carousel.js +2 -2
  3. package/dist/blur-vignette-grid.cjs +13 -17
  4. package/dist/blur-vignette-grid.d.cts +2 -2
  5. package/dist/blur-vignette-grid.d.ts +2 -2
  6. package/dist/blur-vignette-grid.js +13 -17
  7. package/dist/carousel-gradient-text.cjs +8 -10
  8. package/dist/carousel-gradient-text.js +8 -10
  9. package/dist/carousel-icon-sidebar.cjs +48 -29
  10. package/dist/carousel-icon-sidebar.js +48 -29
  11. package/dist/carousel-scale-focus.cjs +27 -1
  12. package/dist/carousel-scale-focus.js +27 -1
  13. package/dist/carousel-tabs-content.cjs +46 -36
  14. package/dist/carousel-tabs-content.js +46 -36
  15. package/dist/expandable-case-study-cards.cjs +1 -0
  16. package/dist/expandable-case-study-cards.js +1 -0
  17. package/dist/feature-capabilities-grid.cjs +525 -54
  18. package/dist/feature-capabilities-grid.d.cts +4 -0
  19. package/dist/feature-capabilities-grid.d.ts +4 -0
  20. package/dist/feature-capabilities-grid.js +525 -54
  21. package/dist/feature-card-grid-linked.cjs +40 -35
  22. package/dist/feature-card-grid-linked.d.cts +9 -1
  23. package/dist/feature-card-grid-linked.d.ts +9 -1
  24. package/dist/feature-card-grid-linked.js +40 -35
  25. package/dist/feature-carousel-progress.cjs +129 -56
  26. package/dist/feature-carousel-progress.d.cts +13 -1
  27. package/dist/feature-carousel-progress.d.ts +13 -1
  28. package/dist/feature-carousel-progress.js +129 -56
  29. package/dist/feature-checklist-image.cjs +61 -105
  30. package/dist/feature-checklist-image.d.cts +1 -1
  31. package/dist/feature-checklist-image.d.ts +1 -1
  32. package/dist/feature-checklist-image.js +61 -105
  33. package/dist/feature-icon-grid-bordered.cjs +457 -35
  34. package/dist/feature-icon-grid-bordered.d.cts +4 -0
  35. package/dist/feature-icon-grid-bordered.d.ts +4 -0
  36. package/dist/feature-icon-grid-bordered.js +457 -35
  37. package/dist/feature-numbered-cards.cjs +519 -35
  38. package/dist/feature-numbered-cards.d.cts +18 -2
  39. package/dist/feature-numbered-cards.d.ts +18 -2
  40. package/dist/feature-numbered-cards.js +520 -36
  41. package/dist/feature-split-image.cjs +1 -1
  42. package/dist/feature-split-image.js +1 -1
  43. package/dist/masonry-motion-grid.cjs +2 -2
  44. package/dist/masonry-motion-grid.js +2 -2
  45. package/dist/registry.cjs +10264 -9952
  46. package/dist/registry.js +10262 -9950
  47. package/dist/testimonial-carousel-cards.cjs +28 -8
  48. package/dist/testimonial-carousel-cards.d.cts +8 -0
  49. package/dist/testimonial-carousel-cards.d.ts +8 -0
  50. package/dist/testimonial-carousel-cards.js +28 -8
  51. package/package.json +1 -1
@@ -1164,7 +1164,7 @@ function TestimonialCarouselCards({
1164
1164
  "div",
1165
1165
  {
1166
1166
  className: cn(
1167
- "hidden justify-start gap-4 lg:flex",
1167
+ "justify-start gap-2 flex mt-4 md:mt-0",
1168
1168
  controlsClassName
1169
1169
  ),
1170
1170
  children: [
@@ -1221,14 +1221,14 @@ function TestimonialCarouselCards({
1221
1221
  itemClassName,
1222
1222
  testimonial.className
1223
1223
  ),
1224
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 lg:flex-row", children: [
1224
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0 lg:flex-row lg:gap-2", children: [
1225
1225
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-full lg:h-[460px] lg:w-[400px]", children: /* @__PURE__ */ jsxRuntime.jsx(
1226
1226
  img.Img,
1227
1227
  {
1228
1228
  src: testimonial.image,
1229
1229
  alt: typeof testimonial.username === "string" ? testimonial.username : testimonial.imageAlt || "Testimonial image",
1230
1230
  className: cn(
1231
- "h-full w-full rounded-2xl object-cover",
1231
+ "h-full w-full rounded-t-2xl rounded-b-none lg:rounded-2xl object-cover",
1232
1232
  imageClassName
1233
1233
  ),
1234
1234
  loading: "lazy",
@@ -1239,12 +1239,32 @@ function TestimonialCarouselCards({
1239
1239
  "div",
1240
1240
  {
1241
1241
  className: cn(
1242
- "relative flex w-full flex-col items-start justify-end rounded-2xl bg-background p-6 text-foreground lg:h-[460px] lg:w-[400px] lg:p-8",
1242
+ "relative flex w-full flex-col items-start justify-end overflow-hidden rounded-b-2xl rounded-t-none lg:rounded-2xl bg-background p-6 text-foreground lg:h-[460px] lg:w-[400px] lg:p-8",
1243
1243
  quotePanelClassName
1244
1244
  ),
1245
1245
  children: [
1246
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
1247
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
1246
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-base italic line-clamp-12 lg:line-clamp-14", children: testimonial.quote }),
1247
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 flex shrink-0 items-center", children: [
1248
+ testimonial.avatar && /* @__PURE__ */ jsxRuntime.jsx(
1249
+ img.Img,
1250
+ {
1251
+ src: testimonial.avatar,
1252
+ alt: testimonial.author ? testimonial.author : "Testimonial avatar",
1253
+ loading: "lazy",
1254
+ className: "size-12 rounded-xl shadow-lg mr-2",
1255
+ optixFlowConfig
1256
+ }
1257
+ ),
1258
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-md font-medium", children: testimonial.author })
1259
+ ] }),
1260
+ testimonial.href && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
1261
+ Pressable,
1262
+ {
1263
+ href: testimonial.href,
1264
+ className: "font-semibold text-left uppercase",
1265
+ children: "Read Review"
1266
+ }
1267
+ ) })
1248
1268
  ]
1249
1269
  }
1250
1270
  )
@@ -1271,7 +1291,7 @@ function TestimonialCarouselCards({
1271
1291
  patternClassName,
1272
1292
  className,
1273
1293
  containerClassName: "px-4 md:px-2 lg:px-2",
1274
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start justify-between gap-6 md:gap-4 lg:flex-row", children: [
1294
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start justify-between gap-6 lg:flex-row", children: [
1275
1295
  sidebarContent,
1276
1296
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
1277
1297
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1290,7 +1310,7 @@ function TestimonialCarouselCards({
1290
1310
  "div",
1291
1311
  {
1292
1312
  className: cn(
1293
- "absolute bottom-4 left-1/2 h-0.5 w-60 -translate-x-1/2 rounded",
1313
+ "absolute bottom-4 left-1/2 hidden h-0.5 w-60 -translate-x-1/2 rounded md:block",
1294
1314
  getNestedCardBg(background),
1295
1315
  progressClassName
1296
1316
  ),
@@ -42,6 +42,14 @@ interface TestimonialCarouselItem {
42
42
  * Additional CSS classes for the item
43
43
  */
44
44
  className?: string;
45
+ /**
46
+ * Optional href for the testimonial
47
+ */
48
+ href?: string;
49
+ /**
50
+ * Optional avatar for testimonial
51
+ */
52
+ avatar?: string;
45
53
  }
46
54
  interface TestimonialCarouselCardsProps {
47
55
  /**
@@ -42,6 +42,14 @@ interface TestimonialCarouselItem {
42
42
  * Additional CSS classes for the item
43
43
  */
44
44
  className?: string;
45
+ /**
46
+ * Optional href for the testimonial
47
+ */
48
+ href?: string;
49
+ /**
50
+ * Optional avatar for testimonial
51
+ */
52
+ avatar?: string;
45
53
  }
46
54
  interface TestimonialCarouselCardsProps {
47
55
  /**
@@ -1140,7 +1140,7 @@ function TestimonialCarouselCards({
1140
1140
  "div",
1141
1141
  {
1142
1142
  className: cn(
1143
- "hidden justify-start gap-4 lg:flex",
1143
+ "justify-start gap-2 flex mt-4 md:mt-0",
1144
1144
  controlsClassName
1145
1145
  ),
1146
1146
  children: [
@@ -1197,14 +1197,14 @@ function TestimonialCarouselCards({
1197
1197
  itemClassName,
1198
1198
  testimonial.className
1199
1199
  ),
1200
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 lg:flex-row", children: [
1200
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0 lg:flex-row lg:gap-2", children: [
1201
1201
  /* @__PURE__ */ jsx("div", { className: "h-[200px] w-full lg:h-[460px] lg:w-[400px]", children: /* @__PURE__ */ jsx(
1202
1202
  Img,
1203
1203
  {
1204
1204
  src: testimonial.image,
1205
1205
  alt: typeof testimonial.username === "string" ? testimonial.username : testimonial.imageAlt || "Testimonial image",
1206
1206
  className: cn(
1207
- "h-full w-full rounded-2xl object-cover",
1207
+ "h-full w-full rounded-t-2xl rounded-b-none lg:rounded-2xl object-cover",
1208
1208
  imageClassName
1209
1209
  ),
1210
1210
  loading: "lazy",
@@ -1215,12 +1215,32 @@ function TestimonialCarouselCards({
1215
1215
  "div",
1216
1216
  {
1217
1217
  className: cn(
1218
- "relative flex w-full flex-col items-start justify-end rounded-2xl bg-background p-6 text-foreground lg:h-[460px] lg:w-[400px] lg:p-8",
1218
+ "relative flex w-full flex-col items-start justify-end overflow-hidden rounded-b-2xl rounded-t-none lg:rounded-2xl bg-background p-6 text-foreground lg:h-[460px] lg:w-[400px] lg:p-8",
1219
1219
  quotePanelClassName
1220
1220
  ),
1221
1221
  children: [
1222
- /* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
1223
- /* @__PURE__ */ jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
1222
+ /* @__PURE__ */ jsx("p", { className: "text-lg font-base italic line-clamp-12 lg:line-clamp-14", children: testimonial.quote }),
1223
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 flex shrink-0 items-center", children: [
1224
+ testimonial.avatar && /* @__PURE__ */ jsx(
1225
+ Img,
1226
+ {
1227
+ src: testimonial.avatar,
1228
+ alt: testimonial.author ? testimonial.author : "Testimonial avatar",
1229
+ loading: "lazy",
1230
+ className: "size-12 rounded-xl shadow-lg mr-2",
1231
+ optixFlowConfig
1232
+ }
1233
+ ),
1234
+ /* @__PURE__ */ jsx("div", { className: "text-md font-medium", children: testimonial.author })
1235
+ ] }),
1236
+ testimonial.href && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(
1237
+ Pressable,
1238
+ {
1239
+ href: testimonial.href,
1240
+ className: "font-semibold text-left uppercase",
1241
+ children: "Read Review"
1242
+ }
1243
+ ) })
1224
1244
  ]
1225
1245
  }
1226
1246
  )
@@ -1247,7 +1267,7 @@ function TestimonialCarouselCards({
1247
1267
  patternClassName,
1248
1268
  className,
1249
1269
  containerClassName: "px-4 md:px-2 lg:px-2",
1250
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start justify-between gap-6 md:gap-4 lg:flex-row", children: [
1270
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start justify-between gap-6 lg:flex-row", children: [
1251
1271
  sidebarContent,
1252
1272
  /* @__PURE__ */ jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
1253
1273
  /* @__PURE__ */ jsx(
@@ -1266,7 +1286,7 @@ function TestimonialCarouselCards({
1266
1286
  "div",
1267
1287
  {
1268
1288
  className: cn(
1269
- "absolute bottom-4 left-1/2 h-0.5 w-60 -translate-x-1/2 rounded",
1289
+ "absolute bottom-4 left-1/2 hidden h-0.5 w-60 -translate-x-1/2 rounded md:block",
1270
1290
  getNestedCardBg(background),
1271
1291
  progressClassName
1272
1292
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",