@obvi/blueprint 1.1.1 → 1.1.3

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/README.md CHANGED
@@ -10,8 +10,9 @@ A blueprint is a technical document that should look like one: monochrome ink on
10
10
 
11
11
  - **Semantic HTML is the API.** Headings, paragraphs, lists, tables, figures, and landmarks render as a finished document with no classes to memorize. You write meaning; the design arrives for free.
12
12
  - **Classless-first, not class-only.** Components exist only for the few patterns native HTML cannot express, and each is a composition of real semantic elements rather than a replacement for them.
13
+ - **Interactive blocks read as working surfaces.** Live components (choices, pre-flights, source, mockups, galleries) sit on a faint dot-grid mat, so a reader can tell an interactive surface from settled prose at a glance — a texture distinct from the diagonal hatch that marks held or rejected regions.
13
14
  - **Zero-specificity by contract.** Everything ships in cascade layers wrapped in `:where()`, so the library never fights your own CSS. Your styles always win, with no `!important` and no parent-scoping.
14
- - **Runtime-complete package.** The default stylesheet includes the chrome that `blueprint.js` injects, and runtime icons are inline SVG, so installed documents do not depend on repository-only CSS or assets.
15
+ - **Runtime-complete package.** The default stylesheet includes the chrome that `blueprint.js` injects, the published browser entry bundles Choice components, and runtime icons are inline SVG, so installed or host-inlined documents do not depend on sibling modules or repository-only assets.
15
16
 
16
17
  The result is one portable stylesheet, no build step, that turns plain semantic markup into a polished blueprint.
17
18
 
@@ -255,7 +255,10 @@ class BlueprintChoiceElement extends HTMLElement {
255
255
  input.name = viewName
256
256
  input.value = opt.value
257
257
  input.className = 'bp-choice__view'
258
- if (index === 0) input.checked = true
258
+ if (index === 0) {
259
+ input.defaultChecked = true
260
+ input.checked = true
261
+ }
259
262
  segOpt.append(input, doc.createTextNode(opt.tab))
260
263
  seg.append(segOpt)
261
264
  }
@@ -522,9 +525,8 @@ class BlueprintChoiceRecordRowElement extends HTMLElement {
522
525
  const nodes = [dl]
523
526
  if (considered) {
524
527
  const details = el(doc, 'details', 'bp-choice__compare')
525
- details.style.marginTop = 'var(--bp-space-2)'
526
528
  const summary = el(doc, 'summary')
527
- summary.textContent = 'Show the options considered'
529
+ summary.textContent = 'Show the options considered'
528
530
  details.append(summary)
529
531
  const body = el(doc, 'div', 'bp-choice__compare-body')
530
532
  body.append(considered.cloneNode(true))