@ponchia/ui 0.5.0 → 0.6.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.
Files changed (196) hide show
  1. package/CHANGELOG.md +386 -4
  2. package/MIGRATIONS.json +14 -0
  3. package/README.md +29 -6
  4. package/annotations/index.d.ts +398 -276
  5. package/annotations/index.d.ts.map +1 -0
  6. package/annotations/index.js +350 -77
  7. package/behaviors/carousel.d.ts +28 -0
  8. package/behaviors/carousel.d.ts.map +1 -0
  9. package/behaviors/carousel.js +20 -16
  10. package/behaviors/combobox.d.ts +40 -0
  11. package/behaviors/combobox.d.ts.map +1 -0
  12. package/behaviors/combobox.js +111 -29
  13. package/behaviors/command.d.ts +41 -0
  14. package/behaviors/command.d.ts.map +1 -0
  15. package/behaviors/command.js +27 -15
  16. package/behaviors/connectors.d.ts +17 -0
  17. package/behaviors/connectors.d.ts.map +1 -0
  18. package/behaviors/connectors.js +7 -5
  19. package/behaviors/crosshair.d.ts +42 -0
  20. package/behaviors/crosshair.d.ts.map +1 -0
  21. package/behaviors/crosshair.js +23 -6
  22. package/behaviors/dialog.d.ts +20 -0
  23. package/behaviors/dialog.d.ts.map +1 -0
  24. package/behaviors/dialog.js +6 -2
  25. package/behaviors/disclosure.d.ts +10 -0
  26. package/behaviors/disclosure.d.ts.map +1 -0
  27. package/behaviors/disclosure.js +6 -2
  28. package/behaviors/dismissible.d.ts +10 -0
  29. package/behaviors/dismissible.d.ts.map +1 -0
  30. package/behaviors/dismissible.js +6 -2
  31. package/behaviors/forms.d.ts +27 -0
  32. package/behaviors/forms.d.ts.map +1 -0
  33. package/behaviors/forms.js +54 -13
  34. package/behaviors/glyph.d.ts +14 -0
  35. package/behaviors/glyph.d.ts.map +1 -0
  36. package/behaviors/glyph.js +28 -5
  37. package/behaviors/index.d.ts +31 -237
  38. package/behaviors/index.d.ts.map +1 -0
  39. package/behaviors/index.js +17 -0
  40. package/behaviors/inert.d.ts +20 -0
  41. package/behaviors/inert.d.ts.map +1 -0
  42. package/behaviors/inert.js +46 -0
  43. package/behaviors/internal.d.ts +25 -0
  44. package/behaviors/internal.d.ts.map +1 -0
  45. package/behaviors/internal.js +77 -1
  46. package/behaviors/legend.d.ts +35 -0
  47. package/behaviors/legend.d.ts.map +1 -0
  48. package/behaviors/legend.js +32 -2
  49. package/behaviors/menu.d.ts +16 -0
  50. package/behaviors/menu.d.ts.map +1 -0
  51. package/behaviors/menu.js +6 -2
  52. package/behaviors/modal.d.ts +41 -0
  53. package/behaviors/modal.d.ts.map +1 -0
  54. package/behaviors/modal.js +124 -0
  55. package/behaviors/popover.d.ts +28 -0
  56. package/behaviors/popover.d.ts.map +1 -0
  57. package/behaviors/popover.js +78 -7
  58. package/behaviors/spotlight.d.ts +17 -0
  59. package/behaviors/spotlight.d.ts.map +1 -0
  60. package/behaviors/spotlight.js +7 -5
  61. package/behaviors/table.d.ts +36 -0
  62. package/behaviors/table.d.ts.map +1 -0
  63. package/behaviors/table.js +84 -17
  64. package/behaviors/tabs.d.ts +20 -0
  65. package/behaviors/tabs.d.ts.map +1 -0
  66. package/behaviors/tabs.js +17 -14
  67. package/behaviors/theme.d.ts +54 -0
  68. package/behaviors/theme.d.ts.map +1 -0
  69. package/behaviors/theme.js +22 -3
  70. package/behaviors/toast.d.ts +49 -0
  71. package/behaviors/toast.d.ts.map +1 -0
  72. package/behaviors/toast.js +47 -3
  73. package/classes/classes.json +2527 -0
  74. package/classes/index.d.ts +134 -15
  75. package/classes/index.js +280 -80
  76. package/classes/vscode.css-custom-data.json +12 -0
  77. package/connectors/index.d.ts +201 -69
  78. package/connectors/index.d.ts.map +1 -0
  79. package/connectors/index.js +142 -25
  80. package/css/app.css +69 -13
  81. package/css/base.css +15 -10
  82. package/css/bullet.css +108 -0
  83. package/css/code.css +98 -0
  84. package/css/connectors.css +17 -0
  85. package/css/content.css +22 -3
  86. package/css/crosshair.css +7 -7
  87. package/css/dataviz.css +5 -1
  88. package/css/diff.css +153 -0
  89. package/css/disclosure.css +53 -7
  90. package/css/dots.css +94 -7
  91. package/css/feedback.css +97 -7
  92. package/css/forms.css +113 -4
  93. package/css/legend.css +16 -9
  94. package/css/marks.css +38 -8
  95. package/css/motion.css +98 -53
  96. package/css/navigation.css +7 -0
  97. package/css/overlay.css +90 -3
  98. package/css/primitives.css +158 -13
  99. package/css/report.css +73 -56
  100. package/css/sidenote.css +67 -0
  101. package/css/site.css +16 -2
  102. package/css/sources.css +43 -1
  103. package/css/spark.css +62 -0
  104. package/css/spotlight.css +1 -1
  105. package/css/table.css +9 -2
  106. package/css/term.css +110 -0
  107. package/css/textref.css +63 -0
  108. package/css/toc.css +91 -0
  109. package/css/tokens.css +49 -1
  110. package/css/tree.css +134 -0
  111. package/css/workbench.css +1 -1
  112. package/dist/bronto.css +1 -1
  113. package/dist/css/analytical.css +1 -1
  114. package/dist/css/app.css +1 -1
  115. package/dist/css/base.css +1 -1
  116. package/dist/css/bullet.css +1 -0
  117. package/dist/css/code.css +1 -0
  118. package/dist/css/connectors.css +1 -1
  119. package/dist/css/content.css +1 -1
  120. package/dist/css/crosshair.css +1 -1
  121. package/dist/css/diff.css +1 -0
  122. package/dist/css/disclosure.css +1 -1
  123. package/dist/css/dots.css +1 -1
  124. package/dist/css/feedback.css +1 -1
  125. package/dist/css/forms.css +1 -1
  126. package/dist/css/legend.css +1 -1
  127. package/dist/css/marks.css +1 -1
  128. package/dist/css/motion.css +1 -1
  129. package/dist/css/navigation.css +1 -1
  130. package/dist/css/overlay.css +1 -1
  131. package/dist/css/primitives.css +1 -1
  132. package/dist/css/report.css +1 -1
  133. package/dist/css/sidenote.css +1 -0
  134. package/dist/css/site.css +1 -1
  135. package/dist/css/sources.css +1 -1
  136. package/dist/css/spark.css +1 -0
  137. package/dist/css/spotlight.css +1 -1
  138. package/dist/css/table.css +1 -1
  139. package/dist/css/term.css +1 -0
  140. package/dist/css/textref.css +1 -0
  141. package/dist/css/toc.css +1 -0
  142. package/dist/css/tokens.css +1 -1
  143. package/dist/css/tree.css +1 -0
  144. package/dist/css/workbench.css +1 -1
  145. package/docs/adr/0003-theme-model.md +1 -1
  146. package/docs/annotations.md +133 -14
  147. package/docs/architecture.md +49 -6
  148. package/docs/bullet.md +78 -0
  149. package/docs/code.md +76 -0
  150. package/docs/contrast.md +116 -92
  151. package/docs/d2.md +196 -0
  152. package/docs/diff.md +146 -0
  153. package/docs/legends.md +23 -3
  154. package/docs/marks.md +9 -2
  155. package/docs/mermaid.md +169 -0
  156. package/docs/reference.md +201 -26
  157. package/docs/reporting.md +416 -57
  158. package/docs/sidenote.md +64 -0
  159. package/docs/sources.md +27 -0
  160. package/docs/spark.md +78 -0
  161. package/docs/stability.md +10 -2
  162. package/docs/term.md +81 -0
  163. package/docs/textref.md +78 -0
  164. package/docs/theming.md +44 -5
  165. package/docs/toc.md +83 -0
  166. package/docs/tree.md +74 -0
  167. package/docs/usage.md +354 -16
  168. package/docs/vega.md +244 -0
  169. package/docs/workbench.md +7 -1
  170. package/glyphs/glyphs.js +13 -5
  171. package/llms.txt +285 -14
  172. package/package.json +95 -17
  173. package/qwik/index.d.ts +44 -59
  174. package/qwik/index.d.ts.map +1 -0
  175. package/qwik/index.js +65 -3
  176. package/react/index.d.ts +41 -61
  177. package/react/index.d.ts.map +1 -0
  178. package/react/index.js +63 -3
  179. package/solid/index.d.ts +68 -61
  180. package/solid/index.d.ts.map +1 -0
  181. package/solid/index.js +66 -3
  182. package/tokens/d2.d.ts +38 -0
  183. package/tokens/d2.js +71 -0
  184. package/tokens/d2.json +43 -0
  185. package/tokens/index.d.ts +5 -5
  186. package/tokens/index.js +15 -1
  187. package/tokens/index.json +9 -0
  188. package/tokens/mermaid.d.ts +23 -0
  189. package/tokens/mermaid.js +181 -0
  190. package/tokens/mermaid.json +163 -0
  191. package/tokens/resolved.json +45 -1
  192. package/tokens/skins.js +3 -2
  193. package/tokens/tokens.dtcg.json +26 -0
  194. package/tokens/vega.d.ts +34 -0
  195. package/tokens/vega.js +155 -0
  196. package/tokens/vega.json +179 -0
@@ -34,6 +34,11 @@ export declare const cls: {
34
34
  readonly numPos: 'ui-num--pos';
35
35
  readonly numNeg: 'ui-num--neg';
36
36
  readonly numMuted: 'ui-num--muted';
37
+ readonly delta: 'ui-delta';
38
+ readonly deltaUp: 'ui-delta--up';
39
+ readonly deltaDown: 'ui-delta--down';
40
+ readonly deltaFlat: 'ui-delta--flat';
41
+ readonly deltaInvert: 'ui-delta--invert';
37
42
  readonly badge: 'ui-badge';
38
43
  readonly badgeAccent: 'ui-badge--accent';
39
44
  readonly badgeSuccess: 'ui-badge--success';
@@ -99,7 +104,7 @@ export declare const cls: {
99
104
  readonly alert: 'ui-alert';
100
105
  readonly alertTitle: 'ui-alert__title';
101
106
  readonly alertBody: 'ui-alert__body';
102
- readonly alertDismiss: 'ui-alert__dismiss';
107
+ readonly alertClose: 'ui-alert__close';
103
108
  readonly alertAccent: 'ui-alert--accent';
104
109
  readonly alertSuccess: 'ui-alert--success';
105
110
  readonly alertWarning: 'ui-alert--warning';
@@ -123,10 +128,14 @@ export declare const cls: {
123
128
  readonly progressIndeterminate: 'ui-progress--indeterminate';
124
129
  readonly meter: 'ui-meter';
125
130
  readonly meterFill: 'ui-meter__fill';
131
+ readonly meterRow: 'ui-meter__row';
132
+ readonly meterLabel: 'ui-meter__label';
133
+ readonly meterValue: 'ui-meter__value';
126
134
  readonly meterAccent: 'ui-meter--accent';
127
135
  readonly meterSuccess: 'ui-meter--success';
128
136
  readonly meterWarning: 'ui-meter--warning';
129
137
  readonly meterDanger: 'ui-meter--danger';
138
+ readonly meterInfo: 'ui-meter--info';
130
139
  readonly steps: 'ui-steps';
131
140
  readonly stepsItem: 'ui-steps__item';
132
141
  readonly stepsItemDone: 'ui-steps__item--done';
@@ -181,12 +190,12 @@ export declare const cls: {
181
190
  readonly tableComfortable: 'ui-table--comfortable';
182
191
  readonly tableLined: 'ui-table--lined';
183
192
  readonly tableWrap: 'ui-table-wrap';
193
+ readonly tableLoading: 'ui-table-wrap--loading';
184
194
  readonly tableEmpty: 'ui-table__empty';
185
195
  readonly tableSort: 'ui-table__sort';
186
196
  readonly tableSelect: 'ui-table__select';
187
197
  readonly tableToolbar: 'ui-table__toolbar';
188
198
  readonly tableSelectable: 'ui-table--selectable';
189
- readonly tableLoading: 'ui-table--loading';
190
199
  readonly panel: 'ui-panel';
191
200
  readonly panelHead: 'ui-panel__head';
192
201
  readonly surface: 'ui-surface';
@@ -237,7 +246,7 @@ export declare const cls: {
237
246
  readonly reportNumbered: 'ui-report--numbered';
238
247
  readonly reportCover: 'ui-report__cover';
239
248
  readonly reportCoverCompact: 'ui-report__cover--compact';
240
- readonly reportHeader: 'ui-report__header';
249
+ readonly reportHead: 'ui-report__head';
241
250
  readonly reportTitle: 'ui-report__title';
242
251
  readonly reportSubtitle: 'ui-report__subtitle';
243
252
  readonly reportMeta: 'ui-report__meta';
@@ -253,14 +262,10 @@ export declare const cls: {
253
262
  readonly reportSources: 'ui-report__sources';
254
263
  readonly reportAppendix: 'ui-report__appendix';
255
264
  readonly reportFootnotes: 'ui-report__footnotes';
256
- readonly chart: 'ui-chart';
257
- readonly chartCaption: 'ui-chart__caption';
258
- readonly chartPlot: 'ui-chart__plot';
259
- readonly chartBar: 'ui-chart__bar';
260
- readonly chartLabel: 'ui-chart__label';
261
- readonly chartTrack: 'ui-chart__track';
262
- readonly chartFill: 'ui-chart__fill';
263
- readonly chartFallback: 'ui-chart__fallback';
265
+ readonly compare: 'ui-compare';
266
+ readonly compare2up: 'ui-compare--2up';
267
+ readonly compareCol: 'ui-compare__col';
268
+ readonly compareHead: 'ui-compare__head';
264
269
  readonly legend: 'ui-legend';
265
270
  readonly legendVertical: 'ui-legend--vertical';
266
271
  readonly legendCompact: 'ui-legend--compact';
@@ -338,6 +343,7 @@ export declare const cls: {
338
343
  readonly bracketNote: 'ui-bracket-note';
339
344
  readonly bracketNoteLabel: 'ui-bracket-note__label';
340
345
  readonly bracketNoteAccent: 'ui-bracket-note--accent';
346
+ readonly bracketNoteSuccess: 'ui-bracket-note--success';
341
347
  readonly bracketNoteWarning: 'ui-bracket-note--warning';
342
348
  readonly bracketNoteDanger: 'ui-bracket-note--danger';
343
349
  readonly bracketNoteInfo: 'ui-bracket-note--info';
@@ -383,12 +389,62 @@ export declare const cls: {
383
389
  readonly sourceCardActions: 'ui-source-card__actions';
384
390
  readonly provenance: 'ui-provenance';
385
391
  readonly provenanceItem: 'ui-provenance__item';
392
+ readonly src: 'ui-src';
386
393
  readonly srcVerified: 'ui-src--verified';
387
394
  readonly srcUnverified: 'ui-src--unverified';
388
395
  readonly srcGenerated: 'ui-src--generated';
389
396
  readonly srcReviewed: 'ui-src--reviewed';
390
397
  readonly srcStale: 'ui-src--stale';
391
398
  readonly srcConflict: 'ui-src--conflict';
399
+ readonly diff: 'ui-diff';
400
+ readonly diffSplit: 'ui-diff--split';
401
+ readonly diffPane: 'ui-diff__pane';
402
+ readonly diffHunk: 'ui-diff__hunk';
403
+ readonly diffHead: 'ui-diff__head';
404
+ readonly diffRow: 'ui-diff__row';
405
+ readonly diffRowAdd: 'ui-diff__row--add';
406
+ readonly diffRowRemove: 'ui-diff__row--remove';
407
+ readonly diffRowContext: 'ui-diff__row--context';
408
+ readonly diffLn: 'ui-diff__ln';
409
+ readonly diffCode: 'ui-diff__code';
410
+ readonly code: 'ui-code';
411
+ readonly codeNumbered: 'ui-code--numbered';
412
+ readonly codeHead: 'ui-code__head';
413
+ readonly codeBody: 'ui-code__body';
414
+ readonly codeLine: 'ui-code__line';
415
+ readonly codeLineAdd: 'ui-code__line--add';
416
+ readonly codeLineRemove: 'ui-code__line--remove';
417
+ readonly codeLineHl: 'ui-code__line--hl';
418
+ readonly spark: 'ui-spark';
419
+ readonly sparkBar: 'ui-spark__bar';
420
+ readonly sparkBarAccent: 'ui-spark__bar--accent';
421
+ readonly sparkBarPos: 'ui-spark__bar--pos';
422
+ readonly sparkBarNeg: 'ui-spark__bar--neg';
423
+ readonly sidenote: 'ui-sidenote';
424
+ readonly marginnote: 'ui-marginnote';
425
+ readonly sidenoteRef: 'ui-sidenote__ref';
426
+ readonly textref: 'ui-textref';
427
+ readonly bullet: 'ui-bullet';
428
+ readonly bulletMeasure: 'ui-bullet__measure';
429
+ readonly bulletMeasureAccent: 'ui-bullet__measure--accent';
430
+ readonly bulletMeasurePos: 'ui-bullet__measure--pos';
431
+ readonly bulletMeasureNeg: 'ui-bullet__measure--neg';
432
+ readonly bulletTarget: 'ui-bullet__target';
433
+ readonly bulletLabel: 'ui-bullet__label';
434
+ readonly term: 'ui-term';
435
+ readonly def: 'ui-def';
436
+ readonly glossary: 'ui-glossary';
437
+ readonly glossaryTerm: 'ui-glossary__term';
438
+ readonly glossaryDef: 'ui-glossary__def';
439
+ readonly toc: 'ui-toc';
440
+ readonly tocTitle: 'ui-toc__title';
441
+ readonly tocList: 'ui-toc__list';
442
+ readonly tocLink: 'ui-toc__link';
443
+ readonly tree: 'ui-tree';
444
+ readonly treeBranch: 'ui-tree__branch';
445
+ readonly treeLeaf: 'ui-tree__leaf';
446
+ readonly treeSummary: 'ui-tree__summary';
447
+ readonly treeLabel: 'ui-tree__label';
392
448
  readonly state: 'ui-state';
393
449
  readonly stateLabel: 'ui-state__label';
394
450
  readonly stateDetail: 'ui-state__detail';
@@ -416,7 +472,7 @@ export declare const cls: {
416
472
  readonly toolCallStatus: 'ui-tool-call__status';
417
473
  readonly toolCallBody: 'ui-tool-call__body';
418
474
  readonly inspector: 'ui-inspector';
419
- readonly inspectorHeader: 'ui-inspector__header';
475
+ readonly inspectorHead: 'ui-inspector__head';
420
476
  readonly inspectorBody: 'ui-inspector__body';
421
477
  readonly property: 'ui-property';
422
478
  readonly propertyLabel: 'ui-property__label';
@@ -463,7 +519,6 @@ export declare const cls: {
463
519
  readonly appShellFull: 'ui-app-shell--full';
464
520
  readonly appRail: 'ui-app-rail';
465
521
  readonly appRailBrand: 'ui-app-rail__brand';
466
- readonly appRailToggle: 'ui-app-rail__toggle';
467
522
  readonly appRailFoot: 'ui-app-rail__foot';
468
523
  readonly appRailAccount: 'ui-app-rail__account';
469
524
  readonly appTopbar: 'ui-app-topbar';
@@ -509,6 +564,16 @@ export interface BadgeOpts {
509
564
  export interface NumOpts {
510
565
  tone?: 'pos' | 'neg' | 'muted';
511
566
  }
567
+ export interface DeltaOpts {
568
+ /** Trend direction — sets the arrow glyph and the conventional tone. */
569
+ dir?: 'up' | 'down' | 'flat';
570
+ /** Swap only the tone when `up` is the bad direction (latency, error rate, cost). */
571
+ invert?: boolean;
572
+ }
573
+ export interface CompareOpts {
574
+ /** Pin exactly two equal columns (hard before/after) instead of the auto-fitting set. */
575
+ cols?: 2;
576
+ }
512
577
  export interface ChipOpts {
513
578
  accent?: boolean;
514
579
  }
@@ -552,7 +617,7 @@ export interface ProgressOpts {
552
617
  indeterminate?: boolean;
553
618
  }
554
619
  export interface MeterOpts {
555
- tone?: 'accent' | 'success' | 'warning' | 'danger';
620
+ tone?: 'accent' | 'success' | 'warning' | 'danger' | 'info';
556
621
  }
557
622
  export interface DotspinnerOpts {
558
623
  size?: 'sm' | 'lg';
@@ -621,7 +686,7 @@ export interface MarkOpts {
621
686
  motion?: 'draw';
622
687
  }
623
688
  export interface BracketNoteOpts {
624
- tone?: 'accent' | 'warning' | 'danger' | 'info';
689
+ tone?: 'accent' | 'success' | 'warning' | 'danger' | 'info';
625
690
  }
626
691
  export interface ConnectorOpts {
627
692
  tone?: 'accent' | 'muted' | 'success' | 'warning' | 'danger' | 'info';
@@ -677,12 +742,40 @@ export interface OriginLabelOpts {
677
742
  /** Accent-tint the label for AI/model-generated origin (vs a neutral tag). */
678
743
  ai?: boolean;
679
744
  }
745
+ export interface DiffOpts {
746
+ /** Two side-by-side `.ui-diff__pane` columns (old | new) instead of the unified view. */
747
+ split?: boolean;
748
+ }
749
+ export interface DiffRowOpts {
750
+ /** The host-classified change kind — sets the tint and the +/− gutter glyph. */
751
+ change?: 'add' | 'remove' | 'context';
752
+ }
753
+ export interface CodeOpts {
754
+ /** Show the line-number gutter (counts each `.ui-code__line`). */
755
+ numbered?: boolean;
756
+ }
757
+ export interface CodeLineOpts {
758
+ /** The host-classified line state — `hl` is a neutral highlight, not a change.
759
+ * `remove` matches `ui.diffRow`'s verb (was `del`) so the two change-review
760
+ * surfaces share one vocabulary. */
761
+ change?: 'add' | 'remove' | 'hl';
762
+ }
763
+ export interface SparkBarOpts {
764
+ /** Emphasise / tone a single bar. The meaning must still be in the spark's aria-label. */
765
+ tone?: 'accent' | 'pos' | 'neg';
766
+ }
767
+ export interface BulletMeasureOpts {
768
+ /** Emphasise / tone the measure bar. The meaning must still be in the bullet's aria-label. */
769
+ tone?: 'accent' | 'pos' | 'neg';
770
+ }
680
771
 
681
772
  export interface Ui {
682
773
  button(opts?: ButtonOpts): string;
683
774
  card(opts?: CardOpts): string;
684
775
  badge(opts?: BadgeOpts): string;
685
776
  num(opts?: NumOpts): string;
777
+ delta(opts?: DeltaOpts): string;
778
+ compare(opts?: CompareOpts): string;
686
779
  chip(opts?: ChipOpts): string;
687
780
  link(opts?: LinkOpts): string;
688
781
  dot(opts?: DotOpts): string;
@@ -718,9 +811,35 @@ export interface Ui {
718
811
  citation(opts?: CitationOpts): string;
719
812
  source(opts?: SourceOpts): string;
720
813
  provenance(opts?: ProvenanceOpts): string;
814
+ diff(opts?: DiffOpts): string;
815
+ diffRow(opts?: DiffRowOpts): string;
816
+ code(opts?: CodeOpts): string;
817
+ codeLine(opts?: CodeLineOpts): string;
818
+ sparkBar(opts?: SparkBarOpts): string;
819
+ bulletMeasure(opts?: BulletMeasureOpts): string;
721
820
  state(opts?: StateOpts): string;
722
821
  originLabel(opts?: OriginLabelOpts): string;
723
822
  }
724
823
 
725
824
  export declare const ui: Ui;
726
825
  export default ui;
826
+
827
+ /** Min/max for the value-bearing fills; defaults to 0–100. */
828
+ export interface ValueRangeOpts {
829
+ min?: number;
830
+ max?: number;
831
+ }
832
+ /** ARIA + style bundle to spread onto a `ui-meter`/`ui-progress` host. */
833
+ export interface ValueAttrs {
834
+ role: 'meter' | 'progressbar';
835
+ 'aria-valuenow': number;
836
+ 'aria-valuemin': number;
837
+ 'aria-valuemax': number;
838
+ style: { '--value': number };
839
+ }
840
+ export interface Attrs {
841
+ meter(value: number, opts?: ValueRangeOpts): ValueAttrs;
842
+ progress(value: number, opts?: ValueRangeOpts): ValueAttrs;
843
+ }
844
+ /** Set the painted value AND its ARIA together so they cannot drift. */
845
+ export declare const attrs: Attrs;