You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENT.md
+161Lines changed: 161 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,167 @@ This repository is `@bquery/ui`, a framework-agnostic Web Components library bui
22
22
5. Treat import side effects (`import '@bquery/ui'`) and per-component entrypoints (`@bquery/ui/components/<name>`) as the canonical registration model; `registerAll()` is deprecated compatibility-only.
23
23
6. When touching versioned install snippets or release-facing docs, keep pinned CDN examples aligned with the current package version in `package.json`.
24
24
25
+
## Component conventions
26
+
27
+
### Styles
28
+
29
+
Declare styles with the `css` tagged template from `@bquery/bquery/component` and
30
+
interpolate the shared fragments from `src/utils/styles.ts`:
31
+
32
+
```ts
33
+
import { component, css, html } from'@bquery/bquery/component';
The UMD and IIFE bundles register all components on load and expose the library on `window.BQueryUI`.
79
80
For ESM-based app builds, prefer importing `@bquery/ui` from your bundler or other module-aware build tool.
80
81
81
82
## Current release snapshot
82
83
83
-
The current release (`1.10.0`) emphasizes:
84
+
The current release (`1.15.0`) emphasizes:
84
85
85
-
-**Import-based registration as the canonical integration path.** Import `@bquery/ui` once to register all components, or import `@bquery/ui/components/<name>` to register only the wrappers you need.
86
-
-**A clearer shared package surface.**`@bquery/ui/tokens`, `@bquery/ui/theme`, `@bquery/ui/i18n`, `@bquery/ui/utils`, and `@bquery/ui/register` are all explicit entry points.
87
-
-**Broader accessibility and localization coverage.** Recent releases improved accordion semantics, live form-field counters, localized table states, chip keyboard behavior, and reduced-motion-aware overlay transitions.
88
-
-**A larger production-ready catalog.** The package now spans 31 web components across actions, forms, navigation, data display, feedback, and overlays, including `bq-dropdown-menu`, `bq-stat-card`, and the imperative toast API.
89
-
-**Aligned docs and browser bundles.** Version-pinned CDN snippets, migration guidance, and Storybook/VitePress references now target `1.10.0`.
86
+
-**A built-in icon set.** Interface glyphs are rendered as CSS masks rather than text characters, so they inherit `currentColor`, scale with `font-size`, and look the same on every platform. Available as `<bq-icon>` and to your own components through `iconCss()`.
87
+
-**Dark mode that works in every browser.** The scheme now travels through an inherited custom-property channel instead of `:host-context()`, which exists only in Chromium — and which, sitting in a selector list, previously took the whole dark theme down with it in Firefox and Safari. `data-theme` also works on any subtree, not just the root.
-**Focus that survives a re-render.** Rendering replaces the shadow tree; text fields, calendars and tree views now keep focus and the caret across the renders their own interactions cause.
90
+
-**A larger production-ready catalog.** The package spans 49 web components across actions, forms, navigation, data display, feedback, and overlays — including `bq-date-picker`, `bq-tree`, `bq-pin-input`, `bq-meter`, `bq-copy-button`, and `bq-icon`.
91
+
-**Aligned docs and browser bundles.** Version-pinned CDN snippets, migration guidance, and Storybook/VitePress references target `1.15.0`.
90
92
91
93
## Tree-Shakeable Usage
92
94
@@ -153,9 +155,16 @@ For migration guidance from older registration patterns, see [`docs/guide/migrat
153
155
### Theming
154
156
155
157
- CSS custom properties for colors, spacing, typography, radius, shadows, motion, and z-index
156
-
- Light and dark themes
158
+
- Semantic surface, interaction, and focus-ring tokens on top of the raw palette
159
+
- Light and dark themes, switchable per document *or* per subtree with `data-theme`
157
160
-`::part()` support for targeted customization
158
161
162
+
### Icons
163
+
164
+
- A built-in set of interface glyphs, available as `<bq-icon name="…">`
165
+
- Rendered through CSS masks, so an icon inherits `currentColor` and scales with `font-size`
166
+
-`iconCss()` lets your own components pull in only the glyphs they draw
167
+
159
168
### Internationalization
160
169
161
170
- User-facing strings run through the library i18n system
0 commit comments