@usableapp/cardds 0.7.178 → 0.7.180
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 +38 -0
- package/bin/cardds.mjs +23 -3
- package/css/actions.css +11 -8
- package/css/base.css +13 -2
- package/css/card.css +39 -7
- package/css/layover.css +25 -16
- package/css/lists.css +58 -4
- package/css/media.css +33 -0
- package/css/parts.css +20 -2
- package/css/stack.css +43 -1
- package/css/tokens.css +4 -1
- package/dist/actions/Btn.d.ts +6 -2
- package/dist/actions/Btn.js +5 -2
- package/dist/cardds.css +246 -41
- package/dist/cards/Card.d.ts +1 -1
- package/dist/cards/Card.js +4 -1
- package/dist/cards/CardParts.d.ts +12 -5
- package/dist/cards/CardParts.js +8 -7
- package/dist/cards/FeedPost.d.ts +31 -0
- package/dist/cards/FeedPost.js +14 -0
- package/dist/catalog.json +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/layover/Popup.d.ts +2 -2
- package/dist/layover/Popup.js +1 -1
- package/dist/lists/Bubble.d.ts +25 -6
- package/dist/lists/Bubble.js +17 -8
- package/dist/lists/Row.d.ts +11 -2
- package/dist/lists/Row.js +4 -3
- package/dist/media/Mosaic.d.ts +4 -3
- package/dist/media/Mosaic.js +8 -4
- package/dist/media/Thumb.d.ts +14 -0
- package/dist/media/Thumb.js +12 -0
- package/dist/parts/Foot.d.ts +7 -2
- package/dist/parts/Foot.js +4 -3
- package/dist/parts/Head.d.ts +3 -1
- package/dist/parts/Head.js +3 -1
- package/dist/scaffold/Centre.d.ts +1 -1
- package/dist/scaffold/Centre.js +1 -1
- package/dist/scaffold/Panes.d.ts +1 -0
- package/dist/scaffold/Panes.js +1 -0
- package/dist/sheets/Modal.d.ts +1 -1
- package/dist/sheets/Modal.js +1 -1
- package/dist/sheets/SheetStack.d.ts +3 -1
- package/dist/sheets/SheetStack.js +2 -1
- package/dist/sheets/StackSheet.d.ts +6 -4
- package/dist/sheets/StackSheet.js +8 -3
- package/dist/sheets/stackCard.d.ts +2 -0
- package/dist/templates/Home.d.ts +3 -1
- package/dist/templates/Home.js +2 -2
- package/dist/templates/Splash.d.ts +1 -1
- package/dist/templates/Splash.js +1 -1
- package/dist/type/Icon.js +1 -1
- package/dist/type/Phrase.d.ts +9 -0
- package/dist/type/Phrase.js +11 -0
- package/dist/type/Strong.d.ts +7 -0
- package/dist/type/Strong.js +9 -0
- package/dist/type/Text.d.ts +5 -1
- package/dist/type/Text.js +7 -3
- package/dist/type/icons.d.ts +1 -1
- package/dist/type/icons.js +2 -2
- package/docs/reference.md +121 -8
- package/icons.svg +1 -0
- package/lib/audit.mjs +330 -0
- package/lib/guide.mjs +1 -1
- package/lib/mcp.mjs +13 -0
- package/lint/rules.mjs +2 -2
- package/package.json +1 -1
package/lint/rules.mjs
CHANGED
|
@@ -235,12 +235,12 @@ export function checkSource(source, file, { classes = carddsClasses() } = {}) {
|
|
|
235
235
|
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}.');
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
// 9 · a card never wraps a card (Lh 2026-10-17): a CardList, a CardFeed and a row card stand on the base or in a sheet's body, each card its own boundary.
|
|
238
|
+
// 9 · a card never wraps a card (Lh 2026-10-17): a CardList, a CardFeed, a FeedPost and a row card stand on the base or in a sheet's body, each card its own boundary.
|
|
239
239
|
// `Card sm` inside a card is left alone: its own doc still names that place (not ruled yet)
|
|
240
240
|
for (const m of text.matchAll(/<Card\b(?![\w.])/g)) {
|
|
241
241
|
const el = elementAt(text, m.index);
|
|
242
242
|
const inner = el.slice(tagAt(text, m.index).length);
|
|
243
|
-
for (const c of inner.matchAll(/<(Card|CardList|CardFeed|FeedCard)\b(?![\w.])/g)) {
|
|
243
|
+
for (const c of inner.matchAll(/<(Card|CardList|CardFeed|FeedCard|FeedPost)\b(?![\w.])/g)) {
|
|
244
244
|
if (c[1] === 'Card' && /\ssm\b(?!\s*=\s*\{\s*false)/.test(tagAt(inner, c.index))) continue;
|
|
245
245
|
add('card-in-card', 'error', m.index + tagAt(text, m.index).length + c.index, `<${c[1]}> inside a <Card>: a card never wraps a card — stand the ${c[1] === 'Card' ? 'card' : c[1]} on the base or in a sheet's body, without a card round it. Rows inside a card are <Rows>/<Row>, which draw no boundary.`);
|
|
246
246
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.180",
|
|
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).",
|