@obvi/blueprint 1.0.9 → 1.1.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.
@@ -116,13 +116,17 @@
116
116
  ------------------------------------------------------------------- */
117
117
  :where(pre[class*="language-"]) {
118
118
  position: relative; /* anchor for the straight accent bar */
119
- margin: 1.5em 0;
119
+ /* Block-only margin: leaves the inline axis free so a host shell can center
120
+ the block (e.g. blueprint's main > * margin-inline: auto). A `margin: x 0`
121
+ shorthand would pin margin-inline to 0 and override that centering. For
122
+ standalone consumers the inline margin stays at its initial 0 regardless. */
123
+ margin-block: 1.5em;
120
124
  padding: 1rem 1.15rem;
121
125
  overflow: auto; /* horizontal scroll on long lines stays inside block */
122
126
  background: var(--bpc-surface);
123
127
  color: var(--bpc-base);
124
128
  border: 1px solid var(--bpc-border);
125
- border-radius: var(--bp-radius-4, 4px);
129
+ border-radius: var(--bp-radius-0, 0);
126
130
  font-family: var(
127
131
  --bp-mono,
128
132
  var(
@@ -172,7 +176,7 @@
172
176
  adopts blue token colors. */
173
177
  :where(:not(pre) > code[class*="language-"]) {
174
178
  padding: 0.12em 0.4em;
175
- border-radius: var(--bp-radius-2, 2px);
179
+ border-radius: var(--bp-radius-0, 0);
176
180
  background: var(--bpc-surface-2);
177
181
  color: var(--bpc-base);
178
182
  white-space: normal;
@@ -346,7 +350,8 @@
346
350
  the block. Purely additive — no JS, degrades to a plain caption.
347
351
  ------------------------------------------------------------------- */
348
352
  :where(figure.bpc-code) {
349
- margin: 1.5em 0;
353
+ /* Block-only so a host shell can center the figure (see pre rule above). */
354
+ margin-block: 1.5em;
350
355
  }
351
356
  :where(figure.bpc-code > figcaption) {
352
357
  font-family: var(
@@ -360,13 +365,13 @@
360
365
  background: var(--bpc-surface-2);
361
366
  border: 1px solid var(--bpc-border);
362
367
  border-bottom: none;
363
- border-radius: var(--bp-radius-4, 4px) var(--bp-radius-4, 4px) 0 0;
368
+ border-radius: var(--bp-radius-0, 0) var(--bp-radius-0, 0) 0 0;
364
369
  padding: 0.45rem 0.8rem;
365
370
  }
366
371
  :where(figure.bpc-code > figcaption + pre[class*="language-"]),
367
372
  :where(figure.bpc-code > pre[class*="language-"]) {
368
373
  margin: 0;
369
- border-radius: 0 0 var(--bp-radius-4, 4px) var(--bp-radius-4, 4px);
374
+ border-radius: 0 0 var(--bp-radius-0, 0) var(--bp-radius-0, 0);
370
375
  }
371
376
 
372
377
  /* ---------------------------------------------------------------------
@@ -399,7 +404,7 @@
399
404
  max-height: 320px;
400
405
  margin: 0;
401
406
  border: 0;
402
- border-radius: 0 0 var(--bp-radius-6, 6px) var(--bp-radius-6, 6px);
407
+ border-radius: 0 0 var(--bp-radius-0, 0) var(--bp-radius-0, 0);
403
408
  }
404
409
  :where(.bp-cite-pop pre[class*="language-"])::before {
405
410
  display: none; /* flush inside popover, no accent bar */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obvi/blueprint",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "A classless-first CSS design system for beautiful technical blueprint documents.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,6 +23,7 @@
23
23
  "exports": {
24
24
  ".": "./dist/blueprint.css",
25
25
  "./blueprint.js": "./dist/blueprint.js",
26
+ "./blueprint-choices.js": "./dist/blueprint-choices.js",
26
27
  "./blueprint.css": "./dist/blueprint.css",
27
28
  "./styles.css": "./dist/blueprint.css",
28
29
  "./code-highlighting.css": "./dist/code-highlighting/blueprint-code.css",
@@ -32,7 +33,7 @@
32
33
  },
33
34
  "publishConfig": {
34
35
  "registry": "https://registry.npmjs.org",
35
- "access": "restricted"
36
+ "access": "public"
36
37
  },
37
38
  "scripts": {
38
39
  "build": "npm run build:code && node scripts/build-package.mjs",
@@ -40,7 +41,8 @@
40
41
  "render": "node harness/render.mjs",
41
42
  "measure": "node harness/measure.mjs && node harness/behavior.mjs",
42
43
  "verify:package": "node scripts/verify-package.mjs",
43
- "verify": "npm run build && npm run measure && npm run verify:package",
44
+ "lint:style": "node scripts/lint-style.mjs",
45
+ "verify": "npm run build && npm run lint:style && npm run measure && npm run verify:package",
44
46
  "prepack": "npm run build"
45
47
  },
46
48
  "devDependencies": {