@vanelsas/baredom 1.0.0 → 1.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.
- package/CHANGELOG.md +23 -0
- package/README.md +14 -4
- package/dist/base.js +368 -349
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +16 -17
- package/dist/x-badge.js +11 -11
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +16 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-chart.js +46 -46
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.js +11 -11
- package/dist/x-command-palette.js +31 -31
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -20
- package/dist/x-copy.js +23 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +39 -39
- package/dist/x-divider.js +12 -12
- package/dist/x-drawer.js +12 -12
- package/dist/x-dropdown.js +10 -10
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +17 -17
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +33 -0
- package/dist/x-grid.js +7 -7
- package/dist/x-kinetic-typography.js +62 -0
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-modal.js +13 -13
- package/dist/x-navbar.js +13 -13
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.js +20 -0
- package/dist/x-organic-shape.js +15 -0
- package/dist/x-pagination.js +16 -16
- package/dist/x-popover.js +15 -15
- package/dist/x-progress-circle.js +10 -10
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +14 -0
- package/dist/x-scroll-parallax.js +20 -0
- package/dist/x-scroll-stack.js +20 -0
- package/dist/x-scroll-story.js +38 -0
- package/dist/x-scroll-timeline.js +51 -0
- package/dist/x-scroll.js +43 -0
- package/dist/x-search-field.js +14 -14
- package/dist/x-select.js +9 -9
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton.js +6 -7
- package/dist/x-slider.js +16 -16
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +23 -23
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +15 -15
- package/dist/x-tabs.js +11 -12
- package/dist/x-text-area.js +19 -19
- package/dist/x-timeline-item.js +24 -24
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +24 -24
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -0
- package/package.json +47 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDome will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.0] - 2026-04-05
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Scroll** — x-scroll-stack (card-stack with scroll-driven align support)
|
|
10
|
+
- **Documentation** — JavaScript Developer Guide (`docs/javascript-guide.md`) for npm/ESM setup, event handling, theming, and framework integration
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Cleaned up x-button.md for JavaScript developer readability
|
|
15
|
+
- Added JavaScript guide link to README Installation section
|
|
16
|
+
|
|
17
|
+
## [1.1.0] - 2026-04-05
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
Nine new components:
|
|
22
|
+
|
|
23
|
+
- **Effects** — x-ripple-effect, x-gaussian-blur
|
|
24
|
+
- **Scroll** — x-scroll-parallax, x-scroll-timeline, x-scroll-story
|
|
25
|
+
- **Typography** — x-typography, x-kinetic-typography
|
|
26
|
+
- **Decorative** — x-organic-divider, x-organic-shape
|
|
27
|
+
|
|
5
28
|
## [1.0.0] - 2026-04-04
|
|
6
29
|
|
|
7
30
|
Stable release — promoted from 1.0.0-rc.4 with no code changes.
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
## What is BareDOM?
|
|
13
13
|
|
|
14
|
-
BareDOM is a library of
|
|
14
|
+
BareDOM is a library of more than 60 UI components built entirely on web standards — Custom Elements v1, Shadow DOM, and ES modules. There is no framework runtime, no virtual DOM, and no JavaScript framework peer dependency. Every component is a native HTML element that you register once and use anywhere.
|
|
15
15
|
|
|
16
16
|
The core rendering model is deliberately simple:
|
|
17
17
|
|
|
@@ -25,10 +25,18 @@ BareDOM is authored in ClojureScript and compiled to optimised, minified ES modu
|
|
|
25
25
|
|
|
26
26
|
BareDOM has been created using Claude Code. The CLAUDE.md file is added to the repository for your convenience.
|
|
27
27
|
|
|
28
|
+
All web components—including new, modern, and exciting ones such as x-ripple-effect, x-scroll-parallax, x-scroll-story, x-scroll-timeline, x-kinetic-typography, x-organic-shape, and x-gaussian-blur—can be seen [here](https://avanelsas.github.io/baredom/)
|
|
29
|
+
|
|
28
30
|
---
|
|
29
31
|
|
|
30
32
|
## Why BareDOM?
|
|
31
33
|
|
|
34
|
+
Like most Clojure/ClojureScript developers starting out with UIs, I went through the common phases of using Reagent and Re-frame—which are great utilities in their own right. However, as my UIs became larger and more complex, bundle sizes increased, and I found myself spending too much time rebuilding generic, reusable components from scratch.
|
|
35
|
+
|
|
36
|
+
I started looking for a different approach and discovered Web Components. I built a few, but didn't have the spare time to develop a comprehensive set that could be used in any project. Then AI arrived. While experimenting with Claude Code, I realised that 1 + 1 could be 3. That is how BareDOM, my first open-source project, was born.
|
|
37
|
+
|
|
38
|
+
# Why web components?
|
|
39
|
+
|
|
32
40
|
**Works in any stack.** Because components are native HTML elements, they work wherever HTML works — vanilla JavaScript, React, Vue, Svelte, Angular, server-rendered HTML, or a static page. No adapter layer, no wrapper library.
|
|
33
41
|
|
|
34
42
|
**No framework lock-in.** Your components are not tied to the framework you are building with today. Migrate your app, keep your components.
|
|
@@ -47,6 +55,8 @@ BareDOM has been created using Claude Code. The CLAUDE.md file is added to the r
|
|
|
47
55
|
|
|
48
56
|
## Installation
|
|
49
57
|
|
|
58
|
+
> **Using JavaScript?** See the [JavaScript Developer Guide](./docs/javascript-guide.md) for npm/ESM setup, event handling, theming, and framework integration examples (React, Vue, Svelte).
|
|
59
|
+
|
|
50
60
|
BareDOM can be consumed three ways: as a **ClojureScript source dependency** (Clojars), as **standalone ES module files** (no build tool required), or as an **npm package**.
|
|
51
61
|
|
|
52
62
|
### Option A — ClojureScript via Clojars
|
|
@@ -54,13 +64,13 @@ BareDOM can be consumed three ways: as a **ClojureScript source dependency** (Cl
|
|
|
54
64
|
Add BareDOM to your `deps.edn`:
|
|
55
65
|
|
|
56
66
|
```clojure
|
|
57
|
-
{:deps {com.github.avanelsas/baredom {:mvn/version "1.
|
|
67
|
+
{:deps {com.github.avanelsas/baredom {:mvn/version "1.2.0"}}}
|
|
58
68
|
```
|
|
59
69
|
|
|
60
70
|
Or in your `shadow-cljs.edn` dependencies:
|
|
61
71
|
|
|
62
72
|
```clojure
|
|
63
|
-
:dependencies [[com.github.avanelsas/baredom "1.
|
|
73
|
+
:dependencies [[com.github.avanelsas/baredom "1.2.0"]]
|
|
64
74
|
```
|
|
65
75
|
|
|
66
76
|
Then require component namespaces directly and call their `init!` function once at startup:
|
|
@@ -117,7 +127,7 @@ Add the npm package to your `package.json`:
|
|
|
117
127
|
```json
|
|
118
128
|
{
|
|
119
129
|
"dependencies": {
|
|
120
|
-
"@vanelsas/baredom": "^1.
|
|
130
|
+
"@vanelsas/baredom": "^1.2.0"
|
|
121
131
|
}
|
|
122
132
|
}
|
|
123
133
|
```
|