@opensite/ui 3.7.9 → 3.8.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/blog-cards-tagline-cta.cjs +52 -59
- package/dist/blog-cards-tagline-cta.d.cts +1 -1
- package/dist/blog-cards-tagline-cta.d.ts +1 -1
- package/dist/blog-cards-tagline-cta.js +52 -59
- package/dist/contact-demo.cjs +1 -1
- package/dist/contact-demo.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +731 -457
- package/dist/navbar-enterprise-mega.d.cts +2 -2
- package/dist/navbar-enterprise-mega.d.ts +2 -2
- package/dist/navbar-enterprise-mega.js +731 -457
- package/dist/registry.cjs +785 -526
- package/dist/registry.js +785 -526
- package/dist/stats-bar-comparison.cjs +6 -39
- package/dist/stats-bar-comparison.js +6 -39
- package/package.json +1 -1
|
@@ -32,36 +32,6 @@ var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
|
32
32
|
function cn(...inputs) {
|
|
33
33
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
34
34
|
}
|
|
35
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
36
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
37
|
-
if (isDark) {
|
|
38
|
-
switch (variant) {
|
|
39
|
-
case "muted":
|
|
40
|
-
return "bg-background";
|
|
41
|
-
case "card":
|
|
42
|
-
return "bg-card";
|
|
43
|
-
case "accent":
|
|
44
|
-
return "bg-accent";
|
|
45
|
-
case "subtle":
|
|
46
|
-
return "bg-background/50";
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
switch (variant) {
|
|
50
|
-
case "muted":
|
|
51
|
-
return "bg-muted";
|
|
52
|
-
case "card":
|
|
53
|
-
return "bg-card";
|
|
54
|
-
case "accent":
|
|
55
|
-
return "bg-accent";
|
|
56
|
-
case "subtle":
|
|
57
|
-
return "bg-muted/50";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
62
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
63
|
-
return isDark ? "text-foreground" : "";
|
|
64
|
-
}
|
|
65
35
|
var badgeVariants = classVarianceAuthority.cva(
|
|
66
36
|
"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",
|
|
67
37
|
{
|
|
@@ -518,7 +488,7 @@ function StatsBarComparison({
|
|
|
518
488
|
const badgeContent = React3.useMemo(() => {
|
|
519
489
|
if (badgeSlot) return badgeSlot;
|
|
520
490
|
if (!badge) return null;
|
|
521
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge, {
|
|
491
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { className: cn("mb-4", badgeClassName), children: badge });
|
|
522
492
|
}, [badgeSlot, badge, badgeClassName]);
|
|
523
493
|
const comparisonsContent = React3.useMemo(() => {
|
|
524
494
|
if (comparisonsSlot) return comparisonsSlot;
|
|
@@ -527,9 +497,7 @@ function StatsBarComparison({
|
|
|
527
497
|
"div",
|
|
528
498
|
{
|
|
529
499
|
className: cn(
|
|
530
|
-
"rounded-xl border p-6",
|
|
531
|
-
getNestedCardBg(background, "card"),
|
|
532
|
-
getNestedCardTextColor(background),
|
|
500
|
+
"rounded-xl border p-6 bg-card text-card-foreground",
|
|
533
501
|
group.className,
|
|
534
502
|
groupCardClassName
|
|
535
503
|
),
|
|
@@ -540,7 +508,7 @@ function StatsBarComparison({
|
|
|
540
508
|
className: cn("mb-6 text-lg font-semibold", groupTitleClassName),
|
|
541
509
|
children: group.title
|
|
542
510
|
}
|
|
543
|
-
) :
|
|
511
|
+
) : group.title),
|
|
544
512
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: group.bars.map((bar, barIndex) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: bar.className, children: [
|
|
545
513
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
546
514
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm font-medium", barLabelClassName), children: bar.label }),
|
|
@@ -551,7 +519,6 @@ function StatsBarComparison({
|
|
|
551
519
|
{
|
|
552
520
|
className: cn(
|
|
553
521
|
"h-3 w-full overflow-hidden rounded-full",
|
|
554
|
-
getNestedCardBg(background, "muted"),
|
|
555
522
|
barTrackClassName
|
|
556
523
|
),
|
|
557
524
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -609,17 +576,17 @@ function StatsBarComparison({
|
|
|
609
576
|
),
|
|
610
577
|
children: heading
|
|
611
578
|
}
|
|
612
|
-
) :
|
|
579
|
+
) : heading),
|
|
613
580
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
614
581
|
"p",
|
|
615
582
|
{
|
|
616
583
|
className: cn(
|
|
617
|
-
"mx-auto max-w-
|
|
584
|
+
"mx-auto max-w-full md:max-w-md text-balance opacity-70",
|
|
618
585
|
descriptionClassName
|
|
619
586
|
),
|
|
620
587
|
children: description
|
|
621
588
|
}
|
|
622
|
-
) :
|
|
589
|
+
) : description)
|
|
623
590
|
] }),
|
|
624
591
|
(comparisonsSlot || comparisons && comparisons.length > 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-10", comparisonsClassName), children: comparisonsContent })
|
|
625
592
|
] })
|
|
@@ -11,36 +11,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
11
11
|
function cn(...inputs) {
|
|
12
12
|
return twMerge(clsx(inputs));
|
|
13
13
|
}
|
|
14
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
15
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
16
|
-
if (isDark) {
|
|
17
|
-
switch (variant) {
|
|
18
|
-
case "muted":
|
|
19
|
-
return "bg-background";
|
|
20
|
-
case "card":
|
|
21
|
-
return "bg-card";
|
|
22
|
-
case "accent":
|
|
23
|
-
return "bg-accent";
|
|
24
|
-
case "subtle":
|
|
25
|
-
return "bg-background/50";
|
|
26
|
-
}
|
|
27
|
-
} else {
|
|
28
|
-
switch (variant) {
|
|
29
|
-
case "muted":
|
|
30
|
-
return "bg-muted";
|
|
31
|
-
case "card":
|
|
32
|
-
return "bg-card";
|
|
33
|
-
case "accent":
|
|
34
|
-
return "bg-accent";
|
|
35
|
-
case "subtle":
|
|
36
|
-
return "bg-muted/50";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
41
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
42
|
-
return isDark ? "text-foreground" : "";
|
|
43
|
-
}
|
|
44
14
|
var badgeVariants = cva(
|
|
45
15
|
"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",
|
|
46
16
|
{
|
|
@@ -497,7 +467,7 @@ function StatsBarComparison({
|
|
|
497
467
|
const badgeContent = useMemo(() => {
|
|
498
468
|
if (badgeSlot) return badgeSlot;
|
|
499
469
|
if (!badge) return null;
|
|
500
|
-
return /* @__PURE__ */ jsx(Badge, {
|
|
470
|
+
return /* @__PURE__ */ jsx(Badge, { className: cn("mb-4", badgeClassName), children: badge });
|
|
501
471
|
}, [badgeSlot, badge, badgeClassName]);
|
|
502
472
|
const comparisonsContent = useMemo(() => {
|
|
503
473
|
if (comparisonsSlot) return comparisonsSlot;
|
|
@@ -506,9 +476,7 @@ function StatsBarComparison({
|
|
|
506
476
|
"div",
|
|
507
477
|
{
|
|
508
478
|
className: cn(
|
|
509
|
-
"rounded-xl border p-6",
|
|
510
|
-
getNestedCardBg(background, "card"),
|
|
511
|
-
getNestedCardTextColor(background),
|
|
479
|
+
"rounded-xl border p-6 bg-card text-card-foreground",
|
|
512
480
|
group.className,
|
|
513
481
|
groupCardClassName
|
|
514
482
|
),
|
|
@@ -519,7 +487,7 @@ function StatsBarComparison({
|
|
|
519
487
|
className: cn("mb-6 text-lg font-semibold", groupTitleClassName),
|
|
520
488
|
children: group.title
|
|
521
489
|
}
|
|
522
|
-
) :
|
|
490
|
+
) : group.title),
|
|
523
491
|
/* @__PURE__ */ jsx("div", { className: "space-y-4", children: group.bars.map((bar, barIndex) => /* @__PURE__ */ jsxs("div", { className: bar.className, children: [
|
|
524
492
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
525
493
|
/* @__PURE__ */ jsx("span", { className: cn("text-sm font-medium", barLabelClassName), children: bar.label }),
|
|
@@ -530,7 +498,6 @@ function StatsBarComparison({
|
|
|
530
498
|
{
|
|
531
499
|
className: cn(
|
|
532
500
|
"h-3 w-full overflow-hidden rounded-full",
|
|
533
|
-
getNestedCardBg(background, "muted"),
|
|
534
501
|
barTrackClassName
|
|
535
502
|
),
|
|
536
503
|
children: /* @__PURE__ */ jsx(
|
|
@@ -588,17 +555,17 @@ function StatsBarComparison({
|
|
|
588
555
|
),
|
|
589
556
|
children: heading
|
|
590
557
|
}
|
|
591
|
-
) :
|
|
558
|
+
) : heading),
|
|
592
559
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
593
560
|
"p",
|
|
594
561
|
{
|
|
595
562
|
className: cn(
|
|
596
|
-
"mx-auto max-w-
|
|
563
|
+
"mx-auto max-w-full md:max-w-md text-balance opacity-70",
|
|
597
564
|
descriptionClassName
|
|
598
565
|
),
|
|
599
566
|
children: description
|
|
600
567
|
}
|
|
601
|
-
) :
|
|
568
|
+
) : description)
|
|
602
569
|
] }),
|
|
603
570
|
(comparisonsSlot || comparisons && comparisons.length > 0) && /* @__PURE__ */ jsx("div", { className: cn("space-y-10", comparisonsClassName), children: comparisonsContent })
|
|
604
571
|
] })
|