@orangecheck/design 0.21.0 → 0.23.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.
@@ -153,11 +153,11 @@ var COL_CLASS = {
153
153
  4: "md:grid-cols-2 lg:grid-cols-4"
154
154
  };
155
155
  function StatGrid({ items, columns = 3, className = "" }) {
156
- return /* @__PURE__ */ jsx("div", { className: `bg-border grid gap-px border ${COL_CLASS[columns]} ${className}`, children: items.map((it, i) => /* @__PURE__ */ jsx(Tile, { item: it }, `${it.label}-${i}`)) });
156
+ return /* @__PURE__ */ jsx("div", { className: `oc-stat-grid bg-border grid gap-px border ${COL_CLASS[columns]} ${className}`, children: items.map((it, i) => /* @__PURE__ */ jsx(Tile, { item: it }, `${it.label}-${i}`)) });
157
157
  }
158
158
  function Tile({ item }) {
159
159
  const tone = item.tone ?? (item.accent ? "primary" : "default");
160
- return /* @__PURE__ */ jsxs("div", { className: "bg-background p-5", children: [
160
+ return /* @__PURE__ */ jsxs("div", { className: "oc-stat-tile bg-background p-5", children: [
161
161
  /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/80 font-mono text-[10px] tracking-widest uppercase", children: item.label }),
162
162
  /* @__PURE__ */ jsx(
163
163
  "div",
@@ -210,7 +210,7 @@ function StatBlock({ label, value, sub, delta, tone = "default", className }) {
210
210
  ] });
211
211
  }
212
212
  function StatCard({ pad = "default", className, ...stat }) {
213
- return /* @__PURE__ */ jsx("div", { className: cn("border bg-card", pad === "sm" ? "p-3 md:p-4" : "p-5", className), children: /* @__PURE__ */ jsx(StatBlock, { ...stat }) });
213
+ return /* @__PURE__ */ jsx("div", { className: cn("oc-stat-card border bg-card", pad === "sm" ? "p-3 md:p-4" : "p-5", className), children: /* @__PURE__ */ jsx(StatBlock, { ...stat }) });
214
214
  }
215
215
  var FRAME = {
216
216
  info: "border-primary/30 bg-primary/5",
@@ -247,7 +247,7 @@ function DefinitionList({ items, className }) {
247
247
  "dl",
248
248
  {
249
249
  className: cn(
250
- "grid gap-x-5 gap-y-2 text-sm sm:grid-cols-[auto_1fr] sm:items-baseline",
250
+ "oc-deflist grid gap-x-5 gap-y-2 text-sm sm:grid-cols-[auto_1fr] sm:items-baseline",
251
251
  className
252
252
  ),
253
253
  children: items.map((item, i) => /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -263,7 +263,7 @@ function DataRow({ children, meta, action, as, className }) {
263
263
  Tag,
264
264
  {
265
265
  className: cn(
266
- "flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-4",
266
+ "oc-data-row flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-4",
267
267
  className
268
268
  ),
269
269
  children: [
@@ -276,6 +276,19 @@ function DataRow({ children, meta, action, as, className }) {
276
276
  }
277
277
  );
278
278
  }
279
+ function Panel({ label, title, action, flush, className, children }) {
280
+ const hasHeader = label || title || action;
281
+ return /* @__PURE__ */ jsxs("section", { className: cn("oc-panel py-8", !flush && "border-t", className), children: [
282
+ hasHeader && /* @__PURE__ */ jsxs("div", { className: "mb-4 flex items-start justify-between gap-3", children: [
283
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
284
+ label && /* @__PURE__ */ jsx("div", { className: "label-mono text-primary mb-1", children: label }),
285
+ title && /* @__PURE__ */ jsx("h2", { className: "font-display text-lg font-bold tracking-tight", children: title })
286
+ ] }),
287
+ action && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: action })
288
+ ] }),
289
+ children
290
+ ] });
291
+ }
279
292
  function TwoToneHeading({
280
293
  lead,
281
294
  muted,
@@ -285,7 +298,7 @@ function TwoToneHeading({
285
298
  }) {
286
299
  const Tag = as ?? "h2";
287
300
  const leadColor = tone === "onBrand" ? "text-primary-foreground" : "text-foreground";
288
- const mutedColor = tone === "onBrand" ? "text-primary-foreground/60" : "text-foreground/40";
301
+ const mutedColor = tone === "onBrand" ? "text-primary-foreground/75" : "text-foreground/40";
289
302
  return /* @__PURE__ */ jsxs(
290
303
  Tag,
291
304
  {
@@ -2948,6 +2961,6 @@ function OcAppBar({
2948
2961
  );
2949
2962
  }
2950
2963
 
2951
- export { AccentList, AccentNote, AppShell, BrandBand, Callout, CheckList, ComparisonTable, DataRow, DefinitionList, EcosystemSwitcher, EmailCapture, EmptyState, FAMILY_PROPERTIES, Faq, FeatureCard, HelpHint, LayoutSubHeader, MarketingHeading, NumberedStep, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, Section, SectionHeader, StatCard, StatGrid, StatTile, StepList, TwoToneHeading, VerifiedChip, findFamilyProperty };
2964
+ export { AccentList, AccentNote, AppShell, BrandBand, Callout, CheckList, ComparisonTable, DataRow, DefinitionList, EcosystemSwitcher, EmailCapture, EmptyState, FAMILY_PROPERTIES, Faq, FeatureCard, HelpHint, LayoutSubHeader, MarketingHeading, NumberedStep, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, Panel, SITE_STATE_LABEL, Section, SectionHeader, StatCard, StatGrid, StatTile, StepList, TwoToneHeading, VerifiedChip, findFamilyProperty };
2952
2965
  //# sourceMappingURL=components.mjs.map
2953
2966
  //# sourceMappingURL=components.mjs.map