@mistriwork/kit 1.0.0-rc.57 → 1.0.0-rc.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/app.js +14 -2
- package/dist/client/audience.d.ts +1 -0
- package/dist/client/audience.js +10 -0
- package/dist/client/brandLook.css +49 -1
- package/dist/client/components/AppColumnMenuPopups.js +41 -11
- package/dist/client/components/AppList.d.ts +3 -1
- package/dist/client/components/AppList.js +77 -15
- package/dist/client/components/CardsList.js +14 -1
- package/dist/client/components/Chart.css +4 -0
- package/dist/client/components/Chart.d.ts +4 -4
- package/dist/client/components/Chart.js +30 -9
- package/dist/client/components/Content.js +3 -1
- package/dist/client/components/DateField.css +1 -1
- package/dist/client/components/DateField.js +1 -0
- package/dist/client/components/DefinedFields.js +2 -2
- package/dist/client/components/Diagram.css +82 -0
- package/dist/client/components/Diagram.d.ts +1 -0
- package/dist/client/components/Diagram.js +1 -0
- package/dist/client/components/Dressed.js +1 -1
- package/dist/client/components/Editable.js +7 -3
- package/dist/client/components/Export.js +1 -1
- package/dist/client/components/FilterBoxes.js +2 -2
- package/dist/client/components/FilterRail.css +1 -1
- package/dist/client/components/FilterRail.js +6 -4
- package/dist/client/components/Gallery.css +171 -0
- package/dist/client/components/Gallery.d.ts +1 -0
- package/dist/client/components/Gallery.js +1 -0
- package/dist/client/components/Grid.d.ts +2 -1
- package/dist/client/components/Grid.js +78 -24
- package/dist/client/components/GridCellEditor.js +4 -2
- package/dist/client/components/GridSelection.d.ts +4 -1
- package/dist/client/components/GridSelection.js +20 -3
- package/dist/client/components/LandingSurface.css +2 -2
- package/dist/client/components/LayoutBuilder.css +225 -0
- package/dist/client/components/LayoutBuilder.d.ts +1 -0
- package/dist/client/components/LayoutBuilder.js +1 -0
- package/dist/client/components/ListColumns.d.ts +12 -0
- package/dist/client/components/ListColumns.js +61 -0
- package/dist/client/components/ListFilterBar.css +39 -14
- package/dist/client/components/ListFilterBar.js +39 -23
- package/dist/client/components/MultiStepForm.css +22 -22
- package/dist/client/components/NewRecord.js +120 -104
- package/dist/client/components/Notes.css +9 -0
- package/dist/client/components/Notes.d.ts +6 -2
- package/dist/client/components/Notes.js +10 -6
- package/dist/client/components/OverflowMenu.js +16 -11
- package/dist/client/components/PageFields.js +19 -4
- package/dist/client/components/PageRelated.d.ts +8 -1
- package/dist/client/components/PageRelated.js +46 -33
- package/dist/client/components/PageSections.js +18 -5
- package/dist/client/components/Palette.js +1 -1
- package/dist/client/components/Prefs.d.ts +10 -0
- package/dist/client/components/Prefs.js +33 -23
- package/dist/client/components/PresentationSwitch.js +4 -0
- package/dist/client/components/Prompt.js +4 -4
- package/dist/client/components/RecordGone.js +4 -4
- package/dist/client/components/RecordPicker.js +24 -6
- package/dist/client/components/RecordSummaries.js +31 -5
- package/dist/client/components/RecordTrailNav.js +4 -0
- package/dist/client/components/RichTextEditor.css +2 -2
- package/dist/client/components/RichTextEditor.js +18 -19
- package/dist/client/components/Rooms.js +22 -4
- package/dist/client/components/SectionPeriod.css +1 -1
- package/dist/client/components/SetFieldDialog.js +1 -1
- package/dist/client/components/Sidebar.js +8 -5
- package/dist/client/components/SuggestBox.js +2 -2
- package/dist/client/components/TableRoom.d.ts +5 -1
- package/dist/client/components/TableRoom.js +29 -10
- package/dist/client/components/TableView.js +1 -1
- package/dist/client/components/ThMenu.js +26 -15
- package/dist/client/components/Tour.css +96 -0
- package/dist/client/components/Tour.d.ts +1 -0
- package/dist/client/components/Tour.js +1 -0
- package/dist/client/components/TreePicker.css +1 -1
- package/dist/client/components/TreePicker.js +27 -20
- package/dist/client/components/Value.js +4 -1
- package/dist/client/components/WorkflowStatus.js +8 -4
- package/dist/client/components/appListModel.d.ts +4 -0
- package/dist/client/components/appRooms.d.ts +2 -0
- package/dist/client/components/appRooms.js +2 -0
- package/dist/client/components/boardNew.d.ts +5 -0
- package/dist/client/components/boardNew.js +5 -0
- package/dist/client/components/conditionWords.d.ts +10 -0
- package/dist/client/components/conditionWords.js +20 -0
- package/dist/client/components/dashboardModel.d.ts +8 -0
- package/dist/client/components/dashboardModel.js +28 -1
- package/dist/client/components/editInteraction.d.ts +1 -1
- package/dist/client/components/editInteraction.js +1 -1
- package/dist/client/components/gridSizing.d.ts +14 -20
- package/dist/client/components/gridSizing.js +147 -108
- package/dist/client/components/pageContext.d.ts +3 -2
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/pickerStaleness.d.ts +11 -1
- package/dist/client/components/pickerStaleness.js +12 -2
- package/dist/client/components/rowTitle.d.ts +2 -0
- package/dist/client/components/rowTitle.js +10 -0
- package/dist/client/components/textMeasure.js +72 -3
- package/dist/client/components/useConditionWords.d.ts +5 -0
- package/dist/client/components/useConditionWords.js +3 -1
- package/dist/client/components/useGridKeyboard.js +5 -0
- package/dist/client/components/valueModel.d.ts +1 -0
- package/dist/client/components/valueModel.js +39 -4
- package/dist/client/composer.css +2 -2
- package/dist/client/copy/es.js +3 -3
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
- package/dist/client/copy/forms/components/DateField.d.ts +2 -0
- package/dist/client/copy/forms/components/DateField.js +2 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
- package/dist/client/copy/forms/components/NewRecord.js +2 -0
- package/dist/client/copy/lists/components/AppList.d.ts +2 -0
- package/dist/client/copy/lists/components/AppList.js +2 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
- package/dist/client/copy/lists/components/GridSelection.js +1 -0
- package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
- package/dist/client/copy/lists/components/ListColumns.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
- package/dist/client/copy/lists/components/TableRoom.js +3 -1
- package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
- package/dist/client/copy/record/components/PageHistory.js +4 -2
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
- package/dist/client/customThemes.css +3 -3
- package/dist/client/dom.js +5 -5
- package/dist/client/features.css +216 -356
- package/dist/client/fonts/Manrope-OFL.txt +93 -0
- package/dist/client/fonts/faces.css +10 -1
- package/dist/client/fonts/manrope-latin.woff2 +0 -0
- package/dist/client/formControls.css +4 -4
- package/dist/client/help.css +2 -2
- package/dist/client/ledgerLook.css +28 -0
- package/dist/client/locale.d.ts +2 -10
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +295 -105
- package/dist/client/manropeFace.css +32 -0
- package/dist/client/messages.d.ts +3 -3
- package/dist/client/messages.js +3 -3
- package/dist/client/page.css +98 -354
- package/dist/client/palette.js +31 -6
- package/dist/client/partsLook.css +60 -60
- package/dist/client/sageLook.css +101 -32
- package/dist/client/shellHost.d.ts +2 -2
- package/dist/client/shellHost.js +2 -2
- package/dist/client/shellMode.d.ts +9 -0
- package/dist/client/shellMode.js +2 -0
- package/dist/client/structure.css +281 -201
- package/dist/client/style.css +75 -224
- package/dist/client/themeFamilies.css +471 -66
- package/dist/client/tilesLook.css +502 -0
- package/dist/client/visualTheme.js +5 -2
- package/dist/client/visualThemes.css +38 -34
- package/dist/client/workbenchLook.css +12 -12
- package/dist/client/workshopLook.css +3 -8
- package/dist/vite.d.ts +1 -20
- package/dist/vite.js +33 -3
- package/package.json +8 -7
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
tracking back to normal with it. */
|
|
94
94
|
:root[data-visual-theme] body { font-size: var(--text-md); }
|
|
95
95
|
/* A switch keeps its round track: its ends are its shape, not a control's corner. */
|
|
96
|
-
:root[data-visual-theme] button,
|
|
97
|
-
:root[data-visual-theme] input:not([role=switch]),
|
|
96
|
+
:root[data-visual-theme] button:where(:not([data-slot]), [data-own]),
|
|
97
|
+
:root[data-visual-theme] input:where(:not([data-slot])):not([role=switch]),
|
|
98
98
|
:root[data-visual-theme] select,
|
|
99
|
-
:root[data-visual-theme] textarea { border-radius: var(--radius); }
|
|
99
|
+
:root[data-visual-theme] textarea:where(:not([data-slot])) { border-radius: var(--radius); }
|
|
100
100
|
/* Shape by role (docs/design.md, Shape): a popup is as square or as round
|
|
101
101
|
as the controls it opens from, a row in it no rounder than 5px and never
|
|
102
102
|
rounder than they are, and a panel or a dialog takes the look's larger
|
|
@@ -180,12 +180,14 @@
|
|
|
180
180
|
/* A head holding only the hidden heading (a room that draws its own title) takes no room: the heading stays for assistive tech, the band above the room goes. */
|
|
181
181
|
:root[data-visual-theme] .applist-head.dash-head:has(> .applist-title.visually-hidden:only-child) { margin: 0; padding: 0; min-height: 0; }
|
|
182
182
|
:root[data-visual-theme] .applist-head-row { align-items: center; }
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
/* The head's actions are the control's own height, by their least height and no padding above and below: New's words
|
|
184
|
+
on the base button's padding stood two pixels over Export beside it. */
|
|
185
|
+
:root[data-visual-theme] .applist-head-row .applist-new { min-height: var(--control-h); padding-block: 0; padding-inline: var(--space-4h); font-weight: 600; }
|
|
186
|
+
:root[data-visual-theme] .applist-head-row :is(.applist-import, .export-summary) { min-height: var(--control-h); padding-block: 0; padding-inline: var(--space-4h); }
|
|
185
187
|
:root[data-visual-theme] .applist-field-label,
|
|
186
188
|
:root[data-visual-theme] .page-field > dt { font: 500 var(--text-sm) var(--sans); text-transform: none; letter-spacing: normal; }
|
|
187
189
|
:root[data-visual-theme] .applist-filterbar { margin-block: var(--space-5) var(--space-4); }
|
|
188
|
-
:root[data-visual-theme] .applist-field
|
|
190
|
+
:root[data-visual-theme] .applist-field [data-slot='select-trigger'],
|
|
189
191
|
:root[data-visual-theme] .applist-quick-text { min-height: 32px; background: var(--surface); }
|
|
190
192
|
:root[data-visual-theme] .tabs { gap: var(--space-4h); padding-top: var(--space-4); }
|
|
191
193
|
:root[data-visual-theme] .tab { padding: var(--space-3) 0 var(--space-4); font-weight: 550; }
|
|
@@ -195,12 +197,12 @@
|
|
|
195
197
|
:root[data-visual-theme] .app-mode th { font-family: var(--sans); color: var(--ink-muted); font-weight: 600; }
|
|
196
198
|
:root[data-visual-theme] .app-mode td { border-bottom-color: var(--line); }
|
|
197
199
|
:root[data-visual-theme] .app-mode tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
|
|
198
|
-
:
|
|
200
|
+
/* A grid's cells, not a control's: a calendar's month is a table too, and its days are sized by the calendar. */
|
|
201
|
+
:root[data-visual-theme] .app-mode :is(td, th):where(:not([data-slot])) { padding-block: var(--space-3h); }
|
|
199
202
|
:root[data-visual-theme] .app-mode { --sk-row-h: 45px; --sk-head-h: 45px; }
|
|
200
203
|
/* Its placeholder rows are those heights exactly, from the table's own top. */
|
|
201
204
|
:root[data-visual-theme] .app-mode .sk-grid { padding-top: 0; }
|
|
202
205
|
:root[data-visual-theme] .app-mode .sk-row { padding-block: 0; }
|
|
203
|
-
:root[data-visual-theme] .app-mode td:first-child { font-weight: 550; }
|
|
204
206
|
/* A status reads as its word (docs/design.md, the refusal list's chip soup).
|
|
205
207
|
A tone that carries meaning is a dot and its word, with no container, and
|
|
206
208
|
the rest of a vocabulary a grey dot and its word: a pill round every Status and
|
|
@@ -220,15 +222,15 @@
|
|
|
220
222
|
:root[data-visual-theme] .record-tag.tone { padding: 1px var(--space-3); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); font-size: var(--text-sm); line-height: 1.6; }
|
|
221
223
|
:root[data-visual-theme] .pct-bar,
|
|
222
224
|
:root[data-visual-theme] .pct-fill { border-radius: min(2px, var(--radius)); }
|
|
223
|
-
/* A named record in a record's fields is a link, not a pill: "Kingsway Auto
|
|
225
|
+
/* A named record in a record's fields, and in a card's facts, is a link, not a pill: "Kingsway Auto
|
|
224
226
|
Center" in a rounded box read as a tag the car had, not the dealer it
|
|
225
227
|
opens. The pill stays the Workbench's, where a bare key needs its table
|
|
226
228
|
said beside it; a bare key here keeps that small table word. */
|
|
227
|
-
:root[data-visual-theme] :is(:is(.page-field, .page-sheet-row, .page-properties) dd, .page-fact) button.ref-jump {
|
|
229
|
+
:root[data-visual-theme] :is(:is(.page-field, .page-sheet-row, .page-properties, .page-card-fact) dd, .page-fact) button.ref-jump {
|
|
228
230
|
padding: 0; border: 0; border-radius: 0; background: none;
|
|
229
231
|
font: inherit; color: var(--link); text-align: left;
|
|
230
232
|
}
|
|
231
|
-
:root[data-visual-theme] :is(:is(.page-field, .page-sheet-row, .page-properties) dd, .page-fact) button.ref-jump:hover {
|
|
233
|
+
:root[data-visual-theme] :is(:is(.page-field, .page-sheet-row, .page-properties, .page-card-fact) dd, .page-fact) button.ref-jump:hover {
|
|
232
234
|
background: none; text-decoration: underline; text-underline-offset: 3px;
|
|
233
235
|
}
|
|
234
236
|
/* In a header's facts a reference is a captioned value in the ink, a link only to the pointer: a row of
|
|
@@ -255,8 +257,10 @@
|
|
|
255
257
|
/* A card's own fixed window is a caption, not a control: dressed as one, its words stood 9px in from the figure over
|
|
256
258
|
them in Mono and Sage. */
|
|
257
259
|
:root[data-visual-theme] .dash-fixed.dash-window { padding: 0; border: 0; background: none; }
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
/* A dashboard's parts stand a box's gap apart: at 32px between sections and 24 between figures, a desk showed four
|
|
261
|
+
figures and a row of steps and nothing of the chart under them. */
|
|
262
|
+
:root[data-visual-theme] .dash-body { --page-row-gap: 24px; }
|
|
263
|
+
:root[data-visual-theme] .dash-strip .home-cards { gap: var(--space-4); margin-top: var(--space-4); margin-bottom: 0; }
|
|
260
264
|
:root[data-visual-theme] .dash-strip { border: none; padding: 0; }
|
|
261
265
|
:root[data-visual-theme] .dash-strip .home-card { padding: var(--space-5) 0 20px; gap: var(--space-3); border-top: 3px solid var(--accent); border-radius: 0; }
|
|
262
266
|
:root[data-visual-theme] .dash-strip .home-card:nth-child(2) { border-top-color: var(--chart-secondary); }
|
|
@@ -265,7 +269,7 @@
|
|
|
265
269
|
:root[data-visual-theme] .home-card-label { color: var(--ink-muted); font-size: var(--text-base); font-weight: 550; }
|
|
266
270
|
:root[data-visual-theme] .home-card-value { font: 650 calc(30px * var(--type-k))/1.2 var(--mono); font-variant-numeric: tabular-nums; }
|
|
267
271
|
:root[data-visual-theme] .dash-strip .home-card:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
|
|
268
|
-
:root[data-visual-theme]
|
|
272
|
+
:root[data-visual-theme] .page-section-head { font: 600 var(--text-base) var(--sans); text-transform: none; letter-spacing: normal; margin-bottom: var(--space-5); }
|
|
269
273
|
:root[data-visual-theme] .page-section { padding-top: var(--space-5); }
|
|
270
274
|
/* A card is its own box: no section padding over it (page.css). */
|
|
271
275
|
:root[data-visual-theme] .page-section.page-card-section { padding-top: 0; }
|
|
@@ -281,7 +285,7 @@
|
|
|
281
285
|
:root[data-visual-theme] .board-card { background: var(--ground); padding: var(--space-3h) var(--space-4); }
|
|
282
286
|
:root[data-visual-theme] .board-card:hover { border-color: var(--accent); }
|
|
283
287
|
:root[data-visual-theme] .page-title,
|
|
284
|
-
:root[data-visual-theme] .page-title-pick
|
|
288
|
+
:root[data-visual-theme] .page-title-pick [data-slot='select-value'] { font: 600 var(--text-md) var(--sans); }
|
|
285
289
|
/* A label sits on its value and the next pair starts a step below: the ratio
|
|
286
290
|
says "next field", not the size. At 22px rows and 6px under a label, a
|
|
287
291
|
record's nine fields spread down most of a screen. */
|
|
@@ -307,10 +311,10 @@
|
|
|
307
311
|
not a button's. A picker's text box takes none: the ring is the picker's,
|
|
308
312
|
around the whole field (below), and the box's own drew a second one inside it. */
|
|
309
313
|
:root[data-visual-theme] :is(input, textarea, select):not(.palette-input, .picker-input):focus-visible,
|
|
310
|
-
:root[data-visual-theme] :is(
|
|
314
|
+
:root[data-visual-theme] :is([data-slot='select-trigger'], .record-picker-trigger):focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 0; border-color: var(--focus); }
|
|
311
315
|
:root[data-visual-theme] .metric-number { font-family: var(--mono); font-size: calc(29px * var(--type-k)); }
|
|
312
316
|
/* A New form's switch is not a field box: the field's height and corners squashed its track into a rounded square. */
|
|
313
|
-
:root[data-visual-theme] .insert-field :is(input:not(.picker-input, [role=switch]), textarea,
|
|
317
|
+
:root[data-visual-theme] .insert-field :is(input:not(.picker-input, [role=switch]), textarea,[data-slot='select-trigger'], .record-picker-trigger, .picker) { min-height: 36px; border-radius: var(--field-radius); }
|
|
314
318
|
:root[data-visual-theme] .insert-field label { color: var(--ink-muted); }
|
|
315
319
|
/* The navigation's colors dress the menu, under every bar recipe: the side menu, the phone's drawer and (below, in
|
|
316
320
|
the bar's own rules) a top bar's menu stand on nav.ground with their entries in nav.ink and their headings, counts
|
|
@@ -386,8 +390,8 @@
|
|
|
386
390
|
}
|
|
387
391
|
|
|
388
392
|
/* Only new preference controls and explicit Mono use unscoped rules. */
|
|
389
|
-
|
|
390
|
-
|
|
393
|
+
[data-slot='swatches'] { display: inline-flex; flex: none; gap: var(--space-1h); margin-right: var(--space-2); }
|
|
394
|
+
[data-slot='swatches'] > span { display: block; width: 9px; height: 14px; border: 1px solid #80808050; border-radius: min(2px, var(--radius)); }
|
|
391
395
|
/* The reader's Mono wins over a host look's data face (tokens.css). */
|
|
392
396
|
body.type-mono { --mono: var(--code); --data-face: var(--code); }
|
|
393
397
|
/* Code surfaces keep the code face; a textarea of prose (a description, a reason) keeps the interface's. */
|
|
@@ -405,13 +409,13 @@ body.type-mono { --mono: var(--code); --data-face: var(--code); }
|
|
|
405
409
|
filled ground and dim ink with no pointer; invalid is the danger edge beside
|
|
406
410
|
the written problem, and keeps the focus ring. Those two states are every
|
|
407
411
|
look's to honour, so they stand in structure.css. */
|
|
408
|
-
:root[data-visual-theme]
|
|
412
|
+
:root[data-visual-theme] [data-slot='select-trigger'] { background: var(--surface); }
|
|
409
413
|
/* A picker is one field: the box is `.picker`, which holds its chips and its
|
|
410
414
|
words, and the text box inside it draws no edge of its own — dressed as a
|
|
411
415
|
field itself it was a 36px box inside a 42px one (B03/N02). */
|
|
412
|
-
:root[data-visual-theme] :is(
|
|
413
|
-
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), textarea, select,
|
|
414
|
-
:root[data-visual-theme]
|
|
416
|
+
:root[data-visual-theme] :is([data-slot='dialog-content'][data-kind='modal'], .form-page, .insert-form, .command-field, .insert-field, .signin-form, .front-search-form, .account-profile-field, .confirm,[data-slot='field'])
|
|
417
|
+
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), textarea, select,[data-slot='select-trigger'], .picker, .record-picker-trigger),
|
|
418
|
+
:root[data-visual-theme] :is([data-slot='input'], [data-slot='textarea']) {
|
|
415
419
|
min-height: 36px; box-sizing: border-box; font-size: var(--text-md); font-family: var(--sans);
|
|
416
420
|
background: var(--surface); color: var(--ink);
|
|
417
421
|
border: 1px solid var(--line-control); border-radius: var(--field-radius, var(--radius));
|
|
@@ -419,26 +423,26 @@ body.type-mono { --mono: var(--code); --data-face: var(--code); }
|
|
|
419
423
|
/* A finger's 44px, as forms.css asks of every field on a coarse pointer: the rule above sits in a later layer than that
|
|
420
424
|
one and held the box at 36px on a phone (grade's small-target on the kit's own Search and TextField). */
|
|
421
425
|
@media (pointer: coarse) {
|
|
422
|
-
:root[data-visual-theme] :is(
|
|
423
|
-
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), select,
|
|
424
|
-
:root[data-visual-theme]
|
|
426
|
+
:root[data-visual-theme] :is([data-slot='dialog-content'][data-kind='modal'], .form-page, .insert-form, .command-field, .insert-field, .signin-form, .front-search-form, .account-profile-field, .confirm,[data-slot='field'])
|
|
427
|
+
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), select,[data-slot='select-trigger'], .record-picker-trigger),
|
|
428
|
+
:root[data-visual-theme] :is([data-slot='input'], [data-slot='textarea']):not(textarea) { min-height: max(36px, calc(44px / var(--density-zoom, 1))); }
|
|
425
429
|
}
|
|
426
430
|
/* One height whatever the family's own padding said: 7 + 20 + 7 and the edge
|
|
427
431
|
is 36px, so a text box, a date and a Select stand level in a row (a form
|
|
428
432
|
page's text box was 36px and its date 41px). */
|
|
429
|
-
:root[data-visual-theme] :is(
|
|
430
|
-
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), select,
|
|
431
|
-
:root[data-visual-theme]
|
|
432
|
-
:root[data-visual-theme] :is(
|
|
433
|
+
:root[data-visual-theme] :is([data-slot='dialog-content'][data-kind='modal'], .form-page, .insert-form, .command-field, .insert-field, .signin-form, .front-search-form, .account-profile-field, .confirm,[data-slot='field'])
|
|
434
|
+
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"], .picker-input), select,[data-slot='select-trigger'], .record-picker-trigger),
|
|
435
|
+
:root[data-visual-theme] :is([data-slot='input'], [data-slot='textarea']):not(textarea) { padding-block: 7px; padding-left: var(--space-3h); line-height: 20px; }
|
|
436
|
+
:root[data-visual-theme] :is([data-slot='dialog-content'][data-kind='modal'], .form-page, .insert-form, .command-field, .insert-field, .signin-form, .front-search-form, .account-profile-field, .confirm,[data-slot='field']) textarea { min-height: 72px; padding: var(--space-3) var(--space-3h); line-height: 1.45; }
|
|
433
437
|
:root[data-visual-theme] .picker { padding-block: var(--space-1); padding-left: var(--space-3); font-family: var(--sans); }
|
|
434
438
|
:root[data-visual-theme] .picker .picker-input { min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; font-size: var(--text-md); }
|
|
435
439
|
/* The ring is the picker's, around the whole field, since its text box has no edge to hold one. */
|
|
436
440
|
:root[data-visual-theme] .picker:focus-within { outline: var(--focus-width) solid var(--focus); outline-offset: 0; border-color: var(--focus); }
|
|
437
441
|
/* The compact field: a filter's, a dense row's — 30px, 13px words. */
|
|
438
|
-
:root[data-visual-theme]
|
|
439
|
-
:root[data-visual-theme]
|
|
440
|
-
:root[data-visual-theme]
|
|
442
|
+
:root[data-visual-theme] [data-slot='field'][data-size='compact'] :is(input:not([type="checkbox"], [type="radio"], .picker-input), select,[data-slot='select-trigger'], .picker,:is([data-slot='input'], [data-slot='textarea']):not(textarea)) { min-height: 30px; padding-block: var(--space-2); font-size: var(--text-base); }
|
|
443
|
+
:root[data-visual-theme] [data-slot='field'][data-size='compact'] .picker { padding-block: 1px; }
|
|
444
|
+
:root[data-visual-theme] [data-slot='field'][data-size='compact'] .picker .picker-input { font-size: var(--text-base); padding-block: 1px; }
|
|
441
445
|
/* A field's label is text in every look, 13px in the text ink: a dialog's were
|
|
442
446
|
11px in the faint ink beside a form's 13px (N04). */
|
|
443
|
-
:root[data-visual-theme]
|
|
447
|
+
:root[data-visual-theme] [data-slot='field-label'] { font-family: var(--sans); color: var(--ink); }
|
|
444
448
|
}
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
& .topbar { gap: var(--space-4); padding-block: var(--space-2h); background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
152
152
|
& body.write-mode .topbar { border-bottom-color: var(--status-critical); }
|
|
153
153
|
& .brand-name { font: 600 var(--text-md) var(--face-ui); letter-spacing: -0.01em; }
|
|
154
|
-
& .conn-picker
|
|
154
|
+
& .conn-picker [data-slot='select-trigger'] {
|
|
155
155
|
min-height: 28px; padding: 0 var(--space-3); border-color: transparent; background: none;
|
|
156
156
|
font: 500 var(--text-base) var(--face-ui); color: var(--ink);
|
|
157
157
|
}
|
|
158
|
-
& .conn-picker
|
|
158
|
+
& .conn-picker [data-slot='select-trigger']:hover { background: var(--raised); } /* motion-ok: colour only, at the hover token */
|
|
159
159
|
& .conn-manage { color: var(--ink-subtle); }
|
|
160
160
|
& #query {
|
|
161
161
|
font-size: var(--text-base); line-height: 1.4; padding-block: var(--space-2h); border-radius: var(--radius);
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
& .tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
|
|
203
203
|
& .applist-filterbar { gap: var(--space-3); }
|
|
204
204
|
& .applist-field-label { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
205
|
-
& .applist-quick, & .applist-field
|
|
205
|
+
& .applist-quick, & .applist-field [data-slot='select-trigger'], & .picker-input, & .conn-filter, & .cell-edit, & .edit-field-surface :is(input, select, textarea) {
|
|
206
206
|
border-radius: var(--radius); font-family: var(--face-ui);
|
|
207
207
|
}
|
|
208
208
|
& .applist-go { font: 500 var(--text-base) var(--face-ui); }
|
|
@@ -307,18 +307,18 @@
|
|
|
307
307
|
|
|
308
308
|
/* ---------- popups: one hairline, one radius step, one soft shadow ---------- */
|
|
309
309
|
|
|
310
|
-
& :is(.th-menu, .more-list,
|
|
310
|
+
& :is(.th-menu, .more-list,[data-slot='select-content'], .ac, .palette, .history-panel) {
|
|
311
311
|
background: var(--surface); border: 1px solid var(--pop-line); border-radius: var(--radius-pop); box-shadow: var(--shadow-pop);
|
|
312
312
|
}
|
|
313
|
-
& :is(.th-menu-item, .more-item,
|
|
313
|
+
& :is(.th-menu-item, .more-item,:is([data-slot='select-item'], [data-slot='menu-item']), .ac-item, .palette-item) { border-radius: var(--radius-item); }
|
|
314
314
|
/* motion-ok: colour only, the highlight a pointer or the keyboard moves */
|
|
315
|
-
& :is(.th-menu-item, .more-item,
|
|
316
|
-
& :is(.th-menu-item, .more-item,
|
|
315
|
+
& :is(.th-menu-item, .more-item,:is([data-slot='select-item'], [data-slot='menu-item']), .ac-item):hover,
|
|
316
|
+
& :is(.th-menu-item, .more-item,:is([data-slot='select-item'], [data-slot='menu-item']))[data-highlighted],
|
|
317
317
|
& .ac-item.active { background: var(--raised); } /* motion-ok: colour only */
|
|
318
|
-
& :is(.th-menu-label, .more-item, .more-label,
|
|
319
|
-
& :is(.th-menu-cond, .more-detail,
|
|
318
|
+
& :is(.th-menu-label, .more-item, .more-label,[data-slot='option-label']) { font: var(--text-base) var(--face-ui); color: var(--ink); }
|
|
319
|
+
& :is(.th-menu-cond, .more-detail,[data-slot='option-detail']) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
320
320
|
& .more-group-label { font: 600 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
321
|
-
& .th-menu-sep, &
|
|
321
|
+
& .th-menu-sep, & :is([data-slot='select-separator'], [data-slot='menu-separator']) { background: var(--line); }
|
|
322
322
|
& .ac-label { font: var(--text-base) var(--code); }
|
|
323
323
|
& .ac-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
324
324
|
|
|
@@ -330,8 +330,8 @@
|
|
|
330
330
|
& .palette-kind { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
331
331
|
& .palette-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
332
332
|
|
|
333
|
-
&
|
|
334
|
-
&
|
|
333
|
+
& [data-slot='dialog-content'][data-kind='modal'] { border: 1px solid var(--pop-line); border-radius: var(--radius-dialog); box-shadow: var(--shadow-modal); background: var(--surface); }
|
|
334
|
+
& [data-slot='dialog-content'][data-kind='modal'] :is(h2, h3) { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
|
|
335
335
|
& .confirm-diff { font: var(--text-base) var(--face-ui); }
|
|
336
336
|
& .confirm-diff td { font-family: var(--figures); }
|
|
337
337
|
& .toast {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
a list's New and a dashboard's action are, re-pointed as a form's one action is (features.css): a button reads
|
|
11
11
|
`--accent`, which an App's own `ui.theme.accent` is worn over, so a record's first action was the App's blue
|
|
12
12
|
with paper words beside an orange New. */
|
|
13
|
-
:root[data-look-buttons='keyed'] .app-mode
|
|
13
|
+
:root[data-look-buttons='keyed'] .app-mode [data-slot='button'][data-variant='solid'] {
|
|
14
14
|
--accent: var(--primary);
|
|
15
15
|
--on-accent: var(--on-primary);
|
|
16
16
|
border: 1px solid var(--ink);
|
|
17
17
|
}
|
|
18
|
-
:root[data-look-buttons='keyed'] .app-mode
|
|
18
|
+
:root[data-look-buttons='keyed'] .app-mode [data-slot='button']:not([data-variant]) {
|
|
19
19
|
border-color: var(--ink);
|
|
20
20
|
}
|
|
21
21
|
/* 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
|
|
@@ -75,13 +75,8 @@
|
|
|
75
75
|
capitals; this takes that back where the worn theme's label role is in sentence case, as Workshop's is (and a
|
|
76
76
|
theme on its base inherits). Keyed on the role, not the family's name, which no selector reads
|
|
77
77
|
(test/theme-recipes.test.ts): a theme that wears a Workshop recipe and no label of its own keeps the capitals. */
|
|
78
|
-
: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
|
|
78
|
+
: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 [data-slot='select-value']) {
|
|
79
79
|
text-transform: none;
|
|
80
80
|
letter-spacing: 0;
|
|
81
81
|
}
|
|
82
|
-
/* `filters: 'solid'`: a filter not yet asked for is a key on a solid edge, as the search beside it is, not a dashed
|
|
83
|
-
place; its colors, at rest and under a pointer, stay the filter bar's own (ListFilterBar.css). */
|
|
84
|
-
:root[data-look-filters='solid'] .app-mode .applist-add {
|
|
85
|
-
border-style: solid;
|
|
86
|
-
}
|
|
87
82
|
}
|
package/dist/vite.d.ts
CHANGED
|
@@ -52,25 +52,6 @@ export declare function shellMain(main: string): Plugin;
|
|
|
52
52
|
* devtoolsEventClient.js says why). From source the real one stays, for whoever runs the devtools.
|
|
53
53
|
*/
|
|
54
54
|
export declare function noDevtoolsClient(): Plugin;
|
|
55
|
-
/**
|
|
56
|
-
* The client in surfaces: a chunk for each kind of first page, and the first page is the entry and one surface,
|
|
57
|
-
* fetched together.
|
|
58
|
-
*
|
|
59
|
-
* It was one chunk, everything the entry reached, and so a sign-in screen ran a fifth of what it downloaded and an App
|
|
60
|
-
* page a third: the Workbench, a tenant's flows and the public pages rode along in every one. Boot is in parts now
|
|
61
|
-
* (the kit's boot.js says which), and each product's build gives each module to one:
|
|
62
|
-
*
|
|
63
|
-
* index the entry's own graph, and whatever the product lists beside it (`index`): the App framework's main,
|
|
64
|
-
* which every App page runs before anything else;
|
|
65
|
-
* surfaces in the order given, each takes what it reaches that no earlier part has (`surfaces`), except what two
|
|
66
|
-
* of them both reach where the product says that is the entry's (`sharedWithEntry`): an App's shell
|
|
67
|
-
* and its public pages, both first pages, so neither fetches a third chunk they share.
|
|
68
|
-
*
|
|
69
|
-
* Reachability is read once, from the finished module graph, over static imports only: a part loaded on demand
|
|
70
|
-
* (components/onDemand.tsx) stays a chunk of its own, as it always was. The server names a path's surface in the page
|
|
71
|
-
* it sends (the engine's server/clientSurface.ts, with `surfacePages` below), so the entry and its surface download
|
|
72
|
-
* at once.
|
|
73
|
-
*/
|
|
74
55
|
interface Surfaces {
|
|
75
56
|
/** Modules the entry's chunk holds beside the entry's own graph, by path. */
|
|
76
57
|
index?: readonly string[];
|
|
@@ -83,7 +64,7 @@ interface Surfaces {
|
|
|
83
64
|
* The maps keep our own sources and drop the libraries'.
|
|
84
65
|
*
|
|
85
66
|
* The maps ship with their sources inside so a person debugging an installed copy can read the code a trace lands in
|
|
86
|
-
* — and that is ours: React's, TanStack's and
|
|
67
|
+
* — and that is ours: React's, TanStack's and UI SDK's sources are published in their own packages, and were a
|
|
87
68
|
* quarter of the package's bytes (1.9 MB of the maps' 7.9). A frame in a library still maps to its file and line;
|
|
88
69
|
* devtools shows the file's name and asks for its text. Ours is ours wherever it was installed from: a product built
|
|
89
70
|
* over the published kit keeps the kit's modules too. Rewritten on disk after the write, because a map is neither
|
package/dist/vite.js
CHANGED
|
@@ -77,6 +77,34 @@ export function noDevtoolsClient() {
|
|
|
77
77
|
resolveId: (source) => (source === '@tanstack/devtools-event-client' ? silent : null),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* The client in surfaces: a chunk for each kind of first page, and the first page is the entry and one surface,
|
|
82
|
+
* fetched together.
|
|
83
|
+
*
|
|
84
|
+
* It was one chunk, everything the entry reached, and so a sign-in screen ran a fifth of what it downloaded and an App
|
|
85
|
+
* page a third: the Workbench, a tenant's flows and the public pages rode along in every one. Boot is in parts now
|
|
86
|
+
* (the kit's boot.js says which), and each product's build gives each module to one:
|
|
87
|
+
*
|
|
88
|
+
* index the entry's own graph, and whatever the product lists beside it (`index`): the App framework's main,
|
|
89
|
+
* which every App page runs before anything else;
|
|
90
|
+
* surfaces in the order given, each takes what it reaches that no earlier part has (`surfaces`), except what two
|
|
91
|
+
* of them both reach where the product says that is the entry's (`sharedWithEntry`): an App's shell
|
|
92
|
+
* and its public pages, both first pages, so neither fetches a third chunk they share.
|
|
93
|
+
*
|
|
94
|
+
* Reachability is read once, from the finished module graph, over static imports only: a part loaded on demand
|
|
95
|
+
* (components/onDemand.tsx) stays a chunk of its own, as it always was. The server names a path's surface in the page
|
|
96
|
+
* it sends (the engine's server/clientSurface.ts, with `surfacePages` below), so the entry and its surface download
|
|
97
|
+
* at once.
|
|
98
|
+
*
|
|
99
|
+
* A barrel is not followed (`BARRELS`). UI SDK's React parts all import one module of its core, `renderer.js`, which
|
|
100
|
+
* re-exports a little of a dozen families, and a primitive of our own is defined from its `index.js`, which
|
|
101
|
+
* re-exports all of it: followed, they made the menu's code the entry's, because the entry draws a button, and then
|
|
102
|
+
* the drag and drop under the behaviors, which only a component fetched on demand uses. A family is given to
|
|
103
|
+
* whoever imports the family. What only a barrel reaches is given to no part here: the bundler places it with
|
|
104
|
+
* whatever uses it, which is the entry where the entry does and the part fetched on demand where only that does.
|
|
105
|
+
*/
|
|
106
|
+
const BARRELS = [/\/node_modules\/@ui-sdk\/core\/dist\/(?:renderer|index)\.js$/];
|
|
107
|
+
const barrel = (id) => BARRELS.some((one) => one.test(id));
|
|
80
108
|
function surfaces({ index = [], surfaces: parts, sharedWithEntry = [] }) {
|
|
81
109
|
const names = Object.keys(parts);
|
|
82
110
|
const home = new Map();
|
|
@@ -93,7 +121,8 @@ function surfaces({ index = [], surfaces: parts, sharedWithEntry = [] }) {
|
|
|
93
121
|
if (seen.has(id) || stop.has(id))
|
|
94
122
|
continue;
|
|
95
123
|
seen.add(id);
|
|
96
|
-
|
|
124
|
+
if (!barrel(id))
|
|
125
|
+
pending.push(...(this.getModuleInfo(id)?.importedIds ?? []));
|
|
97
126
|
}
|
|
98
127
|
return seen;
|
|
99
128
|
};
|
|
@@ -102,7 +131,8 @@ function surfaces({ index = [], surfaces: parts, sharedWithEntry = [] }) {
|
|
|
102
131
|
this.error(`The ${name} surface's module, ${file}, is not in the build.`);
|
|
103
132
|
return file;
|
|
104
133
|
});
|
|
105
|
-
const
|
|
134
|
+
const entryRoots = [...ids.filter((id) => this.getModuleInfo(id)?.isEntry), ...rooted('index', index)];
|
|
135
|
+
const entry = reach(entryRoots);
|
|
106
136
|
const from = new Map(Object.entries(parts).map(([name, files]) => [name, reach(rooted(name, files), entry)]));
|
|
107
137
|
home.clear();
|
|
108
138
|
for (const id of entry)
|
|
@@ -235,7 +265,7 @@ function precompress(outDir) {
|
|
|
235
265
|
* The maps keep our own sources and drop the libraries'.
|
|
236
266
|
*
|
|
237
267
|
* The maps ship with their sources inside so a person debugging an installed copy can read the code a trace lands in
|
|
238
|
-
* — and that is ours: React's, TanStack's and
|
|
268
|
+
* — and that is ours: React's, TanStack's and UI SDK's sources are published in their own packages, and were a
|
|
239
269
|
* quarter of the package's bytes (1.9 MB of the maps' 7.9). A frame in a library still maps to its file and line;
|
|
240
270
|
* devtools shows the file's name and asks for its text. Ours is ours wherever it was installed from: a product built
|
|
241
271
|
* over the published kit keeps the kit's modules too. Rewritten on disk after the write, because a map is neither
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/kit",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.59",
|
|
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": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"./client/requestIdentity.js": "./dist/client/requestIdentity.js",
|
|
67
67
|
"./client/resourceRequests.js": "./dist/client/resourceRequests.js",
|
|
68
68
|
"./client/savedPages.js": "./dist/client/savedPages.js",
|
|
69
|
+
"./client/audience.js": "./dist/client/audience.js",
|
|
69
70
|
"./client/sessionIdentity.js": "./dist/client/sessionIdentity.js",
|
|
70
71
|
"./client/shellHost.js": "./dist/client/shellHost.js",
|
|
71
72
|
"./client/shellMode.js": "./dist/client/shellMode.js",
|
|
@@ -83,13 +84,12 @@
|
|
|
83
84
|
"./package.json": "./package.json"
|
|
84
85
|
},
|
|
85
86
|
"dependencies": {
|
|
86
|
-
"@mistriwork/engine": "1.0.0-rc.
|
|
87
|
-
"@mistriwork/ui": "1.0.0-rc.
|
|
87
|
+
"@mistriwork/engine": "1.0.0-rc.59",
|
|
88
|
+
"@mistriwork/ui": "1.0.0-rc.59",
|
|
88
89
|
"intl-messageformat": "12.1.2",
|
|
89
90
|
"qrcode-generator": "^2.0.4"
|
|
90
91
|
},
|
|
91
92
|
"peerDependencies": {
|
|
92
|
-
"@base-ui/react": "^1.8.0",
|
|
93
93
|
"@tanstack/react-form": "^1.33.5",
|
|
94
94
|
"@tanstack/react-query": "^5.102.8",
|
|
95
95
|
"@tanstack/react-table": "^9.2.4",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"@tiptap/react": "^3.31.4",
|
|
105
105
|
"@tiptap/starter-kit": "^3.31.4",
|
|
106
106
|
"@tiptap/suggestion": "^3.31.4",
|
|
107
|
+
"@ui-sdk/react": "0.1.0-beta.2",
|
|
107
108
|
"@vitejs/plugin-react": "^6.1.1",
|
|
108
109
|
"react": "^19.2.0",
|
|
109
110
|
"react-dom": "^19.2.0",
|
|
@@ -111,9 +112,6 @@
|
|
|
111
112
|
"vite": "^8.2.4"
|
|
112
113
|
},
|
|
113
114
|
"peerDependenciesMeta": {
|
|
114
|
-
"@base-ui/react": {
|
|
115
|
-
"optional": true
|
|
116
|
-
},
|
|
117
115
|
"@tanstack/react-form": {
|
|
118
116
|
"optional": true
|
|
119
117
|
},
|
|
@@ -156,6 +154,9 @@
|
|
|
156
154
|
"@tiptap/suggestion": {
|
|
157
155
|
"optional": true
|
|
158
156
|
},
|
|
157
|
+
"@ui-sdk/react": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
159
160
|
"@vitejs/plugin-react": {
|
|
160
161
|
"optional": true
|
|
161
162
|
},
|