@opensite/ui 1.2.0 → 1.2.2
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/auto-scroll-carousel.cjs +7 -9
- package/dist/auto-scroll-carousel.js +7 -9
- package/dist/blur-vignette-grid.cjs +19 -27
- package/dist/blur-vignette-grid.js +19 -27
- package/dist/carousel-badge-cards.cjs +1 -1
- package/dist/carousel-badge-cards.js +1 -1
- package/dist/carousel-gradient-overlay.cjs +1 -1
- package/dist/carousel-gradient-overlay.js +1 -1
- package/dist/carousel-gradient-text.cjs +6 -17
- package/dist/carousel-gradient-text.d.cts +4 -0
- package/dist/carousel-gradient-text.d.ts +4 -0
- package/dist/carousel-gradient-text.js +6 -17
- package/dist/carousel-icon-sidebar.cjs +49 -6
- package/dist/carousel-icon-sidebar.d.cts +19 -3
- package/dist/carousel-icon-sidebar.d.ts +19 -3
- package/dist/carousel-icon-sidebar.js +49 -6
- package/dist/carousel-icon-tabs.cjs +20 -6
- package/dist/carousel-icon-tabs.js +20 -6
- package/dist/carousel-scale-focus.cjs +4 -10
- package/dist/carousel-scale-focus.js +4 -10
- package/dist/carousel-tabs-content.cjs +6 -18
- package/dist/carousel-tabs-content.js +6 -18
- package/dist/expandable-case-study-cards.cjs +39 -80
- package/dist/expandable-case-study-cards.js +39 -80
- package/dist/interior-carousel.cjs +9 -12
- package/dist/interior-carousel.js +9 -12
- package/dist/masonry-motion-grid.cjs +5 -16
- package/dist/masonry-motion-grid.js +5 -16
- package/dist/registry.cjs +7660 -7687
- package/dist/registry.js +7658 -7685
- package/dist/testimonial-carousel-cards.cjs +10 -63
- package/dist/testimonial-carousel-cards.js +10 -63
- package/package.json +1 -1
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
var React4 = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
8
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
9
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
8
|
var img = require('@page-speed/img');
|
|
9
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
11
10
|
var useEmblaCarousel = require('embla-carousel-react');
|
|
12
11
|
|
|
13
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -63,38 +62,6 @@ function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
var badgeVariants = classVarianceAuthority.cva(
|
|
67
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
68
|
-
{
|
|
69
|
-
variants: {
|
|
70
|
-
variant: {
|
|
71
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
72
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
73
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
74
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
variant: "default"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
function Badge({
|
|
83
|
-
className,
|
|
84
|
-
variant,
|
|
85
|
-
asChild = false,
|
|
86
|
-
...props
|
|
87
|
-
}) {
|
|
88
|
-
const Comp = asChild ? reactSlot.Slot : "span";
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
Comp,
|
|
91
|
-
{
|
|
92
|
-
"data-slot": "badge",
|
|
93
|
-
className: cn(badgeVariants({ variant }), className),
|
|
94
|
-
...props
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
65
|
var svgCache = /* @__PURE__ */ new Map();
|
|
99
66
|
function DynamicIcon({
|
|
100
67
|
name,
|
|
@@ -1191,16 +1158,7 @@ function TestimonialCarouselCards({
|
|
|
1191
1158
|
children: heading
|
|
1192
1159
|
}
|
|
1193
1160
|
),
|
|
1194
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1195
|
-
"p",
|
|
1196
|
-
{
|
|
1197
|
-
className: cn(
|
|
1198
|
-
"text-lg text-muted-foreground",
|
|
1199
|
-
descriptionClassName
|
|
1200
|
-
),
|
|
1201
|
-
children: description
|
|
1202
|
-
}
|
|
1203
|
-
)
|
|
1161
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-md", descriptionClassName), children: description })
|
|
1204
1162
|
] }),
|
|
1205
1163
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1206
1164
|
"div",
|
|
@@ -1259,18 +1217,18 @@ function TestimonialCarouselCards({
|
|
|
1259
1217
|
CarouselItem,
|
|
1260
1218
|
{
|
|
1261
1219
|
className: cn(
|
|
1262
|
-
"min-w-
|
|
1220
|
+
"min-w-full flex-1 lg:min-w-[800px]",
|
|
1263
1221
|
itemClassName,
|
|
1264
1222
|
testimonial.className
|
|
1265
1223
|
),
|
|
1266
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
1267
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[460px] w-[400px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1224
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 lg:flex-row", children: [
|
|
1225
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-full lg:h-[460px] lg:w-[400px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1268
1226
|
img.Img,
|
|
1269
1227
|
{
|
|
1270
1228
|
src: testimonial.image,
|
|
1271
1229
|
alt: typeof testimonial.username === "string" ? testimonial.username : testimonial.imageAlt || "Testimonial image",
|
|
1272
1230
|
className: cn(
|
|
1273
|
-
"
|
|
1231
|
+
"h-full w-full rounded-2xl object-cover",
|
|
1274
1232
|
imageClassName
|
|
1275
1233
|
),
|
|
1276
1234
|
loading: "lazy",
|
|
@@ -1281,23 +1239,11 @@ function TestimonialCarouselCards({
|
|
|
1281
1239
|
"div",
|
|
1282
1240
|
{
|
|
1283
1241
|
className: cn(
|
|
1284
|
-
"relative flex
|
|
1285
|
-
testimonial.bgColor,
|
|
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",
|
|
1286
1243
|
quotePanelClassName
|
|
1287
1244
|
),
|
|
1288
1245
|
children: [
|
|
1289
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1290
|
-
Badge,
|
|
1291
|
-
{
|
|
1292
|
-
className: cn(
|
|
1293
|
-
"mb-auto bg-background px-4 py-2",
|
|
1294
|
-
badgeClassName
|
|
1295
|
-
),
|
|
1296
|
-
children: testimonial.username
|
|
1297
|
-
}
|
|
1298
|
-
),
|
|
1299
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "-rotate-[4deg] text-7xl leading-none", children: '"' }),
|
|
1300
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xl font-semibold", children: testimonial.quote }),
|
|
1246
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
|
|
1301
1247
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
|
|
1302
1248
|
]
|
|
1303
1249
|
}
|
|
@@ -1324,7 +1270,8 @@ function TestimonialCarouselCards({
|
|
|
1324
1270
|
patternOpacity,
|
|
1325
1271
|
patternClassName,
|
|
1326
1272
|
className,
|
|
1327
|
-
|
|
1273
|
+
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: [
|
|
1328
1275
|
sidebarContent,
|
|
1329
1276
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
|
|
1330
1277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3,10 +3,9 @@ import * as React4 from 'react';
|
|
|
3
3
|
import React4__default, { useState, useEffect, useMemo } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
7
|
-
import { cva } from 'class-variance-authority';
|
|
8
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
7
|
import { Img } from '@page-speed/img';
|
|
8
|
+
import { cva } from 'class-variance-authority';
|
|
10
9
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
11
10
|
|
|
12
11
|
// components/blocks/gallery/testimonial-carousel-cards.tsx
|
|
@@ -39,38 +38,6 @@ function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
var badgeVariants = cva(
|
|
43
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
44
|
-
{
|
|
45
|
-
variants: {
|
|
46
|
-
variant: {
|
|
47
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
48
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
49
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
50
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
defaultVariants: {
|
|
54
|
-
variant: "default"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
function Badge({
|
|
59
|
-
className,
|
|
60
|
-
variant,
|
|
61
|
-
asChild = false,
|
|
62
|
-
...props
|
|
63
|
-
}) {
|
|
64
|
-
const Comp = asChild ? Slot : "span";
|
|
65
|
-
return /* @__PURE__ */ jsx(
|
|
66
|
-
Comp,
|
|
67
|
-
{
|
|
68
|
-
"data-slot": "badge",
|
|
69
|
-
className: cn(badgeVariants({ variant }), className),
|
|
70
|
-
...props
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
41
|
var svgCache = /* @__PURE__ */ new Map();
|
|
75
42
|
function DynamicIcon({
|
|
76
43
|
name,
|
|
@@ -1167,16 +1134,7 @@ function TestimonialCarouselCards({
|
|
|
1167
1134
|
children: heading
|
|
1168
1135
|
}
|
|
1169
1136
|
),
|
|
1170
|
-
/* @__PURE__ */ jsx(
|
|
1171
|
-
"p",
|
|
1172
|
-
{
|
|
1173
|
-
className: cn(
|
|
1174
|
-
"text-lg text-muted-foreground",
|
|
1175
|
-
descriptionClassName
|
|
1176
|
-
),
|
|
1177
|
-
children: description
|
|
1178
|
-
}
|
|
1179
|
-
)
|
|
1137
|
+
/* @__PURE__ */ jsx("p", { className: cn("text-md", descriptionClassName), children: description })
|
|
1180
1138
|
] }),
|
|
1181
1139
|
/* @__PURE__ */ jsxs(
|
|
1182
1140
|
"div",
|
|
@@ -1235,18 +1193,18 @@ function TestimonialCarouselCards({
|
|
|
1235
1193
|
CarouselItem,
|
|
1236
1194
|
{
|
|
1237
1195
|
className: cn(
|
|
1238
|
-
"min-w-
|
|
1196
|
+
"min-w-full flex-1 lg:min-w-[800px]",
|
|
1239
1197
|
itemClassName,
|
|
1240
1198
|
testimonial.className
|
|
1241
1199
|
),
|
|
1242
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
1243
|
-
/* @__PURE__ */ jsx("div", { className: "h-[460px] w-[400px]", children: /* @__PURE__ */ jsx(
|
|
1200
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 lg:flex-row", children: [
|
|
1201
|
+
/* @__PURE__ */ jsx("div", { className: "h-[200px] w-full lg:h-[460px] lg:w-[400px]", children: /* @__PURE__ */ jsx(
|
|
1244
1202
|
Img,
|
|
1245
1203
|
{
|
|
1246
1204
|
src: testimonial.image,
|
|
1247
1205
|
alt: typeof testimonial.username === "string" ? testimonial.username : testimonial.imageAlt || "Testimonial image",
|
|
1248
1206
|
className: cn(
|
|
1249
|
-
"
|
|
1207
|
+
"h-full w-full rounded-2xl object-cover",
|
|
1250
1208
|
imageClassName
|
|
1251
1209
|
),
|
|
1252
1210
|
loading: "lazy",
|
|
@@ -1257,23 +1215,11 @@ function TestimonialCarouselCards({
|
|
|
1257
1215
|
"div",
|
|
1258
1216
|
{
|
|
1259
1217
|
className: cn(
|
|
1260
|
-
"relative flex
|
|
1261
|
-
testimonial.bgColor,
|
|
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",
|
|
1262
1219
|
quotePanelClassName
|
|
1263
1220
|
),
|
|
1264
1221
|
children: [
|
|
1265
|
-
/* @__PURE__ */ jsx(
|
|
1266
|
-
Badge,
|
|
1267
|
-
{
|
|
1268
|
-
className: cn(
|
|
1269
|
-
"mb-auto bg-background px-4 py-2",
|
|
1270
|
-
badgeClassName
|
|
1271
|
-
),
|
|
1272
|
-
children: testimonial.username
|
|
1273
|
-
}
|
|
1274
|
-
),
|
|
1275
|
-
/* @__PURE__ */ jsx("span", { className: "-rotate-[4deg] text-7xl leading-none", children: '"' }),
|
|
1276
|
-
/* @__PURE__ */ jsx("p", { className: "text-xl font-semibold", children: testimonial.quote }),
|
|
1222
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
|
|
1277
1223
|
/* @__PURE__ */ jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
|
|
1278
1224
|
]
|
|
1279
1225
|
}
|
|
@@ -1300,7 +1246,8 @@ function TestimonialCarouselCards({
|
|
|
1300
1246
|
patternOpacity,
|
|
1301
1247
|
patternClassName,
|
|
1302
1248
|
className,
|
|
1303
|
-
|
|
1249
|
+
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: [
|
|
1304
1251
|
sidebarContent,
|
|
1305
1252
|
/* @__PURE__ */ jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
|
|
1306
1253
|
/* @__PURE__ */ jsx(
|