@ponchia/ui 0.9.0 → 0.10.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 (80) hide show
  1. package/CHANGELOG.md +70 -4
  2. package/MIGRATIONS.json +117 -27
  3. package/README.md +17 -9
  4. package/behaviors/index.d.ts +0 -2
  5. package/behaviors/index.d.ts.map +1 -1
  6. package/behaviors/index.js +0 -2
  7. package/behaviors/popover.js +4 -4
  8. package/classes/classes.json +24 -9
  9. package/classes/index.d.ts +8 -3
  10. package/classes/index.js +20 -3
  11. package/classes/vscode.css-custom-data.json +10 -10
  12. package/css/app.css +52 -30
  13. package/css/base.css +10 -14
  14. package/css/content.css +23 -21
  15. package/css/disclosure.css +17 -17
  16. package/css/feedback.css +15 -15
  17. package/css/forms.css +8 -7
  18. package/css/navigation.css +3 -3
  19. package/css/overlay.css +13 -29
  20. package/css/primitives.css +48 -28
  21. package/css/report.css +66 -42
  22. package/css/state.css +95 -6
  23. package/css/table.css +3 -3
  24. package/css/tokens.css +10 -10
  25. package/css/workbench.css +21 -9
  26. package/dist/bronto.css +1 -1
  27. package/dist/css/app.css +1 -1
  28. package/dist/css/base.css +1 -1
  29. package/dist/css/content.css +1 -1
  30. package/dist/css/disclosure.css +1 -1
  31. package/dist/css/feedback.css +1 -1
  32. package/dist/css/forms.css +1 -1
  33. package/dist/css/navigation.css +1 -1
  34. package/dist/css/overlay.css +1 -1
  35. package/dist/css/primitives.css +1 -1
  36. package/dist/css/report-kit.css +1 -1
  37. package/dist/css/report.css +1 -1
  38. package/dist/css/state.css +1 -1
  39. package/dist/css/table.css +1 -1
  40. package/dist/css/tokens.css +1 -1
  41. package/dist/css/workbench.css +1 -1
  42. package/docs/adr/0004-prune-unused-adapters.md +5 -1
  43. package/docs/adr/0005-productive-tools-and-editorial-reports.md +58 -0
  44. package/docs/adr/0006-trusted-publishing.md +92 -0
  45. package/docs/architecture.md +16 -23
  46. package/docs/command.md +1 -2
  47. package/docs/compositions.md +110 -0
  48. package/docs/frontier-primitives.md +1 -2
  49. package/docs/migrations/0.9-to-0.10.md +47 -0
  50. package/docs/package-contract.md +9 -12
  51. package/docs/reference.md +30 -18
  52. package/docs/reporting.md +15 -9
  53. package/docs/stability.md +19 -55
  54. package/docs/state.md +47 -0
  55. package/docs/usage.md +18 -30
  56. package/llms.txt +7 -18
  57. package/package.json +13 -55
  58. package/tokens/figma.variables.json +20 -20
  59. package/tokens/index.js +10 -10
  60. package/tokens/index.json +20 -20
  61. package/tokens/resolved.json +10 -10
  62. package/tokens/tokens.dtcg.json +20 -20
  63. package/behaviors/modal.d.ts +0 -45
  64. package/behaviors/modal.d.ts.map +0 -1
  65. package/behaviors/modal.js +0 -373
  66. package/qwik/index.d.ts +0 -48
  67. package/qwik/index.d.ts.map +0 -1
  68. package/qwik/index.js +0 -227
  69. package/react/index.d.ts +0 -45
  70. package/react/index.d.ts.map +0 -1
  71. package/react/index.js +0 -165
  72. package/solid/index.d.ts +0 -75
  73. package/solid/index.d.ts.map +0 -1
  74. package/solid/index.js +0 -172
  75. package/svelte/index.d.ts +0 -114
  76. package/svelte/index.d.ts.map +0 -1
  77. package/svelte/index.js +0 -197
  78. package/vue/index.d.ts +0 -116
  79. package/vue/index.d.ts.map +0 -1
  80. package/vue/index.js +0 -266
@@ -1836,12 +1836,12 @@
1836
1836
  "type": "FLOAT",
1837
1837
  "sourceCssVariable": "--radius-lg",
1838
1838
  "valuesByMode": {
1839
- "global": 3
1839
+ "global": 6
1840
1840
  },
1841
1841
  "$extensions": {
1842
1842
  "com.ponchia.css": {
1843
1843
  "variable": "--radius-lg",
1844
- "value": "3px"
1844
+ "value": "6px"
1845
1845
  }
1846
1846
  },
1847
1847
  "unit": "px"
@@ -1851,12 +1851,12 @@
1851
1851
  "type": "FLOAT",
1852
1852
  "sourceCssVariable": "--radius-md",
1853
1853
  "valuesByMode": {
1854
- "global": 2
1854
+ "global": 4
1855
1855
  },
1856
1856
  "$extensions": {
1857
1857
  "com.ponchia.css": {
1858
1858
  "variable": "--radius-md",
1859
- "value": "2px"
1859
+ "value": "4px"
1860
1860
  }
1861
1861
  },
1862
1862
  "unit": "px"
@@ -1881,12 +1881,12 @@
1881
1881
  "type": "FLOAT",
1882
1882
  "sourceCssVariable": "--radius-sm",
1883
1883
  "valuesByMode": {
1884
- "global": 1
1884
+ "global": 2
1885
1885
  },
1886
1886
  "$extensions": {
1887
1887
  "com.ponchia.css": {
1888
1888
  "variable": "--radius-sm",
1889
- "value": "1px"
1889
+ "value": "2px"
1890
1890
  }
1891
1891
  },
1892
1892
  "unit": "px"
@@ -1896,12 +1896,12 @@
1896
1896
  "type": "FLOAT",
1897
1897
  "sourceCssVariable": "--radius-xl",
1898
1898
  "valuesByMode": {
1899
- "global": 4
1899
+ "global": 8
1900
1900
  },
1901
1901
  "$extensions": {
1902
1902
  "com.ponchia.css": {
1903
1903
  "variable": "--radius-xl",
1904
- "value": "4px"
1904
+ "value": "8px"
1905
1905
  }
1906
1906
  },
1907
1907
  "unit": "px"
@@ -2114,12 +2114,12 @@
2114
2114
  "type": "FLOAT",
2115
2115
  "sourceCssVariable": "--text-2xs",
2116
2116
  "valuesByMode": {
2117
- "global": 0.72
2117
+ "global": 0.75
2118
2118
  },
2119
2119
  "$extensions": {
2120
2120
  "com.ponchia.css": {
2121
2121
  "variable": "--text-2xs",
2122
- "value": "0.72rem"
2122
+ "value": "0.75rem"
2123
2123
  }
2124
2124
  },
2125
2125
  "unit": "rem"
@@ -2129,12 +2129,12 @@
2129
2129
  "type": "FLOAT",
2130
2130
  "sourceCssVariable": "--text-base",
2131
2131
  "valuesByMode": {
2132
- "global": 0.95
2132
+ "global": 1
2133
2133
  },
2134
2134
  "$extensions": {
2135
2135
  "com.ponchia.css": {
2136
2136
  "variable": "--text-base",
2137
- "value": "0.95rem"
2137
+ "value": "1rem"
2138
2138
  }
2139
2139
  },
2140
2140
  "unit": "rem"
@@ -2144,12 +2144,12 @@
2144
2144
  "type": "FLOAT",
2145
2145
  "sourceCssVariable": "--text-lg",
2146
2146
  "valuesByMode": {
2147
- "global": 1.15
2147
+ "global": 1.125
2148
2148
  },
2149
2149
  "$extensions": {
2150
2150
  "com.ponchia.css": {
2151
2151
  "variable": "--text-lg",
2152
- "value": "1.15rem"
2152
+ "value": "1.125rem"
2153
2153
  }
2154
2154
  },
2155
2155
  "unit": "rem"
@@ -2159,12 +2159,12 @@
2159
2159
  "type": "FLOAT",
2160
2160
  "sourceCssVariable": "--text-sm",
2161
2161
  "valuesByMode": {
2162
- "global": 0.86
2162
+ "global": 0.875
2163
2163
  },
2164
2164
  "$extensions": {
2165
2165
  "com.ponchia.css": {
2166
2166
  "variable": "--text-sm",
2167
- "value": "0.86rem"
2167
+ "value": "0.875rem"
2168
2168
  }
2169
2169
  },
2170
2170
  "unit": "rem"
@@ -2174,12 +2174,12 @@
2174
2174
  "type": "FLOAT",
2175
2175
  "sourceCssVariable": "--text-xl",
2176
2176
  "valuesByMode": {
2177
- "global": 1.45
2177
+ "global": 1.5
2178
2178
  },
2179
2179
  "$extensions": {
2180
2180
  "com.ponchia.css": {
2181
2181
  "variable": "--text-xl",
2182
- "value": "1.45rem"
2182
+ "value": "1.5rem"
2183
2183
  }
2184
2184
  },
2185
2185
  "unit": "rem"
@@ -2189,12 +2189,12 @@
2189
2189
  "type": "FLOAT",
2190
2190
  "sourceCssVariable": "--text-xs",
2191
2191
  "valuesByMode": {
2192
- "global": 0.76
2192
+ "global": 0.8125
2193
2193
  },
2194
2194
  "$extensions": {
2195
2195
  "com.ponchia.css": {
2196
2196
  "variable": "--text-xs",
2197
- "value": "0.76rem"
2197
+ "value": "0.8125rem"
2198
2198
  }
2199
2199
  },
2200
2200
  "unit": "rem"
package/tokens/index.js CHANGED
@@ -21,10 +21,10 @@
21
21
  export const cssVars = {
22
22
  // Global :root — scales, shared with both themes.
23
23
  global: {
24
- '--radius-xl': '4px',
25
- '--radius-lg': '3px',
26
- '--radius-md': '2px',
27
- '--radius-sm': '1px',
24
+ '--radius-xl': '8px',
25
+ '--radius-lg': '6px',
26
+ '--radius-md': '4px',
27
+ '--radius-sm': '2px',
28
28
  '--radius-pill': '999px',
29
29
  '--space-2xs': '0.25rem',
30
30
  '--space-xs': '0.5rem',
@@ -63,12 +63,12 @@ export const cssVars = {
63
63
  '--display': 'var(--dot-font)',
64
64
  '--display-weight': '700',
65
65
  '--display-weight-strong': '800',
66
- '--text-2xs': '0.72rem',
67
- '--text-xs': '0.76rem',
68
- '--text-sm': '0.86rem',
69
- '--text-base': '0.95rem',
70
- '--text-lg': '1.15rem',
71
- '--text-xl': '1.45rem',
66
+ '--text-2xs': '0.75rem',
67
+ '--text-xs': '0.8125rem',
68
+ '--text-sm': '0.875rem',
69
+ '--text-base': '1rem',
70
+ '--text-lg': '1.125rem',
71
+ '--text-xl': '1.5rem',
72
72
  '--tracking-wide': '0.14em',
73
73
  '--tracking-wider': '0.22em',
74
74
  '--ease-standard': 'cubic-bezier(0.2, 0.8, 0.2, 1)',
package/tokens/index.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$comment": "GENERATED from tokens/index.js — do not edit by hand. Run `npm run tokens:build`; drift-checked by check:fresh. A build artifact for non-JS tooling (Style Dictionary, Figma, other languages).",
3
3
  "cssVars": {
4
4
  "global": {
5
- "--radius-xl": "4px",
6
- "--radius-lg": "3px",
7
- "--radius-md": "2px",
8
- "--radius-sm": "1px",
5
+ "--radius-xl": "8px",
6
+ "--radius-lg": "6px",
7
+ "--radius-md": "4px",
8
+ "--radius-sm": "2px",
9
9
  "--radius-pill": "999px",
10
10
  "--space-2xs": "0.25rem",
11
11
  "--space-xs": "0.5rem",
@@ -26,12 +26,12 @@
26
26
  "--display": "var(--dot-font)",
27
27
  "--display-weight": "700",
28
28
  "--display-weight-strong": "800",
29
- "--text-2xs": "0.72rem",
30
- "--text-xs": "0.76rem",
31
- "--text-sm": "0.86rem",
32
- "--text-base": "0.95rem",
33
- "--text-lg": "1.15rem",
34
- "--text-xl": "1.45rem",
29
+ "--text-2xs": "0.75rem",
30
+ "--text-xs": "0.8125rem",
31
+ "--text-sm": "0.875rem",
32
+ "--text-base": "1rem",
33
+ "--text-lg": "1.125rem",
34
+ "--text-xl": "1.5rem",
35
35
  "--tracking-wide": "0.14em",
36
36
  "--tracking-wider": "0.22em",
37
37
  "--ease-standard": "cubic-bezier(0.2, 0.8, 0.2, 1)",
@@ -153,10 +153,10 @@
153
153
  },
154
154
  "tokens": {
155
155
  "scale": {
156
- "radius-xl": "4px",
157
- "radius-lg": "3px",
158
- "radius-md": "2px",
159
- "radius-sm": "1px",
156
+ "radius-xl": "8px",
157
+ "radius-lg": "6px",
158
+ "radius-md": "4px",
159
+ "radius-sm": "2px",
160
160
  "radius-pill": "999px",
161
161
  "space-2xs": "0.25rem",
162
162
  "space-xs": "0.5rem",
@@ -177,12 +177,12 @@
177
177
  "display": "var(--dot-font)",
178
178
  "display-weight": "700",
179
179
  "display-weight-strong": "800",
180
- "text-2xs": "0.72rem",
181
- "text-xs": "0.76rem",
182
- "text-sm": "0.86rem",
183
- "text-base": "0.95rem",
184
- "text-lg": "1.15rem",
185
- "text-xl": "1.45rem",
180
+ "text-2xs": "0.75rem",
181
+ "text-xs": "0.8125rem",
182
+ "text-sm": "0.875rem",
183
+ "text-base": "1rem",
184
+ "text-lg": "1.125rem",
185
+ "text-xl": "1.5rem",
186
186
  "tracking-wide": "0.14em",
187
187
  "tracking-wider": "0.22em",
188
188
  "ease-standard": "cubic-bezier(0.2, 0.8, 0.2, 1)",
@@ -129,10 +129,10 @@
129
129
  "--focus-ring": "#ff3b41"
130
130
  },
131
131
  "scale": {
132
- "--radius-xl": "4px",
133
- "--radius-lg": "3px",
134
- "--radius-md": "2px",
135
- "--radius-sm": "1px",
132
+ "--radius-xl": "8px",
133
+ "--radius-lg": "6px",
134
+ "--radius-md": "4px",
135
+ "--radius-sm": "2px",
136
136
  "--radius-pill": "999px",
137
137
  "--space-2xs": "0.25rem",
138
138
  "--space-xs": "0.5rem",
@@ -153,12 +153,12 @@
153
153
  "--display": "'Doto', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', ui-monospace, monospace",
154
154
  "--display-weight": "700",
155
155
  "--display-weight-strong": "800",
156
- "--text-2xs": "0.72rem",
157
- "--text-xs": "0.76rem",
158
- "--text-sm": "0.86rem",
159
- "--text-base": "0.95rem",
160
- "--text-lg": "1.15rem",
161
- "--text-xl": "1.45rem",
156
+ "--text-2xs": "0.75rem",
157
+ "--text-xs": "0.8125rem",
158
+ "--text-sm": "0.875rem",
159
+ "--text-base": "1rem",
160
+ "--text-lg": "1.125rem",
161
+ "--text-xl": "1.5rem",
162
162
  "--tracking-wide": "0.14em",
163
163
  "--tracking-wider": "0.22em",
164
164
  "--ease-standard": "cubic-bezier(0.2, 0.8, 0.2, 1)",
@@ -25,52 +25,52 @@
25
25
  "xl": {
26
26
  "$type": "dimension",
27
27
  "$value": {
28
- "value": 4,
28
+ "value": 8,
29
29
  "unit": "px"
30
30
  },
31
31
  "$extensions": {
32
32
  "com.ponchia.css": {
33
33
  "variable": "--radius-xl",
34
- "authoredValue": "4px"
34
+ "authoredValue": "8px"
35
35
  }
36
36
  }
37
37
  },
38
38
  "lg": {
39
39
  "$type": "dimension",
40
40
  "$value": {
41
- "value": 3,
41
+ "value": 6,
42
42
  "unit": "px"
43
43
  },
44
44
  "$extensions": {
45
45
  "com.ponchia.css": {
46
46
  "variable": "--radius-lg",
47
- "authoredValue": "3px"
47
+ "authoredValue": "6px"
48
48
  }
49
49
  }
50
50
  },
51
51
  "md": {
52
52
  "$type": "dimension",
53
53
  "$value": {
54
- "value": 2,
54
+ "value": 4,
55
55
  "unit": "px"
56
56
  },
57
57
  "$extensions": {
58
58
  "com.ponchia.css": {
59
59
  "variable": "--radius-md",
60
- "authoredValue": "2px"
60
+ "authoredValue": "4px"
61
61
  }
62
62
  }
63
63
  },
64
64
  "sm": {
65
65
  "$type": "dimension",
66
66
  "$value": {
67
- "value": 1,
67
+ "value": 2,
68
68
  "unit": "px"
69
69
  },
70
70
  "$extensions": {
71
71
  "com.ponchia.css": {
72
72
  "variable": "--radius-sm",
73
- "authoredValue": "1px"
73
+ "authoredValue": "2px"
74
74
  }
75
75
  }
76
76
  },
@@ -310,78 +310,78 @@
310
310
  "2xs": {
311
311
  "$type": "dimension",
312
312
  "$value": {
313
- "value": 0.72,
313
+ "value": 0.75,
314
314
  "unit": "rem"
315
315
  },
316
316
  "$extensions": {
317
317
  "com.ponchia.css": {
318
318
  "variable": "--text-2xs",
319
- "authoredValue": "0.72rem"
319
+ "authoredValue": "0.75rem"
320
320
  }
321
321
  }
322
322
  },
323
323
  "xs": {
324
324
  "$type": "dimension",
325
325
  "$value": {
326
- "value": 0.76,
326
+ "value": 0.8125,
327
327
  "unit": "rem"
328
328
  },
329
329
  "$extensions": {
330
330
  "com.ponchia.css": {
331
331
  "variable": "--text-xs",
332
- "authoredValue": "0.76rem"
332
+ "authoredValue": "0.8125rem"
333
333
  }
334
334
  }
335
335
  },
336
336
  "sm": {
337
337
  "$type": "dimension",
338
338
  "$value": {
339
- "value": 0.86,
339
+ "value": 0.875,
340
340
  "unit": "rem"
341
341
  },
342
342
  "$extensions": {
343
343
  "com.ponchia.css": {
344
344
  "variable": "--text-sm",
345
- "authoredValue": "0.86rem"
345
+ "authoredValue": "0.875rem"
346
346
  }
347
347
  }
348
348
  },
349
349
  "base": {
350
350
  "$type": "dimension",
351
351
  "$value": {
352
- "value": 0.95,
352
+ "value": 1,
353
353
  "unit": "rem"
354
354
  },
355
355
  "$extensions": {
356
356
  "com.ponchia.css": {
357
357
  "variable": "--text-base",
358
- "authoredValue": "0.95rem"
358
+ "authoredValue": "1rem"
359
359
  }
360
360
  }
361
361
  },
362
362
  "lg": {
363
363
  "$type": "dimension",
364
364
  "$value": {
365
- "value": 1.15,
365
+ "value": 1.125,
366
366
  "unit": "rem"
367
367
  },
368
368
  "$extensions": {
369
369
  "com.ponchia.css": {
370
370
  "variable": "--text-lg",
371
- "authoredValue": "1.15rem"
371
+ "authoredValue": "1.125rem"
372
372
  }
373
373
  }
374
374
  },
375
375
  "xl": {
376
376
  "$type": "dimension",
377
377
  "$value": {
378
- "value": 1.45,
378
+ "value": 1.5,
379
379
  "unit": "rem"
380
380
  },
381
381
  "$extensions": {
382
382
  "com.ponchia.css": {
383
383
  "variable": "--text-xl",
384
- "authoredValue": "1.45rem"
384
+ "authoredValue": "1.5rem"
385
385
  }
386
386
  }
387
387
  }
@@ -1,45 +0,0 @@
1
- /**
2
- * @typedef {object} ModalCloseDetail
3
- * @property {'escape'} reason What asked the modal to close (currently only Escape).
4
- */
5
- /**
6
- * Focus management for the **controlled, non-`<dialog>` modal** — the
7
- * `.ui-modal.is-open` path a portal/React overlay uses when it genuinely can't
8
- * be a native `<dialog>`. The native `<dialog>` path gets a focus trap, Escape,
9
- * and the top layer for free (use `initDialog`); this supplies the equivalent
10
- * for the `.is-open` path, which otherwise leaves focus management to the
11
- * consumer.
12
- *
13
- * Mark the overlay `[data-bronto-modal]` (opt-in). On bind it gives the modal a
14
- * `role="dialog"` + `aria-modal="true"` (unless the author set a role) and
15
- * dev-warns when it has no accessible name. While open, a document-level stack
16
- * reconciler keeps only the top controlled modal interactive, marks the rest of
17
- * the page `inert`, admits an open popover owned by the top modal even when the
18
- * panel is portaled elsewhere, and applies the trap to background nodes added
19
- * after open. Nested and sibling portal modals therefore share one ownership
20
- * model instead of independently inverting each other's `inert` state.
21
- *
22
- * Bronto owns focus only: the **consumer still owns open/close state** (the
23
- * `is-open` class). Escape dispatches a cancelable `bronto:modal:close`
24
- * ({@link ModalCloseDetail}) on the modal so the consumer can drop `is-open` in
25
- * response; the behavior never changes visibility itself. Closing a parent
26
- * modal temporarily suspends any still-`is-open` controlled descendants; they
27
- * resume at the top of the stack if the parent reopens.
28
- *
29
- * SSR-safe, idempotent per modal; returns a cleanup function.
30
- *
31
- * @deprecated Use a native `<dialog>` with `initDialog()`. This controlled
32
- * non-dialog path remains compatible in 0.7 and is scheduled for removal no
33
- * earlier than 0.8 because no real consumer adopted it.
34
- *
35
- * @param {import('./internal.js').DelegateOpts} [opts]
36
- * @returns {import('./internal.js').Cleanup}
37
- */
38
- export function initModal({ root }?: import("./internal.js").DelegateOpts): import("./internal.js").Cleanup;
39
- export type ModalCloseDetail = {
40
- /**
41
- * What asked the modal to close (currently only Escape).
42
- */
43
- reason: "escape";
44
- };
45
- //# sourceMappingURL=modal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["modal.js"],"names":[],"mappings":"AAmQA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qCAHW,OAAO,eAAe,EAAE,YAAY,GAClC,OAAO,eAAe,EAAE,OAAO,CA6E3C;;;;;YA/Ga,QAAQ"}