@aitrien/motifspec 1.24.2 → 1.25.0

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 (44) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/codex.css +53 -7
  3. package/dist/tokens.css +1 -1
  4. package/dist/tokens.js +1 -1
  5. package/dist/tokens.json +1 -1
  6. package/docs/components/_groups.json +9 -0
  7. package/docs/components/_template.md +9 -0
  8. package/docs/components/accession-label.md +18 -0
  9. package/docs/components/backdrop.md +5 -0
  10. package/docs/components/button-and-link.md +20 -0
  11. package/docs/components/callout.md +33 -0
  12. package/docs/components/catalogue-grid.md +120 -0
  13. package/docs/components/code-block.md +17 -0
  14. package/docs/components/component-preview.md +5 -0
  15. package/docs/components/data-table.md +18 -0
  16. package/docs/components/disclosure.md +19 -0
  17. package/docs/components/docs-shell.md +25 -0
  18. package/docs/components/figure.md +24 -0
  19. package/docs/components/heading-anchor.md +11 -0
  20. package/docs/components/icon.md +18 -0
  21. package/docs/components/keyboard-key.md +9 -0
  22. package/docs/components/ornament.md +17 -0
  23. package/docs/components/page-actions.md +12 -0
  24. package/docs/components/page-footer.md +12 -0
  25. package/docs/components/pagination.md +19 -0
  26. package/docs/components/post-list-item.md +17 -0
  27. package/docs/components/project-card.md +16 -0
  28. package/docs/components/prose.md +24 -0
  29. package/docs/components/search.md +13 -0
  30. package/docs/components/site-footer.md +31 -0
  31. package/docs/components/site-header.md +23 -0
  32. package/docs/components/specimen-plate.md +19 -0
  33. package/docs/components/status.md +16 -0
  34. package/docs/components/steps.md +13 -0
  35. package/docs/components/table-of-contents.md +19 -0
  36. package/docs/components/tabs.md +12 -0
  37. package/docs/components/tag.md +13 -0
  38. package/docs/components/token-table.md +17 -1
  39. package/docs/components/tooltip.md +15 -1
  40. package/docs/foundations/_overview.md +35 -0
  41. package/docs/hugo.md +1 -0
  42. package/layouts/_partials/motifspec/catalogue-item.html +14 -0
  43. package/package.json +1 -1
  44. package/scripts/lib.mjs +1 -0
package/docs/hugo.md CHANGED
@@ -135,6 +135,7 @@ Every partial below is called as `partial "motifspec/<name>.html" <context>`.
135
135
  | `pagination-pages.html` | `pagination.md` | `dict "pager" $pager "label" "Writing pages"`. Pages of a paginated list; nothing when it fits on one page. |
136
136
  | `docs-nav.html` | `docs-shell.md` | A page. The documentation layout's navigation: top-level pages, then a group per top-level section in weight order. `docs_nav: false` in front matter leaves a page or section out. |
137
137
  | `docs-nav-groups.html` | `docs-shell.md` | `dict "page" . "prefix" "menu"`. The navigation's groups, which `docs-nav.html` and the documentation header's menu both write; `prefix` keeps each copy's ids apart. |
138
+ | `catalogue-item.html` | `catalogue-grid.md` | `dict "variant" "Primary" "name" "Button and link" "href" "/components/button-and-link/" "specimen" "<a …>"`, or `"note"` in place of `"specimen"`; optional `"wide" true`, `"live" true`. One cell; wrap the cells in `cx-catalogue` and `cx-catalogue__list`. |
138
139
  | `page-actions.html` | `page-actions.md` | A page. Copy page and View as Markdown, when the page has the markdown output format; nothing otherwise. |
139
140
  | `page-footer.html` | `page-footer.md` | A page. Last updated (its `Lastmod`), Generated from (its `data` param) and View source, from `params.motifspec.sourceURL` (or Edit this page, from `editURL`) and, for a site in a folder of its repository, `params.motifspec.siteDir`. A page with no file of its own sets `source` and, for one section of a file, `sourceAnchor`. |
140
141
  | `pagination-docs.html` | `pagination.md`, `page-footer.md` | A page. Previous and next in the order `docs-nav.html` lists the pages. |
@@ -0,0 +1,14 @@
1
+ {{- /* catalogue-grid.md: one cell. Context: dict "variant", "name", "href", and either "specimen" (its HTML) or "note"
2
+ (a sentence in place of a specimen). Optional "wide" takes a whole row; "live" leaves the specimen interactive,
3
+ for what shows on hover or focus. Every other specimen is inert: a picture, which the caption's link explains. */ -}}
4
+ <li class="cx-catalogue__item{{ if .wide }} cx-catalogue__item--wide{{ end }}">
5
+ {{- with .note }}
6
+ <div class="cx-catalogue__specimen cx-catalogue__specimen--note">{{ strings.FirstUpper . }}</div>
7
+ {{- else }}
8
+ <div class="cx-catalogue__specimen"{{ if not $.live }} inert{{ end }}>{{ $.specimen | safeHTML }}</div>
9
+ {{- end }}
10
+ <div class="cx-catalogue__caption">
11
+ <p class="cx-catalogue__variant">{{ .variant }}</p>
12
+ <a class="cx-catalogue__name" href="{{ .href }}">{{ .name }}<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-forward"></use></svg></a>
13
+ </div>
14
+ </li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitrien/motifspec",
3
- "version": "1.24.2",
3
+ "version": "1.25.0",
4
4
  "description": "Liam Marshall's design system: DTCG tokens and layered component rules that AI assistants read a layer at a time, with generated CSS, Hugo templates and a rule checker.",
5
5
  "keywords": [
6
6
  "design-system",
package/scripts/lib.mjs CHANGED
@@ -282,4 +282,5 @@ export const DOC_SELECTORS = {
282
282
  'steps': ['.cx-steps'],
283
283
  'tabs': ['.cx-tabs'],
284
284
  'token-table': ['.cx-token-table', '.cx-swatch', '.cx-palette', '.cx-token-sample', '.cx-token-bar', '.cx-pair-sample'],
285
+ 'catalogue-grid': ['.cx-catalogue'],
285
286
  };