@danxbot/ui 21.0.0 → 21.1.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.js +26 -17
- package/dist/index.js.map +1 -1
- package/dist/types/components/Card.d.ts +25 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28208,8 +28208,7 @@ function cQ({ items: e, className: t }) {
|
|
|
28208
28208
|
const wb = ht({
|
|
28209
28209
|
slots: {
|
|
28210
28210
|
root: [
|
|
28211
|
-
"flex min-w-0 flex-col
|
|
28212
|
-
"[--radius-outer:var(--radius-xl)]",
|
|
28211
|
+
"flex min-w-0 flex-col",
|
|
28213
28212
|
"transition-[var(--tx-colors),box-shadow,translate] duration-(--dur-fast) ease-hover"
|
|
28214
28213
|
],
|
|
28215
28214
|
/* WRAPPING IS NOT COSMETIC HERE — IT IS WHAT STOPS THE TITLE VANISHING.
|
|
@@ -28242,6 +28241,13 @@ const wb = ht({
|
|
|
28242
28241
|
/* Nothing but the padding — for grouping without drawing a box. */
|
|
28243
28242
|
ghost: { root: "" }
|
|
28244
28243
|
},
|
|
28244
|
+
/* DX-4794 - the corner. `xl` is a panel's; `md` is the tile's, the same corner `RecordCard` draws, for a card that stands in
|
|
28245
|
+
a list of records beside record cards (a card that navigates). `--radius-outer` follows it so the
|
|
28246
|
+
nested-radius arithmetic above stays right for whatever sits inside. */
|
|
28247
|
+
radius: {
|
|
28248
|
+
xl: { root: "rounded-xl [--radius-outer:var(--radius-xl)]" },
|
|
28249
|
+
md: { root: "rounded-md [--radius-outer:var(--radius-md)]" }
|
|
28250
|
+
},
|
|
28245
28251
|
padding: {
|
|
28246
28252
|
none: { root: "[--radius-pad:0px]" },
|
|
28247
28253
|
sm: { root: "gap-3 p-4 [--radius-pad:var(--space-4)]" },
|
|
@@ -28278,6 +28284,7 @@ const wb = ht({
|
|
|
28278
28284
|
],
|
|
28279
28285
|
defaultVariants: {
|
|
28280
28286
|
variant: "raised",
|
|
28287
|
+
radius: "xl",
|
|
28281
28288
|
padding: "md",
|
|
28282
28289
|
interactive: !1,
|
|
28283
28290
|
selected: !1
|
|
@@ -28285,24 +28292,25 @@ const wb = ht({
|
|
|
28285
28292
|
});
|
|
28286
28293
|
function Qd({
|
|
28287
28294
|
variant: e,
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28295
|
+
radius: t,
|
|
28296
|
+
padding: n,
|
|
28297
|
+
interactive: r,
|
|
28298
|
+
selected: o,
|
|
28299
|
+
render: s,
|
|
28300
|
+
className: i,
|
|
28301
|
+
children: a,
|
|
28302
|
+
ref: c,
|
|
28303
|
+
...l
|
|
28296
28304
|
}) {
|
|
28297
|
-
const
|
|
28305
|
+
const d = wb({ variant: e, radius: t, padding: n, interactive: r, selected: o });
|
|
28298
28306
|
return Ju({
|
|
28299
|
-
render:
|
|
28300
|
-
ref:
|
|
28307
|
+
render: s,
|
|
28308
|
+
ref: c,
|
|
28301
28309
|
/* An interactive card defaults to a real <button>, so it is focusable,
|
|
28302
28310
|
activates on Enter and Space, and announces as actionable — none of
|
|
28303
28311
|
which a div with an onClick does. */
|
|
28304
|
-
defaultTagName:
|
|
28305
|
-
props: { className: H(
|
|
28312
|
+
defaultTagName: r ? "button" : "div",
|
|
28313
|
+
props: { className: H(d.root(), i), children: a, ...l }
|
|
28306
28314
|
});
|
|
28307
28315
|
}
|
|
28308
28316
|
function JN({
|
|
@@ -39608,8 +39616,9 @@ const PM = [
|
|
|
39608
39616
|
], Rj = ht({
|
|
39609
39617
|
slots: {
|
|
39610
39618
|
root: [
|
|
39611
|
-
|
|
39612
|
-
"
|
|
39619
|
+
/* DX-4794: the tile's corner is `md` (10px); `Card`'s `radius="md"` draws the same one. */
|
|
39620
|
+
"flex min-w-0 flex-col gap-2.5 rounded-md border bg-surface p-3 text-left",
|
|
39621
|
+
"[--radius-outer:var(--radius-md)]",
|
|
39613
39622
|
"transition-[var(--tx-colors),box-shadow,translate] duration-(--dur-fast) ease-hover"
|
|
39614
39623
|
],
|
|
39615
39624
|
top: "flex min-w-0 flex-wrap items-start gap-2",
|