@vanelsas/baredom 4.15.0 → 4.17.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 (125) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +2 -2
  3. package/custom-elements.json +522 -14
  4. package/dist/all.js +4 -0
  5. package/dist/baredom.d.ts +2 -0
  6. package/dist/baremirror-alpha.js +42 -42
  7. package/dist/base.js +584 -504
  8. package/dist/foreign-writes.js +4 -0
  9. package/dist/integrity.json +118 -116
  10. package/dist/requests.js +4 -0
  11. package/dist/x-alert.js +17 -17
  12. package/dist/x-avatar-group.js +10 -10
  13. package/dist/x-avatar.js +1 -13
  14. package/dist/x-badge.js +9 -9
  15. package/dist/x-bento-grid.js +6 -6
  16. package/dist/x-bento-item.js +4 -4
  17. package/dist/x-breadcrumbs.js +17 -17
  18. package/dist/x-button.js +1 -1
  19. package/dist/x-calendar.js +41 -41
  20. package/dist/x-cancel-dialogue.js +16 -16
  21. package/dist/x-card.js +7 -7
  22. package/dist/x-carousel.js +34 -34
  23. package/dist/x-chart.js +47 -47
  24. package/dist/x-checkbox.js +1 -1
  25. package/dist/x-chip.js +1 -1
  26. package/dist/x-code.js +30 -30
  27. package/dist/x-collapse.js +11 -11
  28. package/dist/x-color-picker.js +43 -43
  29. package/dist/x-combobox.js +34 -34
  30. package/dist/x-command-palette.js +30 -30
  31. package/dist/x-comment.d.ts +52 -0
  32. package/dist/x-comment.js +2 -0
  33. package/dist/x-comments.d.ts +52 -0
  34. package/dist/x-comments.js +25 -0
  35. package/dist/x-confetti.js +24 -24
  36. package/dist/x-container.js +6 -6
  37. package/dist/x-context-menu.js +19 -19
  38. package/dist/x-copy.js +1 -1
  39. package/dist/x-currency-field.js +24 -24
  40. package/dist/x-date-picker.js +46 -46
  41. package/dist/x-divider.js +8 -8
  42. package/dist/x-drag-panel.js +33 -33
  43. package/dist/x-drawer.js +12 -12
  44. package/dist/x-drop-zone.js +11 -11
  45. package/dist/x-dropdown.js +12 -12
  46. package/dist/x-fieldset.js +6 -6
  47. package/dist/x-file-download.js +14 -14
  48. package/dist/x-file-upload.js +27 -27
  49. package/dist/x-floating-panel.js +22 -22
  50. package/dist/x-form-field.d.ts +1 -0
  51. package/dist/x-form-field.js +1 -17
  52. package/dist/x-form.js +10 -10
  53. package/dist/x-gaussian-blur.js +13 -13
  54. package/dist/x-grid.js +8 -8
  55. package/dist/x-i18n-provider.js +7 -7
  56. package/dist/x-i18n.js +4 -4
  57. package/dist/x-icon.js +7 -7
  58. package/dist/x-image.js +18 -18
  59. package/dist/x-kbd.js +13 -13
  60. package/dist/x-kinetic-canvas.js +25 -25
  61. package/dist/x-kinetic-font.js +26 -26
  62. package/dist/x-kinetic-typography.js +34 -34
  63. package/dist/x-liquid-dock.js +31 -31
  64. package/dist/x-liquid-fill.js +40 -40
  65. package/dist/x-liquid-glass.js +36 -36
  66. package/dist/x-menu-item.js +9 -9
  67. package/dist/x-menu.js +10 -10
  68. package/dist/x-metaball-cursor.js +26 -26
  69. package/dist/x-modal.js +12 -12
  70. package/dist/x-morph-stack.js +37 -37
  71. package/dist/x-multi-combobox.js +41 -41
  72. package/dist/x-navbar.js +15 -15
  73. package/dist/x-neural-glow.js +25 -25
  74. package/dist/x-notification-center.js +9 -9
  75. package/dist/x-organic-divider.js +17 -17
  76. package/dist/x-organic-progress.js +33 -33
  77. package/dist/x-organic-shape.js +12 -12
  78. package/dist/x-otp-input.js +22 -22
  79. package/dist/x-pagination.js +18 -18
  80. package/dist/x-particle-button.js +53 -53
  81. package/dist/x-popover.js +27 -27
  82. package/dist/x-progress-circle.js +8 -8
  83. package/dist/x-progress.js +8 -8
  84. package/dist/x-proximity-list.js +20 -20
  85. package/dist/x-radio.js +13 -13
  86. package/dist/x-range-slider.js +29 -29
  87. package/dist/x-rating.js +24 -24
  88. package/dist/x-ripple-effect.js +9 -9
  89. package/dist/x-scroll-parallax.js +17 -17
  90. package/dist/x-scroll-stack.js +17 -17
  91. package/dist/x-scroll-story.js +33 -33
  92. package/dist/x-scroll-timeline.js +49 -49
  93. package/dist/x-scroll.js +35 -35
  94. package/dist/x-search-field.js +1 -1
  95. package/dist/x-select.js +1 -1
  96. package/dist/x-sidebar.js +17 -16
  97. package/dist/x-skeleton-group.js +14 -14
  98. package/dist/x-skeleton.js +1 -1
  99. package/dist/x-slider.js +17 -17
  100. package/dist/x-soft-body.js +17 -17
  101. package/dist/x-spacer.js +3 -3
  102. package/dist/x-spinner.js +4 -4
  103. package/dist/x-splash.js +13 -13
  104. package/dist/x-split-pane.js +15 -15
  105. package/dist/x-spotlight-card.js +12 -12
  106. package/dist/x-stat.js +10 -10
  107. package/dist/x-stepper.js +14 -14
  108. package/dist/x-switch.js +12 -12
  109. package/dist/x-tab.js +7 -7
  110. package/dist/x-table-cell.js +20 -20
  111. package/dist/x-table-row.js +8 -8
  112. package/dist/x-table.js +20 -20
  113. package/dist/x-tabs.js +12 -12
  114. package/dist/x-text-area.js +1 -20
  115. package/dist/x-theme.js +28 -26
  116. package/dist/x-timeline-item.js +21 -21
  117. package/dist/x-timeline.js +9 -9
  118. package/dist/x-toast.js +22 -22
  119. package/dist/x-toaster.js +6 -6
  120. package/dist/x-toc.js +34 -34
  121. package/dist/x-tooltip.js +14 -14
  122. package/dist/x-trace-history.js +117 -117
  123. package/dist/x-typography.js +6 -6
  124. package/dist/x-welcome-tour.js +63 -63
  125. package/package.json +11 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,60 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [4.17.0] - 2026-10-28
6
+
7
+ BareDOM 4.17 adds `x-comments` and `x-comment`, a comment thread with one form. All five adapters
8
+ are released with it: `-react` 3.6.0, `-angular` 3.6.0, `-vue` 0.12.0, `-svelte` 0.12.0 and
9
+ `-solid` 0.12.0. They add `XComments` and `XComment`, and each now needs `@vanelsas/baredom`
10
+ 4.17.0 or later.
11
+
12
+ ### Added
13
+
14
+ - **`x-comments` and `x-comment`, a comment thread.** `x-comments` holds the comments of a page
15
+ and one form for a new comment or a reply. Reply moves the form right under the comment it
16
+ answers. A send dispatches `x-comments-submit` with the name, the text, the comment it answers
17
+ and the value of a hidden field that catches bots. The components store nothing: the page
18
+ renders each comment as an `x-comment`, with its depth, its status (`published`, `pending`,
19
+ `removed` or `expired`) and the name of the comment it answers. The date shows as given, or in
20
+ the language of `locale`. A `meta` slot holds what a page shows after the date. See
21
+ [`docs/x-comments.md`](docs/x-comments.md), [`docs/x-comment.md`](docs/x-comment.md) and the
22
+ [demo](https://avanelsas.github.io/baredom/demo/x-comments.html).
23
+ - **`maxlength` on `x-form-field`,** with a `maxLength` property, as on `x-text-area`.
24
+ - **`XComments` and `XComment` in the five adapters,** and the `maxLength` prop of `XFormField`.
25
+
26
+ ### Changed
27
+
28
+ - **`focus()` on `x-button`, `x-form-field` and `x-text-area` moves focus to their inner
29
+ control.** Each attaches its shadow root with `delegatesFocus`.
30
+ - **The shared `base.js` grows by about 10 KB gzipped.** `x-comment` and `x-comments` compose
31
+ `x-avatar`, `x-form-field` and `x-text-area`, so these three now load with every component.
32
+ Their own modules shrink to an entry of a few hundred bytes.
33
+ - **The adapters need `@vanelsas/baredom` 4.17.0 or later.** Their index exports `XComments` and
34
+ `XComment`.
35
+
36
+ ## [4.16.0] - 2026-10-27
37
+
38
+ BareDOM 4.16 brings every `x-theme` preset to WCAG AA contrast. The adapters are not released
39
+ with it, since no component gains a prop.
40
+
41
+ ### Added
42
+
43
+ - **`--x-color-on-primary` and `--x-color-on-danger`,** the colour of text on a primary or a
44
+ danger fill. `x-theme` sets them in every preset, and the components that put text on those
45
+ fills use them: `x-button`, `x-particle-button`, `x-copy`, `x-calendar`, `x-date-picker`,
46
+ `x-combobox`, `x-multi-combobox`, `x-stepper`, `x-timeline-item`, `x-cancel-dialogue` and
47
+ `x-welcome-tour`. See [`docs/THEMING.md`](docs/THEMING.md).
48
+
49
+ ### Changed
50
+
51
+ - **Every preset meets WCAG AA,** in light and dark mode: text, focus rings and fills have the
52
+ contrast they need. Some preset colours are a shade different from 4.15. A test checks the
53
+ contrast of every preset.
54
+ - **In dark mode a fill lightens on hover.** The hover and active shades of primary, danger,
55
+ success and warning are mixed with white, and the text on a primary or danger fill is
56
+ `--x-color-bg`. A page that sets its own `--x-color-primary` in dark mode can set
57
+ `--x-color-on-primary` with it.
58
+
5
59
  ## [4.15.0] - 2026-10-23
6
60
 
7
61
  BareDOM 4.15 adds gradient text to `x-typography`. All five adapters are released with it:
package/README.md CHANGED
@@ -117,7 +117,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
117
117
 
118
118
  ## Components
119
119
 
120
- **107 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
120
+ **109 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
121
121
 
122
122
  | Category | Count | Examples |
123
123
  |----------|------:|----------|
@@ -125,7 +125,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
125
125
  | **Feedback** | 11 | Alert · Toast · Spinner · Progress · Skeleton · Notification Center |
126
126
  | **Navigation** | 9 | Navbar · Sidebar · Breadcrumbs · Tabs · Pagination · Menu · Table of Contents |
127
127
  | **Layout** | 12 | Card · Grid · Bento Grid · Split Pane · Drag Panel · Drop Zone |
128
- | **Data** | 11 | Avatar · Table · Chart · Timeline · Calendar · Stat |
128
+ | **Data** | 13 | Avatar · Table · Chart · Timeline · Calendar · Stat |
129
129
  | **Overlay** | 10 | Modal · Drawer · Popover · Tooltip · Floating Panel · Command Palette |
130
130
  | **Display** | 6 | Icon · Image · Typography · Code · Kbd · Spotlight Card |
131
131
  | **Animation** | 6 | Kinetic Canvas · Kinetic Typography · Morph Stack · Soft Body · Splash |