@aiquants/console-ui 0.4.1 → 0.4.2

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 CHANGED
@@ -254,7 +254,7 @@ Draw a modal as a `Dialog`: a modal `<dialog>` (`showModal()`) makes everything
254
254
  | `Measured` | A count, or the `unmeasured` label for `null` (never `0`). |
255
255
  | `MetricTile`, `TileGrid` | Metric tiles (100 px high) and the divisor grid. `count` is checked against the element children: a Fragment's children count one by one, a condition that renders no tile (`false`, `null`) does not count, a text child throws, and a component child counts as one tile whatever it renders (a wrapper returning `null` or two tiles is still one), so render `MetricTile` elements directly. |
256
256
  | `DataTable`, `LoadMore` | Fixed-layout table in a focusable named scroll frame; load-more that moves focus to the first row the page appended or the end-of-records text. |
257
- | `CodeBlock` | Preformatted text (a JSON document, an excerpt of a log) drawn exactly as given in the mono face and the `body` type, without wrapping, in a scroll frame on `sunken` with 8 px padding: a region named by `label` that takes keyboard focus, so a long line can be scrolled into view from the keyboard. |
257
+ | `CodeBlock` | Preformatted text (a JSON document, an excerpt of a log) drawn exactly as given in the mono face and the `body` type, without wrapping, in a scroll frame on `sunken` with 8 px padding: a region named by `label` that takes keyboard focus, so a long line can be scrolled into view from the keyboard. As a focusable frame it is never lower than the 44 px target (one line draws 44 px; k lines draw 2 × 8 + 20k px from two lines on). |
258
258
  | `SelectableList`, `RowButton` | Master list of selectable rows (`data-selected`, `aria-expanded`, `aria-controls`); the list carries an explicit `role="list"`, which WebKit needs to expose an unstyled list as a list. |
259
259
  | `ComparisonGrid` | Side-by-side comparison: a table named by its (visually hidden) `caption`, or one group per column named by its heading. Both layouts are in the DOM; each cell is a function called once per layout with `"table"` or `"stack"`, so every cell is rendered and mounted twice (the hidden copy included) and the caller gives each copy its own ids, test ids and refs. Cells must be presentational: no data read (`useResource`), announcement (`useAnnounce`) or focus management (`useFocusRescue`); keep state and effects above the grid and pass values into the cells. |
260
260
  | `Field`, `TextInput`, `TextArea`, `Select`, `RadioGroup` | Fields tied to their label, description and error with `useId`. |
@@ -840,9 +840,12 @@
840
840
  border-radius: var(--cui-radius-pill);
841
841
  }
842
842
 
843
- /* 整形済みの文は pre のまま折り返さず、枠が横に送る (高さは上下の space-2 と本文の行の倍数なので格子に乗る) */
843
+ /* 整形済みの文は pre のまま折り返さず、枠が横に送る (高さは上下の space-2 と本文の行の倍数なので格子に乗る)。
844
+ 枠は焦点を受ける的なので、1 行の文でも的の大きさより低くしない (2 × 8 + 20 = 36 px の枠は 44 px に満たない) */
844
845
  .cui-code-frame {
846
+ box-sizing: border-box;
845
847
  overflow-x: auto;
848
+ min-block-size: var(--cui-size-target);
846
849
  padding: var(--cui-space-2);
847
850
  border-radius: var(--cui-radius-item);
848
851
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiquants/console-ui",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Host-agnostic UI foundation for React admin consoles, with a React entry, a React-free core entry, a DOM testing entry and a stylesheet.",
5
5
  "sideEffects": [
6
6
  "**/*.css"