@mediaradar/design-components 0.17.0 → 0.18.0

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.cjs CHANGED
@@ -1562,7 +1562,7 @@ function SelectFilter({
1562
1562
  // src/Card.tsx
1563
1563
  var import_react8 = require("react");
1564
1564
  var import_jsx_runtime12 = require("react/jsx-runtime");
1565
- var Card = (0, import_react8.forwardRef)(function Card2({ staticCard, title, subtitle, action, className, children, ...rest }, ref) {
1565
+ var Card = (0, import_react8.forwardRef)(function Card2({ staticCard, title, titleAs: TitleTag = "h3", subtitle, action, className, children, ...rest }, ref) {
1566
1566
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1567
1567
  "article",
1568
1568
  {
@@ -1577,8 +1577,8 @@ var Card = (0, import_react8.forwardRef)(function Card2({ staticCard, title, sub
1577
1577
  children: title ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-1 flex-col p-card-padding", children: [
1578
1578
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
1579
1579
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
1580
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "text-[15px] font-semibold leading-snug text-text-primary", children: title }),
1581
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "mt-0.5 text-[12px] leading-snug text-text-tertiary", children: subtitle })
1580
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TitleTag, { className: "text-style-card-title", children: title }),
1581
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "mt-0.5 text-xs leading-snug text-text-tertiary", children: subtitle })
1582
1582
  ] }),
1583
1583
  action && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "shrink-0 text-text-tertiary", children: action })
1584
1584
  ] }),