@usableapp/cardds 0.7.141 → 0.7.142
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 +12 -0
- package/css/stamp.css +21 -5
- package/dist/cardds.css +21 -5
- package/dist/catalog.json +1 -1
- package/dist/scaffold/AppBar.d.ts +1 -1
- package/docs/reference.md +4 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
export interface AppBarProps extends Omit<ComponentProps<'header'>, 'title'> {
|
|
3
|
-
/** the app or brand mark on the left (an Icon) */
|
|
3
|
+
/** the app or brand mark on the left (an Icon, an Avatar, or a `Stamp`: a stamp here is the bar's inner height tall, `--appbar-stamp-size`) */
|
|
4
4
|
icon?: ReactNode;
|
|
5
5
|
/** the context: which app, which place, which account */
|
|
6
6
|
title: ReactNode;
|
package/docs/reference.md
CHANGED
|
@@ -847,6 +847,8 @@ it up. cardds draws the paper; the pictures, their words and which stamp a membe
|
|
|
847
847
|
stamp in an `AvatarStack` are `--stamp-sm-size` wide (one tap: 48 × 60), on any surface and in any row. And the inline
|
|
848
848
|
one: `Stamp xs` stands beside a status line's words (a card's `Foot`: the stamp, "X took it", a round button), one
|
|
849
849
|
`Chip xs` tall, `--stamp-xs-size` (18.7 × 23.4, on `--fs-base`); always bare, flat but for the contact shadow, its teeth fewer and larger.
|
|
850
|
+
A `Stamp` as an `AppBar`'s `icon` is the bar's inner height tall (`--header-h` less the bar's block padding: 35 × 44), so it reads
|
|
851
|
+
bigger than the title and its second line and the fixed bar never grows; bare and flat whatever it is handed. Knob `--appbar-stamp-size`.
|
|
850
852
|
Several lap in an `AvatarStack` with `more` ("+8"), the count then at the chip's scale. In a card's head band the stamp keeps the head's padding below it as well as above (`--card-pad`, not the seam), so the head is never shorter
|
|
851
853
|
than the stamp plus its padding, plain or `under`. A stamp the app is not ready to show yet is `held`: it keeps its box, draws nothing,
|
|
852
854
|
is hidden from screen readers, and appears in the same box when `held` turns false, so nothing beside it moves (any size). The stamps in
|
|
@@ -854,7 +856,8 @@ it up. cardds draws the paper; the pictures, their words and which stamp a membe
|
|
|
854
856
|
the postcard's own size, 72 × 90 (`--post-corner-stamp-w`), in neither. `words` is not drawn on a stamp 96 wide or
|
|
855
857
|
narrower, so at the standard size only `name` shows, and it is larger.
|
|
856
858
|
- **Every stamp has a thin contact shadow** (2026-10-26): at every size, `xs` and a `StampOn` too, on a card or off it — paper a hair off
|
|
857
|
-
its ground, so its edge shows on any ground, a white one included (
|
|
859
|
+
its ground, so its edge shows on any ground, a white one included (knob `--stamp-shadow`, a hair lighter than `--shadow-contact`). By default it is
|
|
860
|
+
the only shadow a stamp has (Lh 2026-10-26: contact only); `--stamp-drop` adds a lift off a card, none by default. What follows is where a stamp gets more.
|
|
858
861
|
- **A stamp on a card lies flat** (Lh 2026-10-24): no lift, only the contact shadow, at every size — a `FeedCard`'s lead, a
|
|
859
862
|
`Foot` row's, `xs`. A stamp in a card's head is glued down (Lh 2026-10-25): plain, `under` or `sm`, a hair of shadow
|
|
860
863
|
under paper (`--shadow-glued`, knob `--stamp-under-drop`); `bare` and `xs` stay flat (contact shadow only). One rule by where it stands (`stamp.css`), nothing to pass. A stamp off a card keeps its shadow: the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.142",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev).",
|