@caqophony/ui 0.6.4 → 0.6.5
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/index.js +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4500,10 +4500,11 @@ PageContent.displayName = "PageContent";
|
|
|
4500
4500
|
import * as React37 from "react";
|
|
4501
4501
|
import { jsx as jsx51, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4502
4502
|
var MEDIA_SIZE = {
|
|
4503
|
-
sm: "h-8 w-8",
|
|
4504
|
-
md: "h-10 w-10",
|
|
4505
|
-
lg: "h-12 w-12"
|
|
4503
|
+
sm: "min-h-8 min-w-8",
|
|
4504
|
+
md: "min-h-10 min-w-10",
|
|
4505
|
+
lg: "min-h-12 min-w-12"
|
|
4506
4506
|
};
|
|
4507
|
+
var MEDIA_SLOT = "flex flex-shrink-0 items-center justify-center";
|
|
4507
4508
|
var MediaObject = React37.forwardRef(
|
|
4508
4509
|
({
|
|
4509
4510
|
className,
|
|
@@ -4527,7 +4528,7 @@ var MediaObject = React37.forwardRef(
|
|
|
4527
4528
|
),
|
|
4528
4529
|
...props,
|
|
4529
4530
|
children: [
|
|
4530
|
-
/* @__PURE__ */ jsx51("div", { className: cn(
|
|
4531
|
+
/* @__PURE__ */ jsx51("div", { className: cn(MEDIA_SLOT, MEDIA_SIZE[mediaSize]), children: media }),
|
|
4531
4532
|
/* @__PURE__ */ jsxs40("div", { className: "min-w-0", children: [
|
|
4532
4533
|
title && /* @__PURE__ */ jsx51("p", { className: "font-medium text-foreground", children: title }),
|
|
4533
4534
|
description && /* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
|
|
@@ -4548,7 +4549,7 @@ var MediaObject = React37.forwardRef(
|
|
|
4548
4549
|
),
|
|
4549
4550
|
...props,
|
|
4550
4551
|
children: [
|
|
4551
|
-
/* @__PURE__ */ jsx51("div", { className: cn(
|
|
4552
|
+
/* @__PURE__ */ jsx51("div", { className: cn(MEDIA_SLOT, MEDIA_SIZE[mediaSize]), children: media }),
|
|
4552
4553
|
/* @__PURE__ */ jsxs40("div", { className: "min-w-0 flex-1", children: [
|
|
4553
4554
|
title && /* @__PURE__ */ jsx51("p", { className: "font-medium text-foreground", children: title }),
|
|
4554
4555
|
description && /* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
|
|
@@ -4597,7 +4598,14 @@ var PageHeading = React38.forwardRef(
|
|
|
4597
4598
|
...props,
|
|
4598
4599
|
children: [
|
|
4599
4600
|
/* @__PURE__ */ jsxs41("div", { className: "flex min-w-0 flex-1 flex-col gap-1 sm:basis-80", children: [
|
|
4600
|
-
/* @__PURE__ */ jsx52(
|
|
4601
|
+
/* @__PURE__ */ jsx52(
|
|
4602
|
+
"h1",
|
|
4603
|
+
{
|
|
4604
|
+
className: "line-clamp-2 break-words text-2xl font-semibold tracking-tight text-foreground sm:text-3xl",
|
|
4605
|
+
title: typeof title === "string" ? title : void 0,
|
|
4606
|
+
children: title
|
|
4607
|
+
}
|
|
4608
|
+
),
|
|
4601
4609
|
description && /* @__PURE__ */ jsx52("p", { className: "break-words text-sm text-muted-foreground sm:text-base", children: description }),
|
|
4602
4610
|
meta && /* @__PURE__ */ jsx52("div", { className: "mt-2 flex flex-wrap gap-2", children: meta })
|
|
4603
4611
|
] }),
|