viewkitjs 0.37.0 → 0.38.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/package.json +1 -1
  3. package/views/dist/contract.d.ts +6 -3
  4. package/views/dist/contract.js +4 -0
  5. package/views/dist/controls/field/looks.d.ts +1 -1
  6. package/views/dist/controls/field/looks.js +5 -3
  7. package/views/dist/controls/field.css +60 -1
  8. package/views/dist/controls/glyphs/glyphs.js +2 -0
  9. package/views/dist/controls/inline-input.css +3 -2
  10. package/views/dist/controls/internal/read-token.d.ts +2 -1
  11. package/views/dist/controls/internal/read-token.js +2 -1
  12. package/views/dist/controls/number-editor/tokens.d.ts +8 -0
  13. package/views/dist/controls/number-editor/tokens.js +2 -0
  14. package/views/dist/controls/number-editor.css +20 -0
  15. package/views/dist/controls/text-editor/tokens.d.ts +8 -0
  16. package/views/dist/controls/text-editor/tokens.js +2 -0
  17. package/views/dist/controls/text-editor.css +24 -2
  18. package/views/dist/controls/tooltip/tooltip.js +2 -1
  19. package/views/dist/field-row/FieldRow.js +15 -6
  20. package/views/dist/field-row/field-row-button.d.ts +12 -0
  21. package/views/dist/field-row/field-row-button.js +5 -0
  22. package/views/dist/fields/binding.d.ts +4 -0
  23. package/views/dist/grid/chrome/GridCellEditors.d.ts +1 -1
  24. package/views/dist/grid/chrome/GridCellOutline.d.ts +13 -1
  25. package/views/dist/grid/chrome/GridCellOutline.js +17 -0
  26. package/views/dist/grid/chrome/GridNumberEditor.js +2 -1
  27. package/views/dist/grid/chrome/GridRowCells.js +1 -1
  28. package/views/dist/grid/chrome/GridStructure.js +3 -3
  29. package/views/dist/grid/chrome/GridTextEditor.js +3 -1
  30. package/views/dist/grid/chrome/grid-body-place.js +2 -1
  31. package/views/dist/grid/chrome/grid-edit-session.d.ts +7 -3
  32. package/views/dist/grid/chrome/grid-edit-session.js +12 -3
  33. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -4
  34. package/views/dist/grid/chrome/grid-row-props.d.ts +1 -1
  35. package/views/dist/grid/chrome/useGridKeyboard.d.ts +5 -1
  36. package/views/dist/grid/chrome/useGridKeyboard.js +9 -5
  37. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  38. package/views/dist/grid/chrome/useGridTableInteractionModel.js +8 -3
  39. package/views/dist/internal/length.d.ts +2 -0
  40. package/views/dist/internal/length.js +16 -0
  41. package/views/dist/provider/components.d.ts +2 -1
  42. package/views/dist/selection/bar-overflow.d.ts +2 -0
  43. package/views/dist/selection/bar-overflow.js +2 -1
  44. package/views/dist/selection/bar-props.d.ts +1 -1
  45. package/views/dist/selection/verbs.d.ts +2 -2
  46. package/views/dist/styles.css +165 -5
  47. package/views/dist/styles.unlayered.css +165 -5
  48. package/views/docs/contract.md +9 -3
  49. package/views/docs/controls/number-editor.md +2 -0
  50. package/views/docs/controls/text-editor.md +2 -0
  51. package/views/docs/guides/selection.md +1 -1
  52. package/views/docs/guides/the-grid.md +1 -1
  53. package/views/docs/reference/field-row.md +1 -1
  54. package/views/docs/reference/looks.md +1 -1
  55. package/views/docs/reference/selection.md +1 -1
  56. package/views/docs/reference/views.md +1 -1
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.37.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.38.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
2
2
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
3
  @layer theme, base, components, utilities;
4
4
  @layer base {
@@ -1882,6 +1882,64 @@ button.o-field-row { cursor: pointer; }
1882
1882
  .o-field-rows-slot + .o-field-rows-slot::before { content: " "; }
1883
1883
  .o-field-rows-slot > .o-field-error { color: var(--vk-danger); }
1884
1884
  .o-field-rows-foot:has(.o-field-error) .o-field-note { display: none; }
1885
+ /* ── The Field's Box (row-box: box, looks.ts; data-field-row-box="box" on a frame round the rows): a record's field row outside a
1886
+ card (data-field-row, field-row/FieldRow.tsx) draws one rectangle for its hover, its press, its in-place input and the value
1887
+ an open picker keeps in its place, so its words never move and it keeps its height. The row reads the app's three names
1888
+ (--vk-field-row-box-h, -x, -r; undeclared 32, 8 and 8) into its own, and how far the box stands above and below its one 20px
1889
+ line (y). Its target (the app's Button, data-key="vk-field-row-target", -beside beside a link's action, -under under a rich text;
1890
+ and data-field-row-anchor, the value an open picker keeps in its place) stands where it stood, pulled out by that reach and
1891
+ that y, as tall as the box, no edge of its own (the words stand x from the box's edge whatever the app's Button draws), its
1892
+ corner, no press. The
1893
+ in-place text and number editors read the same names round data-field-row-editor (text-editor.css, number-editor.css). Below
1894
+ the desktop line the gap under the label is y, so the box meets the label's line without covering it. Its geometry is
1895
+ !important: the row's own classes are Tailwind's, and an app that compiles them into its own utilities layer (Tailwind's source scanning), or
1896
+ whose own Tailwind writes the same names, puts them in a later layer, which no specificity here would outweigh. Nothing of it
1897
+ applies without the attribute. ──────────────────────────────────────────────────────────────────────────────────────── */
1898
+ :where([data-field-row-box="box"]) [data-field-row] {
1899
+ --field-row-box-h: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8));
1900
+ --field-row-box-x: var(--vk-field-row-box-x, calc(var(--vk-spacing) * 2));
1901
+ --field-row-box-r: var(--vk-field-row-box-r, calc(var(--vk-spacing) * 2));
1902
+ --field-row-box-y: calc((var(--field-row-box-h) - var(--vk-spacing) * 5) / 2);
1903
+ }
1904
+ :where([data-field-row-box="box"]) [data-field-row][data-form="phone"] { row-gap: var(--field-row-box-y) !important; }
1905
+ :where([data-field-row-box="box"]) :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"], [data-field-row-anchor]) {
1906
+ box-sizing: border-box !important; min-height: var(--field-row-box-h) !important;
1907
+ padding: var(--field-row-box-y) var(--field-row-box-x) !important;
1908
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important;
1909
+ width: calc(100% + var(--field-row-box-x) * 2) !important;
1910
+ border-width: 0 !important; border-radius: var(--field-row-box-r) !important; --button-r: var(--field-row-box-r); --vk-press-scale: 1;
1911
+ }
1912
+ /* Beside a link's open action: its left edge only, the action keeping its place. */
1913
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-beside"] { margin-right: 0 !important; width: auto !important; }
1914
+ /* Under a rich text: laid over the value's footprint, pulled out by the box's reach and its y. */
1915
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-under"] {
1916
+ inset: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important; margin: 0 !important; padding: 0 !important;
1917
+ width: auto !important; min-height: 0 !important;
1918
+ }
1919
+
1920
+ /* ── The Field's Action (row-action: icon, looks.ts; data-field-row-action="icon" on a frame round the rows): a record's field row
1921
+ outside a card shows one icon at its box's right end, on the box's hover and keyboard focus, saying what a click does. The row
1922
+ draws it inside its target and inside the value an open picker keeps in its place (data-field-row-act: edit or expand, none
1923
+ drawn where the box is the input; field-row/FieldRow.tsx), hidden by its class until this lays it out: 24 square, 4 in from the
1924
+ box's end, centred on the value's first line (the box's y above it, or the target's 4), its glyph 15. The box keeps the icon's
1925
+ room at its end (32, the icon and 4 either side), so the value ends there, cut with its "…" where it can't wrap, its label
1926
+ allowed to shrink to the box; the words laid over a rich text's empty target keep the same room. It stands, never moving the
1927
+ words, so the box draws the same rectangle at rest, hovered, pressed and while a picker is open, where it stays hidden. As the
1928
+ box's, the geometry is !important: the frame's classes are Tailwind's (the Field's Box, above, says why). ───────────────── */
1929
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) {
1930
+ position: relative; padding-right: calc(var(--vk-spacing) * 8) !important;
1931
+ }
1932
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) > * { min-width: 0; }
1933
+ :where([data-field-row-action="icon"]) [data-field-row] [data-key="vk-field-row-under"]:has([data-field-row-act]) + [data-slot="vk-row-value-layer"] {
1934
+ padding-right: calc(var(--vk-spacing) * 8 - var(--field-row-box-x, var(--vk-spacing) * 2));
1935
+ }
1936
+ :where([data-field-row-action="icon"]) [data-field-row] [data-field-row-act] {
1937
+ display: grid !important; place-items: center; position: absolute; right: var(--vk-spacing);
1938
+ top: calc(var(--field-row-box-y, var(--vk-spacing)) + var(--vk-spacing) * 2.5); translate: 0 -50%;
1939
+ width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); color: var(--vk-fg-subtle); pointer-events: none; visibility: hidden;
1940
+ }
1941
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"]):is(:hover, :focus-visible) [data-field-row-act] { visibility: visible; }
1942
+
1885
1943
  /* A phone's first paint: server-rendered, Field rows' card stands twice, the phone's form and the computer's (`ScreenForms`,
1886
1944
  internal/screen-forms.tsx), and this shows the screen's at ViewKit's own line, as the toolbar's stylesheet does: here for an app
1887
1945
  that imports this card's stylesheet alone, on a page whose policy refuses an inline style. Kept on one line, as screenFormsCss writes it. */
@@ -2161,9 +2219,10 @@ button.o-field-row { cursor: pointer; }
2161
2219
  [data-inline-input-tint="10"] { --inline-input-tint: 100%; }
2162
2220
  [data-inline-input-ground="none"] { --inline-input-ground: var(--vk-input); }
2163
2221
 
2164
- /* ── In a grid's cell: only the caret ─────────────────────────────────────────────────────────────────────────────────────
2222
+ /* ── In a grid's cell: the cell itself ────────────────────────────────────────────────────────────────────────────────────
2165
2223
  Where the grid says its box stands in a cell (data-inline-input-place="cell", on its type-in's layer), the cell itself is the
2166
- box: no edge, no ring and no ground, whatever a frame picks, so the cell shows as it was. Grown past its cell (data-grown, on
2224
+ box: no edge, no ring and no ground of its own, whatever a frame picks, so the cell shows as it was, the grid's own selected
2225
+ ring round it (the grid draws that ring on the box). Grown past its cell (data-grown, on
2167
2226
  the body or the box that fits it), it takes the plain ground, so the values it stands over don't show through. */
2168
2227
  [data-inline-input-place="cell"] { --inline-input-edge: 0px; --inline-input-ring: 0px; --inline-input-ground: transparent; }
2169
2228
  [data-inline-input-place="cell"] [data-grown] { --inline-input-ground: var(--vk-overlay); }
@@ -3399,6 +3458,26 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
3399
3458
  .o-number-editor-sign, .o-number-editor-unit { flex: none; color: var(--vk-fg-subtle); }
3400
3459
  .o-number-editor[data-number-form="computer"] .o-number-editor-sign { margin-right: auto; }
3401
3460
 
3461
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
3462
+ editor data-field-row-editor): on a computer the number's box is the row's own, as the Text editor's is (text-editor.css):
3463
+ where the row's hover and press drew it, as tall, its words as far in, no edge of its own, the row's ground, its ring
3464
+ outside it, red when refused. ─────────────────────────────────────────────────────────────────────────────────────────── */
3465
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] {
3466
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
3467
+ width: calc(100% + var(--field-row-box-x) * 2); height: var(--field-row-box-h);
3468
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
3469
+ }
3470
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] :is(.o-number-editor-field, .o-number-editor-field > .o-inline-input-group) {
3471
+ height: var(--field-row-box-h); min-height: var(--field-row-box-h);
3472
+ }
3473
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input {
3474
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
3475
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
3476
+ }
3477
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input:is([aria-invalid="true"], :has(.o-input-control[aria-invalid="true"])) {
3478
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
3479
+ }
3480
+
3402
3481
  /* ── On a phone: the box and what is under it ───────────────────────────────────────────────────────────────────── */
3403
3482
  .o-number-editor[data-number-form="phone"] { display: grid; gap: calc(var(--vk-spacing) * 2); }
3404
3483
  .o-number-editor :is(.o-number-editor-code, .o-number-editor-sign, .o-number-editor-unit, .o-input-addon > .o-button):where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
@@ -5614,8 +5693,8 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5614
5693
  width: max(100%, calc(var(--vk-spacing) * 75)); max-width: none; max-height: calc(var(--vk-spacing) * 80);
5615
5694
  box-shadow: var(--vk-shadow-lg), inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
5616
5695
  }
5617
- /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in shows only
5618
- the caret. (0,5,0): over the two lifts above. */
5696
+ /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in wears only
5697
+ the selected cell's ring. (0,5,0): over the two lifts above. */
5619
5698
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-grown] .o-text-editor-box,
5620
5699
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-text-kind="long"] .o-text-editor-box {
5621
5700
  box-shadow: inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
@@ -5658,6 +5737,28 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5658
5737
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-phone { position: relative; top: auto; left: auto; width: 100%; height: var(--inline-input-row); }
5659
5738
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-note { position: relative; top: auto; left: auto; margin-top: var(--vk-spacing); max-width: 100%; }
5660
5739
 
5740
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
5741
+ editor data-field-row-editor): on a computer the box is the row's own, the rectangle its hover and its press drew. It stands
5742
+ where that rectangle stood, pulled out by the box's reach and its height round the row's one line (the row's
5743
+ --field-row-box-* variables, field.css), its words that reach in, no edge of its own, the row's ground: so
5744
+ not a pixel of the words moves and the row keeps its height. Its ring is drawn outside it, a line of the brand and the
5745
+ focus glow, red when refused. A line of text stays one line, scrolling sideways; long text still grows. A phone's form is
5746
+ the phone's own. ─────────────────────────────────────────────────────────────────────────────────────────────────── */
5747
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5748
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
5749
+ width: calc(100% + var(--field-row-box-x) * 2); margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
5750
+ }
5751
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone) {
5752
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
5753
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
5754
+ }
5755
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone):is([aria-invalid="true"], [data-refused]) {
5756
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
5757
+ }
5758
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"]:not([data-text-kind="long"]) .o-text-editor-box {
5759
+ white-space: pre; overflow: hidden;
5760
+ }
5761
+
5661
5762
  /* ── On a phone: the Input at the phone's size; long text one tall box; a phone's country in the box's start side ──── */
5662
5763
  .o-text-editor[data-text-form="phone"] { display: grid; }
5663
5764
  .o-text-editor[data-text-form="phone"] .o-text-editor-country { gap: calc(var(--vk-spacing) * 0.75); }
@@ -6610,6 +6711,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
6610
6711
  width: calc(4px * 3.5);
6611
6712
  height: calc(4px * 3.5);
6612
6713
  }
6714
+ .size-3\.75 {
6715
+ width: calc(4px * 3.75);
6716
+ height: calc(4px * 3.75);
6717
+ }
6613
6718
  .size-4 {
6614
6719
  width: calc(4px * 4);
6615
6720
  height: calc(4px * 4);
@@ -8619,12 +8724,67 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8619
8724
  .\[\&_\[data-cell-open\]\:hover\]\:underline [data-cell-open]:hover {
8620
8725
  text-decoration-line: underline;
8621
8726
  }
8727
+ .\[\&_\[data-slot\=vk-number-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8728
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8729
+ }
8730
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline [data-slot=vk-number-box] {
8731
+ outline-style: var(--tw-outline-style);
8732
+ outline-width: 1px;
8733
+ }
8734
+ .\[\&_\[data-slot\=vk-number-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8735
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8736
+ }
8737
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-number-box] {
8738
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8739
+ }
8740
+ @media (hover: hover) {
8741
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-number-box] {
8742
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8743
+ }
8744
+ }
8745
+ .\[\&_\[data-slot\=vk-number-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-number-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8746
+ --tw-outline-style: none;
8747
+ outline-style: none;
8748
+ @media (forced-colors: active) {
8749
+ outline: 2px solid transparent;
8750
+ outline-offset: 2px;
8751
+ }
8752
+ }
8753
+ .\[\&_\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8754
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8755
+ }
8756
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline [data-slot=vk-text-box] {
8757
+ outline-style: var(--tw-outline-style);
8758
+ outline-width: 1px;
8759
+ }
8760
+ .\[\&_\[data-slot\=vk-text-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8761
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8762
+ }
8763
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-text-box] {
8764
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8765
+ }
8766
+ @media (hover: hover) {
8767
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-text-box] {
8768
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8769
+ }
8770
+ }
8771
+ .\[\&_\[data-slot\=vk-text-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-text-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8772
+ --tw-outline-style: none;
8773
+ outline-style: none;
8774
+ @media (forced-colors: active) {
8775
+ outline: 2px solid transparent;
8776
+ outline-offset: 2px;
8777
+ }
8778
+ }
8622
8779
  .\[\&_a\]\:pointer-events-auto a {
8623
8780
  pointer-events: auto;
8624
8781
  }
8625
8782
  .\[\&_button\]\:pointer-events-auto button {
8626
8783
  pointer-events: auto;
8627
8784
  }
8785
+ .\[\&_textarea\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] textarea[data-slot=vk-text-box] {
8786
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8787
+ }
8628
8788
  .\[\&\:\:-webkit-search-cancel-button\]\:appearance-none::-webkit-search-cancel-button {
8629
8789
  appearance: none;
8630
8790
  }
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.37.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.38.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
2
2
 
3
3
  @layer base {
4
4
  @layer viewkit {:where(*):where(:is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]), :is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]) *),
@@ -1833,6 +1833,64 @@ button.o-field-row { cursor: pointer; }
1833
1833
  .o-field-rows-slot + .o-field-rows-slot::before { content: " "; }
1834
1834
  .o-field-rows-slot > .o-field-error { color: var(--vk-danger); }
1835
1835
  .o-field-rows-foot:has(.o-field-error) .o-field-note { display: none; }
1836
+ /* ── The Field's Box (row-box: box, looks.ts; data-field-row-box="box" on a frame round the rows): a record's field row outside a
1837
+ card (data-field-row, field-row/FieldRow.tsx) draws one rectangle for its hover, its press, its in-place input and the value
1838
+ an open picker keeps in its place, so its words never move and it keeps its height. The row reads the app's three names
1839
+ (--vk-field-row-box-h, -x, -r; undeclared 32, 8 and 8) into its own, and how far the box stands above and below its one 20px
1840
+ line (y). Its target (the app's Button, data-key="vk-field-row-target", -beside beside a link's action, -under under a rich text;
1841
+ and data-field-row-anchor, the value an open picker keeps in its place) stands where it stood, pulled out by that reach and
1842
+ that y, as tall as the box, no edge of its own (the words stand x from the box's edge whatever the app's Button draws), its
1843
+ corner, no press. The
1844
+ in-place text and number editors read the same names round data-field-row-editor (text-editor.css, number-editor.css). Below
1845
+ the desktop line the gap under the label is y, so the box meets the label's line without covering it. Its geometry is
1846
+ !important: the row's own classes are Tailwind's, and an app that compiles them into its own utilities layer (Tailwind's source scanning), or
1847
+ whose own Tailwind writes the same names, puts them in a later layer, which no specificity here would outweigh. Nothing of it
1848
+ applies without the attribute. ──────────────────────────────────────────────────────────────────────────────────────── */
1849
+ :where([data-field-row-box="box"]) [data-field-row] {
1850
+ --field-row-box-h: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8));
1851
+ --field-row-box-x: var(--vk-field-row-box-x, calc(var(--vk-spacing) * 2));
1852
+ --field-row-box-r: var(--vk-field-row-box-r, calc(var(--vk-spacing) * 2));
1853
+ --field-row-box-y: calc((var(--field-row-box-h) - var(--vk-spacing) * 5) / 2);
1854
+ }
1855
+ :where([data-field-row-box="box"]) [data-field-row][data-form="phone"] { row-gap: var(--field-row-box-y) !important; }
1856
+ :where([data-field-row-box="box"]) :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"], [data-field-row-anchor]) {
1857
+ box-sizing: border-box !important; min-height: var(--field-row-box-h) !important;
1858
+ padding: var(--field-row-box-y) var(--field-row-box-x) !important;
1859
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important;
1860
+ width: calc(100% + var(--field-row-box-x) * 2) !important;
1861
+ border-width: 0 !important; border-radius: var(--field-row-box-r) !important; --button-r: var(--field-row-box-r); --vk-press-scale: 1;
1862
+ }
1863
+ /* Beside a link's open action: its left edge only, the action keeping its place. */
1864
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-beside"] { margin-right: 0 !important; width: auto !important; }
1865
+ /* Under a rich text: laid over the value's footprint, pulled out by the box's reach and its y. */
1866
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-under"] {
1867
+ inset: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important; margin: 0 !important; padding: 0 !important;
1868
+ width: auto !important; min-height: 0 !important;
1869
+ }
1870
+
1871
+ /* ── The Field's Action (row-action: icon, looks.ts; data-field-row-action="icon" on a frame round the rows): a record's field row
1872
+ outside a card shows one icon at its box's right end, on the box's hover and keyboard focus, saying what a click does. The row
1873
+ draws it inside its target and inside the value an open picker keeps in its place (data-field-row-act: edit or expand, none
1874
+ drawn where the box is the input; field-row/FieldRow.tsx), hidden by its class until this lays it out: 24 square, 4 in from the
1875
+ box's end, centred on the value's first line (the box's y above it, or the target's 4), its glyph 15. The box keeps the icon's
1876
+ room at its end (32, the icon and 4 either side), so the value ends there, cut with its "…" where it can't wrap, its label
1877
+ allowed to shrink to the box; the words laid over a rich text's empty target keep the same room. It stands, never moving the
1878
+ words, so the box draws the same rectangle at rest, hovered, pressed and while a picker is open, where it stays hidden. As the
1879
+ box's, the geometry is !important: the frame's classes are Tailwind's (the Field's Box, above, says why). ───────────────── */
1880
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) {
1881
+ position: relative; padding-right: calc(var(--vk-spacing) * 8) !important;
1882
+ }
1883
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) > * { min-width: 0; }
1884
+ :where([data-field-row-action="icon"]) [data-field-row] [data-key="vk-field-row-under"]:has([data-field-row-act]) + [data-slot="vk-row-value-layer"] {
1885
+ padding-right: calc(var(--vk-spacing) * 8 - var(--field-row-box-x, var(--vk-spacing) * 2));
1886
+ }
1887
+ :where([data-field-row-action="icon"]) [data-field-row] [data-field-row-act] {
1888
+ display: grid !important; place-items: center; position: absolute; right: var(--vk-spacing);
1889
+ top: calc(var(--field-row-box-y, var(--vk-spacing)) + var(--vk-spacing) * 2.5); translate: 0 -50%;
1890
+ width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); color: var(--vk-fg-subtle); pointer-events: none; visibility: hidden;
1891
+ }
1892
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"]):is(:hover, :focus-visible) [data-field-row-act] { visibility: visible; }
1893
+
1836
1894
  /* A phone's first paint: server-rendered, Field rows' card stands twice, the phone's form and the computer's (`ScreenForms`,
1837
1895
  internal/screen-forms.tsx), and this shows the screen's at ViewKit's own line, as the toolbar's stylesheet does: here for an app
1838
1896
  that imports this card's stylesheet alone, on a page whose policy refuses an inline style. Kept on one line, as screenFormsCss writes it. */
@@ -2112,9 +2170,10 @@ button.o-field-row { cursor: pointer; }
2112
2170
  [data-inline-input-tint="10"] { --inline-input-tint: 100%; }
2113
2171
  [data-inline-input-ground="none"] { --inline-input-ground: var(--vk-input); }
2114
2172
 
2115
- /* ── In a grid's cell: only the caret ─────────────────────────────────────────────────────────────────────────────────────
2173
+ /* ── In a grid's cell: the cell itself ────────────────────────────────────────────────────────────────────────────────────
2116
2174
  Where the grid says its box stands in a cell (data-inline-input-place="cell", on its type-in's layer), the cell itself is the
2117
- box: no edge, no ring and no ground, whatever a frame picks, so the cell shows as it was. Grown past its cell (data-grown, on
2175
+ box: no edge, no ring and no ground of its own, whatever a frame picks, so the cell shows as it was, the grid's own selected
2176
+ ring round it (the grid draws that ring on the box). Grown past its cell (data-grown, on
2118
2177
  the body or the box that fits it), it takes the plain ground, so the values it stands over don't show through. */
2119
2178
  [data-inline-input-place="cell"] { --inline-input-edge: 0px; --inline-input-ring: 0px; --inline-input-ground: transparent; }
2120
2179
  [data-inline-input-place="cell"] [data-grown] { --inline-input-ground: var(--vk-overlay); }
@@ -3350,6 +3409,26 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
3350
3409
  .o-number-editor-sign, .o-number-editor-unit { flex: none; color: var(--vk-fg-subtle); }
3351
3410
  .o-number-editor[data-number-form="computer"] .o-number-editor-sign { margin-right: auto; }
3352
3411
 
3412
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
3413
+ editor data-field-row-editor): on a computer the number's box is the row's own, as the Text editor's is (text-editor.css):
3414
+ where the row's hover and press drew it, as tall, its words as far in, no edge of its own, the row's ground, its ring
3415
+ outside it, red when refused. ─────────────────────────────────────────────────────────────────────────────────────────── */
3416
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] {
3417
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
3418
+ width: calc(100% + var(--field-row-box-x) * 2); height: var(--field-row-box-h);
3419
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
3420
+ }
3421
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] :is(.o-number-editor-field, .o-number-editor-field > .o-inline-input-group) {
3422
+ height: var(--field-row-box-h); min-height: var(--field-row-box-h);
3423
+ }
3424
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input {
3425
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
3426
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
3427
+ }
3428
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input:is([aria-invalid="true"], :has(.o-input-control[aria-invalid="true"])) {
3429
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
3430
+ }
3431
+
3353
3432
  /* ── On a phone: the box and what is under it ───────────────────────────────────────────────────────────────────── */
3354
3433
  .o-number-editor[data-number-form="phone"] { display: grid; gap: calc(var(--vk-spacing) * 2); }
3355
3434
  .o-number-editor :is(.o-number-editor-code, .o-number-editor-sign, .o-number-editor-unit, .o-input-addon > .o-button):where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
@@ -5565,8 +5644,8 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5565
5644
  width: max(100%, calc(var(--vk-spacing) * 75)); max-width: none; max-height: calc(var(--vk-spacing) * 80);
5566
5645
  box-shadow: var(--vk-shadow-lg), inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
5567
5646
  }
5568
- /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in shows only
5569
- the caret. (0,5,0): over the two lifts above. */
5647
+ /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in wears only
5648
+ the selected cell's ring. (0,5,0): over the two lifts above. */
5570
5649
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-grown] .o-text-editor-box,
5571
5650
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-text-kind="long"] .o-text-editor-box {
5572
5651
  box-shadow: inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
@@ -5609,6 +5688,28 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5609
5688
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-phone { position: relative; top: auto; left: auto; width: 100%; height: var(--inline-input-row); }
5610
5689
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-note { position: relative; top: auto; left: auto; margin-top: var(--vk-spacing); max-width: 100%; }
5611
5690
 
5691
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
5692
+ editor data-field-row-editor): on a computer the box is the row's own, the rectangle its hover and its press drew. It stands
5693
+ where that rectangle stood, pulled out by the box's reach and its height round the row's one line (the row's
5694
+ --field-row-box-* variables, field.css), its words that reach in, no edge of its own, the row's ground: so
5695
+ not a pixel of the words moves and the row keeps its height. Its ring is drawn outside it, a line of the brand and the
5696
+ focus glow, red when refused. A line of text stays one line, scrolling sideways; long text still grows. A phone's form is
5697
+ the phone's own. ─────────────────────────────────────────────────────────────────────────────────────────────────── */
5698
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5699
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
5700
+ width: calc(100% + var(--field-row-box-x) * 2); margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
5701
+ }
5702
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone) {
5703
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
5704
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
5705
+ }
5706
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone):is([aria-invalid="true"], [data-refused]) {
5707
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
5708
+ }
5709
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"]:not([data-text-kind="long"]) .o-text-editor-box {
5710
+ white-space: pre; overflow: hidden;
5711
+ }
5712
+
5612
5713
  /* ── On a phone: the Input at the phone's size; long text one tall box; a phone's country in the box's start side ──── */
5613
5714
  .o-text-editor[data-text-form="phone"] { display: grid; }
5614
5715
  .o-text-editor[data-text-form="phone"] .o-text-editor-country { gap: calc(var(--vk-spacing) * 0.75); }
@@ -6561,6 +6662,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
6561
6662
  width: calc(4px * 3.5);
6562
6663
  height: calc(4px * 3.5);
6563
6664
  }
6665
+ .size-3\.75 {
6666
+ width: calc(4px * 3.75);
6667
+ height: calc(4px * 3.75);
6668
+ }
6564
6669
  .size-4 {
6565
6670
  width: calc(4px * 4);
6566
6671
  height: calc(4px * 4);
@@ -8570,12 +8675,67 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8570
8675
  .\[\&_\[data-cell-open\]\:hover\]\:underline [data-cell-open]:hover {
8571
8676
  text-decoration-line: underline;
8572
8677
  }
8678
+ .\[\&_\[data-slot\=vk-number-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8679
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8680
+ }
8681
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline [data-slot=vk-number-box] {
8682
+ outline-style: var(--tw-outline-style);
8683
+ outline-width: 1px;
8684
+ }
8685
+ .\[\&_\[data-slot\=vk-number-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8686
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8687
+ }
8688
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-number-box] {
8689
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8690
+ }
8691
+ @media (hover: hover) {
8692
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-number-box] {
8693
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8694
+ }
8695
+ }
8696
+ .\[\&_\[data-slot\=vk-number-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-number-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8697
+ --tw-outline-style: none;
8698
+ outline-style: none;
8699
+ @media (forced-colors: active) {
8700
+ outline: 2px solid transparent;
8701
+ outline-offset: 2px;
8702
+ }
8703
+ }
8704
+ .\[\&_\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8705
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8706
+ }
8707
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline [data-slot=vk-text-box] {
8708
+ outline-style: var(--tw-outline-style);
8709
+ outline-width: 1px;
8710
+ }
8711
+ .\[\&_\[data-slot\=vk-text-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8712
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8713
+ }
8714
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-text-box] {
8715
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8716
+ }
8717
+ @media (hover: hover) {
8718
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-text-box] {
8719
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8720
+ }
8721
+ }
8722
+ .\[\&_\[data-slot\=vk-text-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-text-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8723
+ --tw-outline-style: none;
8724
+ outline-style: none;
8725
+ @media (forced-colors: active) {
8726
+ outline: 2px solid transparent;
8727
+ outline-offset: 2px;
8728
+ }
8729
+ }
8573
8730
  .\[\&_a\]\:pointer-events-auto a {
8574
8731
  pointer-events: auto;
8575
8732
  }
8576
8733
  .\[\&_button\]\:pointer-events-auto button {
8577
8734
  pointer-events: auto;
8578
8735
  }
8736
+ .\[\&_textarea\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] textarea[data-slot=vk-text-box] {
8737
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8738
+ }
8579
8739
  .\[\&\:\:-webkit-search-cancel-button\]\:appearance-none::-webkit-search-cancel-button {
8580
8740
  appearance: none;
8581
8741
  }
@@ -357,7 +357,10 @@ between its glyph, label, value and lane (`calc(var(--spacing)*3)`), `--vk-field
357
357
  in the middle of it (`auto`), `--vk-field-row-py` for its padding above and below (`calc(var(--spacing)*2.5)`), `--vk-field-row-line-w`
358
358
  for the line under every row but the last (`1px`; `0px` draws none), `--vk-field-row-line` for that line's colour
359
359
  (`--vk-border`) and `--vk-field-row-label-fg` for its label's colour (`--vk-fg-subtle`). Undeclared, the row draws as
360
- it always has; declared on a section or any ancestor, every row in it takes them. Inside a Field rows card on a phone the
360
+ it always has; declared on a section or any ancestor, every row in it takes them. Under the Field's Box
361
+ (`data-field-row-box="box"`, Looks) and only there, its one box reads `--vk-field-row-box-h` for its height (undeclared
362
+ `calc(var(--vk-spacing) * 8)`, 32), `--vk-field-row-box-x` for how far it reaches past the words (`calc(var(--vk-spacing) * 2)`, 8)
363
+ and `--vk-field-row-box-r` for its corner (`calc(var(--vk-spacing) * 2)`, 8): the Field's stylesheet (`field.css`) reads them. Inside a Field rows card on a phone the
361
364
  row is one of the card's rows, drawn by the card's frame, and none of them apply there.
362
365
 
363
366
  **The toolbar's band is the app's to declare.** On a computer each line of a folding toolbar (the ready toolbar's, or
@@ -775,7 +778,10 @@ pressable carries `data-slot="vk-relation-link"`, as the default `RelationLink`
775
778
  dressing it by its slot: it reads as text, the same part whichever verb it has, so one rule reaches it in every list.
776
779
  Two of a field row's controls stay ViewKit's own for the same reason, each being the sentence it says: a note with a
777
780
  quote, the disclosure marked by its `[data-field-note]` attribute, and the retry line under a write that failed, `data-slot="vk-field-retry"`;
778
- an app dresses them by those names. The panels' check and radio rows (`CheckRow`, and `RadioRow` with `mark="box"`)
781
+ an app dresses them by those names. Outside a Field rows card, a record's field row's target, your `Button`, carries
782
+ `data-key="vk-field-row-target"` (`vk-field-row-beside` beside a link's action, `vk-field-row-under` under a rich text), and
783
+ the value an open picker keeps in its place `[data-field-row-anchor]`: the Field's Box dresses them by those names, so your
784
+ Button forwards `data-key` to its element, as it does in the panels, and keeps its own `data-slot`. The panels' check and radio rows (`CheckRow`, and `RadioRow` with `mark="box"`)
779
785
  draw the `TickBox` atom, a picture inside a row that is itself the control, so an app hands the picture of its box
780
786
  there, never its `Checkbox`, which can't stand inside the row's button. The status
781
787
  marker, a tag's ✕ and the "+N" are drawn inside the `StatusMarker`, `Tag` and `CellMore` atoms, which an app swaps.
@@ -1144,7 +1150,7 @@ The glyphs the rendering asks for, by meaning. The app maps each name to a compo
1144
1150
  name, and `CONTROLS.AppIcon` draws ViewKit's own (`CONTROL_ICONS`, Tabler's as the Outright kit draws them). Field types: `text` `longText` `number` `percent` `currency` `date` `datetime` `duration`
1145
1151
  `boolean` `select` `status` `multiselect` `relation` `user` `url` `domain` `email` `phone` `location` `name` `actor`
1146
1152
  `rich_text` `range` `lookup` `rollup` `formula` `computed`. Who did it: `automation` `apiKey` `system` (a member wears `user`). Actions: `add` `edit` `delete` `copy` `cut` `paste` `clear` `hide` `show` `lock`
1147
- `pin` `wrap` `more` `close` `check` `warning` `drag` `resize` `open` `selectRow`. Navigation and order: `chevronDown`
1153
+ `pin` `wrap` `more` `close` `check` `warning` `drag` `resize` `open` `expand` `selectRow`. Navigation and order: `chevronDown`
1148
1154
  `chevronRight` `caretDown` `caretRight` `sortAsc` `sortDesc` `enter`. Figures: `calendar` `time` `progress`.
1149
1155
  The grid's menus: `moveLeft` `moveRight` `group` `clearSort` `sortRowsUp` `sortRowsDown`. `sortRowsUp` and
1150
1156
  `sortRowsDown` are a menu's verbs, sorting the rows by a column; `sortAsc` and `sortDesc` are the mark a
@@ -9,6 +9,8 @@ Every name `number-editor.css` reads (beside the stylesheets of the controls it
9
9
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
10
  | `--vk-font-size-base` | size | `text-base` | `16px` |
11
11
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
12
+ | `--vk-shadow-field-focus` | shadow | `shadow-field-focus` | `0 0 10px 0 hsl(219 90% 65.5% / 0.3)` · dark `0 0 10px 0 hsl(219 66% 45% / 0.42)` |
13
+ | `--vk-shadow-field-focus-danger` | shadow | `shadow-field-focus-danger` | `0 0 10px 0 hsl(3 87% 68% / 0.3)` · dark `0 0 10px 0 hsl(1 55% 46.5% / 0.42)` |
12
14
  | `--vk-spacing` | size | `spacing` | `4px` |
13
15
 
14
16
  ## Its parts
@@ -18,6 +18,8 @@ It also reads the inline input's own `--inline-input-ring` and `--inline-input-c
18
18
  | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
19
19
  | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
20
20
  | `--vk-radius-md` | size | `radius-md` | `7.5px` |
21
+ | `--vk-shadow-field-focus` | shadow | `shadow-field-focus` | `0 0 10px 0 hsl(219 90% 65.5% / 0.3)` · dark `0 0 10px 0 hsl(219 66% 45% / 0.42)` |
22
+ | `--vk-shadow-field-focus-danger` | shadow | `shadow-field-focus-danger` | `0 0 10px 0 hsl(3 87% 68% / 0.3)` · dark `0 0 10px 0 hsl(1 55% 46.5% / 0.42)` |
21
23
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
22
24
  | `--vk-shadow-menu` | shadow | `shadow-menu` | `0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04)` · dark `0 8px 24px hsl(0 0% 0% / 0.5)` |
23
25
  | `--vk-spacing` | size | `spacing` | `4px` |
@@ -199,7 +199,7 @@ function DealList({ deals, filterKey }: { deals: Deal[]; filterKey: string }) {
199
199
 
200
200
  ## The bar
201
201
 
202
- `SelectionBar` is the bar a selection opens: the count, which clears the selection when pressed (Escape does too, where the list wires `useEscapeToClear`, as the grid does), your verbs, a trash when you hand `onDelete`, and More. On a desktop it floats as an island at the foot of the screen, the first four verbs on it and the rest in More (with nothing in it, More stays in its place and says so in your `Tooltip`, "No more actions for these"); on a phone it is a pill reading "3 selected · Actions · ✕", whose Actions open a sheet of every verb. It draws nothing while `count` is zero, so a `renderBar` can always return it.
202
+ `SelectionBar` is the bar a selection opens: the count, which clears the selection when pressed (Escape does too, where the list wires `useEscapeToClear`, as the grid does), your verbs, a trash when you hand `onDelete`, and More. On a desktop it floats as an island at the foot of the screen, the first four verbs not marked `more` on it and the rest in More (with nothing in it, More stays in its place and says so in your `Tooltip`, "No more actions for these"); on a phone it is a pill reading "3 selected · Actions · ✕", whose Actions open a sheet of every verb. It draws nothing while `count` is zero, so a `renderBar` can always return it.
203
203
 
204
204
  What a selection lets a person do (move twelve deals to a stage, export them, delete them) is your app's. You hand the bar its verbs as data, a `SelectionVerb` each, and each verb's handler calls your own action over the selected ids, then `clear`; an agent working through your actions does the same thing. A verb is one of three kinds:
205
205
 
@@ -660,7 +660,7 @@ assert.deepEqual(gridNormalizeWrite(titleColumn, " Acme renewal ", conventions)
660
660
  assert.equal(gridNormalizeWrite(stageColumn, "maybe", conventions).ok, false);
661
661
  ```
662
662
 
663
- **While a cell's editor is open** the cell draws nothing of its own: no ring, no lift and no tint, so under a popover it stays as it was, and a cell typed in shows only the caret. It wears `data-editing` until the editor starts to close, not until its exit is over. Escape, a pick, or Enter after typing closes the editor and keeps the cell selected, its ring back; a second Escape lets it go. A click away closes the editor and lets the cell go (a pick your app holds, `cellPick`, stays); a click on another cell closes it and selects that one, its editor not opened.
663
+ **While a cell's editor is open** the cell draws no lift and no tint. Under a popover (a picker, a date) it draws no ring either, so it stays as it was. A cell typed in (a text, an email, a link, a phone, a number) keeps the selected cell's ring, the same line in the same place, and when what is typed runs past the cell the ring goes round all the box covers, on the plain ground. It wears `data-editing` until the editor starts to close, not until its exit is over. Escape, a pick, or Enter after typing closes the editor and keeps the cell selected, its ring back; a second Escape lets it go. The focus is back on the cell the moment a picker starts to close, so a key pressed while it plays out is the cell's: a second Escape lets it go, an arrow moves the pick, and ⌘Z takes back the pick just made. A key that would open or write the cell (Enter, a letter, Delete) waits for the exit to end. A click away closes the editor and lets the cell go (a pick your app holds, `cellPick`, stays); a click on another cell closes it and selects that one, its editor not opened.
664
664
 
665
665
  **One of a set.** A `select` or a `status` opens the select editor in your `Picker`: its options, the cell's value held, and a pick saves. A column that may be emptied (`clearable`) offers the Picker's empty row, None, while the cell holds a value; a required status offers none. Delete still clears a column that may be emptied. A closed list offers its options, and the cell's own value when no option names it, so a stray value shows on the row that holds it and on no other; an open select offers the values its records hold and creates the typed text. A list of more than 8 options shows the Picker's search, and a letter typed on the cell opens it already filtered by that letter; a shorter list shows its rows alone.
666
666
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Import from `viewkitjs/views/field-row` in a client component, under your `ViewsProvider`: the door opens with the client directive. It holds a record's field row: one field drawn as its label, its value and, on a click, its type's editor in place, and the write path that admits each edit at once, queues one record's writes, settles each on the save's receipt and rolls a failure back. The row knows no entity, only a binding, a value and a commit, so your app builds its record's panel (its sections, its related records) around the rows. It draws with your provider's `Popover`, `Sheet`, `Collapse`, `AppIcon`, icons, `CommandMenu` atom and toast port. The shapes its writes go through (the write target, the receipt, the admission, a value's note, the reconciliation error) are the root door's, described under [A write's target](views.md#a-writes-target), and this door re-exports them. Guide: [editors](../guides/editors.md).
4
4
 
5
- - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. The row says its form in `data-form`: `computer` (one line), `phone` (the label above the value) or `rows` (a Field rows card's row on a phone); outside a card the two forms differ only by what reads it. A server render can't ask the screen, so a row outside a card stands in both forms, and a card stands whole in both, CSS showing the one your `desktopQuery` picks: a phone's first paint is the phone's, and as the page comes alive the screen's form is the one kept, the very elements the person saw. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
5
+ - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. The row says its form in `data-form`: `computer` (one line), `phone` (the label above the value) or `rows` (a Field rows card's row on a phone); outside a card the two forms differ only by what reads it. A server render can't ask the screen, so a row outside a card stands in both forms, and a card stands whole in both, CSS showing the one your `desktopQuery` picks: a phone's first paint is the phone's, and as the page comes alive the screen's form is the one kept, the very elements the person saw. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. Under the Field's Action (`data-field-row-action="icon"` on a frame round the rows, `FIELD_LOOKS`), a writable row outside a card shows one icon at its box's end on hover and keyboard focus: `edit` where its editor opens in a popover, `expand` for a long text or a rich text, none where the box is the input, or the binding's `action`. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
6
6
  - `FieldRowProps` — the row's props: `binding`, `row`, `value` (the display value), `editValue` (the stored value the editor opens on), `writable`, `ready` (false refuses gestures while the record loads), `unread` (the value isn't read yet, drawn blank), `refusal` (why it's read-only here), `onCommit` (admits or refuses a draft, then settles; an editor still open when the page or the row goes is asked as for a press outside, so it can be called inside `pagehide`), `opts` (display options), `menu` (a `command` field's verbs), `meta` (a few words in the value's line), `note` (a sentence under the value, with an optional quote a tap opens) and `kindIcon` (your icon name for a record kind, the glyph a relation's candidates wear; unanswered, they wear the type's glyph).
7
7
  - `RowEditor` — the editor a row mounts for its field's type, picked from `ROW_HOSTS`.
8
8
  - `ROW_HOSTS` — the host each field type mounts in a row, or `null` for a type the row never opens (a boolean, a derived or system field).
@@ -70,7 +70,7 @@ on a frame round the controls as `data-<piece>-*`, which each control's styleshe
70
70
  - `attioBox` — `attioBox(phone)`: the labelled box's own look, its computer form keeping its own size on a phone.
71
71
  - `INLINE_INPUT_LOOKS` — the inline input's: 4 options (`edge`, `corners` from `none` to `full`, `ground`, `tint` from 10% to 100% under the tint ground) and three looks, `attio`, `mihais` (named Outright) and `tinted`. Nothing picked is the line, `md` corners, on a 20% tint, which no look matches.
72
72
  - `InlineInputLookOptionId` — its option ids.
73
- - `FIELD_LOOKS` — Field rows', the phone's: 5 options (`rows-cards`, `rows-edge`, `rows-height`, `rows-label`, `rows-lines`) and three looks, `card` (every option's default), `each` and `rows`; and a computer's field row's: `row-icon` (`on`, `off`), every look keeping it on: off (`data-field-row-icon="off"` on a section or any ancestor), each row draws its label, value and lane with no type icon, the label at the row's start.
73
+ - `FIELD_LOOKS` — Field rows', the phone's: 5 options (`rows-cards`, `rows-edge`, `rows-height`, `rows-label`, `rows-lines`) and three looks, `card` (every option's default), `each` and `rows`; and a computer's field row's: `row-icon` (`on`, `off`), every look keeping it on: off (`data-field-row-icon="off"` on a section or any ancestor), each row draws its label, value and lane with no type icon, the label at the row's start; and `row-box` (`target`, `box`), every look keeping today's `target`: box (`data-field-row-box="box"`), a computer's row draws one rectangle for its hover, its press, its in-place text and number input and the place a picker opens from, so its words never move and it keeps its height, no press scale; in a narrow window, outside a card, the stacked row takes the same box at rest, hovered and pressed, and its editor stays the phone's (`--vk-field-row-box-h`, `-x`, `-r`, docs/contract.md); and `row-action` (`none`, `icon`), every look keeping today's `none`: icon (`data-field-row-action="icon"`), a row outside a card shows one icon at its box's right end on the box's hover and keyboard focus, saying what a click does: `edit` where its editor opens in a popover (a select, a person, a date, several values), `expand` for a long text or a rich text, and none where the box is the input (a text, a number, one link); a binding's `action` says otherwise for its field. The icon is your `icons.edit` or `icons.expand`, 15 in a 24 square 4 in from the box's end, and the box keeps its room at its end, so a value ends there (cut with its "…" on one line) and the words never move. The lock, ⋯ and › stay in the row's lane.
74
74
  - `FieldLookOptionId` — its option ids.
75
75
  - `FieldRowsLook` — a card's own look, each option without its `rows-`.
76
76
  - `fieldRowsAttrs` — `fieldRowsAttrs(look)`: a card's own look as its attributes.