@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/bin/cardds.mjs +23 -3
  3. package/css/actions.css +11 -8
  4. package/css/base.css +13 -2
  5. package/css/card.css +39 -7
  6. package/css/layover.css +25 -16
  7. package/css/lists.css +58 -4
  8. package/css/media.css +33 -0
  9. package/css/parts.css +20 -2
  10. package/css/stack.css +43 -1
  11. package/css/tokens.css +4 -1
  12. package/dist/actions/Btn.d.ts +6 -2
  13. package/dist/actions/Btn.js +5 -2
  14. package/dist/cardds.css +246 -41
  15. package/dist/cards/Card.d.ts +1 -1
  16. package/dist/cards/Card.js +4 -1
  17. package/dist/cards/CardParts.d.ts +12 -5
  18. package/dist/cards/CardParts.js +8 -7
  19. package/dist/cards/FeedPost.d.ts +31 -0
  20. package/dist/cards/FeedPost.js +14 -0
  21. package/dist/catalog.json +1 -1
  22. package/dist/index.d.ts +4 -0
  23. package/dist/index.js +4 -0
  24. package/dist/layover/Popup.d.ts +2 -2
  25. package/dist/layover/Popup.js +1 -1
  26. package/dist/lists/Bubble.d.ts +25 -6
  27. package/dist/lists/Bubble.js +17 -8
  28. package/dist/lists/Row.d.ts +11 -2
  29. package/dist/lists/Row.js +4 -3
  30. package/dist/media/Mosaic.d.ts +4 -3
  31. package/dist/media/Mosaic.js +8 -4
  32. package/dist/media/Thumb.d.ts +14 -0
  33. package/dist/media/Thumb.js +12 -0
  34. package/dist/parts/Foot.d.ts +7 -2
  35. package/dist/parts/Foot.js +4 -3
  36. package/dist/parts/Head.d.ts +3 -1
  37. package/dist/parts/Head.js +3 -1
  38. package/dist/scaffold/Centre.d.ts +1 -1
  39. package/dist/scaffold/Centre.js +1 -1
  40. package/dist/scaffold/Panes.d.ts +1 -0
  41. package/dist/scaffold/Panes.js +1 -0
  42. package/dist/sheets/Modal.d.ts +1 -1
  43. package/dist/sheets/Modal.js +1 -1
  44. package/dist/sheets/SheetStack.d.ts +3 -1
  45. package/dist/sheets/SheetStack.js +2 -1
  46. package/dist/sheets/StackSheet.d.ts +6 -4
  47. package/dist/sheets/StackSheet.js +8 -3
  48. package/dist/sheets/stackCard.d.ts +2 -0
  49. package/dist/templates/Home.d.ts +3 -1
  50. package/dist/templates/Home.js +2 -2
  51. package/dist/templates/Splash.d.ts +1 -1
  52. package/dist/templates/Splash.js +1 -1
  53. package/dist/type/Icon.js +1 -1
  54. package/dist/type/Phrase.d.ts +9 -0
  55. package/dist/type/Phrase.js +11 -0
  56. package/dist/type/Strong.d.ts +7 -0
  57. package/dist/type/Strong.js +9 -0
  58. package/dist/type/Text.d.ts +5 -1
  59. package/dist/type/Text.js +7 -3
  60. package/dist/type/icons.d.ts +1 -1
  61. package/dist/type/icons.js +2 -2
  62. package/docs/reference.md +121 -8
  63. package/icons.svg +1 -0
  64. package/lib/audit.mjs +330 -0
  65. package/lib/guide.mjs +1 -1
  66. package/lib/mcp.mjs +13 -0
  67. package/lint/rules.mjs +2 -2
  68. 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.178",
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).",