@cameronsjo/artificer 0.22.0 → 0.23.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schemaVersion": "1",
3
- "$version": "0.22.0",
3
+ "$version": "0.23.0",
4
4
  "$doc": "Primitive mint ledger (ADR 0037, #199). Provenance + adoption semantics for every shipped primitive. tokens.json owns token VALUES; scripts/css-token-set.baseline.json owns the token SET; this file owns grouping, vintage, recipes, and adoption signals. Gated by scripts/check-primitives.mjs (check:primitives). minted 'pending-backfill' marks an entry awaiting mechanical dating (all dated by #199 PR-3's backfill; the sentinel remains legal for future re-derivations); 'unreleased' marks a mint on a feature branch, swept to the release version by sync:primitives-vintage.",
5
5
  "primitives": {
6
6
  "stack": {
@@ -201,10 +201,24 @@
201
201
  "classes": [
202
202
  "sidenav",
203
203
  "sidenav__group",
204
+ "sidenav__section",
205
+ "sidenav__footer",
204
206
  "label",
205
207
  "count"
206
208
  ],
207
- "recipe": "Side navigation"
209
+ "recipe": "Side navigation",
210
+ "variants": [
211
+ {
212
+ "class": "sidenav__section",
213
+ "minted": "unreleased",
214
+ "note": "collapsible group — <details class=\"sidenav__section\"> whose <summary> carries the group-label treatment + twisty; rows keep full sidenav styling. The section holding [aria-current=\"page\"] must be rendered open (consumer JS owns the open attribute); sticky group labels deliberately don't apply inside <details>"
215
+ },
216
+ {
217
+ "class": "sidenav__footer",
218
+ "minted": "unreleased",
219
+ "note": "bottom-anchored settings row (margin-top:auto in the min-height:100% drawer sidenav) — the theme toggle's drawer seat; pairs a text label with a canonical .theme-toggle--inline [data-theme-toggle] button"
220
+ }
221
+ ]
208
222
  },
209
223
  "nav-drawer": {
210
224
  "kind": "component",
@@ -509,7 +523,8 @@
509
523
  "tree__group",
510
524
  "tree__row",
511
525
  "tree__twisty",
512
- "tree__leaf"
526
+ "tree__leaf",
527
+ "tree--static"
513
528
  ],
514
529
  "js": {
515
530
  "module": "artificer-tree.js",
@@ -518,6 +533,12 @@
518
533
  },
519
534
  "recipe": "Tree / file explorer / nested nav",
520
535
  "demo": "live-spec/components-extended.html#tree",
536
+ "variants": [
537
+ {
538
+ "class": "tree--static",
539
+ "note": "native <details>/<summary> disclosure for no-JS/SSR contexts — deliberately not role=\"tree\"; nested disclosure is the honest a11y model here, so ArtificerTree.enhance() stays inert on it"
540
+ }
541
+ ],
521
542
  "adoption": {
522
543
  "supersedes": "hand-rolled nested-list explorers / custom disclosure rows",
523
544
  "signals": [
@@ -637,6 +658,21 @@
637
658
  ],
638
659
  "recipe": "Split pane / master-detail"
639
660
  },
661
+ "workbench": {
662
+ "kind": "component",
663
+ "minted": "0.23.0",
664
+ "classes": [
665
+ "workbench",
666
+ "workbench__pane",
667
+ "workbench__header",
668
+ "workbench__editor"
669
+ ],
670
+ "recipe": "Text workbench / editor panes",
671
+ "demo": "live-spec/composition.html#workbench",
672
+ "adoption": {
673
+ "supersedes": "hand-rolled full-height textarea panes"
674
+ }
675
+ },
640
676
  "dash": {
641
677
  "kind": "component",
642
678
  "minted": "0.10.1",
@@ -688,6 +724,17 @@
688
724
  "demo": "live-spec/charts.html",
689
725
  "recipe": "Chart / sparkline / gauge"
690
726
  },
727
+ "bar-meter": {
728
+ "kind": "component",
729
+ "minted": "0.23.0",
730
+ "classes": [
731
+ "bar",
732
+ "bar__track",
733
+ "bar__fill"
734
+ ],
735
+ "demo": "live-spec/charts.html",
736
+ "recipe": "Horizontal bar / meter"
737
+ },
691
738
  "diagrams": {
692
739
  "kind": "component",
693
740
  "minted": "0.7.0",
@@ -703,6 +750,37 @@
703
750
  "demo": "live-spec/diagrams.html",
704
751
  "recipe": "Architecture / flow diagram"
705
752
  },
753
+ "diagram-flow": {
754
+ "kind": "component",
755
+ "minted": "0.23.0",
756
+ "classes": [
757
+ "dia-box",
758
+ "dia-box--accent",
759
+ "dia-box--ghost",
760
+ "dia-box--tab",
761
+ "flow",
762
+ "flow-frame",
763
+ "flow-frame__label",
764
+ "flow__link",
765
+ "flow__link--dashed",
766
+ "flow__step"
767
+ ],
768
+ "demo": "live-spec/diagrams.html",
769
+ "recipe": "HTML diagram node"
770
+ },
771
+ "spine-phase": {
772
+ "kind": "component",
773
+ "minted": "0.23.0",
774
+ "classes": [
775
+ "spine",
776
+ "phase",
777
+ "phase--accent",
778
+ "phase__body",
779
+ "phase__marker"
780
+ ],
781
+ "demo": "live-spec/diagrams.html",
782
+ "recipe": "Phased timeline"
783
+ },
706
784
  "syntax": {
707
785
  "kind": "component",
708
786
  "minted": "0.7.0",
@@ -1087,6 +1165,14 @@
1087
1165
  "adoption": [
1088
1166
  "colophon"
1089
1167
  ]
1168
+ },
1169
+ "0.22.1": {
1170
+ "title": "btn--link: an action that reads as text — the missing way to render a <button> as a link, and the reason the colophon spine had to special-case buttons",
1171
+ "minted": [],
1172
+ "breaking": [],
1173
+ "adoption": [
1174
+ "btn"
1175
+ ]
1090
1176
  }
1091
1177
  },
1092
1178
  "$exempt": []
package/src/tokens.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://design-tokens.org/schema.json",
3
3
  "$description": "Artificer · Cameron's personal design system. Machine-readable token export. Mirrors artificer.css. Source of truth lives in the CSS — regenerate this file if tokens change there.",
4
- "$version": "0.22.0",
4
+ "$version": "0.23.0",
5
5
 
6
6
  "color": {
7
7
  "$description": "All colors paired with their dark/light values. AAA-tuned where indicated. v0.6 palette: apothecary × deco × speakeasy.",
@@ -70,7 +70,9 @@
70
70
  "typography": {
71
71
  "fontFamily": {
72
72
  "mono": { "value": "'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace", "use": "Code, identifiers, numerals, dense tool body." },
73
- "sans": { "value": "'iA Writer Quattro S', 'iA Writer Quattro', 'Iowan Old Style', 'Charter', system-ui, sans-serif", "use": "Document body, UI labels, humanist sans." }
73
+ "body": { "value": "'iA Writer Quattro V', 'Iowan Old Style', 'Charter', 'Source Sans 3', system-ui, -apple-system, sans-serif", "use": "Body prose — document surfaces, headline/body type utilities, .meta." },
74
+ "interface": { "value": "'iA Writer Quattro S', 'Iowan Old Style', 'Charter', 'Source Sans 3', system-ui, -apple-system, sans-serif", "use": "Interface chrome — labels, controls, form fields, nav, tabular UI numerals." },
75
+ "sans": { "value": "'iA Writer Quattro V', 'Iowan Old Style', 'Charter', 'Source Sans 3', system-ui, -apple-system, sans-serif", "use": "Legacy alias of body — kept resolvable for public-API back-compat." }
74
76
  },
75
77
  "scale": {
76
78
  "$note": "Sizes are REM so text honors the browser font-size preference (root is never overridden; 1rem = 16px at default). px equivalents in comments.",