@usableapp/cardds 0.7.161 → 0.7.162
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 +32 -0
- package/css/actions.css +27 -45
- package/css/base.css +8 -5
- package/css/card.css +5 -5
- package/css/journey.css +5 -7
- package/css/layover.css +0 -1
- package/css/lists.css +2 -2
- package/css/media.css +5 -0
- package/css/numbers.css +1 -1
- package/css/palette.css +1 -1
- package/css/parts.css +73 -55
- package/css/sheet.css +1 -1
- package/css/stack.css +13 -5
- package/css/stamp.css +30 -30
- package/css/tokens.css +37 -4
- package/dist/actions/Btn.d.ts +59 -28
- package/dist/actions/Btn.js +17 -5
- package/dist/actions/BtnGroup.d.ts +3 -3
- package/dist/actions/BtnGroup.js +2 -2
- package/dist/actions/BtnRow.d.ts +2 -2
- package/dist/actions/BtnRow.js +1 -1
- package/dist/actions/Chip.d.ts +1 -1
- package/dist/actions/Fab.d.ts +11 -7
- package/dist/actions/Fab.js +6 -5
- package/dist/actions/LinkBlock.d.ts +2 -1
- package/dist/actions/LinkBlock.js +2 -1
- package/dist/cardds.css +208 -162
- package/dist/cards/CardParts.d.ts +1 -1
- package/dist/cards/CardParts.js +1 -1
- package/dist/catalog.json +1 -1
- package/dist/choice/Calendar.js +2 -2
- package/dist/forms/Composer.d.ts +2 -2
- package/dist/forms/Field.d.ts +1 -1
- package/dist/forms/Field.js +1 -1
- package/dist/forms/FileBtn.d.ts +8 -7
- package/dist/forms/FileBtn.js +3 -3
- package/dist/forms/MessageBar.d.ts +2 -2
- package/dist/forms/MessageBar.js +4 -4
- package/dist/forms/Pin.js +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/journey/JourneyBadge.d.ts +7 -4
- package/dist/journey/JourneyBadge.js +3 -3
- package/dist/lists/Bubble.d.ts +6 -6
- package/dist/media/Postcard.d.ts +1 -1
- package/dist/media/Postcard.js +2 -2
- package/dist/media/Tile.d.ts +4 -6
- package/dist/media/Tile.js +2 -2
- package/dist/parts/End.d.ts +1 -1
- package/dist/parts/End.js +1 -1
- package/dist/parts/Foot.d.ts +3 -3
- package/dist/parts/Foot.js +1 -1
- package/dist/parts/Head.d.ts +3 -2
- package/dist/parts/Head.js +3 -2
- package/dist/parts/Words.d.ts +3 -2
- package/dist/parts/Words.js +11 -6
- package/dist/parts/endRoom.d.ts +6 -4
- package/dist/parts/endRoom.js +13 -8
- package/dist/post/PostDesk.js +2 -3
- package/dist/post/PostLetter.js +2 -2
- package/dist/scaffold/ActionBar.d.ts +4 -4
- package/dist/scaffold/ActionBar.js +3 -3
- package/dist/scaffold/AppBar.d.ts +1 -1
- package/dist/scaffold/FloatBar.d.ts +1 -1
- package/dist/scaffold/TopBar.d.ts +2 -2
- package/dist/sheets/Modal.d.ts +2 -2
- package/dist/sheets/Modal.js +2 -2
- package/dist/sheets/Sheet.d.ts +1 -1
- package/dist/sheets/Sheet.js +1 -1
- package/dist/sheets/SheetStack.js +3 -4
- package/dist/sheets/StackBack.d.ts +1 -1
- package/dist/sheets/StackBack.js +2 -3
- package/dist/sheets/StackSheet.d.ts +1 -1
- package/dist/sheets/StackSheet.js +2 -3
- package/dist/sheets/sheetDrag.js +2 -2
- package/dist/sheets/stackCard.js +5 -6
- package/dist/stamp/Stamp.d.ts +4 -2
- package/dist/stamp/Stamp.js +2 -2
- package/dist/state.d.ts +2 -0
- package/dist/state.js +9 -0
- package/dist/sticky/Sticky.d.ts +1 -1
- package/dist/sticky/StickyAnswer.d.ts +1 -1
- package/dist/sticky/StickyHeading.d.ts +2 -2
- package/dist/templates/CallSheet.js +1 -1
- package/dist/templates/Walkthrough.js +2 -2
- package/dist/type/Icon.d.ts +1 -1
- package/dist/type/Icon.js +1 -1
- package/dist/type/textScale.d.ts +4 -3
- package/dist/type/textScale.js +4 -3
- package/docs/reference.md +45 -25
- package/lint/rules.mjs +7 -7
- package/package.json +3 -1
- package/scripts/codemod-parts.mjs +1 -1
- package/dist/actions/IconBtn.d.ts +0 -326
- package/dist/actions/IconBtn.js +0 -19
package/docs/reference.md
CHANGED
|
@@ -158,7 +158,7 @@ npx cardds guide # the few rules no checker sees, in one short te
|
|
|
158
158
|
|
|
159
159
|
`get` lists the component's **knobs** — each `--name` with its default, what it sets and the selector that reads it, joined by the classes the
|
|
160
160
|
component emits, so a knob named for an old name (`--action-note-*`) is found under the component that has it now (`BarNote`). It says what the
|
|
161
|
-
component **composes** (the catalog names its own source renders or calls: `Fab` → `
|
|
161
|
+
component **composes** (the catalog names its own source renders or calls: `Fab` → `Btn`, `Icon`) and what it is **composed by** (the inverse).
|
|
162
162
|
`find` matches the role's note and what a component stands in for as well as its name and description, so a question by intention ("a setting
|
|
163
163
|
turned on or off", "a code digit by digit") finds the piece (`Toggle`, `Pin`).
|
|
164
164
|
|
|
@@ -201,13 +201,13 @@ An outer governs an inner only through the inner's knobs (`--head-*`, `--body-*`
|
|
|
201
201
|
<Card>
|
|
202
202
|
<Head><Words title="Sunday market" meta="Saturday · 07:00" /><Chip>3 new</Chip></Head>
|
|
203
203
|
<Text level="body">Neighbours trade what they grew.</Text>
|
|
204
|
-
<Foot><Btn primary>Join</Btn></Foot>
|
|
204
|
+
<Foot><Btn tone="primary">Join</Btn></Foot>
|
|
205
205
|
</Card>
|
|
206
206
|
|
|
207
207
|
<Sheet defaultState="half">
|
|
208
208
|
<Head><Words title="Sunday market" meta="Saturday · 07:00" /><Chip>3 new</Chip></Head>
|
|
209
209
|
<Body><Text level="body">Neighbours trade what they grew.</Text></Body>
|
|
210
|
-
<Foot><Btn primary block>Join</Btn></Foot>
|
|
210
|
+
<Foot><Btn tone="primary" block>Join</Btn></Foot>
|
|
211
211
|
</Sheet>
|
|
212
212
|
```
|
|
213
213
|
|
|
@@ -259,7 +259,8 @@ later and stands clear of it. `Card` forwards `ref` to its root for anything els
|
|
|
259
259
|
- **`ChipChoice`** is ONE choice made of `ChipPick`s, controlled as a whole: `value` + `onValueChange` (a list of the
|
|
260
260
|
picked values; one at most without `many`), or `defaultValue`. An option's `lead` (a small `Avatar`, an `Icon`) leads
|
|
261
261
|
its words, unheard. `add` stands a "+" first. A one-line strip to the holder's edges by default, `wrap` wraps. On a sheet.
|
|
262
|
-
- **`TileGrid
|
|
262
|
+
- **`TileGrid cols={2}`** — always two across at every phone width: four picks stand 2×2. A `wide` tile still takes a row.
|
|
263
|
+
- **`TileGrid cols={4}`** — four small square tiles across: the icon over a short label, a sheet's row of actions.
|
|
263
264
|
|
|
264
265
|
## Sheet stack markup
|
|
265
266
|
|
|
@@ -356,8 +357,8 @@ of `Screen`:
|
|
|
356
357
|
- **The bar is INSIDE the screen** — `bottom`, never a sibling after `</Screen>`, never pinned with a hand-set `position`.
|
|
357
358
|
A `FloatBar` in `bottom` floats the same way.
|
|
358
359
|
- **A chat's bottom is its `MessageBar`** — the box the member types a message in, under a `Thread` of `Bubble`s in a
|
|
359
|
-
`Step` › `Page` (`<Screen fill top={…} bottom={<MessageBar…>}>`). lead (an extra action,
|
|
360
|
-
`
|
|
360
|
+
`Step` › `Page` (`<Screen fill top={…} bottom={<MessageBar…>}>`). lead (an extra action, a round `Btn`) · the box · an
|
|
361
|
+
`Btn shape="round" tone="primary"` send that is off while the box holds only blanks. The box starts one line tall and grows with the words up
|
|
361
362
|
to five lines (`--message-bar-input-max-h`), then scrolls. Controlled like an input (`value` + `onValueChange`, or
|
|
362
363
|
`defaultValue`); `onSend(words)` hands them to the app, then the bar asks for an empty box; the cursor stays in the box, so
|
|
363
364
|
the keyboard stays up. It is a layer like the `ActionBar`: measured into `--bottom-h`, lifted by `--kb`. It is not the
|
|
@@ -371,7 +372,7 @@ of `Screen`:
|
|
|
371
372
|
of the column, so it never scrolls away and the content starts under it at its real height; it touches the bar, edge to
|
|
372
373
|
edge, on the screen's ground (`--top-row-bg`). On a scrolling screen it sticks to the top once the bar has gone.
|
|
373
374
|
- **A chat that opens as a sheet** (Lh 2026-10-28) — over a home rather than a page of its own: `<SheetStage over dim>` ›
|
|
374
|
-
`<Sheet state="full" states="full" handle={false}>` · `Head` (the friend's name,
|
|
375
|
+
`<Sheet state="full" states="full" handle={false}>` · `Head` (the friend's name, a round `Btn size="sm" icon="x"` that sets `away`) ·
|
|
375
376
|
`Body` (the `Thread`, or a `StickyThread lapped`) · `<Foot><MessageBar…/></Foot>`. The `MessageBar` is the foot's one child
|
|
376
377
|
and takes its line and its padding; it stands on the sheet's bottom edge above the keyboard, and the body stops above it
|
|
377
378
|
however tall it grows. The sheet's `topRow` is its pinned row under the head (the request the chat is about), as the
|
|
@@ -384,7 +385,7 @@ of `Screen`:
|
|
|
384
385
|
- **A reply to one message** (Lh 2026-10-28): `MessageBar quote` is the line being answered, over the box, cut at one line, a
|
|
385
386
|
rule at its start (knobs `--message-bar-quote-ink`, `--message-bar-quote-rule-ink`); `onQuoteClose` + `quoteCloseLabel` give it
|
|
386
387
|
a ✕. Controlled: shown while the app passes it, dropped by the app (after a send, or on the ✕); the message it answers is a
|
|
387
|
-
`Bubble highlighted`. The reply button beside a message is
|
|
388
|
+
`Bubble highlighted`. The reply button beside a message is a round `Btn icon="reply"` (story `MessageBar · ReplyTo`).
|
|
388
389
|
- **A screen with a `Sheet` has no bottom.** The sheet finishes on its own `Foot`; `Screen` warns once when both
|
|
389
390
|
are there.
|
|
390
391
|
- **Templates** are `Screen`s with the three parts filled (`Walkthrough` = top `lead` · content `Pages` · bottom
|
|
@@ -612,12 +613,13 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
612
613
|
the one thing beside it. Its children are, in order, an optional lead
|
|
613
614
|
(a `Lead`, a `StackBack`, a `JourneyBadge`), the `Words` (the title takes
|
|
614
615
|
the room), chips, and an end: hints, actions or a more-menu — the
|
|
615
|
-
contextual info — at the far right (`
|
|
616
|
+
contextual info — at the far right (`Btn shape="round" size="sm"`, `Chip`, `Link`, `End`).
|
|
616
617
|
With nothing at the far right the title runs all the way across. The title
|
|
617
618
|
wraps, no squeeze, up to three lines and is cut there with an ellipsis (Lh
|
|
618
619
|
2026-10-21; `--head-title-lines`, default 3). A date
|
|
619
620
|
(`JourneyBadge stretch`) beside it is as tall as the title block up to
|
|
620
|
-
its own three lines, at the head's top
|
|
621
|
+
its own three lines (day · number · month), at the head's top; `subBeside`
|
|
622
|
+
sets it on two (the month beside the number), the app's pick. The head is FLAT markup — the
|
|
621
623
|
title (`h2.words__title`, `h1` with `level="h1"`), then an optional meta
|
|
622
624
|
as a span (`.words__meta`), then the far-right thing; no
|
|
623
625
|
wrapper element, no `<p>`: `Words` in a `Head` writes its title and its
|
|
@@ -630,7 +632,7 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
630
632
|
A head that LEADS with a person or a thing — a `Lead`, an `Avatar`, an `AvatarStack` (a `Stamp bare` in one)
|
|
631
633
|
as its first child, the `Words` next — draws as a FeedCard's head (Lh 2026-10-28): the lead at the left, beside
|
|
632
634
|
it ONE left-aligned block, the title at the card heading's size over its meta, and the end (`End caption`, an
|
|
633
|
-
`
|
|
635
|
+
round `Btn` ⋯) at the right, centred to the block; with no end the block takes the room, with no meta the title is
|
|
634
636
|
centred to the lead. `--head-title-lines` cuts the title, `--head-meta-lines` the meta (default: not cut).
|
|
635
637
|
`<Head><AvatarStack><Stamp bare …/></AvatarStack><Words title meta /><End caption="5 min" /></Head>`
|
|
636
638
|
(story `Head · HeadLeadWords`). No `Row` inside the card for it.
|
|
@@ -661,7 +663,7 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
661
663
|
error><Icon name="x" size="xs" /> Cancel request</Link></Foot>`, stories `Btn · OwnItemFoot`, `Foot · SplitLinks`).
|
|
662
664
|
Each link fills its half (the whole half is the tap target, a status row's height, at least `--tap`), its icon and
|
|
663
665
|
words centred at the link's small size, never wrapped. An `Icon` in any `Link` fills the line of the words, judged by the X (box `0.8em`, knob `--link-icon-size`: the X
|
|
664
|
-
draws 0.47em, near the Thai body 0.523em of PK Nonthaburi), its centre on the body band's centre (0.26em over the baseline, the line centred in the link's height), whatever its `size`: `size="xs"` may stay or go. Two `Btn`s (`Btn warn` for the cancel) still work as the
|
|
666
|
+
draws 0.47em, near the Thai body 0.523em of PK Nonthaburi), its centre on the body band's centre (0.26em over the baseline, the line centred in the link's height), whatever its `size`: `size="xs"` may stay or go. Two `Btn`s (`Btn tone="warn"` for the cancel) still work as the
|
|
665
667
|
halves (story `Foot · Split`): the label words then (knob `--foot-split-font-size`), one short word each. The foot's status
|
|
666
668
|
`Rows` follow the two halves in the same `Foot split` and stand under them, a rule between, the same row pitch
|
|
667
669
|
(`<Foot split><Link sm>…</Link><Link sm error>…</Link><Rows>…</Rows></Foot>`, story `Foot · SplitOverStatus`).
|
|
@@ -672,7 +674,7 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
672
674
|
ทั้งวัน), where a strip did not read as pressable (Lh 2026-10-24). Both with `select`; knobs
|
|
673
675
|
`--btngroup-choice-bg|ink|border|rule|radius|on-bg|on-ink`.
|
|
674
676
|
- In React the head is the card's first child, a `<Head>` (`<Head><Words title meta /><Chip>…</Chip></Head>`),
|
|
675
|
-
and the foot its last, a `<Foot>` (`<Foot link={<Link sm>…</Link>}><Btn primary>…</Btn></Foot>`, `round` for a few
|
|
677
|
+
and the foot its last, a `<Foot>` (`<Foot link={<Link sm>…</Link>}><Btn tone="primary">…</Btn></Foot>`, `round` for a few
|
|
676
678
|
big round buttons), the content between them. The card finds its `Head` and its `Foot` by their type, so a
|
|
677
679
|
component of your own that wraps one is not found (Lh 2026-10-21: one head, body and foot for a card, a sheet and a stack sheet).
|
|
678
680
|
- **A card that goes on is pressed whole** (Lh 2026-10-09). A card whose ONLY
|
|
@@ -782,7 +784,7 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
782
784
|
(Lh 2026-10-28): the map and the row as one `<a>`, stacked with the card's gap, the card's ink, no frame, no padding,
|
|
783
785
|
dimming under the finger (knob `--link-block-gap`): `<LinkBlock href target="_blank" rel="noopener noreferrer"
|
|
784
786
|
aria-label="Open … in Maps"><MapArea inline still mark="pin" ringLabel="…"><div /></MapArea><Row><Lead icon="map-pin" />
|
|
785
|
-
<Words title meta /><Icon name="arrow-up-right" /></Row></LinkBlock>` (gallery `MapArea/Still`, `LinkBlock/PlaceInCard`).
|
|
787
|
+
<Words title meta /><End caption="Maps"><Icon name="arrow-up-right" /></End></Row></LinkBlock>` (gallery `MapArea/Still`, `LinkBlock/PlaceInCard`): the place's later lines under its end at full width, the End's words and their arrow one unit (the arrow on the words' x-height middle, `--end-icon-gap` from them) at the top, on the place's first line.
|
|
786
788
|
- **An inline map sits in a thin frame**, the joined `BtnGroup look="choice"`'s
|
|
787
789
|
edge (`--border-w`, `--outline`), at the media's corner (`--r-media`, as a picture in a card; Lh 2026-10-28,
|
|
788
790
|
was the pill's `--r-chip`), the map clipped to it.
|
|
@@ -969,7 +971,7 @@ it up. cardds draws the paper; the pictures, their words and which stamp a membe
|
|
|
969
971
|
its third, 4:5, the gaps one `--screen-pad` both ways (`--stamp-book-fill-gap`), nothing at the row's sides; with `bare`
|
|
970
972
|
at 375 a stamp is 103.67 × 129.58. A `false` or `null` child holds no place.
|
|
971
973
|
- A stamp stands for a person in three more places. In a `Centre` — a `Stamp` or a `StampPlace` — it stands in the
|
|
972
|
-
middle and the words and link under it centre. In a card's head — `<Card foot={<Btn primary block>…</Btn>}><Head><Words title={name} meta={greeting} /><Stamp bare …/></Head></Card>` — the words stand at the left and the stamp at the right,
|
|
974
|
+
middle and the words and link under it centre. In a card's head — `<Card foot={<Btn tone="primary" block>…</Btn>}><Head><Words title={name} meta={greeting} /><Stamp bare …/></Head></Card>` — the words stand at the left and the stamp at the right,
|
|
973
975
|
beside both lines (`Stamp under`: the words keep no room for it, they run the head's whole width over the stamp, which lies under them in
|
|
974
976
|
its place and size — for a long title); in a head that leads with a date (a `JourneyBadge`, then a `ChipRow`) it stands on a row of its own under the
|
|
975
977
|
date and the chips, in the order given. Who asks over the ask is `Words over`: `<Head><Words level="h1" over="Somsri asks for help" title={ask} /><Stamp …/></Head>`
|
|
@@ -1228,7 +1230,7 @@ That file is where a project's look lives. Bases and roles:
|
|
|
1228
1230
|
|---|---|---|
|
|
1229
1231
|
| room **between** things | `--sp-base` (0.25rem = 4) | every `--sp-N` = base × N → paddings, gaps, the screen's inset, the bar's reserve, the sheet's peek |
|
|
1230
1232
|
| type | `--fs-base` (1.375rem = 22 — the body) | every `--fs-*`, `--badge`, `--icon-xs` |
|
|
1231
|
-
| corners | `--r-base` (1.3rem = 20.8) | every `--r-*`; `0` = square. `--r-chip` stays fully round. One card radius (`--r-card`) for every card, tile, menu, sheet, fab, but a small card keeps the big card's PROPORTION, not its size: a row card is `--r-card-row` (13) |
|
|
1233
|
+
| corners | `--r-base` (1.3rem = 20.8) | every `--r-*`; `0` = square. `--r-chip` stays fully round. One card radius (`--r-card`) for every card, tile, menu, sheet, fab, but a small card keeps the big card's PROPORTION, not its size: a row card is `--r-card-row` (13). A corner that POINTS, a bubble's tail toward its sender, is `--r-tail` (9.1, base × 7/16; knob `--bubble-tail-radius`) |
|
|
1232
1234
|
| the size **of** things | `--tap-base` (3rem = 48) | `--tap*`, `--btn-h`, `--chip-h`, `--bar-h`, `--header-h`, `--fab`, `--icon*`, `--avatar*`, `--dot*`, `--ring*`, `--tile-*`. `--tap*` never under `--tap-floor` (44px) |
|
|
1233
1235
|
| faces | `--font-ui`, `--font-display` | |
|
|
1234
1236
|
| colour | `--color-surface`, `--color-ink`, `--color-paper`, `--color-brand`, `--color-on-brand` — no default: unset = the wireframe | every role: surface / words, the three card tones (paper · the brand washed 14% into the surface · the brand), the muted inks (the ink washed into their ground), accent, neutral actions, `--dot-a` |
|
|
@@ -1371,8 +1373,10 @@ Every length token resolves to rem — a multiplier × one of four rem bases
|
|
|
1371
1373
|
(`--sp-4` = `--sp-base` × 4 = 1rem, `--tap` = `--tap-base` = 3rem, `--r-card` =
|
|
1372
1374
|
`--r-base` × 2, `--fs-h1` = `--fs-base` × 1.2; see "A project's theme") — so the
|
|
1373
1375
|
whole system scales with the root font size. `base.css` keeps it at `100%` (the browser's setting, 16px by
|
|
1374
|
-
default)
|
|
1375
|
-
|
|
1376
|
+
default) on every screen: a screen's or a box's size is never a trigger in cardds (Lh 2026-10-29) —
|
|
1377
|
+
no `@media` / `@container` rule branches the layout by width or height. A layout choice by size is the
|
|
1378
|
+
app's: a prop (which picks a class) or a knob; an app that wants a smaller scale on a narrow phone sets
|
|
1379
|
+
`html { font-size }` in its own css. No
|
|
1376
1380
|
length is written in px, the edges included (Lh 2026-10-20: "units are always rem"): `--border-w`,
|
|
1377
1381
|
`--hairline-w`, `--rule-w`, the focus ring and one device pixel, `--px`, are rem. Two px stay, both the
|
|
1378
1382
|
platform's: the initial value of a registered length (`@property`), which may not be relative, and the
|
|
@@ -1421,6 +1425,12 @@ reads every value from a token in `css/tokens.css` (or a palette, a finish, a pr
|
|
|
1421
1425
|
rounds the line down to whole px (`round(down, calc(var(--lh-x) * 1em), 1px)`), the line box WebKit draws, so Chrome and Safari set
|
|
1422
1426
|
the same lines; a length there makes that `calc()` invalid and drops the whole `font:` it sits in. A box whose children set other sizes
|
|
1423
1427
|
(`body`, a band's big number, a stretched tile badge) keeps the bare ratio, so what inherits it gets a leading for its own size.
|
|
1428
|
+
The glyphs' room (Lh 2026-10-29): `--glyph-rise` (0.2em) and `--glyph-drop` (0.15em), how far ink reaches past a line box — a stacked Thai
|
|
1429
|
+
mark over the first line, a lower vowel under the last — in the em of the type it is read in (a font metric, so it follows the size). A
|
|
1430
|
+
line that clips its words (a head's title and meta cut by a line count, a top bar's title cut by an ellipsis) pads its box by them inside
|
|
1431
|
+
the clip and gives them back outside (`padding-block: var(--glyph-rise) var(--glyph-drop)` with the same negative margin), so no mark is
|
|
1432
|
+
cut and nothing moves. A small icon set in a line of words (an End's arrow, a chip's icon in a head) is a letter of it: `vertical-align:
|
|
1433
|
+
middle`, its middle on the words' x-height middle, never a hand-set em offset.
|
|
1424
1434
|
|
|
1425
1435
|
A knob's default is one of these too, so a knob read from nowhere still shows the theme. No value is written in place in
|
|
1426
1436
|
a component file or an inline `style` in `src/` and `.design-sync/previews/` (`lint/values.mjs` names what counts): a knob's fallback (`z-index: var(--x, 5)`), a number inside `calc()` in a leading or a tracking, `scale` and
|
|
@@ -1441,15 +1451,25 @@ render as colored emoji on phones. Add icons by appending `<symbol>`s
|
|
|
1441
1451
|
(grab from lucide.dev, paste path data). Among the stock names: `reply` (Lucide's, Lh 2026-10-28: answer this message),
|
|
1442
1452
|
beside `megaphone`, `message-circle`, `heart` (story `Icon · All` shows every name).
|
|
1443
1453
|
|
|
1444
|
-
Touch targets: `--tap` 3rem
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1454
|
+
Touch targets: `--tap` 3rem, `--tap-sm` 2.75rem floor (selects, add-row), `--tap-lg` 3.5rem for hero controls.
|
|
1455
|
+
|
|
1456
|
+
**One button, one ladder** (Lh 2026-10-29): `Btn` is every button — `shape` `pill` (words, default) or `round` (an `icon`, its
|
|
1457
|
+
`label` the spoken name; a short word in place of the icon at `lg` / `xl`), `size` `sm` · `md` (default) · `lg` · `xl`, `tone`
|
|
1458
|
+
`default` · `primary` · `quiet` · `warn`; a pill takes `block` or `form`. A pill and a round of one size are ONE height, so either
|
|
1459
|
+
stands in for the other in a row: `sm` `--tap-sm` (2.75rem; knobs `--btn-sm-size`, `--icon-btn-sm-size`) · `md` `--btn-h` = `--tap`
|
|
1460
|
+
(3rem; knob `--icon-btn-size`) · `lg` `--tap-lg` (3.5rem; knobs `--btn-lg-size`, `--icon-btn-lg-size`). `xl` is NOT swap-equal
|
|
1461
|
+
(Lh 2026-10-29: at xl the two shapes are too different to be one step): a pill `--btn-xl-h` 5.5rem, the one giant call to action; a
|
|
1462
|
+
round `--tap-xl` 4.25rem, a foot of a few big round answers. The pill's height is its step's (min-height,
|
|
1463
|
+
`--btn-pad-y` `--sp-1`), FIXED: `md` is `--tap`, on `--tap-base` like the round, never on the words' `--fs-base` (Lh 2026-10-29); only words that
|
|
1464
|
+
outgrow it (a second line, a very large text) make a pill taller. `sm` also takes the small words
|
|
1465
|
+
(knobs `--btn-sm-pad-x`, `--btn-sm-font-size`) — a worded move at a card head's end
|
|
1466
|
+
(`<Head><Words title meta /><Btn size="sm" tone="primary">Keep</Btn></Head>`, story `Btn · Small`). Every size in every tone, both
|
|
1467
|
+
shapes side by side: story `Btn · Ladder`.
|
|
1468
|
+
|
|
1469
|
+
**Something sent out from a button** (`Btn sending`, `Btn shape="round" sending`, Lh 2026-10-28): for `--motion-send` (0.7 s) the
|
|
1450
1470
|
button's icon swells and tips forward and two rings spread from its edge (knob `--btn-sending-ink`, default the accent).
|
|
1451
1471
|
Controlled: the app sets `sending` at the press, and on `onSent` (once, when it ends; at once under reduced motion,
|
|
1452
|
-
where nothing moves) turns it off and swaps the icon for a check or puts the sent thing in.
|
|
1472
|
+
where nothing moves) turns it off and swaps the icon for a check or puts the sent thing in. Story `Btn · Controlled`.
|
|
1453
1473
|
Everything thumb-first.
|
|
1454
1474
|
|
|
1455
1475
|
The two bars across the top of a screen — `.topbar` (screen title) and
|
package/lint/rules.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
8
8
|
|
|
9
9
|
const CSS_DIR = join(dirname(fileURLToPath(import.meta.url)), '..', 'css');
|
|
10
10
|
|
|
11
|
-
/** the props whose default is cardds's own word (src/words.ts), per component — a `label` that is a control's required accessible name (
|
|
11
|
+
/** the props whose default is cardds's own word (src/words.ts), per component — a `label` that is a control's required accessible name (a round Btn, Fab, Pin…) is not here */
|
|
12
12
|
export const CONTROL_NAMES = {
|
|
13
13
|
Sheet: ['handle'], CallSheet: ['handle'], StackSheet: ['backLabel'], Home: ['backLabel'], Walkthrough: ['backLabel', 'nextLabel'],
|
|
14
14
|
Calendar: ['prevLabel', 'nextLabel'], SheetStep: ['skipLabel'], Sticky: ['unreadLabel'], StampOn: ['removeLabel'], Card: ['removeLabel', 'toBackLabel', 'toFrontLabel'], PostLetter: ['backLabel', 'pictureLabel', 'playLabel', 'pauseLabel', 'toLabel'],
|
|
@@ -217,7 +217,7 @@ export function checkSource(source, file, { classes = carddsClasses() } = {}) {
|
|
|
217
217
|
// 8 · a label presses the FIRST control inside it: a button before the row's Check takes the press meant for the row
|
|
218
218
|
for (const m of text.matchAll(/<Row\b/g)) {
|
|
219
219
|
const tag = tagAt(text, m.index);
|
|
220
|
-
if (/\sas\s*=\s*\{?\s*["']label["']/.test(tag) && /<(?:
|
|
220
|
+
if (/\sas\s*=\s*\{?\s*["']label["']/.test(tag) && /<(?:Btn|Link)\b/.test(elementAt(text, m.index)) && !/\shtmlFor\s*=/.test(tag))
|
|
221
221
|
add('row-label-button', 'warn', m.index, '<Row as="label"> holding a button and no htmlFor: a label presses the first control inside it, so a touch on the row\'s words presses that button, not its Check. Give the Check an id and the row htmlFor={id}.');
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -282,22 +282,22 @@ export function checkSource(source, file, { classes = carddsClasses() } = {}) {
|
|
|
282
282
|
add('field-in-card', 'error', c.index, `<${name}> inside a <Card>: the sheet is the paper the member fills in (Lh 2026-10-18) — a card is for reading, pressing buttons and typing in a Pin or a Field. Put the ${name} straight in a Sheet's <Body>, in a <SheetStep>, or on a stack sheet, with no card round it.`);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
// 11 · a worded pager bar: back and next never carry the same signal — the forward Btn (the last) is `primary`, the back one is not
|
|
285
|
+
// 11 · a worded pager bar: back and next never carry the same signal — the forward Btn (the last) is `tone="primary"`, the back one is not
|
|
286
286
|
for (const m of text.matchAll(/<(ActionBar|ActionBarTier)\b(?![\w.])/g)) {
|
|
287
287
|
const tag = tagAt(text, m.index);
|
|
288
288
|
if (!(m[1] === 'ActionBar' ? /\svariant\s*=\s*\{?\s*["']pager["']/ : /\spager\b(?!\s*=\s*\{\s*false)/).test(tag)) continue;
|
|
289
289
|
const el = elementAt(text, m.index);
|
|
290
290
|
const btns = [...el.slice(tag.length).matchAll(/<Btn\b(?![\w.])/g)].map((b) => m.index + tag.length + b.index);
|
|
291
291
|
if (btns.length < 2) continue;
|
|
292
|
-
// the two branches of a conditional (`last ? <Btn primary>Send</Btn> : <Btn primary>Next</Btn>`) are ONE slot: both are the forward one
|
|
292
|
+
// the two branches of a conditional (`last ? <Btn tone="primary">Send</Btn> : <Btn tone="primary">Next</Btn>`) are ONE slot: both are the forward one
|
|
293
293
|
const slot = []; let n = 0;
|
|
294
294
|
btns.forEach((at, i) => { if (i && /^\s*\)?\s*:\s*\(?\s*$/.test(text.slice(btns[i - 1] + elementAt(text, btns[i - 1]).length, at))) slot.push(n); else slot.push(++n); });
|
|
295
295
|
if (n < 2) continue;
|
|
296
296
|
btns.forEach((at, i) => {
|
|
297
|
-
const forward = slot[i] === n, primary = /\
|
|
297
|
+
const forward = slot[i] === n, primary = /\stone\s*=\s*\{?\s*["']primary["']/.test(tagAt(text, at));
|
|
298
298
|
if (primary !== forward) add('pager-forward-primary', 'error', at, forward
|
|
299
|
-
? 'the forward <Btn> of a worded pager is not `primary`: back and next carry the same signal. The last Btn (the step it leads to) is <Btn primary>; the back one stays plain.'
|
|
300
|
-
: 'a back <Btn> of a worded pager is `primary`: only the forward one (the last) is. Drop `
|
|
299
|
+
? 'the forward <Btn> of a worded pager is not `tone="primary"`: back and next carry the same signal. The last Btn (the step it leads to) is <Btn tone="primary">; the back one stays plain.'
|
|
300
|
+
: 'a back <Btn> of a worded pager is `tone="primary"`: only the forward one (the last) is. Drop its `tone` here.');
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.162",
|
|
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).",
|
|
@@ -20,10 +20,12 @@
|
|
|
20
20
|
"@types/react": "^19.3.0",
|
|
21
21
|
"@types/react-dom": "^19.3.0",
|
|
22
22
|
"@vitejs/plugin-react": "^6.1.1",
|
|
23
|
+
"eslint": "^10.13.0",
|
|
23
24
|
"react": "^19.3.0",
|
|
24
25
|
"react-dom": "^19.3.0",
|
|
25
26
|
"react-router": "^8.3.1",
|
|
26
27
|
"typescript": "^5.9.3",
|
|
28
|
+
"typescript-eslint": "^8.72.1",
|
|
27
29
|
"vite": "^8.3.0"
|
|
28
30
|
},
|
|
29
31
|
"main": "dist/index.js",
|
|
@@ -248,7 +248,7 @@ function rowOf(source, sf, el) {
|
|
|
248
248
|
|
|
249
249
|
/** the file rewritten: `source` after, `tags` rewritten, `imports` rewritten, and `left`, the tags no rule fits (`{ line, name, why }`) */
|
|
250
250
|
export function rewrite(source, file = 'x.tsx') {
|
|
251
|
-
let tags = 0
|
|
251
|
+
let tags = 0;
|
|
252
252
|
const left = [];
|
|
253
253
|
let text = source;
|
|
254
254
|
for (let pass = 0; pass < 12; pass++) {
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from 'react';
|
|
2
|
-
import { type IconName } from '../type/Icon.js';
|
|
3
|
-
export interface IconBtnProps extends ComponentProps<'button'> {
|
|
4
|
-
/** the accessible name — required, the button has no text */
|
|
5
|
-
label: string;
|
|
6
|
-
/** the icon to show (sized to the button); or pass an Icon as children */
|
|
7
|
-
icon?: IconName;
|
|
8
|
-
/** 40px, for a card head or a top bar; default 48px (the short form of `size="sm"`) */
|
|
9
|
-
sm?: boolean;
|
|
10
|
-
/** the round sizes, all on `--tap-base`: `sm` (44) · default (48) · `lg` (56, the hero control) · `xl` (68, the biggest — a card foot of a few big
|
|
11
|
-
* round buttons). In `lg` and `xl` the icon is a share of the circle (knob `--icon-btn-icon`) and a word child keeps inside it
|
|
12
|
-
* (knob `--icon-btn-word-max`). Each size has its knob: `--icon-btn-lg-size`, `--icon-btn-xl-size` */
|
|
13
|
-
size?: 'sm' | 'lg' | 'xl';
|
|
14
|
-
/** filled accent (the forward arrow, the send button) */
|
|
15
|
-
invert?: boolean;
|
|
16
|
-
/** filled with the primary Btn's fill (the palette's primary, `--btn-primary-bg`): the one answer, on a card whose foot is round buttons.
|
|
17
|
-
* `invert` is the accent, `primary` the primary — the same fill on the wireframe, two on a palette that gives them two colours */
|
|
18
|
-
primary?: boolean;
|
|
19
|
-
/** a link styled as a round button */
|
|
20
|
-
href?: string;
|
|
21
|
-
/** SENDING: something goes OUT from the button — its icon swells and tips forward, two rings spread from it (`--motion-send`, 0.7 s; knob
|
|
22
|
-
* `--btn-sending-ink`, default the accent). CONTROLLED: the app turns it on at the press and off after `onSent` (and swaps the icon for a check,
|
|
23
|
-
* or puts the sent thing in). Under reduced motion nothing moves */
|
|
24
|
-
sending?: boolean;
|
|
25
|
-
/** the send-out has ended (once per `sending`; at once where motion is off): the app does what follows */
|
|
26
|
-
onSent?: () => void;
|
|
27
|
-
}
|
|
28
|
-
/** IconBtn — the round icon button: `sm` in heads and bars, full size in rows and composers, `invert` for the one filled move, `primary` for the
|
|
29
|
-
* primary fill. `size="lg"` / `"xl"` are the big rounds (the foot of a few round answers: `<Foot round>`); a short WORD may stand in one
|
|
30
|
-
* as its child (`<IconBtn size="xl" primary label="ช่วยเหลือ">ช่วย</IconBtn>`): it grows with the member's text size up to the circle's share.
|
|
31
|
-
* It is a button and nothing more: to open a Menu, give it the platform's `popoverTarget={the Menu's id}` and render that `<Menu popover actions id>`
|
|
32
|
-
* wherever you like — the panel anchors to the button that opened it. To open anything else, `onClick`. */
|
|
33
|
-
export declare function IconBtn({ label, icon, sm, size, invert, primary, href, sending, onSent, onAnimationEnd, className, type, children, ...rest }: IconBtnProps): import("react").DetailedReactHTMLElement<{
|
|
34
|
-
ref?: import("react").Ref<HTMLButtonElement> | undefined;
|
|
35
|
-
key?: import("react").Key | null | undefined;
|
|
36
|
-
disabled?: boolean | undefined;
|
|
37
|
-
form?: string | undefined;
|
|
38
|
-
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
39
|
-
formEncType?: string | undefined;
|
|
40
|
-
formMethod?: string | undefined;
|
|
41
|
-
formNoValidate?: boolean | undefined;
|
|
42
|
-
formTarget?: string | undefined;
|
|
43
|
-
name?: string | undefined;
|
|
44
|
-
value?: string | readonly string[] | number | undefined;
|
|
45
|
-
defaultChecked?: boolean | undefined;
|
|
46
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
47
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
48
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
49
|
-
accessKey?: string | undefined;
|
|
50
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
51
|
-
autoFocus?: boolean | undefined;
|
|
52
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
53
|
-
contextMenu?: string | undefined;
|
|
54
|
-
dir?: string | undefined;
|
|
55
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
56
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
57
|
-
hidden?: boolean | undefined;
|
|
58
|
-
id?: string | undefined;
|
|
59
|
-
lang?: string | undefined;
|
|
60
|
-
nonce?: string | undefined;
|
|
61
|
-
slot?: string | undefined;
|
|
62
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
style?: import("react").CSSProperties | undefined;
|
|
64
|
-
tabIndex?: number | undefined;
|
|
65
|
-
title?: string | undefined;
|
|
66
|
-
translate?: "yes" | "no" | undefined;
|
|
67
|
-
radioGroup?: string | undefined;
|
|
68
|
-
role?: import("react").AriaRole | undefined;
|
|
69
|
-
about?: string | undefined;
|
|
70
|
-
content?: string | undefined;
|
|
71
|
-
datatype?: string | undefined;
|
|
72
|
-
inlist?: any;
|
|
73
|
-
prefix?: string | undefined;
|
|
74
|
-
property?: string | undefined;
|
|
75
|
-
rel?: string | undefined;
|
|
76
|
-
resource?: string | undefined;
|
|
77
|
-
rev?: string | undefined;
|
|
78
|
-
typeof?: string | undefined;
|
|
79
|
-
vocab?: string | undefined;
|
|
80
|
-
autoCorrect?: string | undefined;
|
|
81
|
-
autoSave?: string | undefined;
|
|
82
|
-
color?: string | undefined;
|
|
83
|
-
itemProp?: string | undefined;
|
|
84
|
-
itemScope?: boolean | undefined;
|
|
85
|
-
itemType?: string | undefined;
|
|
86
|
-
itemID?: string | undefined;
|
|
87
|
-
itemRef?: string | undefined;
|
|
88
|
-
results?: number | undefined;
|
|
89
|
-
security?: string | undefined;
|
|
90
|
-
unselectable?: "on" | "off" | undefined;
|
|
91
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
92
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
93
|
-
popoverTarget?: string | undefined;
|
|
94
|
-
inert?: boolean | undefined;
|
|
95
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
96
|
-
is?: string | undefined;
|
|
97
|
-
exportparts?: string | undefined;
|
|
98
|
-
part?: string | undefined;
|
|
99
|
-
"aria-activedescendant"?: string | undefined;
|
|
100
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
101
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
102
|
-
"aria-braillelabel"?: string | undefined;
|
|
103
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
104
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
106
|
-
"aria-colcount"?: number | undefined;
|
|
107
|
-
"aria-colindex"?: number | undefined;
|
|
108
|
-
"aria-colindextext"?: string | undefined;
|
|
109
|
-
"aria-colspan"?: number | undefined;
|
|
110
|
-
"aria-controls"?: string | undefined;
|
|
111
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
112
|
-
"aria-describedby"?: string | undefined;
|
|
113
|
-
"aria-description"?: string | undefined;
|
|
114
|
-
"aria-details"?: string | undefined;
|
|
115
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
116
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
117
|
-
"aria-errormessage"?: string | undefined;
|
|
118
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
119
|
-
"aria-flowto"?: string | undefined;
|
|
120
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
121
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
122
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
123
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
124
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
125
|
-
"aria-label": string;
|
|
126
|
-
"aria-labelledby"?: string | undefined;
|
|
127
|
-
"aria-level"?: number | undefined;
|
|
128
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
129
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
130
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
131
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
132
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
133
|
-
"aria-owns"?: string | undefined;
|
|
134
|
-
"aria-placeholder"?: string | undefined;
|
|
135
|
-
"aria-posinset"?: number | undefined;
|
|
136
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
137
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
138
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
139
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
140
|
-
"aria-roledescription"?: string | undefined;
|
|
141
|
-
"aria-rowcount"?: number | undefined;
|
|
142
|
-
"aria-rowindex"?: number | undefined;
|
|
143
|
-
"aria-rowindextext"?: string | undefined;
|
|
144
|
-
"aria-rowspan"?: number | undefined;
|
|
145
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
146
|
-
"aria-setsize"?: number | undefined;
|
|
147
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
148
|
-
"aria-valuemax"?: number | undefined;
|
|
149
|
-
"aria-valuemin"?: number | undefined;
|
|
150
|
-
"aria-valuenow"?: number | undefined;
|
|
151
|
-
"aria-valuetext"?: string | undefined;
|
|
152
|
-
dangerouslySetInnerHTML?: {
|
|
153
|
-
__html: string | TrustedHTML;
|
|
154
|
-
} | undefined;
|
|
155
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
156
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
157
|
-
onCut?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
158
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
159
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
160
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
161
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
162
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
163
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
164
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
165
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
166
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
167
|
-
onFocus?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
168
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
169
|
-
onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
170
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
171
|
-
onChange?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
172
|
-
onChangeCapture?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
173
|
-
onBeforeInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
174
|
-
onBeforeInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
175
|
-
onInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
176
|
-
onInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
177
|
-
onReset?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
178
|
-
onResetCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
179
|
-
onSubmit?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
180
|
-
onSubmitCapture?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
181
|
-
onInvalid?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
182
|
-
onInvalidCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
183
|
-
onLoad?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
184
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
185
|
-
onError?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
186
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
187
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
188
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
189
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
190
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
191
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
192
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
193
|
-
onAbort?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
194
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
195
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
196
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
197
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
198
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
199
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
200
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
201
|
-
onEmptied?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
202
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
203
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
204
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
205
|
-
onEnded?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
206
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
207
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
208
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
209
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
210
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
211
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
212
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
213
|
-
onPause?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
214
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
215
|
-
onPlay?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
216
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
217
|
-
onPlaying?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
218
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
219
|
-
onProgress?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
220
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
221
|
-
onRateChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
222
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
223
|
-
onSeeked?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
224
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
225
|
-
onSeeking?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
226
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
227
|
-
onStalled?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
228
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
229
|
-
onSuspend?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
230
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
231
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
232
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
233
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
234
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
235
|
-
onWaiting?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
236
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
237
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
238
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
239
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
240
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
241
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
242
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
243
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
244
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
245
|
-
onDrag?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
246
|
-
onDragCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
247
|
-
onDragEnd?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
248
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
249
|
-
onDragEnter?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
250
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
251
|
-
onDragExit?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
252
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
253
|
-
onDragLeave?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
254
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
255
|
-
onDragOver?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
256
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
257
|
-
onDragStart?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
258
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
259
|
-
onDrop?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
260
|
-
onDropCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
261
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
262
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
263
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
264
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
265
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
266
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
267
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
268
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
269
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
270
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
271
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
272
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
273
|
-
onSelect?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
274
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
275
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
276
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
277
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
278
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
279
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
280
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
281
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
282
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
283
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
284
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
285
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
286
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
287
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
288
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
289
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
290
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
291
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
292
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
293
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
294
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
295
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
296
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
297
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
298
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
299
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
300
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
301
|
-
onScroll?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
302
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
303
|
-
onScrollEnd?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
304
|
-
onScrollEndCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
305
|
-
onWheel?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
306
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
307
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
308
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
309
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
310
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
311
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
312
|
-
onToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
313
|
-
onBeforeToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
314
|
-
onTransitionCancel?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
315
|
-
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
316
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
317
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
318
|
-
onTransitionRun?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
319
|
-
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
320
|
-
onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
321
|
-
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
322
|
-
href: string | undefined;
|
|
323
|
-
type: "reset" | "submit" | "button" | undefined;
|
|
324
|
-
onAnimationEnd: (e: import("react").AnimationEvent<HTMLButtonElement>) => void;
|
|
325
|
-
className: string;
|
|
326
|
-
}, HTMLButtonElement>;
|