@mistriwork/kit 1.0.0-rc.16 → 1.0.0-rc.18

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 (110) hide show
  1. package/dist/client/components/AppList.js +16 -6
  2. package/dist/client/components/CardsList.js +7 -1
  3. package/dist/client/components/Chart.css +5 -0
  4. package/dist/client/components/Chart.d.ts +17 -2
  5. package/dist/client/components/Chart.js +83 -22
  6. package/dist/client/components/ChartFigure.d.ts +3 -1
  7. package/dist/client/components/ChartFigure.js +14 -8
  8. package/dist/client/components/Content.js +3 -1
  9. package/dist/client/components/DashHead.d.ts +6 -0
  10. package/dist/client/components/DashHead.js +20 -0
  11. package/dist/client/components/Editable.js +1 -1
  12. package/dist/client/components/Export.js +8 -4
  13. package/dist/client/components/Grid.js +54 -6
  14. package/dist/client/components/JsonPreview.css +29 -0
  15. package/dist/client/components/JsonPreview.js +1 -1
  16. package/dist/client/components/JsonView.css +201 -62
  17. package/dist/client/components/JsonView.d.ts +43 -1
  18. package/dist/client/components/JsonView.js +320 -55
  19. package/dist/client/components/LayoutSwitch.d.ts +9 -0
  20. package/dist/client/components/LayoutSwitch.js +61 -0
  21. package/dist/client/components/ListEmpty.css +3 -0
  22. package/dist/client/components/LiveNotices.css +3 -0
  23. package/dist/client/components/NewRecord.d.ts +0 -2
  24. package/dist/client/components/NewRecord.js +61 -17
  25. package/dist/client/components/PageFields.js +23 -4
  26. package/dist/client/components/PageHead.js +28 -7
  27. package/dist/client/components/PageRelated.d.ts +28 -0
  28. package/dist/client/components/PageRelated.js +50 -3
  29. package/dist/client/components/PageSectionBox.d.ts +5 -1
  30. package/dist/client/components/PageSectionBox.js +5 -3
  31. package/dist/client/components/PageSections.js +26 -13
  32. package/dist/client/components/PageSkeleton.css +2 -0
  33. package/dist/client/components/PageSkeleton.js +11 -3
  34. package/dist/client/components/Palette.js +108 -10
  35. package/dist/client/components/RecordPicker.d.ts +2 -0
  36. package/dist/client/components/RecordPicker.js +34 -8
  37. package/dist/client/components/RecordSummaries.js +6 -1
  38. package/dist/client/components/Rooms.js +2 -2
  39. package/dist/client/components/SecondLine.d.ts +15 -0
  40. package/dist/client/components/SecondLine.js +18 -0
  41. package/dist/client/components/TableRoom.js +15 -5
  42. package/dist/client/components/TableView.d.ts +2 -0
  43. package/dist/client/components/Value.d.ts +1 -0
  44. package/dist/client/components/Value.js +7 -9
  45. package/dist/client/components/appListModel.d.ts +4 -0
  46. package/dist/client/components/appRooms.d.ts +2 -0
  47. package/dist/client/components/appRooms.js +2 -0
  48. package/dist/client/components/dashboardModel.d.ts +5 -0
  49. package/dist/client/components/directoryModel.d.ts +25 -0
  50. package/dist/client/components/directoryModel.js +88 -0
  51. package/dist/client/components/gridSizing.d.ts +3 -0
  52. package/dist/client/components/gridSizing.js +6 -2
  53. package/dist/client/components/jsonTree.d.ts +54 -0
  54. package/dist/client/components/jsonTree.js +190 -0
  55. package/dist/client/components/listSubtitles.d.ts +1 -0
  56. package/dist/client/components/listSubtitles.js +7 -0
  57. package/dist/client/components/newMenuModel.d.ts +14 -6
  58. package/dist/client/components/newMenuModel.js +37 -5
  59. package/dist/client/components/newRecordModel.d.ts +24 -2
  60. package/dist/client/components/newRecordModel.js +47 -4
  61. package/dist/client/components/pageContext.d.ts +2 -0
  62. package/dist/client/components/pageModel.d.ts +2 -0
  63. package/dist/client/components/sidebarModel.js +7 -3
  64. package/dist/client/components/textMeasure.d.ts +2 -0
  65. package/dist/client/components/textMeasure.js +16 -2
  66. package/dist/client/composedReads.js +3 -1
  67. package/dist/client/copy/lists/components/AppList.d.ts +1 -0
  68. package/dist/client/copy/lists/components/AppList.js +1 -0
  69. package/dist/client/copy/lists/components/LayoutSwitch.d.ts +4 -0
  70. package/dist/client/copy/lists/components/LayoutSwitch.js +6 -0
  71. package/dist/client/copy/record/components/JsonView.d.ts +22 -0
  72. package/dist/client/copy/record/components/JsonView.js +19 -0
  73. package/dist/client/copy/record/components/PageHead.d.ts +1 -0
  74. package/dist/client/copy/record/components/PageHead.js +2 -0
  75. package/dist/client/copy/shell/components/Palette.d.ts +11 -0
  76. package/dist/client/copy/shell/components/Palette.js +14 -0
  77. package/dist/client/copy/shell/components/TopNav.d.ts +2 -1
  78. package/dist/client/copy/shell/components/TopNav.js +4 -2
  79. package/dist/client/copy/shell/components/directoryModel.d.ts +4 -0
  80. package/dist/client/copy/shell/components/directoryModel.js +6 -0
  81. package/dist/client/copy/shell/components/sidebarModel.d.ts +1 -0
  82. package/dist/client/copy/shell/components/sidebarModel.js +1 -0
  83. package/dist/client/copy/workbench/components/Export.d.ts +3 -2
  84. package/dist/client/copy/workbench/components/Export.js +3 -2
  85. package/dist/client/core.d.ts +3 -3
  86. package/dist/client/core.js +6 -7
  87. package/dist/client/export.d.ts +5 -4
  88. package/dist/client/export.js +40 -19
  89. package/dist/client/features.css +67 -7
  90. package/dist/client/index.html +2 -1
  91. package/dist/client/insert.js +1 -8
  92. package/dist/client/locale.d.ts +7 -0
  93. package/dist/client/locale.js +0 -0
  94. package/dist/client/lumenLook.css +9 -12
  95. package/dist/client/page.css +63 -15
  96. package/dist/client/palette.d.ts +3 -1
  97. package/dist/client/palette.js +19 -4
  98. package/dist/client/paletteRecents.d.ts +25 -0
  99. package/dist/client/paletteRecents.js +64 -0
  100. package/dist/client/partsLook.css +6 -3
  101. package/dist/client/sageLook.css +5 -3
  102. package/dist/client/shellMode.d.ts +8 -0
  103. package/dist/client/shellMode.js +1 -0
  104. package/dist/client/structure.css +201 -1
  105. package/dist/client/style.css +59 -10
  106. package/dist/client/themeFamilies.css +37 -0
  107. package/dist/client/visualThemes.css +12 -0
  108. package/dist/client/workbenchLook.css +415 -0
  109. package/dist/client/workshopLook.css +48 -25
  110. package/package.json +4 -3
@@ -0,0 +1,415 @@
1
+ /* The Workbench's own look: Instrument, in the Fog and moss palette (docs/design.md, Two dresses).
2
+
3
+ "A precision instrument: a hairline measuring grid, every figure on a monospace column", in near-monochrome neutral
4
+ grey with one low-chroma moss for what you can follow (a reference, the current table, focus) and for Run. Words are
5
+ set in Inter, in sentence case at three weights, and everything counted, compared or keyed in IBM Plex Mono, so
6
+ figures line up to the digit and a key reads character by character; both faces are the kit's own (faces.css),
7
+ fetched only when the page draws them. Absence is NULL in small capitals, which a stored string "null" can never be
8
+ mistaken for. Dark is the same instrument by night.
9
+
10
+ What the audit of the old native look found, answered here: one code face for chrome, labels and data alike, so
11
+ nothing in the interface outranked anything else; tracked capitals on every label, louder than the values under
12
+ them; three button dialects in one bar; a card holding chips beside a box holding a diagram on the landing; a bar
13
+ down the side of the current related table and of a field being read (the refusal list's side-tab border); a
14
+ record's tools wrapping to two lines; a phone's column heads given to their move arrows instead of their names.
15
+
16
+ Why a sheet of its own and not style.css: an App never wears it. Every rule is keyed on a root with no kit look worn
17
+ (`:root:not([data-visual-theme])`), so it could stand in the first stylesheet only as dead weight on every App's
18
+ first paint; instead the Workbench's own chunk imports it (`@mistriwork/kit/client/workbenchLook.css`), so the
19
+ database browser's page carries it and an App's does not. It stands in `look`, over the tool's own rules and under
20
+ a host's look (`registerHostLooks`, worn in `theme` under `data-host-look`), so a host look over it says only what
21
+ it changes: a palette is colour alone, and the structure below is shared.
22
+
23
+ Bends, each on purpose:
24
+ - The column heads stand on a tinted band: with hairlines between columns, a band is what tells the head from the
25
+ first row at a glance without a heavier rule.
26
+ - The schema diagram sits on a dot graticule: the one place the instrument shows its scale; it carries no meaning a
27
+ reader needs.
28
+ - A second face, IBM Plex Mono, for figures.
29
+
30
+ The motion tokens are the house's (the doctrine holds as written). Contrast was checked pair by pair, light and dark:
31
+ text, NULL and type ink, key and reference ink on every ground they sit on at 4.5:1; a field's edge and the focus
32
+ ring at 3:1. */
33
+ @import './fonts/faces.css';
34
+
35
+ @layer look {
36
+ :root:not([data-visual-theme]) {
37
+ --face-ui: Inter, 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
38
+ --sans: var(--face-ui);
39
+ /* The kit's seam for a host look's data face (tokens.css): every chrome string the code face set reads it, so
40
+ pointing it at the interface face moves them all; the figures then take theirs below. */
41
+ --data-face: var(--face-ui);
42
+ --figures: 'IBM Plex Mono', var(--code);
43
+ --control-h: 30px;
44
+ --grid-head-char: 6.8;
45
+ --ground: #f5f5f5;
46
+ --surface: #fefefe;
47
+ --raised: #ededed;
48
+ --line: #e3e3e3;
49
+ --line-strong: #cccccc;
50
+ --line-control: #858585;
51
+ --ink: #171717;
52
+ --ink-muted: #575757;
53
+ --ink-subtle: #686868;
54
+ --accent: #4d6b2b;
55
+ --accent-ink: #42601f;
56
+ --on-accent: #ffffff;
57
+ --accent-soft: #4d6b2b14;
58
+ --link: #42601f;
59
+ --focus: #5f8336;
60
+ --status-good: #1f7a5a;
61
+ --status-warning: #9c5a06;
62
+ --status-critical: #b8352c;
63
+ --status-info: #5b54a8;
64
+ --row-hover: #f3f3f3;
65
+ --pop-line: #d9d9d9;
66
+ --head-band: #f5f5f5;
67
+ --graticule: #1717171f;
68
+ --shadow-pop: 0 1px 2px rgb(16 20 28 / 0.06), 0 8px 24px rgb(16 20 28 / 0.1);
69
+ --shadow-panel: 0 1px 2px rgb(16 20 28 / 0.06), 0 12px 32px rgb(16 20 28 / 0.12);
70
+ --shadow-modal: 0 2px 6px rgb(16 20 28 / 0.08), 0 24px 64px rgb(16 20 28 / 0.18);
71
+ --scrim: rgb(16 20 28 / 0.32);
72
+ }
73
+ @media (prefers-color-scheme: dark) {
74
+ :root:not([data-visual-theme]):not([data-theme='light']) {
75
+ --ground: #101010;
76
+ --surface: #151515;
77
+ --raised: #1d1d1d;
78
+ --line: #262626;
79
+ --line-strong: #363636;
80
+ --line-control: #6b6b6b;
81
+ --ink: #e8e8e8;
82
+ --ink-muted: #a6a6a6;
83
+ --ink-subtle: #939393;
84
+ --accent: #9cc26a;
85
+ --accent-ink: #b0d283;
86
+ --on-accent: #121410;
87
+ --accent-soft: #9cc26a1f;
88
+ --link: #b0d283;
89
+ --focus: #9cc26a;
90
+ --status-good: #5cc6a0;
91
+ --status-warning: #e6a85c;
92
+ --status-critical: #f0857a;
93
+ --status-info: #b2aaf5;
94
+ --row-hover: #1a1a1a;
95
+ --pop-line: #2c2c2c;
96
+ --head-band: #181818;
97
+ --graticule: #ffffff17;
98
+ --shadow-pop: 0 0 0 1px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.5);
99
+ --shadow-panel: 0 0 0 1px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.55);
100
+ --shadow-modal: 0 0 0 1px rgb(0 0 0 / 0.35), 0 28px 72px rgb(0 0 0 / 0.65);
101
+ --scrim: rgb(0 0 0 / 0.55);
102
+ }
103
+ }
104
+ :root:not([data-visual-theme])[data-theme='dark'] {
105
+ --ground: #101010;
106
+ --surface: #151515;
107
+ --raised: #1d1d1d;
108
+ --line: #262626;
109
+ --line-strong: #363636;
110
+ --line-control: #6b6b6b;
111
+ --ink: #e8e8e8;
112
+ --ink-muted: #a6a6a6;
113
+ --ink-subtle: #939393;
114
+ --accent: #9cc26a;
115
+ --accent-ink: #b0d283;
116
+ --on-accent: #121410;
117
+ --accent-soft: #9cc26a1f;
118
+ --link: #b0d283;
119
+ --focus: #9cc26a;
120
+ --status-good: #5cc6a0;
121
+ --status-warning: #e6a85c;
122
+ --status-critical: #f0857a;
123
+ --status-info: #b2aaf5;
124
+ --row-hover: #1a1a1a;
125
+ --pop-line: #2c2c2c;
126
+ --head-band: #181818;
127
+ --graticule: #ffffff17;
128
+ --shadow-pop: 0 0 0 1px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.5);
129
+ --shadow-panel: 0 0 0 1px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.55);
130
+ --shadow-modal: 0 0 0 1px rgb(0 0 0 / 0.35), 0 28px 72px rgb(0 0 0 / 0.65);
131
+ --scrim: rgb(0 0 0 / 0.55);
132
+ }
133
+
134
+ :root:not([data-visual-theme]) {
135
+ & body {
136
+ font-feature-settings: 'cv11', 'ss03';
137
+ -webkit-font-smoothing: antialiased;
138
+ -moz-osx-font-smoothing: grayscale;
139
+ }
140
+ /* Sentence case throughout: the old look's tracked capitals were louder than the values they named. */
141
+ & body * { text-transform: none; letter-spacing: normal; }
142
+ & ::selection { background: color-mix(in srgb, var(--focus) 26%, transparent); }
143
+
144
+ /* ---------- the frame: the chrome on the ground round a near-white working surface ---------- */
145
+
146
+ & .topbar { gap: var(--space-4); padding-block: var(--space-2h); background: var(--surface); border-bottom: 1px solid var(--line); }
147
+ & body.write-mode .topbar { border-bottom-color: var(--status-critical); }
148
+ & .brand-name { font: 600 var(--text-md) var(--face-ui); letter-spacing: -0.01em; }
149
+ & .conn-picker .dd-button {
150
+ min-height: 28px; padding: 0 var(--space-3); border-color: transparent; background: none;
151
+ font: 500 var(--text-base) var(--face-ui); color: var(--ink);
152
+ }
153
+ & .conn-picker .dd-button:hover { background: var(--raised); } /* motion-ok: colour only, at the hover token */
154
+ & .conn-manage { color: var(--ink-subtle); }
155
+ & #query {
156
+ font-size: var(--text-base); line-height: 1.4; padding-block: var(--space-2h); border-radius: var(--radius);
157
+ background: var(--ground);
158
+ }
159
+ & #query:focus { background: var(--surface); }
160
+ & #querybar > button {
161
+ padding: var(--space-2h) var(--space-4); font: 500 var(--text-base) var(--face-ui);
162
+ border-radius: var(--radius);
163
+ }
164
+ & .icon-button { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); padding: var(--space-2) var(--space-3); }
165
+ & .icon-button:hover { color: var(--ink); background: var(--raised); border-color: transparent; } /* motion-ok: colour only */
166
+ & .tn-search-key {
167
+ font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle);
168
+ padding: 1px var(--space-2h); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) - 2px);
169
+ }
170
+
171
+ /* ---------- the table list ---------- */
172
+
173
+ & .sidebar { border-right: 1px solid var(--line); background: var(--ground); }
174
+ & #table-filter { padding-block: var(--space-2h); font: var(--text-base) var(--face-ui); }
175
+ & #table-list button {
176
+ font: var(--text-base) var(--face-ui); color: var(--ink); border-radius: var(--radius-item);
177
+ padding-block: var(--space-2h); border: none;
178
+ }
179
+ & #table-list button:hover { background: var(--raised); } /* motion-ok: colour only */
180
+ /* The current thing is a tint and its ink, never a bar. */
181
+ & #table-list button[aria-current='true'] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
182
+ & #table-list .rows { font: var(--text-xs) var(--figures); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
183
+ & #table-list button[aria-current='true'] .rows { color: var(--accent-ink); }
184
+ & #table-list .view-tag { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
185
+ & .sidebar-reveal { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); border-color: var(--line); background: var(--surface); }
186
+
187
+ /* ---------- trail, tabs, filters, a result's head ---------- */
188
+
189
+ & .crumbs-host { background: var(--surface); border-bottom: 1px solid var(--line); }
190
+ & .crumbs { font: var(--text-base) var(--face-ui); }
191
+ & .crumbs .sep { color: var(--ink-subtle); }
192
+ & .crumbs .current { color: var(--ink); font-weight: 500; }
193
+ & .crumbs button:not(.crumb-home) { color: var(--ink-muted); }
194
+ & .tabs { border-bottom: 1px solid var(--line); }
195
+ & .tab { font: 500 var(--text-base) var(--face-ui); color: var(--ink-muted); padding-block: var(--space-3); }
196
+ & .tab:hover { color: var(--ink); } /* motion-ok: colour only */
197
+ & .tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
198
+ & .applist-filterbar { gap: var(--space-3); }
199
+ & .applist-field-label { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
200
+ & .applist-quick, & .applist-field .dd-button, & .picker-input, & .conn-filter, & .cell-edit, & .edit-field-surface :is(input, select, textarea) {
201
+ border-radius: var(--radius); font-family: var(--face-ui);
202
+ }
203
+ & .applist-go { font: 500 var(--text-base) var(--face-ui); }
204
+ & .result-head { align-items: baseline; row-gap: var(--space-2); }
205
+ & .result-head .result-title { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
206
+ & .result-head .stat { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
207
+ & .result-head .stat-order { color: var(--ink-muted); }
208
+ & .export-summary { font: 500 var(--text-sm) var(--face-ui); border-radius: var(--radius); }
209
+
210
+ /* ---------- the measuring grid ---------- */
211
+
212
+ & table { font: var(--text-base) var(--face-ui); font-variant-numeric: tabular-nums; }
213
+ & .grid-inset > .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 0; margin-bottom: var(--space-4); }
214
+ & .grid-inset > .table-wrap th:first-child,
215
+ & .grid-inset > .table-wrap td:first-child { padding-left: var(--space-3h); }
216
+ & .grid-inset > .table-wrap th:last-child,
217
+ & .grid-inset > .table-wrap td:last-child { padding-right: var(--space-3h); }
218
+ & th {
219
+ font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted);
220
+ background: var(--head-band); border-bottom: 1px solid var(--line-strong);
221
+ }
222
+ & th.sorted { color: var(--ink); border-bottom-color: var(--accent); }
223
+ & :is(th, td) { border-right: 1px solid var(--line); }
224
+ & :is(th, td):last-child { border-right: 0; }
225
+ & tbody tr:last-child td { border-bottom: 0; }
226
+ & th .pk { font: 500 var(--text-xs) var(--face-ui); color: var(--accent-ink); margin-inline-start: var(--space-1); }
227
+ & th .fk, & th .th-arrow { color: var(--accent-ink); }
228
+ /* Figures, keys and codes on the instrument's face: they line up to the digit. */
229
+ & :is(td.num, td.mono, td.reflink, .num-value, .date-value) { font-family: var(--figures); font-size: var(--text-sm); }
230
+ & td.reflink { color: var(--link); }
231
+ & td.null, & .field dd.null {
232
+ color: var(--ink-subtle);
233
+ font-family: var(--face-ui); font-style: normal; font-variant-caps: all-small-caps; letter-spacing: 0.04em;
234
+ font-size: var(--text-base);
235
+ }
236
+ & td.bool .yes { color: var(--ink); }
237
+ & td.bool .no { color: var(--ink-muted); }
238
+ & .expander { color: var(--ink-subtle); }
239
+ & td.expander-cell, & th.expander-cell { border-right-color: var(--line); }
240
+ & tbody tr.clickable:hover { background: var(--row-hover); } /* motion-ok: colour only */
241
+ & .pinned { background: var(--surface); }
242
+ & tbody tr:hover .pinned { background: var(--row-hover); } /* motion-ok: colour only */
243
+ & .pager { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
244
+ & .pager .page-input { font: var(--text-sm) var(--figures); }
245
+ & .step-button { font: 500 var(--text-sm) var(--face-ui); }
246
+ & .detail-head :is(h4, .detail-via, .detail-count) { font-family: var(--face-ui); }
247
+
248
+ /* A phone keeps a column head's moves for when it holds focus, so a narrow head shows its name. */
249
+ @media (hover: none) {
250
+ & .th-moves { display: none; }
251
+ & th:focus-within .th-moves { display: contents; }
252
+ }
253
+
254
+ /* ---------- a record: an inspector's readout ---------- */
255
+
256
+ & .panel > .record-heading {
257
+ font: 600 var(--text-lg) var(--face-ui); color: var(--ink); letter-spacing: -0.012em; gap: var(--space-2h);
258
+ /* The name keeps its line: when the tools do not fit beside it they step down a line, rather than the name breaking. */
259
+ flex-wrap: wrap; row-gap: var(--space-2h);
260
+ }
261
+ & .panel > .record-heading > span { flex: 1 1 auto; overflow-wrap: normal; }
262
+ & .record-heading button { white-space: nowrap; }
263
+ & :is(.record-as-page, .record-layout, .record-delete, .record-heading button.ghost) {
264
+ padding: var(--space-1h) var(--space-3); font: 500 var(--text-sm) var(--face-ui); border-radius: var(--radius);
265
+ }
266
+ & .field { border-left: 0; padding-block: var(--space-2h); border-radius: 0; border-bottom: 1px solid var(--line); }
267
+ & .field:hover { background: var(--raised); } /* motion-ok: colour only */
268
+ & .fields > .field:last-child { border-bottom: 0; }
269
+ & .field dt { font: var(--text-base)/1.5 var(--face-ui); color: var(--ink-muted); }
270
+ & .field dt .type, & .field .req { font: var(--text-xs) var(--figures); color: var(--ink-subtle); }
271
+ & .field .pk { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
272
+ & .field dd { font: var(--text-base)/1.5 var(--face-ui); }
273
+ & .field dd .prose { font-family: var(--face-ui); }
274
+ & .field dd :is(.num-value, .date-value) { color: var(--ink); }
275
+ & .field-group-head { font: 600 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
276
+ & .ref-jump {
277
+ gap: var(--space-2h); padding: 1px var(--space-2h); border-radius: var(--radius);
278
+ border: 1px solid var(--line); background: var(--surface);
279
+ }
280
+ & .ref-jump:hover { border-color: var(--accent-ink); background: var(--accent-soft); } /* motion-ok: colour only */
281
+ & .ref-jump-value { color: var(--accent-ink); font-weight: 500; font-family: var(--figures); font-size: var(--text-sm); }
282
+ & .ref-jump-table { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); background: none; padding: 0; }
283
+ & .related-head > .related-title, & .panel > .related-title { font: 600 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
284
+ & .related-item { border-left: 0; border-radius: var(--radius-item); padding-block: var(--space-3); }
285
+ & .related-list { padding-inline: var(--space-2); }
286
+ & .related-item:hover:not([disabled]) { background: var(--raised); } /* motion-ok: colour only */
287
+ & .related-item[aria-selected='true'] { background: var(--accent-soft); }
288
+ & .related-count { font: 600 var(--text-md) var(--figures); color: var(--ink); letter-spacing: -0.01em; }
289
+ & .related-item[aria-selected='true'] .related-count { color: var(--accent-ink); }
290
+ & .related-table { font: 500 var(--text-base) var(--face-ui); }
291
+ & .related-via, & .record-child-via, & .detail-via { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
292
+ & .record-child-head .record-child-title { font: 600 var(--text-base) var(--face-ui); color: var(--ink); }
293
+ & .record-children .table-wrap { margin-inline: var(--space-4h); border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 0; }
294
+ & .record-children .table-wrap th:first-child,
295
+ & .record-children .table-wrap td:first-child { padding-left: var(--space-3h); }
296
+
297
+ /* Staged edits: "not saved yet" is a quiet band with the count in the warning ink, not the pink of danger. */
298
+ & .pending { background: color-mix(in srgb, var(--status-warning) 7%, var(--surface)); border-bottom: 1px solid var(--line); }
299
+ & .pending-count { color: var(--status-warning); font: 600 var(--text-sm) var(--face-ui); }
300
+ & .pending-cols { font: var(--text-sm) var(--figures); color: var(--ink-muted); }
301
+ & .cell-edit.dirty, & .dirty { border-color: var(--status-warning); background: color-mix(in srgb, var(--status-warning) 6%, var(--field-fill)); }
302
+
303
+ /* ---------- popups: one hairline, one radius step, one soft shadow ---------- */
304
+
305
+ & :is(.th-menu, .more-list, .dd-popup, .ac, .palette, .history-panel) {
306
+ background: var(--surface); border: 1px solid var(--pop-line); border-radius: var(--radius-pop); box-shadow: var(--shadow-pop);
307
+ }
308
+ & :is(.th-menu-item, .more-item, .dd-option, .ac-item, .palette-item) { border-radius: var(--radius-item); }
309
+ /* motion-ok: colour only, the highlight a pointer or the keyboard moves */
310
+ & :is(.th-menu-item, .more-item, .dd-option, .ac-item):hover,
311
+ & :is(.th-menu-item, .more-item, .dd-option)[data-highlighted],
312
+ & .ac-item.active { background: var(--raised); } /* motion-ok: colour only */
313
+ & :is(.th-menu-label, .more-item, .more-label, .dd-label, .dd-text) { font: var(--text-base) var(--face-ui); color: var(--ink); }
314
+ & :is(.th-menu-cond, .more-detail, .dd-detail) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
315
+ & .more-group-label { font: 600 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
316
+ & .th-menu-sep, & .dd-divider { background: var(--line); }
317
+ & .ac-label { font: var(--text-base) var(--code); }
318
+ & .ac-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
319
+
320
+ & .palette { box-shadow: var(--shadow-modal); border-radius: var(--radius-dialog); overflow: hidden; }
321
+ & .palette-input { font: var(--text-lg) var(--face-ui); padding-block: var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface); }
322
+ & .palette-item.active { background: var(--accent-soft); }
323
+ & .palette-item.active .palette-label { color: var(--ink); }
324
+ & .palette-label { font: var(--text-base) var(--face-ui); }
325
+ & .palette-kind { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
326
+ & .palette-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
327
+
328
+ & .modal { border: 1px solid var(--pop-line); border-radius: var(--radius-dialog); box-shadow: var(--shadow-modal); background: var(--surface); }
329
+ & .modal :is(h2, h3) { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
330
+ & .confirm-diff { font: var(--text-base) var(--face-ui); }
331
+ & .confirm-diff td { font-family: var(--figures); }
332
+ & .toast {
333
+ background: var(--surface); color: var(--ink); border: 1px solid var(--pop-line); border-radius: var(--radius-pop);
334
+ box-shadow: var(--shadow-pop); font: var(--text-base) var(--face-ui);
335
+ }
336
+ & .toast-ok .toast-message::before {
337
+ content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: var(--space-3);
338
+ border-radius: 50%; background: var(--status-good); vertical-align: 1px;
339
+ }
340
+ & .toast-action { font: 500 var(--text-base) var(--face-ui); border-color: var(--line-strong); border-radius: var(--radius); }
341
+
342
+ /* ---------- the SQL pane ---------- */
343
+
344
+ & .sql-panel { border-top: 1px solid var(--line-strong); background: var(--surface); }
345
+ & .sql-head { border-bottom: 1px solid var(--line); }
346
+ & .sql-title, & .sql-eyebrow { font: 600 var(--text-sm) var(--face-ui); color: var(--ink); }
347
+ & .sql-target { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
348
+ & .sql-input { font: var(--text-base)/1.55 var(--code); border-radius: var(--radius); }
349
+ & .sql-stats, & .sql-walk { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
350
+
351
+ /* ---------- the landing: rules, not a card of chips; the schema on its graticule ---------- */
352
+
353
+ & .landing-top > .shape { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
354
+ & .shape-counts, & .shape-gist { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
355
+ & .shape-head h2, & .shape-head .shape-toggle { font: 600 var(--text-xl) var(--face-ui); letter-spacing: -0.012em; }
356
+ & .shape-label, & .landing-starts-head { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
357
+ & .shape-says { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
358
+ & .shape-link { font: 500 var(--text-base) var(--face-ui); color: var(--accent-ink); }
359
+ & .shape-arrow { color: var(--ink-subtle); }
360
+ & .landing-chip {
361
+ border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--space-2h) var(--space-3h);
362
+ }
363
+ & .landing-chip:hover { border-color: var(--line-strong); background: var(--raised); } /* motion-ok: colour only */
364
+ & .landing-chip-name { font: 500 var(--text-base) var(--face-ui); color: var(--ink); }
365
+ & :is(.landing-chip-table, .start-rows) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
366
+ & .diagram-title { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
367
+ & .diagram-viewport {
368
+ border: 1px solid var(--line); border-radius: var(--radius-panel); background-color: var(--surface);
369
+ background-image: radial-gradient(circle at 1px 1px, var(--graticule) 1px, transparent 1.2px);
370
+ background-size: 16px 16px;
371
+ }
372
+ & .node > rect { rx: 5px; ry: 5px; stroke: var(--line-strong); }
373
+ & .node-focus > rect { stroke: var(--accent); }
374
+ & .node-head text { font-family: var(--face-ui); font-weight: 600; }
375
+ & :is(.node-field, .node-type, .edge-label, .node-more text) { font-family: var(--face-ui); }
376
+ & .node-field.is-key, & .node-field.is-ref { font-family: var(--figures); }
377
+ & .node-type { fill: var(--ink-subtle); }
378
+ & .edge { stroke: var(--line-strong); }
379
+ & .zoom-controls { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: var(--surface); }
380
+ & .diagram-legend { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
381
+ & .ddl { font: var(--text-sm)/1.6 var(--code); }
382
+
383
+ /* ---------- connections ---------- */
384
+
385
+ & .conn-manager { background: var(--ground); }
386
+ & .conn-head h2, & .conn-brand-name { font: 600 var(--text-xl) var(--face-ui); letter-spacing: -0.012em; }
387
+ & .conn-lede { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
388
+ & .conn-list { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
389
+ & .conn-row { border-bottom: 1px solid var(--line); }
390
+ & .conn-row:last-child { border-bottom: 0; }
391
+ & .conn-row:hover { background: var(--raised); } /* motion-ok: colour only */
392
+ & .conn-name-text { font: 500 var(--text-base) var(--face-ui); }
393
+ & :is(.conn-detail, .conn-meta, .conn-status, .conn-count) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
394
+ & .conn-badge { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-muted); border-radius: 999px; }
395
+ & .conn-action { font: 500 var(--text-sm) var(--face-ui); }
396
+
397
+ /* ---------- states ---------- */
398
+
399
+ & .errors {
400
+ margin: var(--space-3) var(--space-4h); padding: var(--space-3) var(--space-4); border-radius: var(--radius);
401
+ background: color-mix(in srgb, var(--status-critical) 6%, var(--surface));
402
+ border: 1px solid color-mix(in srgb, var(--status-critical) 30%, var(--line));
403
+ color: var(--status-critical); font: var(--text-base) var(--face-ui);
404
+ }
405
+ & :is(.grid-inset, .table-wrap) > .note { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
406
+ & .clause { border-radius: var(--radius); font-family: var(--face-ui); }
407
+ & .clause-label { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
408
+ & .clause-text { font-family: var(--code); }
409
+
410
+ /* ---------- figures elsewhere: counts and ranges on the instrument's face ---------- */
411
+
412
+ & :is(.stat, .pager-range, .conn-meta, .start-rows, .landing-chip-table, .detail-count) { font-family: var(--figures); font-size: var(--text-xs); }
413
+ & .result-head .stat-order { font-family: var(--face-ui); font-size: var(--text-sm); }
414
+ }
415
+ }
@@ -1,11 +1,11 @@
1
1
  /* Workshop, the look an App wears when it names none (themeLooks.ts): fetched
2
- when a worn theme picks one of its recipes (keyed buttons, the slot menu), as Lumen's sheet
2
+ when a worn theme picks one of its recipes (keyed buttons, the slot menu, solid filters), as Lumen's sheet
3
3
  is, and so not in the first stylesheet the Workbench and every other look
4
4
  share. Its other recipes are in Lumen's, the brand sheet and the surfaces'. */
5
5
  /* Barlow, a grotesk cut from road and workshop signage (SIL Open Font
6
6
  License; its text in fonts/Barlow-OFL.txt and dist/client/fonts/): the
7
- regular and semibold for the interface and data, the semi-condensed bold
8
- for titles, section heads and labels in capitals. Declared here so only a
7
+ regular and semibold for the interface, data and labels, the semi-condensed
8
+ bold for titles, figures and the App's name. Declared here so only a
9
9
  page wearing Workshop asks for it; the server preloads the regular and the
10
10
  condensed bold beside this sheet (server/clientSurface.ts, lookPreloads).
11
11
  `swap`, as Lumen's Inter: the page is held until this sheet is in, and the
@@ -67,8 +67,7 @@
67
67
  }
68
68
  @layer look {
69
69
  /* Keyed buttons: the primary verb is a hazard key, the accent edged in the ink; a secondary key is edged in the
70
- ink too, so every key on a page reads as hardware. A table's heads already stand on the ink rule its sections
71
- do (themeFamilies.css, rules.head at the look's 2px).
70
+ ink too, so every key on a page reads as hardware.
72
71
  The key is the look's primary-action color and its words (`--primary`, the palette's hue with the ink on it), as
73
72
  a list's New and a dashboard's action are, re-pointed as a form's one action is (features.css): a button reads
74
73
  `--accent`, which an App's own `ui.theme.accent` is worn over, so a record's first action was the App's blue
@@ -81,19 +80,19 @@
81
80
  :root[data-look-buttons='keyed'] .app-mode .btn-secondary {
82
81
  border-color: var(--ink);
83
82
  }
84
- /* The slot menu: the current entry is the ink block `inverted` draws (themeFamilies.css), and beside it a 3px
85
- marker of the menu's accent — under it in the top bar, at its leading edge in the side menu — parted from the
86
- block by 2px of the menu's ground, so the marker reads on the ground it stands on (3:1, test/contrast.test.ts)
87
- and never on the block, which is dark by day and light by night. The palette reaches the menu as a mark,
88
- never as a fill. The block is the menu's own ink: a theme that names `nav.current` draws its block instead
89
- (structure.css, data-nav-current), and with it no marker. */
83
+ /* The slot menu: the current entry is a block, and beside it a 3px marker of the menu's accent — under it in the top
84
+ bar, at its leading edge in the side menu — parted from the block by 2px of the menu's ground, so the marker
85
+ reads on the ground it stands on (3:1, test/contrast.test.ts) whatever the block is. The palette reaches the menu
86
+ as a mark, never as a fill. The block is the theme's `nav.current` with `nav.onCurrent` on it where it names them
87
+ (Workshop's own: a soft tint of the menu's ink, by day and by night), else the ink block `inverted` draws
88
+ (themeFamilies.css). Naming the block keeps the marker: structure.css draws a named block over every other look's
89
+ mark, but draws the one a look names as `--nav-current-mark`. */
90
90
  :root[data-look-nav='slot'] .app-mode .topbar :is(.tn-group.active > .tn-group-button, .tn-item[aria-current='true']) {
91
- background: var(--nav-ink);
92
- color: var(--nav-ground);
91
+ background: var(--nav-current, var(--nav-ink));
92
+ color: var(--nav-on-current, var(--nav-ground));
93
93
  border-radius: var(--radius);
94
- box-shadow:
95
- inset 0 -3px 0 var(--nav-accent),
96
- inset 0 -5px 0 var(--nav-ground);
94
+ --nav-current-mark: inset 0 -3px 0 var(--nav-accent), inset 0 -5px 0 var(--nav-ground);
95
+ box-shadow: var(--nav-current-mark);
97
96
  }
98
97
  :root[data-look-nav='slot']
99
98
  .app-mode
@@ -103,24 +102,48 @@
103
102
  color: inherit;
104
103
  }
105
104
  :root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true'] {
106
- background: var(--nav-ink);
107
- color: var(--nav-ground);
108
- box-shadow:
109
- inset 3px 0 0 var(--nav-accent),
110
- inset 5px 0 0 var(--nav-ground);
105
+ background: var(--nav-current, var(--nav-ink));
106
+ color: var(--nav-on-current, var(--nav-ground));
107
+ --nav-current-mark: inset 3px 0 0 var(--nav-accent), inset 5px 0 0 var(--nav-ground);
108
+ box-shadow: var(--nav-current-mark);
111
109
  }
112
110
  /* Held under a pointer too, over the menu's own hover tint. */
113
111
  @media (hover: hover) {
114
112
  :root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true']:hover {
115
- background: var(--nav-ink);
116
- color: var(--nav-ground);
113
+ background: var(--nav-current, var(--nav-ink));
114
+ color: var(--nav-on-current, var(--nav-ground));
117
115
  }
118
116
  }
117
+ /* Its icon and count in the block's own words, whatever draws them: a fixed ground here left them in the menu's
118
+ ground on a block a theme's `parts['nav.current']` tinted, where they could not be seen. */
119
119
  :root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true'] :is(.rows, svg, .nav-icon) {
120
- color: var(--nav-ground);
120
+ color: inherit;
121
121
  }
122
+ /* The ring in the block's words too: in the menu's ground it vanished on a tint of that ground. */
122
123
  :root[data-look-nav='slot'] #table-list button[aria-current='true']:focus-visible {
123
- outline: 2px solid var(--nav-ground);
124
+ outline: 2px solid currentcolor;
124
125
  outline-offset: -4px;
125
126
  }
127
+ /* The App's name over the slot menu, the one word in capitals: the brand's stamp, in the condensed bold the
128
+ look's titles wear (visualThemes.css). Said here, with the menu it heads, because a built-in look says nothing
129
+ through the parts (test/theme-parts.test.ts) and this sheet is already in; a theme that wears the slot and wants
130
+ its name as written says `parts.logo.case: 'none'`, which the parts layer draws over this one. */
131
+ :root[data-look-nav='slot'] .app-mode .brand-name {
132
+ text-transform: uppercase;
133
+ letter-spacing: 0.02em;
134
+ }
135
+ /* Capitals are the brand's here (docs/design.md, Workshop's exceptions): the kind over a record's name ("Lease") is
136
+ a label like a section's or a tab's, in sentence case, not "LEASE". The shared look rule sets it in tracked
137
+ capitals; this takes that back where the worn theme's label role is in sentence case, as Workshop's is (and a
138
+ theme on its base inherits). Keyed on the role, not the family's name, which no selector reads
139
+ (test/theme-recipes.test.ts): a theme that wears a Workshop recipe and no label of its own keeps the capitals. */
140
+ :root:root[data-type-label]:not([data-type-label~='upper'], [data-type-label~='small-caps']) .page-head.has-record :is(.page-title, .page-title-pick .dd-value) {
141
+ text-transform: none;
142
+ letter-spacing: 0;
143
+ }
144
+ /* `filters: 'solid'`: a filter not yet asked for is a key on a solid edge, as the search beside it is, not a dashed
145
+ place; its colors, at rest and under a pointer, stay the filter bar's own (ListFilterBar.css). */
146
+ :root[data-look-filters='solid'] .app-mode .applist-add {
147
+ border-style: solid;
148
+ }
126
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistriwork/kit",
3
- "version": "1.0.0-rc.16",
3
+ "version": "1.0.0-rc.18",
4
4
  "description": "The shared React client both shells are drawn with: the walk and the address, Grid, Value, the record page, lists, filters and charts.",
5
5
  "homepage": "https://mistriwork.dev",
6
6
  "bugs": {
@@ -75,6 +75,7 @@
75
75
  "./client/theme.js": "./dist/client/theme.js",
76
76
  "./client/url.js": "./dist/client/url.js",
77
77
  "./client/visualTheme.js": "./dist/client/visualTheme.js",
78
+ "./client/workbenchLook.css": "./dist/client/workbenchLook.css",
78
79
  "./client/write.js": "./dist/client/write.js",
79
80
  "./clientFiles.js": "./dist/clientFiles.js",
80
81
  "./vite": "./dist/vite.js",
@@ -82,8 +83,8 @@
82
83
  "./package.json": "./package.json"
83
84
  },
84
85
  "dependencies": {
85
- "@mistriwork/engine": "1.0.0-rc.16",
86
- "@mistriwork/ui": "1.0.0-rc.16",
86
+ "@mistriwork/engine": "1.0.0-rc.18",
87
+ "@mistriwork/ui": "1.0.0-rc.18",
87
88
  "intl-messageformat": "12.1.2",
88
89
  "qrcode-generator": "^2.0.4"
89
90
  },