@opensite/ui 1.2.0 → 1.2.1
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 +4 -4
- package/dist/auto-scroll-carousel.js +4 -4
- 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-icon-sidebar.cjs +33 -3
- package/dist/carousel-icon-sidebar.d.cts +19 -3
- package/dist/carousel-icon-sidebar.d.ts +19 -3
- package/dist/carousel-icon-sidebar.js +33 -3
- package/dist/carousel-icon-tabs.cjs +19 -5
- package/dist/carousel-icon-tabs.js +19 -5
- package/dist/carousel-scale-focus.cjs +4 -10
- package/dist/carousel-scale-focus.js +4 -10
- package/dist/carousel-tabs-content.cjs +4 -16
- package/dist/carousel-tabs-content.js +4 -16
- package/dist/expandable-case-study-cards.cjs +27 -73
- package/dist/expandable-case-study-cards.js +27 -73
- package/dist/interior-carousel.cjs +8 -11
- package/dist/interior-carousel.js +8 -11
- package/dist/masonry-motion-grid.cjs +4 -16
- package/dist/masonry-motion-grid.js +4 -16
- package/dist/registry.cjs +129 -163
- package/dist/registry.js +129 -163
- package/dist/testimonial-carousel-cards.cjs +6 -60
- package/dist/testimonial-carousel-cards.js +6 -60
- 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",
|
|
@@ -1281,23 +1239,10 @@ function TestimonialCarouselCards({
|
|
|
1281
1239
|
"div",
|
|
1282
1240
|
{
|
|
1283
1241
|
className: cn(
|
|
1284
|
-
"relative flex h-[460px] w-[400px] flex-col items-start justify-end rounded-2xl p-8"
|
|
1285
|
-
testimonial.bgColor,
|
|
1286
|
-
quotePanelClassName
|
|
1242
|
+
"relative bg-background text-foreground flex h-[460px] w-[400px] flex-col items-start justify-end rounded-2xl p-8"
|
|
1287
1243
|
),
|
|
1288
1244
|
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 }),
|
|
1245
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
|
|
1301
1246
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
|
|
1302
1247
|
]
|
|
1303
1248
|
}
|
|
@@ -1324,7 +1269,8 @@ function TestimonialCarouselCards({
|
|
|
1324
1269
|
patternOpacity,
|
|
1325
1270
|
patternClassName,
|
|
1326
1271
|
className,
|
|
1327
|
-
|
|
1272
|
+
containerClassName: "px-4",
|
|
1273
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start justify-between gap-4 lg:flex-row ", children: [
|
|
1328
1274
|
sidebarContent,
|
|
1329
1275
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
|
|
1330
1276
|
/* @__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",
|
|
@@ -1257,23 +1215,10 @@ function TestimonialCarouselCards({
|
|
|
1257
1215
|
"div",
|
|
1258
1216
|
{
|
|
1259
1217
|
className: cn(
|
|
1260
|
-
"relative flex h-[460px] w-[400px] flex-col items-start justify-end rounded-2xl p-8"
|
|
1261
|
-
testimonial.bgColor,
|
|
1262
|
-
quotePanelClassName
|
|
1218
|
+
"relative bg-background text-foreground flex h-[460px] w-[400px] flex-col items-start justify-end rounded-2xl p-8"
|
|
1263
1219
|
),
|
|
1264
1220
|
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 }),
|
|
1221
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", children: testimonial.quote }),
|
|
1277
1222
|
/* @__PURE__ */ jsx("p", { className: "mt-4 text-lg font-medium", children: testimonial.author })
|
|
1278
1223
|
]
|
|
1279
1224
|
}
|
|
@@ -1300,7 +1245,8 @@ function TestimonialCarouselCards({
|
|
|
1300
1245
|
patternOpacity,
|
|
1301
1246
|
patternClassName,
|
|
1302
1247
|
className,
|
|
1303
|
-
|
|
1248
|
+
containerClassName: "px-4",
|
|
1249
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start justify-between gap-4 lg:flex-row ", children: [
|
|
1304
1250
|
sidebarContent,
|
|
1305
1251
|
/* @__PURE__ */ jsxs("div", { className: "relative w-full overflow-hidden pb-12 lg:flex-1", children: [
|
|
1306
1252
|
/* @__PURE__ */ jsx(
|