@thebase/ui 0.0.10 → 0.0.11

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 (47) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/baseui.esm.js +24 -24
  4. package/dist/baseui.icons.esm.js +1 -1
  5. package/dist/baseui.min.css +1 -1
  6. package/dist/baseui.min.js +24 -24
  7. package/dist/baseui.registry.json +8 -8
  8. package/dist/baseui.templates.xml +289 -289
  9. package/dist/runtime/milkdown/milkdown-editor.js +1 -1
  10. package/dist/runtime/milkdown/milkdown-text-editor.js +1 -1
  11. package/dist/themes/baseui-dark.css +1 -1
  12. package/dist/themes/baseui-light.css +1 -1
  13. package/docs/components/accordion.md +4 -4
  14. package/docs/components/avatar.md +1 -1
  15. package/docs/components/block-viewer.md +1 -1
  16. package/docs/components/breadcrumb.md +1 -1
  17. package/docs/components/calendar.md +1 -1
  18. package/docs/components/carousel.md +1 -1
  19. package/docs/components/chart.md +3 -3
  20. package/docs/components/combobox.md +1 -1
  21. package/docs/components/command.md +1 -1
  22. package/docs/components/context-menu.md +1 -1
  23. package/docs/components/data-table.md +3 -3
  24. package/docs/components/date-picker.md +1 -1
  25. package/docs/components/dialog.md +5 -5
  26. package/docs/components/form.md +29 -29
  27. package/docs/components/input-otp.md +1 -1
  28. package/docs/components/input.md +1 -1
  29. package/docs/components/markdown.md +1 -1
  30. package/docs/components/message-scroller.md +1 -1
  31. package/docs/components/message.md +1 -1
  32. package/docs/components/popover.md +1 -1
  33. package/docs/components/pwa.md +1 -1
  34. package/docs/components/questionnaire.md +1 -1
  35. package/docs/components/resizable.md +1 -1
  36. package/docs/components/scroll-area.md +1 -1
  37. package/docs/components/shell.md +2 -2
  38. package/docs/components/sidebar.md +15 -15
  39. package/docs/components/text-editor.md +1 -1
  40. package/docs/components/theme-button.md +2 -2
  41. package/docs/components/toast.md +16 -2
  42. package/docs/components/toggle-group.md +1 -1
  43. package/docs/components/toggle.md +1 -1
  44. package/docs/components/tooltip.md +1 -1
  45. package/docs/runtime-api.md +26 -0
  46. package/docs/theming.md +3 -3
  47. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [v0.0.11] - 2026-09-03
6
+
7
+ ### Added
8
+ - `Toast`/`b-ui="toast"`: new `position` option (`top-left`/`top-right`/`bottom-left`/`bottom-right`) fixes a toast to a screen corner; omit it for the previous inline-placement behavior.
9
+ - Public `cn(...classNames)` and `mergeStyle(...)` helpers, exported from `@thebase/ui` (and `BaseUIBundle.cn`/`BaseUIBundle.mergeStyle`) for consumers building their own class lists or inline styles. Documented in `docs/runtime-api.md`.
10
+
11
+ ### Changed
12
+ - **Breaking**: every CSS custom property has been renamed from the `--baseui-*` prefix to `--b-*` (e.g. `--baseui-primary` → `--b-primary`). Aligns the token prefix with the existing `--b1`/`--b2_5` spacing scale and `[b-ui]`/`b-att-*` attribute convention. `BaseUI.theme.set()` now writes/reads `--b-*` tokens; any consumer CSS that directly referenced `--baseui-*` must update to `--b-*`.
13
+ - **Breaking**: every component CSS class has been renamed from the `baseui-*` prefix to `bu-*` (e.g. `.baseui-alert` → `.bu-alert`), to shorten it and avoid colliding with third-party `b-*`-prefixed conventions (e.g. Buefy) while staying distinct from the `b-ui`/`b-att-*` attribute and `--b-*` token conventions. Any consumer markup, CSS, or pure-Owl `className` override referencing `.baseui-*` must update to `.bu-*`. The bare `.baseui` root/theme-scope class, file names, the `BaseUI` global, the `@thebase/ui` package name, and `storageKey="'baseui-theme'"` are untouched.
14
+ - Every component's class-name string-building now goes through the shared `cn()` helper instead of ad hoc `classes.push()/join(" ")` logic; the pure-Owl `Toast`'s close control now composes the real `Button` component instead of a raw `<button>`.
15
+
5
16
  ## [v0.0.10] - 2026-09-02
6
17
 
7
18
  ### Fixed
package/README.md CHANGED
@@ -4,7 +4,7 @@ The Base UI is a CDN-installable UI kit built with Bootstrap 5 styling and Owl-e
4
4
 
5
5
  Its strong points: **no build step** — every component runs straight from a CDN `<script>`/import map, nothing to compile; **modular component design** — each component is a self-contained unit you import or mark up individually, not a monolith; **vanilla JavaScript/TypeScript** — no framework lock-in, no JSX, no compiler-specific syntax to learn; and this combination makes it well suited to building **WYSIWYG website builders**, where components must mount, unmount, and re-render dynamically from user-driven markup or drag-and-drop edits rather than a fixed build-time component tree.
6
6
 
7
- Both APIs load straight from a CDN — jsDelivr or unpkg — no build step, no self-hosting required. The snippets below use the `@latest` tag for readability; pin an exact version instead (e.g. `@0.0.8`) for any production page, since `@latest` can change what your page loads the moment a new version ships. Pure Owl usage:
7
+ Both APIs load straight from a CDN — jsDelivr or unpkg — no build step, no self-hosting required. The snippets below use the `@latest` tag for readability; pin an exact version instead (e.g. `@0.0.11`) for any production page, since `@latest` can change what your page loads the moment a new version ships. Pure Owl usage:
8
8
 
9
9
  ```html
10
10
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@thebase/ui@latest/dist/baseui.min.css">
@@ -48,7 +48,7 @@ If you have no Owl app, use the static `b-ui` markup adapter instead — one sty
48
48
  <script src="https://cdn.jsdelivr.net/npm/@thebase/ui@latest/dist/baseui.min.js" defer></script>
49
49
  ```
50
50
 
51
- `dist/baseui.min.js` is fully self-contained: Bootstrap's JS bundle, the Owl runtime, every pure Owl component class, and the theme helper are all embedded ahead of/alongside BaseUI's own code inside this one file, in load order (Bootstrap, then Owl, then BaseUI), so nothing else needs to load first. `dist/baseui.esm.js` is the same thing for native `import`/module usage — it backs both the pure Owl and static APIs above. There is no more separate `baseui.owl.*`/`baseui.components.esm.js`/`baseui.theme.esm.js` — this one file is the whole public API. (`dist/bootstrap.bundle.min.js` still ships standalone, unmodified, in case a project wants vendored Bootstrap JS on its own — BaseUI itself never needs it loaded separately.)
51
+ `dist/baseui.min.js`/`baseui.esm.js` are fully self-contained and back both APIs above: Bootstrap's JS bundle, the Owl runtime, every pure Owl component class, and the theme helper are all embedded in load order (Bootstrap, then Owl, then BaseUI) — one file, nothing else to load first. There is no separate `baseui.owl.*`/`baseui.components.esm.js`/`baseui.theme.esm.js`. (`dist/bootstrap.bundle.min.js` still ships standalone, unmodified, for a project that wants vendored Bootstrap JS on its own — BaseUI itself never needs it loaded separately.)
52
52
 
53
53
  BaseUI exposes every component (73 in the current registry) as a real Owl component class — see [Pure Owl Components](docs/owl-components.md) for the complete API, npm/bundler usage, and mixing with the static adapter.
54
54
 
@@ -58,7 +58,7 @@ Every component ships both APIs from `src/components/<name>/`: the static `b-ui`
58
58
 
59
59
  ## Release notes
60
60
 
61
- See [CHANGELOG.md](CHANGELOG.md) for the full version history. Current published version: **0.0.8**.
61
+ See [CHANGELOG.md](CHANGELOG.md) for the full version history. Current published version: **0.0.11**.
62
62
 
63
63
  ## Project Documents
64
64