@vanelsas/baredom 2.1.1 → 2.2.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 (89) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +75 -73
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +10 -10
  6. package/dist/x-avatar.js +13 -14
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +12 -12
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +40 -40
  20. package/dist/x-command-palette.js +25 -25
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +18 -18
  23. package/dist/x-copy.js +20 -20
  24. package/dist/x-currency-field.js +21 -21
  25. package/dist/x-date-picker.js +37 -37
  26. package/dist/x-divider.js +8 -8
  27. package/dist/x-drawer.js +11 -11
  28. package/dist/x-dropdown.js +9 -9
  29. package/dist/x-fieldset.js +5 -5
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +15 -15
  32. package/dist/x-form.js +9 -9
  33. package/dist/x-gaussian-blur.js +16 -16
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-icon.js +9 -0
  36. package/dist/x-image.js +20 -0
  37. package/dist/x-kinetic-font.js +28 -28
  38. package/dist/x-kinetic-typography.js +37 -37
  39. package/dist/x-liquid-dock.js +35 -35
  40. package/dist/x-liquid-fill.js +40 -40
  41. package/dist/x-liquid-glass.js +33 -33
  42. package/dist/x-menu-item.js +10 -10
  43. package/dist/x-menu.js +10 -10
  44. package/dist/x-metaball-cursor.js +25 -25
  45. package/dist/x-modal.js +11 -11
  46. package/dist/x-morph-stack.js +39 -39
  47. package/dist/x-navbar.js +12 -12
  48. package/dist/x-neural-glow.js +30 -30
  49. package/dist/x-notification-center.js +10 -10
  50. package/dist/x-organic-divider.js +15 -15
  51. package/dist/x-organic-progress.js +35 -35
  52. package/dist/x-organic-shape.js +12 -12
  53. package/dist/x-pagination.js +16 -16
  54. package/dist/x-particle-button.js +46 -46
  55. package/dist/x-popover.js +14 -14
  56. package/dist/x-progress-circle.js +7 -7
  57. package/dist/x-progress.js +7 -7
  58. package/dist/x-radio.js +11 -11
  59. package/dist/x-ripple-effect.js +10 -10
  60. package/dist/x-scroll-parallax.js +17 -17
  61. package/dist/x-scroll-stack.js +18 -18
  62. package/dist/x-scroll-story.js +33 -33
  63. package/dist/x-scroll-timeline.js +45 -45
  64. package/dist/x-scroll.js +40 -40
  65. package/dist/x-search-field.js +14 -14
  66. package/dist/x-select.js +9 -9
  67. package/dist/x-sidebar.js +16 -16
  68. package/dist/x-skeleton.js +4 -4
  69. package/dist/x-slider.js +16 -16
  70. package/dist/x-soft-body.js +20 -20
  71. package/dist/x-spacer.js +5 -5
  72. package/dist/x-spinner.js +5 -5
  73. package/dist/x-splash.js +13 -13
  74. package/dist/x-stat.js +9 -9
  75. package/dist/x-stepper.js +16 -16
  76. package/dist/x-switch.js +10 -10
  77. package/dist/x-tab.js +7 -7
  78. package/dist/x-table-cell.js +19 -19
  79. package/dist/x-table-row.js +10 -10
  80. package/dist/x-table.js +13 -13
  81. package/dist/x-tabs.js +11 -11
  82. package/dist/x-text-area.js +17 -17
  83. package/dist/x-theme.js +24 -24
  84. package/dist/x-timeline-item.js +20 -20
  85. package/dist/x-timeline.js +9 -9
  86. package/dist/x-toast.js +21 -21
  87. package/dist/x-toaster.js +8 -8
  88. package/dist/x-typography.js +8 -8
  89. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [2.2.0] - 2026-04-15
6
+
7
+ ### Added
8
+
9
+ - **x-image** — Stateless image component that wraps a native `<img>` in shadow DOM with a skeleton shimmer placeholder, fade-in on load, optional `ratio` attribute to reserve space and prevent layout shift, a default or slotted error fallback, and enforced `alt` hygiene (decorative mode available). Attributes: `src`, `alt`, `decorative`, `ratio`, `fit`, `position`, `loading`. Events: `x-image-load`, `x-image-error`. Read-only properties: `naturalWidth`, `naturalHeight`, `state`.
10
+ - **x-icon** — Stateless slot-based wrapper for SVG icons. Handles sizing (`sm`/`md`/`lg`/`xl` tokens or a numeric pixel value), theme-aware colour via `currentColor` inheritance or the `color` attribute (`inherit`/`primary`/`secondary`/`tertiary`/`success`/`warning`/`danger`/`muted`), and accessibility (decorative by default; `label` attribute flips on `role="img"` + `aria-label`). Consumers provide the `<svg>` in the default slot using `fill="currentColor"` / `stroke="currentColor"` for colour propagation.
11
+
12
+ ### Changed
13
+
14
+ - **x-navbar** default look is now a site header instead of a rounded card. `--x-navbar-radius` defaults to `0` (was `1rem`) and the full four-sided border has been replaced with a single 1px bottom separator. Variant overrides (`subtle`, `inverted`, `transparent`) updated to target `border-bottom-color` accordingly. The rounded card look remains reachable via `style="--x-navbar-radius: 1rem"` — no public API changes. Visual regression for consumers who relied on the previous default; the escape hatch is one line.
15
+
5
16
  ## [2.1.1] - 2026-04-13
6
17
 
7
18
  ### Fixed
package/README.md CHANGED
@@ -116,13 +116,13 @@ BareDOM can be consumed three ways: as a **ClojureScript source dependency** (Cl
116
116
  Add BareDOM to your `deps.edn`:
117
117
 
118
118
  ```clojure
119
- {:deps {com.github.avanelsas/baredom {:mvn/version "2.1.1"}}}
119
+ {:deps {com.github.avanelsas/baredom {:mvn/version "2.2.0"}}}
120
120
  ```
121
121
 
122
122
  Or in your `shadow-cljs.edn` dependencies:
123
123
 
124
124
  ```clojure
125
- :dependencies [[com.github.avanelsas/baredom "2.1.1"]]
125
+ :dependencies [[com.github.avanelsas/baredom "2.2.0"]]
126
126
  ```
127
127
 
128
128
  Then require component namespaces directly and call their `init!` function once at startup:
@@ -179,7 +179,7 @@ Add the npm package to your `package.json`:
179
179
  ```json
180
180
  {
181
181
  "dependencies": {
182
- "@vanelsas/baredom": "^2.1.1"
182
+ "@vanelsas/baredom": "^2.2.0"
183
183
  }
184
184
  }
185
185
  ```