@danxbot/ui 15.32.0 → 15.32.2

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 CHANGED
@@ -54482,7 +54482,21 @@ function P0(e) {
54482
54482
  };
54483
54483
  }
54484
54484
  function RW({ node: e, context: t }) {
54485
- const { role: n, compact: r, active: o, selected: s, labelPlacement: i } = t, a = n === "center", c = n === "parent", l = a || o || s, u = a || s;
54485
+ const { role: n, compact: r, active: o, selected: s, labelPlacement: i } = t, a = n === "center", c = n === "parent", l = a || o || s, u = a || s, p = /* @__PURE__ */ d(
54486
+ "span",
54487
+ {
54488
+ className: B(
54489
+ "font-semibold",
54490
+ c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "text-center text-balance",
54491
+ r ? "text-2xs" : "text-xs",
54492
+ u && "rounded-full border border-(--fw-pill-edge) bg-(--fw-pill) px-2.5 py-0.5 text-(--fw-pill-text) shadow-sm",
54493
+ a && (r ? "max-w-32" : "max-w-72"),
54494
+ n === "ring" && (r ? "max-w-20" : "max-w-32"),
54495
+ n === "ring" && !u && (o ? "text-primary" : "text-secondary")
54496
+ ),
54497
+ children: e.label
54498
+ }
54499
+ );
54486
54500
  return /* @__PURE__ */ M(
54487
54501
  "span",
54488
54502
  {
@@ -54505,7 +54519,7 @@ function RW({ node: e, context: t }) {
54505
54519
  ),
54506
54520
  children: [
54507
54521
  a && /* @__PURE__ */ d("span", { className: "dx-focus-web__ping absolute inset-0 rounded-full bg-(--fw-disc)" }),
54508
- e.badge && /* DX-4041: a corner marker, drawn on the disc so it scales and glides with it. `left-[70%]` starts it
54522
+ e.badge && !c && /* DX-4041: a corner marker, drawn on the disc so it scales and glides with it. `left-[70%]` starts it
54509
54523
  inside the disc's right edge and lets it run outward — the label sits below/above, never here. */
54510
54524
  /* @__PURE__ */ d(
54511
54525
  "span",
@@ -54524,21 +54538,10 @@ function RW({ node: e, context: t }) {
54524
54538
  ]
54525
54539
  }
54526
54540
  ),
54527
- /* @__PURE__ */ d(
54528
- "span",
54529
- {
54530
- className: B(
54531
- "font-semibold",
54532
- c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "text-center text-balance",
54533
- r ? "text-2xs" : "text-xs",
54534
- u && "rounded-full border border-(--fw-pill-edge) bg-(--fw-pill) px-2.5 py-0.5 text-(--fw-pill-text) shadow-sm",
54535
- a && (r ? "max-w-32" : "max-w-72"),
54536
- n === "ring" && (r ? "max-w-20" : "max-w-32"),
54537
- n === "ring" && !u && (o ? "text-primary" : "text-secondary")
54538
- ),
54539
- children: e.label
54540
- }
54541
- ),
54541
+ e.badge && c ? /* @__PURE__ */ M("span", { className: "flex flex-col items-start gap-0.5", children: [
54542
+ p,
54543
+ /* @__PURE__ */ d("span", { "data-slot": "focus-web-badge", className: "flex items-center gap-0.5", children: e.badge })
54544
+ ] }) : p,
54542
54545
  e.badge && e.badgeLabel && /* @__PURE__ */ d("span", { className: "sr-only", children: e.badgeLabel })
54543
54546
  ]
54544
54547
  }