@caratlogic/design-system 0.1.24 → 0.1.25

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.esm.js CHANGED
@@ -67846,7 +67846,7 @@ function CategoryIcon({ entry, showRail, }) {
67846
67846
  return (jsxs("div", { className: "relative self-stretch", children: [jsx("span", { className: cn('relative z-10 flex size-8 items-center justify-center rounded-full', meta.iconClassName), children: jsx(Icon, { className: "size-4", "aria-hidden": "true" }) }), showRail && (jsx("span", { "aria-hidden": "true", className: "absolute top-9 -bottom-4 left-1/2 w-px -translate-x-1/2 bg-border" }))] }));
67847
67847
  }
67848
67848
  function ChangesTable({ changes, }) {
67849
- return (jsxs("div", { className: "overflow-hidden rounded-lg border border-border bg-card", children: [jsx("p", { className: "border-b border-border px-3 py-2 text-[0.625rem] font-semibold tracking-wide text-muted-foreground uppercase", children: "What changed" }), changes.length === 0 ? (jsx("p", { className: "px-3 py-2.5 text-xs text-muted-foreground", children: "No field detail was recorded for this entry." })) : (jsxs("table", { className: "w-full text-sm", "aria-label": ACTIVITY_FEED_ARIA.changesTable, children: [jsx("thead", { children: jsxs("tr", { className: "bg-muted/40 text-left text-xs text-muted-foreground", children: [jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "Field" }), jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "Before" }), jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "After" })] }) }), jsx("tbody", { children: changes.map((change) => (jsxs("tr", { className: "border-t border-border align-top", children: [jsx("th", { scope: "row", className: "px-3 py-2 text-left text-xs font-normal text-secondary-foreground", children: change.field }), jsx("td", { className: "px-3 py-2 text-xs text-muted-foreground line-through", children: change.before ?? 'Not set' }), jsx("td", { className: "px-3 py-2 text-xs font-medium text-foreground", children: change.after ?? 'Not set' })] }, change.field))) })] }))] }));
67849
+ return (jsxs("div", { className: "overflow-hidden rounded-lg border border-border bg-card", children: [jsx("p", { className: "border-b border-border px-3 py-2 text-[0.625rem] font-semibold tracking-wide text-muted-foreground uppercase", children: "What changed" }), changes.length === 0 ? (jsx("p", { className: "px-3 py-2.5 text-xs text-muted-foreground", children: "No field detail was recorded for this entry." })) : (jsxs("table", { className: "w-full text-sm", "aria-label": ACTIVITY_FEED_ARIA.changesTable, children: [jsx("thead", { children: jsxs("tr", { className: "bg-muted/40 text-left text-xs text-muted-foreground", children: [jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "Field" }), jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "Before" }), jsx("th", { scope: "col", className: "px-3 py-1.5 font-normal", children: "After" })] }) }), jsx("tbody", { children: changes.map((change) => (jsxs("tr", { className: "border-t border-border align-top", children: [jsx("th", { scope: "row", className: "px-3 py-2 text-left text-xs font-normal text-secondary-foreground", children: change.field }), jsx("td", { className: "px-3 py-2 text-xs text-muted-foreground", children: change.before ?? 'Not set' }), jsx("td", { className: "px-3 py-2 text-xs font-medium text-foreground", children: change.after ?? 'Not set' })] }, change.field))) })] }))] }));
67850
67850
  }
67851
67851
  function ContactCard({ contact, }) {
67852
67852
  const name = contact.name || contact.company || contact.email || 'Unknown contact';