@usableapp/cardds 0.7.157 → 0.7.159
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/CHANGELOG.md +37 -0
- package/css/actions.css +37 -4
- package/css/base.css +14 -3
- package/css/card.css +5 -0
- package/css/forms.css +38 -1
- package/css/lists.css +4 -0
- package/css/parts.css +5 -1
- package/css/sheet.css +5 -2
- package/css/stamp.css +21 -17
- package/css/tokens.css +1 -0
- package/dist/actions/Btn.d.ts +12 -3
- package/dist/actions/Btn.js +6 -3
- package/dist/actions/BtnGroup.d.ts +3 -2
- package/dist/actions/BtnGroup.js +3 -3
- package/dist/actions/BtnRow.d.ts +6 -2
- package/dist/actions/BtnRow.js +3 -3
- package/dist/actions/IconBtn.d.ts +8 -2
- package/dist/actions/IconBtn.js +4 -2
- package/dist/actions/LinkBlock.d.ts +9 -0
- package/dist/actions/LinkBlock.js +8 -0
- package/dist/actions/useSendOut.d.ts +4 -0
- package/dist/actions/useSendOut.js +15 -0
- package/dist/cardds.css +130 -28
- package/dist/cards/Card.d.ts +8 -1
- package/dist/cards/CardParts.d.ts +8 -0
- package/dist/cards/CardParts.js +5 -0
- package/dist/catalog.json +1 -1
- package/dist/forms/Field.d.ts +13 -1
- package/dist/forms/Field.js +55 -6
- package/dist/forms/MessageBar.d.ts +9 -2
- package/dist/forms/MessageBar.js +6 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lists/Bubble.d.ts +859 -4
- package/dist/lists/Bubble.js +18 -4
- package/dist/lists/Row.d.ts +4 -0
- package/dist/media/MapArea.d.ts +7 -1
- package/dist/media/MapArea.js +5 -3
- package/dist/parts/Foot.d.ts +8 -2
- package/dist/parts/Foot.js +4 -3
- package/dist/scaffold/Page.d.ts +3 -1
- package/dist/scaffold/Page.js +3 -1
- package/dist/sheets/SheetSteps.js +3 -3
- package/dist/stamp/Stamp.d.ts +3 -1
- package/dist/stamp/Stamp.js +4 -2
- package/dist/state.d.ts +2 -2
- package/dist/state.js +4 -4
- package/dist/type/Text.d.ts +5 -1
- package/dist/type/Text.js +3 -2
- package/dist/type/icons.d.ts +1 -1
- package/dist/type/icons.js +2 -2
- package/docs/reference.md +52 -8
- package/icons.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cx } from '../cx.js';
|
|
3
|
+
/** LinkBlock — a link that is neither a card nor a row: a few pieces of a card's content (a still `MapArea` and the `Row` naming the place) as ONE
|
|
4
|
+
* `<a>`, stacked with the card's gap, in the ink of what holds it, no underline, no frame and no padding of its own; it dims under the finger.
|
|
5
|
+
* Name it with `aria-label` when it leaves the app (`target="_blank"`). Nothing that can be pressed goes inside. Knob `--link-block-gap`. */
|
|
6
|
+
export function LinkBlock({ className, ...rest }) {
|
|
7
|
+
return _jsx("a", { className: cx('link-block', className), ...rest });
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type AnimationEvent } from 'react';
|
|
2
|
+
/** a button that is `sending`: its send-out plays, and `onSent` comes once when it ends — at once where motion is off. Returns the button's
|
|
3
|
+
* `onAnimationEnd` (it calls the caller's first) */
|
|
4
|
+
export declare function useSendOut<E extends Element>(sending: boolean | undefined, onSent: (() => void) | undefined, onAnimationEnd?: (e: AnimationEvent<E>) => void): (e: AnimationEvent<E>) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { reducedMotion, useLatest } from '../state.js';
|
|
3
|
+
const SEND_OUT = 'send-out'; // css/actions.css — the rings that go out from a sending button
|
|
4
|
+
/** a button that is `sending`: its send-out plays, and `onSent` comes once when it ends — at once where motion is off. Returns the button's
|
|
5
|
+
* `onAnimationEnd` (it calls the caller's first) */
|
|
6
|
+
export function useSendOut(sending, onSent, onAnimationEnd) {
|
|
7
|
+
const told = useLatest(onSent);
|
|
8
|
+
useEffect(() => { if (sending && reducedMotion())
|
|
9
|
+
told.current?.(); }, [sending]); // nothing plays: nothing to wait for
|
|
10
|
+
return (e) => {
|
|
11
|
+
onAnimationEnd?.(e);
|
|
12
|
+
if (sending && e.target === e.currentTarget && e.animationName === SEND_OUT)
|
|
13
|
+
told.current?.();
|
|
14
|
+
};
|
|
15
|
+
}
|
package/dist/cardds.css
CHANGED
|
@@ -183,6 +183,7 @@
|
|
|
183
183
|
--ease-linear: linear;
|
|
184
184
|
--ease-settle: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
185
185
|
--ease-step: steps(1); /* on or off with nothing between: a code cell's caret blinking, a secret digit before its dot */
|
|
186
|
+
--motion-send: 0.7s; /* something going OUT from a button (Btn / IconBtn sending, actions.css): the icon tips forward, two rings spread */
|
|
186
187
|
--motion-press: 0.12s; /* a control giving under the finger and springing back (actions.css PRESS) */
|
|
187
188
|
--press-scale: 0.96; /* how far a finger-sized control gives — a share of its size */
|
|
188
189
|
--scale-lift: 1.06; /* a stamp lifted off the paper while the finger holds it */
|
|
@@ -744,6 +745,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
744
745
|
.t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
|
|
745
746
|
.t-body { font: var(--type-body); margin: 0; }
|
|
746
747
|
.t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.6) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow: hidden; } /* the cut box of `Text expand`: plain, no border, no ground, no scroll; lh = the body's own line */
|
|
748
|
+
/* cut at N lines (Text lines, Lh 2026-10-28): no chevron, no tap, the words stop at the last line's end */
|
|
749
|
+
.t-lines { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
|
|
750
|
+
.t-lines--1 { -webkit-line-clamp: 1; line-clamp: 1; }
|
|
751
|
+
.t-lines--2 { -webkit-line-clamp: 2; line-clamp: 2; }
|
|
752
|
+
.t-lines--3 { -webkit-line-clamp: 3; line-clamp: 3; }
|
|
753
|
+
.t-lines--4 { -webkit-line-clamp: 4; line-clamp: 4; }
|
|
754
|
+
.t-lines--5 { -webkit-line-clamp: 5; line-clamp: 5; }
|
|
755
|
+
.t-lines--6 { -webkit-line-clamp: 6; line-clamp: 6; }
|
|
747
756
|
.t-expand { display: grid; } /* the box, and under it the chevron when the text does not fit */
|
|
748
757
|
.t-expand.is-open > .t-scroll { height: auto; max-height: none; } /* open: the whole text in place */
|
|
749
758
|
.t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
|
|
@@ -801,13 +810,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
801
810
|
.page > .t-body { color: var(--page-body-ink, var(--on-surface)); max-width: 34ch; } /* full ink: a sentence is read, muted is for meta (Lh 2026-09-22 — the words on the base were grey and hard to read) */
|
|
802
811
|
/* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
|
|
803
812
|
(the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
|
|
804
|
-
|
|
813
|
+
/* a cta-pack: controls on one line, each its own width, wrapping — under a Page's words, or in a sheet step (a pick beside a folded
|
|
814
|
+
Field, Lh 2026-10-28). It is the box an open .field-fold covers (forms.css), so it is positioned */
|
|
815
|
+
.cta-pack {
|
|
816
|
+
position: relative;
|
|
805
817
|
display: flex;
|
|
806
818
|
align-items: start; /* buttons keep their own height, never the row's */
|
|
807
|
-
gap: var(--sp-2);
|
|
808
|
-
margin-top: var(--sp-2);
|
|
819
|
+
gap: var(--cta-pack-gap, var(--sp-2));
|
|
809
820
|
flex-wrap: wrap;
|
|
810
821
|
}
|
|
822
|
+
.page .cta-pack { margin-top: var(--sp-2); }
|
|
811
823
|
|
|
812
824
|
/* ---- empty state: on-surface, centered, optional CTA below ---- */
|
|
813
825
|
.empty-state {
|
|
@@ -1018,6 +1030,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1018
1030
|
|
|
1019
1031
|
.card__media { border-radius: var(--card-media-radius, var(--r-media)); overflow: hidden; position: relative; } /* relative: corner badges */
|
|
1020
1032
|
.card__media > img { width: 100%; height: auto; object-fit: cover; }
|
|
1033
|
+
/* media beside (MediaBeside, Lh 2026-10-28): the words, and at their end a small square picture, the media's corner, cropped to fill it */
|
|
1034
|
+
.media-beside { display: grid; grid-template-columns: minmax(0, 1fr) var(--media-beside-size, calc(var(--tap) * 3 / 2)); gap: var(--media-beside-gap, var(--sp-3)); align-items: start; }
|
|
1035
|
+
.media-beside__words { display: grid; gap: var(--sp-1); min-width: 0; }
|
|
1036
|
+
.media-beside__pic { aspect-ratio: 1; border-radius: var(--r-media); overflow: hidden; }
|
|
1037
|
+
.media-beside__pic > * { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
|
|
1021
1038
|
|
|
1022
1039
|
/* a JourneyBadge at the edge of the card's own first head (the date box in the top-left or top-right corner) keeps its corner concentric
|
|
1023
1040
|
with the card's: the card's corner (--r-card) less the room the padding leaves round it. journey.css reads it behind the theme's --tile-badge-radius,
|
|
@@ -2271,14 +2288,17 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2271
2288
|
--_band-centre: 50%;
|
|
2272
2289
|
position: relative;
|
|
2273
2290
|
min-height: var(--map-inline-h, calc(var(--map-ring) * 3 / 2));
|
|
2274
|
-
/* a thin grey frame, the joined BtnGroup look="choice"'s edge (actions.css .segment--choice): its width, its ink
|
|
2291
|
+
/* a thin grey frame, the joined BtnGroup look="choice"'s edge (actions.css .segment--choice): its width, its ink; the media's corner; the map clipped to it */
|
|
2275
2292
|
border: var(--border-w) solid var(--map-area-edge-ink, var(--outline));
|
|
2276
|
-
border-radius: var(--map-radius, var(--r-
|
|
2293
|
+
border-radius: var(--map-radius, var(--r-media)); /* the media corner, as a picture in a card (Lh 2026-10-28: was the pill's) */
|
|
2277
2294
|
overflow: clip;
|
|
2278
2295
|
}
|
|
2279
2296
|
.map--bleed { margin-inline: calc(-1 * var(--card-pad, 0rem)); border-radius: 0; border-inline: 0; } /* edge to edge is a band, and a band has no corner; --map-radius is for the box in the inset */
|
|
2280
2297
|
/* a map that is a body's only child fills it; the body turns to a column for it (parts.css) */
|
|
2281
2298
|
.body > .map--inline:only-child { flex: 1 0 auto; }
|
|
2299
|
+
/* a STILL map (`.map--still`): a preview of one point, not a place to choose — it owns no gesture (no data-gestures="own", so the page's
|
|
2300
|
+
own touch-action) and takes no touch: a finger on it scrolls the page, a tap is a tap on what holds it (a card that links out). The mark keeps its name */
|
|
2301
|
+
.map--still, .map--still * { pointer-events: none; }
|
|
2282
2302
|
|
|
2283
2303
|
/* ---- map pick: a place on the map the member taps to choose it (Lh 2026-10-17) ----
|
|
2284
2304
|
<label class="map-pick" style="top: 30%; left: 40%"><input type="radio" name="meet" value="library">
|
|
@@ -2614,6 +2634,30 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2614
2634
|
/* field with its action inside: date pick, send, go — the button sits flush right */
|
|
2615
2635
|
.field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
|
|
2616
2636
|
|
|
2637
|
+
/* ---- field-fold (Field fold, Lh 2026-10-28): the field folded into a button; opened, it grows out of the button's box to the whole width
|
|
2638
|
+
of what it stands in, the button gone under it. Field measures the button (--_fold-w) and, in a .cta-pack, the line it stands on
|
|
2639
|
+
(--_fold-y). Folded, the field is there but unseen and inert, so the tap can put the cursor in it inside the finger's own event ---- */
|
|
2640
|
+
.field-fold { position: relative; display: grid; justify-items: start; }
|
|
2641
|
+
.field-fold > .field {
|
|
2642
|
+
position: absolute; inset-block-start: 0; inset-inline-start: 0;
|
|
2643
|
+
width: var(--_fold-w, 100%); height: 100%; min-height: 0;
|
|
2644
|
+
opacity: 0; pointer-events: none;
|
|
2645
|
+
transition: width var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease);
|
|
2646
|
+
}
|
|
2647
|
+
.field-fold--open > .field { width: 100%; opacity: 1; pointer-events: auto; }
|
|
2648
|
+
.field-fold__btn { white-space: nowrap; } /* its words on one line, so Field reads the width they need */
|
|
2649
|
+
.field-fold--open > .field-fold__btn { visibility: hidden; }
|
|
2650
|
+
/* in a .cta-pack: the button at the line's end; open, the field covers the whole line it stands on, growing leftwards out of the button */
|
|
2651
|
+
/* the fold takes the rest of the line, its button at the end and as tall as the line; with no room for the words beside the other
|
|
2652
|
+
controls (Field's measure: --tight) the button is the icon alone, square, the words still its spoken name */
|
|
2653
|
+
.cta-pack > .field-fold { position: static; flex: 1 1 0; min-width: var(--form-tap); justify-items: end; align-self: stretch; }
|
|
2654
|
+
.cta-pack > .field-fold > .field-fold__btn { min-height: var(--form-tap); padding-block: 0; padding-inline: var(--field-fold-pad-x, var(--sp-4)); }
|
|
2655
|
+
.cta-pack > .field-fold > .field { inset-block-start: var(--_fold-y, 0); inset-inline: auto 0; height: var(--_fold-h, auto); }
|
|
2656
|
+
.field-fold--tight > .field-fold__btn { padding-inline: calc((var(--form-tap) - var(--icon-xs)) / 2); } /* square on the line: a tap wide round its icon */
|
|
2657
|
+
.field-fold--tight .field-fold__words { position: absolute; width: var(--px); height: var(--px); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
2658
|
+
.cta-pack:has(> .field-fold--open) > :not(.field-fold) { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-quick); }
|
|
2659
|
+
@media (prefers-reduced-motion: reduce) { .field-fold > .field { transition: none; } }
|
|
2660
|
+
|
|
2617
2661
|
/* colored palettes drop the visible outline elsewhere — fields keep one */
|
|
2618
2662
|
[data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
|
|
2619
2663
|
|
|
@@ -2705,7 +2749,20 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2705
2749
|
it rides with the bar above the keyboard. A written name is one piece: .mention-under is a copy of the words in the textarea's
|
|
2706
2750
|
own cell and class (same font, padding, wrap), its ink clear, drawn BEHIND the transparent textarea; only the names' marks show. */
|
|
2707
2751
|
.mention-list { flex: 0 0 100%; order: -1; max-height: calc(var(--tap) * 4.5); /* the fifth name shows half: the list scrolls */ }
|
|
2708
|
-
.message-bar:has(> .mention-list) { flex-wrap: wrap; }
|
|
2752
|
+
.message-bar:has(> :is(.mention-list, .message-bar__quote)) { flex-wrap: wrap; }
|
|
2753
|
+
/* the reply-to quote (MessageBar quote, Lh 2026-10-28): a line of its own over the box, a rule at its start, cut at one line, its ✕ at the end */
|
|
2754
|
+
.message-bar__quote {
|
|
2755
|
+
flex: 0 0 100%;
|
|
2756
|
+
order: -1;
|
|
2757
|
+
display: flex;
|
|
2758
|
+
align-items: center;
|
|
2759
|
+
gap: var(--sp-2);
|
|
2760
|
+
padding-inline-start: var(--sp-3);
|
|
2761
|
+
border-inline-start: var(--sp-1) solid var(--message-bar-quote-rule-ink, var(--accent));
|
|
2762
|
+
font: var(--type-caption);
|
|
2763
|
+
color: var(--message-bar-quote-ink, var(--card-muted)); /* the muted words of whatever it stands on, as .t-muted */
|
|
2764
|
+
}
|
|
2765
|
+
.message-bar__quote-words { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
2709
2766
|
.mention-box { display: grid; }
|
|
2710
2767
|
.mention-box > * { grid-area: 1 / 1; }
|
|
2711
2768
|
.mention-under {
|
|
@@ -2979,17 +3036,44 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2979
3036
|
.btn--warn { --dark: var(--action-dark); color: var(--btn-warn-ink, var(--signal-warn)); } /* a move to think twice about ("cancel the request"): the signal set's warning, on the button's own paper — its side, not the card's */
|
|
2980
3037
|
.btn--block { width: 100%; }
|
|
2981
3038
|
.btn--form { justify-self: center; align-self: center; margin-inline: auto; padding-inline: var(--btn-form-pad-x, calc(var(--sp-base) * 14.5)); /* 58px: "ส่งรหัส OTP" at 213px, 20% longer than at 40px sides (Lh 2026-09-25) */ } /* a form's button: its words + wide sides, centred in a grid (a step) or a block (Lh 2026-09-25) */
|
|
3039
|
+
/* sm (Btn sm, Lh 2026-10-28): one small tap tall (the touch floor, 44), the small words, closer sides — a worded move at a card head's end */
|
|
3040
|
+
.btn--sm { min-height: var(--btn-sm-size, var(--form-tap-sm)); padding-block: var(--sp-1); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
|
|
2982
3041
|
/* xl: the one giant call to action in a tinted card ("Taxi!") */
|
|
2983
3042
|
.btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / var(--lh-solid) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
|
|
2984
3043
|
/* disabled keeps the slot — a control that vanishes moves everything else,
|
|
2985
3044
|
and a pager whose "previous" disappeared on page one would shift the bar
|
|
2986
3045
|
under the thumb on every page */
|
|
3046
|
+
/* SENDING (Btn / IconBtn sending, Lh 2026-10-28): something goes OUT from the button — for --motion-send its icon swells and tips forward,
|
|
3047
|
+
and two rings spread from its edge one after the other (--btn-sending-ink, the accent); then the app swaps the icon or puts the sent thing in.
|
|
3048
|
+
Under reduced motion nothing moves (the app is told at once) */
|
|
3049
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
3050
|
+
:is(.btn, .icon-btn).is-sending { animation: send-out var(--motion-send) var(--ease-out); }
|
|
3051
|
+
:is(.btn, .icon-btn).is-sending > .icon { animation: send-out-call var(--motion-send) ease-in-out; }
|
|
3052
|
+
}
|
|
3053
|
+
@keyframes send-out {
|
|
3054
|
+
from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 30%, transparent); }
|
|
3055
|
+
60% { box-shadow: 0 0 0 var(--sp-3) transparent, 0 0 0 var(--sp-1) color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 30%, transparent); }
|
|
3056
|
+
to { box-shadow: 0 0 0 var(--sp-5) transparent, 0 0 0 var(--sp-4) transparent; }
|
|
3057
|
+
}
|
|
3058
|
+
@keyframes send-out-call {
|
|
3059
|
+
0% { transform: none; }
|
|
3060
|
+
30% { transform: scale(1.35) rotate(-14deg); }
|
|
3061
|
+
55% { transform: translateX(var(--sp-1)) scale(1.15) rotate(-8deg); opacity: 0.5; }
|
|
3062
|
+
100% { transform: none; opacity: 1; }
|
|
3063
|
+
}
|
|
3064
|
+
/* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
|
|
3065
|
+
no frame, no padding; the DIM press answer (below) */
|
|
3066
|
+
.link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
|
|
2987
3067
|
/* a row of buttons sharing the width (twin CTAs inside a card) */
|
|
2988
3068
|
.btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
|
|
2989
3069
|
/* round (BtnRow round, Lh 2026-10-24): a few round IconBtns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
|
|
2990
3070
|
so a card's foot stays its status line */
|
|
2991
3071
|
.btn-row--round { justify-content: center; align-items: center; gap: var(--btn-row-gap, var(--sp-6)); }
|
|
2992
3072
|
.btn-row > .btn { flex: 1; min-width: 0; }
|
|
3073
|
+
/* wrap (BtnRow wrap): each Btn as wide as its words, wrapping; end: they stand at the row's end */
|
|
3074
|
+
.btn-row--wrap { flex-wrap: wrap; }
|
|
3075
|
+
.btn-row--wrap > .btn { flex: 0 0 auto; }
|
|
3076
|
+
.btn-row--end { justify-content: flex-end; }
|
|
2993
3077
|
/* joined (BtnRow round joined, Foot round joined — Lh 2026-10-24, was BtnTrio): a dotted link between each two round buttons, a closer gap */
|
|
2994
3078
|
.btn-row--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
2995
3079
|
.btn-trio__dots {
|
|
@@ -3120,6 +3204,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3120
3204
|
background: var(--btngroup-choice-on-bg, var(--accent));
|
|
3121
3205
|
color: var(--btngroup-choice-on-ink, var(--on-accent));
|
|
3122
3206
|
}
|
|
3207
|
+
/* --form (Lh 2026-10-28): each word as wide as it is, the frame as wide as them all, in the middle of a grid column (a step) as a
|
|
3208
|
+
`.btn--form`; in a .cta-pack it is just the line's first piece */
|
|
3209
|
+
.segment--choice.segment--form { justify-self: center; max-width: 100%; }
|
|
3210
|
+
.segment--choice.segment--form > .segment__item { flex: 0 1 auto; white-space: nowrap; padding-inline: var(--btngroup-choice-form-pad-x, var(--sp-4)); }
|
|
3123
3211
|
.segment--choice > .segment__item:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
|
|
3124
3212
|
|
|
3125
3213
|
/* ---- bottom CTA pack: the screen's bottom (Screen `bottom`) ----
|
|
@@ -3259,7 +3347,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3259
3347
|
button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
|
|
3260
3348
|
button's, the card itself is never focused or disabled.
|
|
3261
3349
|
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds. It is WORDS, so it neither
|
|
3262
|
-
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below).
|
|
3350
|
+
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below).
|
|
3351
|
+
.bubble--press (Lh 2026-10-28) = a chat `Bubble` that is a link (`href`) or pressed (`onClick`): a message is as wide as a row, so it DIMS.
|
|
3352
|
+
.link-block (Lh 2026-10-28) = a `LinkBlock`, a few pieces of a card's content as one link: as wide as the card, it DIMS. */
|
|
3263
3353
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3264
3354
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3265
3355
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .count-in__cancel) {
|
|
@@ -3267,7 +3357,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3267
3357
|
touch-action: manipulation;
|
|
3268
3358
|
transition: scale var(--motion-press) var(--ease-out);
|
|
3269
3359
|
}
|
|
3270
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
|
|
3360
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .bubble--press, .link-block) {
|
|
3271
3361
|
cursor: pointer;
|
|
3272
3362
|
touch-action: manipulation;
|
|
3273
3363
|
transition: opacity var(--motion-press) var(--ease-out);
|
|
@@ -3283,7 +3373,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3283
3373
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3284
3374
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3285
3375
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
|
|
3286
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
3376
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .bubble--press, .link-block):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
3287
3377
|
/* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
|
|
3288
3378
|
it darkens a touch instead (--press-shade) */
|
|
3289
3379
|
:where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
|
|
@@ -3293,7 +3383,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3293
3383
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3294
3384
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
|
|
3295
3385
|
:where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
3296
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
3386
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more, .bubble--press, .link-block):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
3297
3387
|
/* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
|
|
3298
3388
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3299
3389
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
@@ -4267,6 +4357,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4267
4357
|
.bubble__meta { display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); font: var(--bubble-meta-font, var(--type-caption)); color: var(--bubble-meta-ink, var(--card-muted)); }
|
|
4268
4358
|
.bubble--right > .bubble__meta { justify-self: end; }
|
|
4269
4359
|
.bubble__meta > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
|
|
4360
|
+
/* a bubble that is a link or is pressed (Bubble href / onClick, Lh 2026-10-28): the press answer is the DIM (actions.css), no underline */
|
|
4361
|
+
a.bubble { color: inherit; text-decoration: none; }
|
|
4362
|
+
/* highlighted (Bubble highlighted): the message the member is looking at, a ring a hair outside its body */
|
|
4363
|
+
.bubble--highlighted > .bubble__body { outline: var(--sp-0) solid var(--bubble-highlighted-ink, var(--accent)); outline-offset: var(--sp-0); }
|
|
4270
4364
|
|
|
4271
4365
|
/* ---- timeline: a hairline with date chips, entries to the right ----
|
|
4272
4366
|
<ol class="timeline"><li class="timeline__item"><span class="timeline__mark">Wed 14</span><p class="t-body">…</p></li>…</ol> */
|
|
@@ -4780,7 +4874,11 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4780
4874
|
Knobs --foot-gap, --foot-ink, --foot-link-gap. An outer governs a foot through those knobs or a selector naming both, written
|
|
4781
4875
|
below under the outer's name (Lh 2026-10-21). ---- */
|
|
4782
4876
|
.foot { display: flex; gap: var(--foot-gap, var(--sp-2)); align-items: center; color: var(--foot-ink, inherit); }
|
|
4783
|
-
.foot:has(> :nth-child(3)) > .btn { --btn-pad-x: var(--sp-2); }
|
|
4877
|
+
.foot:not(.foot--wrap):has(> :nth-child(3)) > .btn { --btn-pad-x: var(--foot-crowd-pad-x, var(--sp-2)); } /* knob: a theme that keeps one pill shape sets it to the Btn's own side padding */
|
|
4878
|
+
/* wrap (Foot wrap): each Btn as wide as its words, its own side padding, from the start, wrapping; end (Foot end): they stand at the foot's end */
|
|
4879
|
+
.foot--wrap { flex-wrap: wrap; justify-content: flex-start; row-gap: var(--foot-gap, var(--sp-2)); }
|
|
4880
|
+
.foot--wrap > .btn { flex: 0 0 auto; }
|
|
4881
|
+
.foot--end { justify-content: flex-end; }
|
|
4784
4882
|
/* a small link under the buttons (Foot link — Lh 2026-09-23, as the ActionBar's ctaLink): the row wraps, the link takes a
|
|
4785
4883
|
whole short row of its own, centred — it never shares the buttons' line */
|
|
4786
4884
|
.foot--link { flex-wrap: wrap; align-content: end; row-gap: var(--foot-link-gap, var(--sp-1)); }
|
|
@@ -5372,10 +5470,11 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5372
5470
|
display: block;
|
|
5373
5471
|
container-type: inline-size;
|
|
5374
5472
|
color: var(--stamp-ink, var(--ink-onlight));
|
|
5375
|
-
/* the contact shadow every stamp has (Lh 2026-10-26: contact only
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5473
|
+
/* the contact shadow every stamp has, framed or not (Lh 2026-10-26: contact only; Lh 2026-10-28: darker, sharper — a quarter of the blur, about
|
|
5474
|
+
twice the opacity, it was 0 0 var(--border-w) rgb(0 0 0 / 0.28); a sliver of blur stays, a 0-offset drop-shadow with none draws nothing):
|
|
5475
|
+
its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
|
|
5476
|
+
--_contact: 0 0 calc(var(--border-w) / 4) rgb(0 0 0 / 0.6);
|
|
5477
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
|
|
5379
5478
|
rotate: var(--stamp-turn, none);
|
|
5380
5479
|
animation: var(--stamp-arrive, none);
|
|
5381
5480
|
}
|
|
@@ -5392,14 +5491,15 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5392
5491
|
/* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
|
|
5393
5492
|
so the tone runs out to the teeth — the teeth, 4:5, shadow, pictures and words unchanged (Lh 2026-10-26: a stamp is always perforated) */
|
|
5394
5493
|
.stamp:not(.stamp--frameless) > .stamp__paper { background-color: var(--stamp-paper-bg, var(--stamp-paper)); }
|
|
5395
|
-
/* a frameless stamp
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
.stamp
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
}
|
|
5494
|
+
/* no rim round a frameless stamp's teeth (Lh 2026-10-28: the paper-coloured rim of 0.7.149 read as a white edge round a full-colour stamp):
|
|
5495
|
+
the tone runs out to the teeth. Its contact shadow is its own tone made dusky, not black (Lh 2026-10-28): a second punched paper under
|
|
5496
|
+
the first (.stamp__shade, drawn only when frameless) wears the tone class, a grey painted OVER the tone as a background layer (a real
|
|
5497
|
+
overlay, no color-mix — iOS 16.4), blurred as the black one is so its fringe shows round the teeth. Knob --stamp-tone-shadow-bg: the grey
|
|
5498
|
+
laid over the tone (a darker or lighter shade; transparent = the bare tone). The black contact shadow is off here, unless a theme sets
|
|
5499
|
+
--stamp-shadow */
|
|
5500
|
+
.stamp--frameless { --_contact: 0 0 0 transparent; --_tone-shade: rgb(0 0 0 / 0.5); }
|
|
5501
|
+
.stamp__shade { position: absolute; inset: 0; filter: blur(calc(var(--border-w) / 4)); }
|
|
5502
|
+
.stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
|
|
5403
5503
|
.stamp__pic { position: absolute; inset: var(--stamp-frame, 8cqw); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
|
|
5404
5504
|
|
|
5405
5505
|
/* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
|
|
@@ -5438,7 +5538,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5438
5538
|
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
|
|
5439
5539
|
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
5440
5540
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
5441
|
-
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter:
|
|
5541
|
+
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5442
5542
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
5443
5543
|
/* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
|
|
5444
5544
|
.stamp--held { visibility: hidden; }
|
|
@@ -5584,12 +5684,14 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5584
5684
|
/* the SMALL stamp, 48 × 60 whatever its holder's size, in the three places that hold it: stuck on a surface (a note), lapped in an avatar stack,
|
|
5585
5685
|
leading a feed card's head. The stamp carries the size and the `.stamp-on` box is as wide as its stamp */
|
|
5586
5686
|
.stamp-on > .stamp, .avatar-stack > .stamp, .feed-card__lead > .stamp { width: var(--stamp-sm-size, var(--tap)); }
|
|
5687
|
+
/* the empty PLACE for a stamp at a lead's size (Lh 2026-10-28): in an avatar stack or a feed card's lead it is the small stamp's size too, an Icon inside */
|
|
5688
|
+
.avatar-stack > .stamp-place, .feed-card__lead > .stamp-place { width: var(--stamp-sm-size, var(--tap)); flex: none; margin-inline: 0; }
|
|
5587
5689
|
.stamp-on > .stamp { max-width: none; }
|
|
5588
5690
|
/* --main: the same stuck stamp at the stamp's MAIN size, 96 × 120 (--stamp-size), to cover what it lies on (the owner's call, 2026-10-11: the home's note).
|
|
5589
5691
|
After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
|
|
5590
5692
|
.stamp-on--main > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); }
|
|
5591
5693
|
.stamp-on--under { top: var(--card-pad, 0); right: var(--card-pad, 0); left: auto; translate: none; z-index: var(--z-under); pointer-events: none; } /* the card's top right corner, below everything the card holds */
|
|
5592
|
-
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter:
|
|
5694
|
+
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5593
5695
|
.stamp-on--move { will-change: transform; } /* its own layer: Safari left the stamp's shadow behind as a trail along the drag when it was painted with the note (seen on the simulator, 2026-10-07) */
|
|
5594
5696
|
.stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
|
|
5595
5697
|
.stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
@@ -5649,7 +5751,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5649
5751
|
width: var(--appbar-stamp-size, var(--_fit));
|
|
5650
5752
|
flex: none;
|
|
5651
5753
|
margin-inline: 0;
|
|
5652
|
-
filter:
|
|
5754
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
|
|
5653
5755
|
}
|
|
5654
5756
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
|
|
5655
5757
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + 9%); }
|
|
@@ -5657,10 +5759,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5657
5759
|
/* a stamp ON a card lies flat: only the contact shadow (--stamp-shadow), at every size (Lh 2026-10-24; the contact shadow 2026-10-26) — a feed card's lead, a foot row's, xs.
|
|
5658
5760
|
A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
|
|
5659
5761
|
does a stamp in an album's cell wherever the album lies */
|
|
5660
|
-
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter:
|
|
5762
|
+
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5661
5763
|
/* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
|
|
5662
5764
|
A bare or xs stamp stays flat, its contact shadow only. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
|
|
5663
|
-
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter:
|
|
5765
|
+
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
|
|
5664
5766
|
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
5665
5767
|
.head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
|
|
5666
5768
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|
package/dist/cards/Card.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface CardProps extends ComponentProps<'article'> {
|
|
|
31
31
|
as?: 'article' | 'div' | 'a' | 'label' | 'section' | 'li';
|
|
32
32
|
/** the link's target, for `as="a"` */
|
|
33
33
|
href?: string;
|
|
34
|
+
/** where the link opens, for `as="a"` (`_blank`: a new tab, out of the app) */
|
|
35
|
+
target?: string;
|
|
36
|
+
/** the link's relation, for `as="a"` (`noopener` with `target="_blank"`) */
|
|
37
|
+
rel?: string;
|
|
34
38
|
/** set by `SheetStack` from the app's `open` and `refreshing`. The card renders its place, its grip and its pull. Leave it unset on any other card */
|
|
35
39
|
stack?: StackPlace;
|
|
36
40
|
/** THE CARD LEAVES — the card floats away: up and out with a small turn, as one piece with all it holds (a stamp that has just landed on it goes with it).
|
|
@@ -947,6 +951,10 @@ export declare function Card({ tone, paper, sm, row, cover, fold, centre, wide,
|
|
|
947
951
|
} | undefined;
|
|
948
952
|
/** the link's target, for `as="a"` */
|
|
949
953
|
href?: string;
|
|
954
|
+
/** where the link opens, for `as="a"` (`_blank`: a new tab, out of the app) */
|
|
955
|
+
target?: string;
|
|
956
|
+
/** the link's relation, for `as="a"` (`noopener` with `target="_blank"`) */
|
|
957
|
+
rel?: string;
|
|
950
958
|
key?: import("react").Key | null | undefined;
|
|
951
959
|
defaultChecked?: boolean | undefined;
|
|
952
960
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -977,7 +985,6 @@ export declare function Card({ tone, paper, sm, row, cover, fold, centre, wide,
|
|
|
977
985
|
inlist?: any;
|
|
978
986
|
prefix?: string | undefined;
|
|
979
987
|
property?: string | undefined;
|
|
980
|
-
rel?: string | undefined;
|
|
981
988
|
resource?: string | undefined;
|
|
982
989
|
rev?: string | undefined;
|
|
983
990
|
typeof?: string | undefined;
|
|
@@ -4,6 +4,14 @@ export interface CardMediaProps extends ComponentProps<'div'> {
|
|
|
4
4
|
/** CardMedia — rounded media inside a card (a Placeholder or img); a corner JourneyBadge pins to it: the badge on the corner of a picture is the paper,
|
|
5
5
|
* its corner concentric with the media's; a theme's `--tile-badge-bg` / `--tile-badge-radius` still win. Ruled (Lh 2026-10-21). */
|
|
6
6
|
export declare function CardMedia({ className, ...rest }: CardMediaProps): import("react").JSX.Element;
|
|
7
|
+
export interface MediaBesideProps extends ComponentProps<'div'> {
|
|
8
|
+
/** the picture: a SMALL SQUARE at the side of the words (an `img` or a `Placeholder`), cropped to fill it, the media's corner. Knob `--media-beside-size`
|
|
9
|
+
* (default one and a half taps, 72) */
|
|
10
|
+
media: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/** MediaBeside — words with a small square picture at their END (a post's photo beside its words): the words take the room, the picture its own small square,
|
|
13
|
+
* both from the top. In a card's content; a full-width picture is `CardMedia`. Knobs `--media-beside-size`, `--media-beside-gap`. */
|
|
14
|
+
export declare function MediaBeside({ media, className, children, ...rest }: MediaBesideProps): import("react").JSX.Element;
|
|
7
15
|
export interface CardListProps extends ComponentProps<'div'> {
|
|
8
16
|
/** how many rows show before the list scrolls IN ITSELF, counted in rows, not a height: `2.5` = two whole rows and half of the third, the cut row
|
|
9
17
|
* saying there is more. The list measures its own rows (they wrap to any height) and keeps the window right when they change. Leave it out and the
|
package/dist/cards/CardParts.js
CHANGED
|
@@ -6,6 +6,11 @@ import { cx } from '../cx.js';
|
|
|
6
6
|
export function CardMedia({ className, ...rest }) {
|
|
7
7
|
return _jsx("div", { className: cx('card__media', className), ...rest });
|
|
8
8
|
}
|
|
9
|
+
/** MediaBeside — words with a small square picture at their END (a post's photo beside its words): the words take the room, the picture its own small square,
|
|
10
|
+
* both from the top. In a card's content; a full-width picture is `CardMedia`. Knobs `--media-beside-size`, `--media-beside-gap`. */
|
|
11
|
+
export function MediaBeside({ media, className, children, ...rest }) {
|
|
12
|
+
return (_jsxs("div", { className: cx('media-beside', className), ...rest, children: [_jsx("div", { className: "media-beside__words", children: children }), _jsx("div", { className: "media-beside__pic", children: media })] }));
|
|
13
|
+
}
|
|
9
14
|
/** CardList — a stack of `Card row`s, each its own boundary: a list of things to open or to pick (past requests to reuse). It stands on the base or straight in a sheet's
|
|
10
15
|
* body and scrolls with it; never inside a card (a card never wraps a card — `cardds check` rule `card-in-card`). Rows inside a card are `Rows`.
|
|
11
16
|
* A SHORT WINDOW of past entries under a form (`show={2.5}`): the list scrolls in itself, a few rows in sight; each row a `Card row as="label"` round a radio
|