@mediaradar/design-components 0.13.0 → 0.14.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
@@ -517,17 +517,22 @@ var TONE_STYLE = {
517
517
  }
518
518
  };
519
519
  var KIND = {
520
- label: "px-2 py-0.5",
520
+ // Twice the vertical room the first version had. At py-0.5 the pill hugged
521
+ // its text and read as a tight little tag; at py-1 it reads as a deliberate
522
+ // object. Taken from the status pills the product had already arrived at by
523
+ // hand, which were noticeably more comfortable than anything else -- the
524
+ // breathing room was what made them so, not their extra pixel of type.
525
+ label: "px-2.5 py-1",
521
526
  // Square-ish and centred, with a floor width so a 1-digit and a 3-digit
522
527
  // count are the same shape, and lining figures so the width does not shift
523
528
  // as the number changes.
524
529
  count: "h-[18px] min-w-[18px] justify-center px-1.5 tabular-nums",
525
530
  // The only kind that shouts. Caps need the letterspacing -- caps set tight
526
531
  // are harder to read than the sentence case they replaced.
527
- eyebrow: "px-2 py-0.5 uppercase tracking-wider"
532
+ eyebrow: "px-2.5 py-1 uppercase tracking-wider"
528
533
  };
529
- function Badge({ tone = "neutral", kind = "label", children, className }) {
530
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
534
+ function Badge({ tone = "neutral", kind = "label", dot = false, children, className }) {
535
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
531
536
  "span",
532
537
  {
533
538
  style: TONE_STYLE[tone],
@@ -541,7 +546,10 @@ function Badge({ tone = "neutral", kind = "label", children, className }) {
541
546
  KIND[kind],
542
547
  className
543
548
  ),
544
- children
549
+ children: [
550
+ dot && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "aria-hidden": "true", className: "size-1.5 shrink-0 rounded-full bg-current" }),
551
+ children
552
+ ]
545
553
  }
546
554
  );
547
555
  }