@danxbot/ui 26.5.5 → 26.5.6

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
@@ -14465,6 +14465,7 @@ function Pt({
14465
14465
  "div",
14466
14466
  {
14467
14467
  ref: l,
14468
+ "data-slot": "callout",
14468
14469
  role: i ? "alert" : void 0,
14469
14470
  className: B(d.root(), a),
14470
14471
  ...c,
@@ -28489,22 +28490,18 @@ const PR = ht({
28489
28490
  readOnlyBlock: "flex flex-col gap-1",
28490
28491
  readOnlyValue: "font-mono text-sm text-secondary break-words",
28491
28492
  readOnlyReason: "flex items-start gap-1.5 text-2xs text-tertiary",
28492
- /* DX-5125: SPACING IS DECIDED BY THE RENDERED DOM CHILD, so it does not depend
28493
- on how a consumer groups its JSX (a component returning a fragment of
28494
- three rows is three rows here, not one).
28495
- - A `SettingRow` owns the group's rhythm as padding: `py-4`, a hairline
28496
- above every row but the first (one per row boundary, so a single row
28497
- gets no stray rule and the last none trailing), and the padding
28498
- cancelled at the two ends.
28499
- - Anything else (a `Callout`, a card, a bordered panel) owns its OWN
28500
- padding, so it is spaced with margins and its box is left alone. This
28501
- replaced `[&>*]:py-4`, which overwrote that padding: a Callout lost its
28502
- `p-3` and read as having no top padding as the first child. */
28493
+ /* DX-5125: every rendered DOM child gets the group's rhythm as padding (`py-4`,
28494
+ a hairline above all but the first, the padding cancelled at the two
28495
+ ends), EXCEPT a boxed `Callout`. It owns its padding (`p-3`), which
28496
+ `[&>*]:py-4` used to overwrite: it read as having no top padding as the
28497
+ first child. A Callout is spaced with vertical margins instead, so its own
28498
+ box is left alone. Selected by DOM and `data-slot`, never by React child,
28499
+ so a component rendering a fragment of rows is still rows here. */
28503
28500
  rows: [
28504
28501
  "flex flex-col",
28505
- "[&>[data-slot=setting-row]]:py-4 [&>[data-slot=setting-row]:first-child]:pt-0 [&>[data-slot=setting-row]:last-child]:pb-0",
28506
- "[&>[data-slot=setting-row]:not(:first-child)]:border-t [&>[data-slot=setting-row]:not(:first-child)]:border-border-subtle",
28507
- "[&>:not([data-slot=setting-row])]:my-4 [&>:not([data-slot=setting-row]):first-child]:mt-0 [&>:not([data-slot=setting-row]):last-child]:mb-0"
28502
+ "divide-y divide-border-subtle",
28503
+ "[&>:not([data-slot=callout])]:py-4 [&>:not([data-slot=callout]):first-child]:pt-0 [&>:not([data-slot=callout]):last-child]:pb-0",
28504
+ "[&>[data-slot=callout]]:my-4 [&>[data-slot=callout]:first-child]:mt-0 [&>[data-slot=callout]:last-child]:mb-0"
28508
28505
  ]
28509
28506
  },
28510
28507
  variants: {