@ponchia/ui 0.13.0 → 0.15.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 +60 -0
  2. package/README.md +4 -4
  3. package/behaviors/command.d.ts +34 -13
  4. package/behaviors/command.d.ts.map +1 -1
  5. package/behaviors/command.js +195 -129
  6. package/classes/classes.json +19 -2
  7. package/classes/index.d.ts +16 -0
  8. package/classes/index.js +21 -2
  9. package/css/blocknote.css +14 -0
  10. package/css/content.css +34 -1
  11. package/css/feedback.css +95 -3
  12. package/css/fonts-inter.css +35 -0
  13. package/css/fonts-jetbrains-mono.css +49 -0
  14. package/css/primitives.css +13 -0
  15. package/css/site.css +0 -31
  16. package/css/tool.css +29 -0
  17. package/dist/bronto.css +1 -1
  18. package/dist/css/blocknote.css +1 -1
  19. package/dist/css/content.css +1 -1
  20. package/dist/css/feedback.css +1 -1
  21. package/dist/css/fonts-inter.css +1 -0
  22. package/dist/css/fonts-jetbrains-mono.css +1 -0
  23. package/dist/css/primitives.css +1 -1
  24. package/dist/css/site.css +1 -1
  25. package/dist/css/tool.css +1 -0
  26. package/docs/command.md +47 -7
  27. package/docs/compositions.md +2 -2
  28. package/docs/interop/blocknote.md +5 -0
  29. package/docs/package-contract.md +6 -1
  30. package/docs/reference.md +12 -1
  31. package/docs/reporting.md +8 -8
  32. package/docs/stability.md +4 -2
  33. package/docs/theming.md +8 -1
  34. package/docs/usage.md +55 -0
  35. package/fonts/OFL-Inter.txt +92 -0
  36. package/fonts/OFL-JetBrainsMono.txt +93 -0
  37. package/fonts/inter-variable-italic.woff2 +0 -0
  38. package/fonts/inter-variable.woff2 +0 -0
  39. package/fonts/jetbrains-mono-400-italic.woff2 +0 -0
  40. package/fonts/jetbrains-mono-400.woff2 +0 -0
  41. package/fonts/jetbrains-mono-700-italic.woff2 +0 -0
  42. package/fonts/jetbrains-mono-700.woff2 +0 -0
  43. package/llms.txt +1 -1
  44. package/package.json +7 -2
package/docs/usage.md CHANGED
@@ -165,6 +165,17 @@ data-viz palette tokens. Always wrap it in a `ui-report__figure` with a caption,
165
165
  a `.ui-legend` key, and fallback data. Full LLM/static report cookbook:
166
166
  [reporting.md](reporting.md).
167
167
 
168
+ ## A tool: `@ponchia/ui/css/tool.css` instead of the default bundle
169
+
170
+ An application that draws on its own surface (a canvas, an editor, a
171
+ workbench) renders none of the site and app chrome: the theme toggle, the
172
+ content-site shell, data tables and the admin service shell. Import
173
+ `@ponchia/ui/css/tool.css` **instead of** `@ponchia/ui`. It is the default
174
+ bundle in the same cascade order without the `navigation`, `site`, `table` and
175
+ `app` leaves. Everything else, including the dot-matrix glyphs, motion and the
176
+ feedback, overlay and disclosure primitives, is unchanged. Add one of the four
177
+ back as its own leaf (`@ponchia/ui/css/table.css`) if a screen needs it.
178
+
168
179
  ## Buttons: variant and size
169
180
 
170
181
  - **primary is the bare `ui-button`.** There is no `--primary` and no
@@ -253,6 +264,50 @@ Without the slots, every empty surface in an app re-invents these three parts
253
264
  under a different name and they drift — one has a glyph, the next has two
254
265
  sentences at the same weight, a third is a bare `<p>`.
255
266
 
267
+ ## Small bodies: body state and band
268
+
269
+ A node, panel or card body of 200–400px has four things to say besides its
270
+ content: nothing is here, it is loading, it failed, it is out of date. A
271
+ page-level empty state or a boxed alert spends a third of such a body on its
272
+ frame, so a small body uses two compact shapes:
273
+
274
+ - **`ui-body-state`** *replaces the content*. It fills the body and centres
275
+ one short sentence, with an optional `ui-empty-state__hint` or an action. Use
276
+ `ui.bodyState()` for empty and loading, the plain state (put
277
+ `aria-busy="true"` on a loading region, and a `ui-dotspinner` or `ui-skeleton`
278
+ inside if you like); `ui.bodyState({ state: 'error' | 'stale' })` leads with a
279
+ tone dot.
280
+ - **`ui-alert--band`** *sits above content the body still shows*: a full-bleed
281
+ line of small type, the tone as a tint. Use `ui.alert({ tone, band: true })`
282
+ as the body's first child.
283
+
284
+ | State | Content gone | Content still shown |
285
+ | --- | --- | --- |
286
+ | empty | `ui.bodyState()` | — |
287
+ | loading | `ui.bodyState()` + `aria-busy` | `ui-skeleton` rows in place |
288
+ | error | `ui.bodyState({ state: 'error' })` | `ui.alert({ tone: 'danger', band: true })` |
289
+ | stale | `ui.bodyState({ state: 'stale' })` | `ui.alert({ tone: 'warning', band: true })` |
290
+
291
+ ```html
292
+ <div class="node-body ui-cq">
293
+ <p class="ui-alert ui-alert--warning ui-alert--band" role="status">
294
+ Last synced 2 h ago
295
+ </p>
296
+ …the content, still readable…
297
+ </div>
298
+
299
+ <div class="node-body ui-cq">
300
+ <div class="ui-body-state ui-body-state--error" role="alert">
301
+ <p>Could not load the run</p>
302
+ <button class="ui-button ui-button--subtle ui-button--dense" type="button">Retry</button>
303
+ </div>
304
+ </div>
305
+ ```
306
+
307
+ Make the body a `ui-cq` container: below 15rem the body state tightens to the
308
+ smallest type and padding. The body itself should be a flex column or have a
309
+ height, so the state can fill it.
310
+
256
311
  ## Link vs link--cta
257
312
 
258
313
  Plain `ui-link` for in-flow links. `ui-link--cta` is the accent
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
package/llms.txt CHANGED
@@ -45,7 +45,7 @@ the path changes from source `css/` to built `dist/css/`:
45
45
  <!-- installed locally -->
46
46
  <link rel="stylesheet" href="./node_modules/@ponchia/ui/dist/css/<leaf>.css" />
47
47
  <!-- or from a CDN; pin the version (pre-1.0, breaking changes ship in the minor) -->
48
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ponchia/ui@0.13.0/dist/css/<leaf>.css" />
48
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ponchia/ui@0.15.0/dist/css/<leaf>.css" />
49
49
  ```
50
50
 
51
51
  The flattened default bundle is `dist/bronto.css` (bundler shorthand
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponchia/ui",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "description": "CSS-first identity and UI layer for services, tools, sites, and reports — works in HTML, every framework, and PDF, no component runtime. Shared app shell, forms, tables, workflow chrome, plus opt-in analytical/report primitives. Monochrome with one rationed accent. Zero runtime dependencies.",
6
6
  "keywords": [
@@ -263,6 +263,8 @@
263
263
  "./css/skins.css": "./dist/css/skins.css",
264
264
  "./css/dataviz.css": "./dist/css/dataviz.css",
265
265
  "./css/blocknote.css": "./dist/css/blocknote.css",
266
+ "./css/fonts-inter.css": "./dist/css/fonts-inter.css",
267
+ "./css/fonts-jetbrains-mono.css": "./dist/css/fonts-jetbrains-mono.css",
266
268
  "./css/report.css": "./dist/css/report.css",
267
269
  "./css/row.css": "./dist/css/row.css",
268
270
  "./css/figure.css": "./dist/css/figure.css",
@@ -292,6 +294,7 @@
292
294
  "./css/command.css": "./dist/css/command.css",
293
295
  "./css/analytical.css": "./dist/css/analytical.css",
294
296
  "./css/report-kit.css": "./dist/css/report-kit.css",
297
+ "./css/tool.css": "./dist/css/tool.css",
295
298
  "./css/unlayered/tokens.css": "./css/tokens.css",
296
299
  "./css/unlayered/fonts.css": "./css/fonts.css",
297
300
  "./css/unlayered/base.css": "./css/base.css",
@@ -310,6 +313,8 @@
310
313
  "./css/unlayered/skins.css": "./css/skins.css",
311
314
  "./css/unlayered/dataviz.css": "./css/dataviz.css",
312
315
  "./css/unlayered/blocknote.css": "./css/blocknote.css",
316
+ "./css/unlayered/fonts-inter.css": "./css/fonts-inter.css",
317
+ "./css/unlayered/fonts-jetbrains-mono.css": "./css/fonts-jetbrains-mono.css",
313
318
  "./css/unlayered/report.css": "./css/report.css",
314
319
  "./css/unlayered/row.css": "./css/row.css",
315
320
  "./css/unlayered/figure.css": "./css/figure.css",
@@ -547,7 +552,7 @@
547
552
  "./docs/discussion.md": "./docs/discussion.md"
548
553
  },
549
554
  "overrides": {
550
- "adm-zip": "0.6.0",
555
+ "adm-zip": "0.6.1",
551
556
  "esbuild": "0.28.1"
552
557
  }
553
558
  }