@aiquants/contact-map 0.21.0 → 0.21.1
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/README.md +2 -3
- package/dist/client.js +2 -2
- package/dist/client.mjs +2 -2
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ Peer dependencies:
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@aiquants/console-ui": "^0.6.0",
|
|
53
52
|
"@aiquants/directory-tree": "^6.0.0",
|
|
54
53
|
"@aiquants/fuzzy-search": "^3.2.1",
|
|
55
54
|
"@aiquants/resize-panels": "^2.2.0",
|
|
@@ -220,7 +219,7 @@ function PrebuildContactMapTree() {
|
|
|
220
219
|
|
|
221
220
|
The components are styled with Tailwind CSS v4 utility classes. Every colour they paint is a pair of the package's palette written as `light-dark(<light>, <dark>)` in an arbitrary value (`text-[color:light-dark(#0f172b,#f8fafc)]`), so the colours follow the `color-scheme` the components inherit: a host that sets `color-scheme: dark` on its root, or on an ancestor of the components, gets the dark scheme, and a host that sets nothing keeps the light one. The package declares no `color-scheme` of its own and reads neither `prefers-color-scheme` nor a `dark` class.
|
|
222
221
|
|
|
223
|
-
The palette's values are `@aiquants/console-ui`'s tokens and tone table, but for the muted surface, the focus colour and the tree's line colour, which are the map's own
|
|
222
|
+
The palette's values are `@aiquants/console-ui`'s tokens and tone table, but for the muted surface, the focus colour and the tree's line colour, which are the map's own. The classes write the values whole and the package's tests check them against console-ui, so the package reads console-ui only for types and needs it only to type-check and test (a development dependency): a host does not install it.
|
|
224
223
|
|
|
225
224
|
- **Browsers:** `light-dark()` needs Chrome / Edge 123, Firefox 120 or Safari 17.5 or later.
|
|
226
225
|
- **Contrast (WCAG 2.2 AAA):** in both schemes every text keeps 7:1 against each surface it lies on and every non-text mark (a control's border, the focus ring, the progress bar, the tree lines) 3:1. Nothing is translucent but the modal backdrop.
|
|
@@ -232,7 +231,7 @@ The palette's values are `@aiquants/console-ui`'s tokens and tone table, but for
|
|
|
232
231
|
- A host without Tailwind CSS imports `@aiquants/contact-map/styles/contact-map.standalone.css`: the package's utilities, the palette's colours among them, and the progress animation, compiled. Its corner radii follow the host's `--radius` variable when the host sets one (0.5rem otherwise).
|
|
233
232
|
- Either way, the host imports the CSS of the embedded packages itself, which the standalone CSS leaves out so that an older copy baked into it never overrides the host's newer one: `@aiquants/virtualscroll/styles/virtualscroll.css`, `@aiquants/directory-tree/styles/directory-tree.css` and `@aiquants/resize-panels/styles/resize-panels.css`.
|
|
234
233
|
|
|
235
|
-
コンポーネントは Tailwind CSS v4 のユーティリティクラスで装飾する。塗る色はどれもパッケージの配色表の組で、任意の値の中に `light-dark(<明るい>, <暗い>)` と書く (`text-[color:light-dark(#0f172b,#f8fafc)]`)。そのため色はコンポーネントが受け継ぐ `color-scheme` に従う: 根かコンポーネントの祖先に `color-scheme: dark` を置いたホストは暗い配色になり、何も置かないホストは明るい配色のまま。パッケージは自分の `color-scheme` を宣言せず、`prefers-color-scheme` も `dark` クラスも読まない。配色表の値は `@aiquants/console-ui`
|
|
234
|
+
コンポーネントは Tailwind CSS v4 のユーティリティクラスで装飾する。塗る色はどれもパッケージの配色表の組で、任意の値の中に `light-dark(<明るい>, <暗い>)` と書く (`text-[color:light-dark(#0f172b,#f8fafc)]`)。そのため色はコンポーネントが受け継ぐ `color-scheme` に従う: 根かコンポーネントの祖先に `color-scheme: dark` を置いたホストは暗い配色になり、何も置かないホストは明るい配色のまま。パッケージは自分の `color-scheme` を宣言せず、`prefers-color-scheme` も `dark` クラスも読まない。配色表の値は `@aiquants/console-ui` のトークンと色調の表で、控えめな面・フォーカスの色・ツリーの線の色だけは地図のもの。クラスは値を丸ごと書き、パッケージの試験が console-ui と照らすので、パッケージが console-ui を読むのは型だけで、console-ui が要るのは型の検めと試験の時だけ (開発の依存)。ホストは console-ui を入れない。
|
|
236
235
|
|
|
237
236
|
- **ブラウザー**: `light-dark()` には Chrome・Edge 123、Firefox 120、Safari 17.5 以降が要る。
|
|
238
237
|
- **対比 (WCAG 2.2 AAA)**: どちらの配色でも、どの字も載るどの面の上でも 7:1 を、字でない印 (操作部品の枠・フォーカスの輪・進捗のバー・ツリーの線) は 3:1 を保つ。半透明のものはモーダルの背景だけ。
|