@ponchia/ui 0.3.5 → 0.3.6

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/llms.txt CHANGED
@@ -45,6 +45,14 @@ Optional vanilla behaviors (theme toggle, etc. — SSR-safe, tree-shakeable):
45
45
  import { applyStoredTheme } from '@ponchia/ui/behaviors';
46
46
  ```
47
47
 
48
+ Optional display glyphs — dot-matrix bitmaps on the `.ui-dotmatrix` primitive
49
+ (decorative by default; `renderGlyph` is SSR-safe, `initDotGlyph` is the DOM form):
50
+
51
+ ```js
52
+ import { renderGlyph, GLYPH_NAMES } from '@ponchia/ui/glyphs';
53
+ el.innerHTML = renderGlyph('check', { label: 'Done' });
54
+ ```
55
+
48
56
  ## Authoritative offline references (shipped in this package)
49
57
 
50
58
  Read these from `node_modules/@ponchia/ui/` — no network needed:
@@ -70,6 +78,9 @@ Read these from `node_modules/@ponchia/ui/` — no network needed:
70
78
  `#rrggbb` / `rgba(...)` per theme (var() + color-mix() evaluated).
71
79
  Use this for non-CSS render targets: MapLibre/canvas/WebGL/SVG.
72
80
  - `behaviors/index.d.ts` — typed signatures for the optional behaviors.
81
+ - `glyphs/glyphs.d.ts` — the `GlyphName` literal union plus `renderGlyph` /
82
+ `glyphCells` signatures for the display glyphs. (The DOM form,
83
+ `initDotGlyph`, is declared in `behaviors/index.d.ts`.)
73
84
  - `classes/vscode.css-custom-data.json` — editor autocomplete for tokens.
74
85
 
75
86
  ## Human-browsable references (not shipped in the npm tarball, by design)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponchia/ui",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "description": "Nothing-inspired, CSS-first UI framework — monochrome design tokens, one rationed accent, dot-matrix motifs, zero runtime dependencies, framework-agnostic.",
6
6
  "keywords": [
@@ -19,6 +19,7 @@
19
19
  "accessibility"
20
20
  ],
21
21
  "license": "MIT",
22
+ "author": "Ponchia (https://github.com/Ponchia)",
22
23
  "repository": {
23
24
  "type": "git",
24
25
  "url": "git+https://github.com/Ponchia/bronto-ui.git"
@@ -39,6 +40,7 @@
39
40
  "tokens",
40
41
  "classes",
41
42
  "behaviors",
43
+ "glyphs",
42
44
  "shiki",
43
45
  "llms.txt",
44
46
  "docs/reference.md",
@@ -56,6 +58,7 @@
56
58
  "dtcg:build": "node scripts/gen-dtcg.mjs",
57
59
  "resolved:build": "node scripts/gen-resolved.mjs",
58
60
  "dts:build": "node scripts/gen-dts.mjs",
61
+ "glyphs:build": "node scripts/gen-glyphs.mjs",
59
62
  "reference:build": "node scripts/gen-reference.mjs",
60
63
  "contrast:build": "node scripts/gen-contrast.mjs",
61
64
  "vscode:build": "node scripts/gen-vscode-data.mjs",
@@ -64,6 +67,8 @@
64
67
  "check:tokens": "node scripts/check-tokens.mjs",
65
68
  "check:classes": "node scripts/check-classes.mjs",
66
69
  "check:dts": "node scripts/check-dts.mjs",
70
+ "check:behaviors": "node scripts/check-behaviors.mjs",
71
+ "check:glyphs": "node scripts/check-glyphs.mjs",
67
72
  "check:types": "tsc -p tsconfig.json",
68
73
  "check:dtcg": "node scripts/check-dtcg.mjs",
69
74
  "check:resolved": "node scripts/check-resolved.mjs",
@@ -74,9 +79,9 @@
74
79
  "check:reference": "node scripts/check-reference.mjs",
75
80
  "check:contrast": "node scripts/check-contrast.mjs",
76
81
  "check:vscode": "node scripts/check-vscode-data.mjs",
77
- "check": "npm run lint && npm run check:format && npm run check:exports && npm run check:tokens && npm run check:classes && npm run check:dts && npm run check:types && npm run check:dtcg && npm run check:resolved && npm run check:shiki && npm run check:dist && npm run check:pack && npm run check:release && npm run check:reference && npm run check:contrast && npm run check:vscode",
82
+ "check": "npm run lint && npm run check:format && npm run check:exports && npm run check:tokens && npm run check:classes && npm run check:dts && npm run check:types && npm run check:dtcg && npm run check:resolved && npm run check:shiki && npm run check:dist && npm run check:pack && npm run check:release && npm run check:reference && npm run check:contrast && npm run check:vscode && npm run check:behaviors && npm run check:glyphs",
78
83
  "test": "node --test \"test/*.test.mjs\"",
79
- "prepack": "npm run tokens:build && npm run dtcg:build && npm run resolved:build && npm run dts:build && npm run reference:build && npm run contrast:build && npm run vscode:build && npm run dist:build",
84
+ "prepack": "npm run tokens:build && npm run dtcg:build && npm run resolved:build && npm run dts:build && npm run reference:build && npm run contrast:build && npm run vscode:build && npm run dist:build && npm run glyphs:build",
80
85
  "prepublishOnly": "npm run check && npm test"
81
86
  },
82
87
  "devDependencies": {
@@ -149,6 +154,10 @@
149
154
  "types": "./behaviors/index.d.ts",
150
155
  "default": "./behaviors/index.js"
151
156
  },
157
+ "./glyphs": {
158
+ "types": "./glyphs/glyphs.d.ts",
159
+ "default": "./glyphs/glyphs.js"
160
+ },
152
161
  "./fonts/*": "./fonts/*"
153
162
  }
154
163
  }