@mistriwork/kit 1.0.0-rc.75 → 1.0.0-rc.77
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/brandLook.css +1 -1
- package/dist/client/components/AppList.js +11 -22
- package/dist/client/components/CardsList.js +2 -1
- package/dist/client/components/FilterTabs.d.ts +53 -0
- package/dist/client/components/FilterTabs.js +23 -0
- package/dist/client/components/PageFields.js +4 -1
- package/dist/client/components/dashboardModel.d.ts +4 -0
- package/dist/client/features.css +1 -1
- package/dist/client/lumenLook.css +2 -2
- package/dist/client/sageLook.css +1 -1
- package/dist/client/structure.css +7 -0
- package/dist/client/style.css +1 -1
- package/dist/client/themeFamilies.css +3 -3
- package/dist/client/tilesLook.css +2 -2
- package/dist/client/visualThemes.css +1 -1
- package/package.json +3 -3
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
:root[data-look-table='banded'] .table-wrap tbody tr:nth-child(even):hover td {
|
|
136
136
|
background: color-mix(in srgb, var(--ink) 6%, var(--band, var(--raised)));
|
|
137
137
|
}
|
|
138
|
-
:root[data-look-tabs='rule'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] {
|
|
138
|
+
:root[data-look-tabs='rule'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true']) {
|
|
139
139
|
background: none;
|
|
140
140
|
color: var(--ink);
|
|
141
141
|
border-radius: 0;
|
|
@@ -59,7 +59,7 @@ function oneValue(tail) {
|
|
|
59
59
|
}
|
|
60
60
|
import { useConditionWords } from './useConditionWords.js';
|
|
61
61
|
import { message } from '../messages.js';
|
|
62
|
-
import {
|
|
62
|
+
import { FilterTabs, TabCount } from './FilterTabs.js';
|
|
63
63
|
import { DropGroup, DropItem, DropMenu } from '@mistriwork/ui/DropMenu.js';
|
|
64
64
|
import { FilterRail, FilterSheet } from './FilterRail.js';
|
|
65
65
|
import { clearFacets, facetActive } from './filterRailModel.js';
|
|
@@ -148,13 +148,6 @@ function knownCounts(client) {
|
|
|
148
148
|
lastKnown = known;
|
|
149
149
|
return known;
|
|
150
150
|
}
|
|
151
|
-
/** A tab's badge: its count from the batch, or the grid's own total when the tab is the one on screen. */
|
|
152
|
-
function TabCount({ counted }) {
|
|
153
|
-
// null is a current result with no count, not permission to show an older one.
|
|
154
|
-
const said = counted == null ? '' : `${formatNumber(counted.total)}${counted.capped ? '+' : ''}`;
|
|
155
|
-
/* The number in a box of its own, over the room a tab keeps for it (features.css). */
|
|
156
|
-
return _jsx("span", { className: "tab-count", children: said && _jsx("span", { children: said }) });
|
|
157
|
-
}
|
|
158
151
|
/* The switch's width where a list has drawn one, by the list's table: a list is made again on a change of tab, and
|
|
159
152
|
the room it held would be forgotten with it. */
|
|
160
153
|
const switchRoom = new Map();
|
|
@@ -282,15 +275,6 @@ export function AppList({ entry, spec, navigate, embedded = false, newButton, in
|
|
|
282
275
|
const store = saved.store;
|
|
283
276
|
const savable = !inDashboard && (store === 'shared' || store === 'account');
|
|
284
277
|
const yourLit = yours.findIndex((f) => canonicalize(f.query) === canonicalize(refinement));
|
|
285
|
-
/* The strip fits its row (useTabFold.ts): the list's tabs by their place, then the saved views' heading, then each
|
|
286
|
-
saved view; what does not fit is under More, and the lit one never is. */
|
|
287
|
-
const savedAt = tabs.length + 1;
|
|
288
|
-
const { strip: tabStrip, folded } = useTabFold(tabs.length + (yours.length ? yours.length + 1 : 0), yourLit === -1 ? litTab : savedAt + yourLit);
|
|
289
|
-
const foldMark = (at) => ({
|
|
290
|
-
'data-fold': at,
|
|
291
|
-
'data-folded': folded.has(at) ? '' : undefined,
|
|
292
|
-
'aria-hidden': folded.has(at) || undefined,
|
|
293
|
-
});
|
|
294
278
|
const writeViews = useMutation({
|
|
295
279
|
mutationFn: (change) => writeSavedViews(client, viewKey, change),
|
|
296
280
|
onError: (err) => toast(err.message, 'error'),
|
|
@@ -753,15 +737,20 @@ export function AppList({ entry, spec, navigate, embedded = false, newButton, in
|
|
|
753
737
|
const headTo = ownList && spec.link ? openLink?.(spec.link.view, 'reset', { tab: spec.link.tab }) : undefined;
|
|
754
738
|
const headLink = headTo && spec.link ? (_jsx("a", { className: "applist-link", ...headTo, children: spec.link.label })) : null;
|
|
755
739
|
return (_jsxs(_Fragment, { children: [boundNames.map((name) => (_jsx(DefinedBoxes, { column: name, binding: bound[name], per: bound[name].per ? oneValue(conditionTail(refinement, bound[name].per)) : undefined, onBoxes: onDefinedBoxes }, name))), inBar && createPortal(title, crumbs.note), inBar &&
|
|
756
|
-
createPortal(_jsxs(_Fragment, { children: [headLink, viewsMenu, pageVerbs] }), crumbs.tools), _jsxs("div", { className: `applist-head${inBar ? ' in-crumbs' : ''}`, children: [!inBar && !inDashboard && (_jsxs("div", { className: "applist-head-row", ref: head, children: [title, ownList ? (_jsxs("div", { className: "applist-head-tools", children: [headLink, viewsMenu, _jsx("span", { className: "applist-head-slot", ref: listHeadRef }), pageVerbs] })) : (pageVerbs)] })), !beside && !chipsInBar && _jsx("div", { className: "applist-chips", children: chipList })] }), summary, _jsxs("div", { className: "applist-controls", role: "group", "aria-label": say('listControls', { caption }), children: [(tabs.length > 1 || yours.length > 0) && (
|
|
740
|
+
createPortal(_jsxs(_Fragment, { children: [headLink, viewsMenu, pageVerbs] }), crumbs.tools), _jsxs("div", { className: `applist-head${inBar ? ' in-crumbs' : ''}`, children: [!inBar && !inDashboard && (_jsxs("div", { className: "applist-head-row", ref: head, children: [title, ownList ? (_jsxs("div", { className: "applist-head-tools", children: [headLink, viewsMenu, _jsx("span", { className: "applist-head-slot", ref: listHeadRef }), pageVerbs] })) : (pageVerbs)] })), !beside && !chipsInBar && _jsx("div", { className: "applist-chips", children: chipList })] }), summary, _jsxs("div", { className: "applist-controls", role: "group", "aria-label": say('listControls', { caption }), children: [(tabs.length > 1 || yours.length > 0) && (_jsx(FilterTabs, { tabs: tabs.map((tab, i) => ({ key: tab.label, label: tab.label, count: countOf(i) })), lit: yourLit === -1 ? litTab : -1, onPick: pickTab, extra: {
|
|
741
|
+
count: yours.length ? yours.length + 1 : 0,
|
|
742
|
+
lit: yourLit === -1 ? -1 : 1 + yourLit,
|
|
743
|
+
row: (foldMark) => (_jsxs(_Fragment, { children: [yours.length > 0 && (_jsxs("span", { className: "tab-group", ...foldMark(0), "aria-hidden": "true", children: [tabs.length > 1 && _jsx("span", { className: "tab-divider" }), _jsx("span", { className: "tab-group-label", children: store === 'account' ? say('myViews') : say('savedViews') })] })), yours.map((f, i) => (_jsxs("span", { className: "tab-wrap", role: "presentation", ...foldMark(1 + i), children: [_jsxs("button", { type: "button", role: "tab", className: "tab tab-yours", "aria-selected": i === yourLit, title: `${viewWords(f.query) || say('everything')} — ${store === 'account' ? say('yourView') : say('aSavedView')}`, onClick: () => {
|
|
757
744
|
if (i !== yourLit) {
|
|
758
745
|
state.page = 0;
|
|
759
746
|
apply(f.query);
|
|
760
747
|
}
|
|
761
|
-
}, children: [_jsx("span", { children: f.name }), _jsx(TabCount, { counted: tabCounts?.get(squeeze(`${entry.table} ${f.query}`)) })] }), savable && (_jsx("button", { type: "button", className: "tab-x", title: say('common.removeName', { name: f.name }), "aria-label": say('removeTheView', { name: f.name }), onClick: () => writeViews.mutate((views) => withoutView(views, f.name)), children: "\u00D7" }))] }, f.name)))] })
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
748
|
+
}, children: [_jsx("span", { children: f.name }), _jsx(TabCount, { counted: tabCounts?.get(squeeze(`${entry.table} ${f.query}`)) })] }), savable && (_jsx("button", { type: "button", className: "tab-x", title: say('common.removeName', { name: f.name }), "aria-label": say('removeTheView', { name: f.name }), onClick: () => writeViews.mutate((views) => withoutView(views, f.name)), children: "\u00D7" }))] }, f.name)))] })),
|
|
749
|
+
more: (folded) => yours.some((_, i) => folded(1 + i)) && (_jsx(DropGroup, { labelClassName: "more-group-label", label: store === 'account' ? say('myViews') : say('savedViews'), children: yours.map((f, i) => folded(1 + i) ? (_jsx(DropItem, { className: "page-actions-item", onClick: () => {
|
|
750
|
+
state.page = 0;
|
|
751
|
+
apply(f.query);
|
|
752
|
+
}, children: f.name }, f.name)) : null) })),
|
|
753
|
+
} })), spec.filterBar !== 'none' && (_jsxs("form", { className: "applist-filterbar", ref: form, onSubmit: submit, children: [_jsxs("div", { className: "applist-fields", children: [chipsInBar && table && (_jsx(ListFilterBar, { table: table, boxes: boxes, search: searchBox, refinement: refinement, tabQuery: tabQuery, standing: spec.query ?? '', unitOf: unitOf, typed: searchBox ? edits[searchBox.column]?.raw : undefined, onType: (raw) => {
|
|
765
754
|
if (!searchBox)
|
|
766
755
|
return;
|
|
767
756
|
/* Now, not on the next paint: the search field's own × asks in the same event. */
|
|
@@ -201,7 +201,8 @@ export function CardsList({ table, rows, spec, interactive = true, recordNavigat
|
|
|
201
201
|
const mark = (dressed?.kind === 'tone' || dressed?.kind === 'mark') && dressed.icon
|
|
202
202
|
? { name: dressed.icon, label: dressed.label, tone: dressed.kind === 'tone' ? dressed.tone : undefined }
|
|
203
203
|
: null;
|
|
204
|
-
|
|
204
|
+
/* A badge on the title's own column (a vocabulary word titling the card) would say the title twice. */
|
|
205
|
+
const badge = spec.badge && spec.badge !== spec.primary && row[spec.badge] != null && row[spec.badge] !== '' ? (_jsx("span", { className: "cards-badge", children: said(row, spec.badge) })) : null;
|
|
205
206
|
return (_jsx("li", { className: "cards-item", ...(win.windowed ? { 'data-index': win.lineOf(index), ref: win.measure } : {}), ...(id ? ordering.item(id) : {}), onKeyDown: id ? (event) => ordering.keyDown(event, id) : undefined, children: _jsxs("article", { className: `cards-card${hasMedia ? ' has-media' : ''}${avatar ? ' cards-profile' : ''}${changedRows.has(row) ? ` row-changed-${changedRows.get(row)}` : ''}`, children: [hasMedia && _jsx(CardPicture, { src: src, avatar: avatar, title: title, first: index < FIRST_ROW }), id && ordering.menu(id), _jsxs("div", { className: "cards-body", children: [tile && (_jsx("span", { className: `cards-tile${mark?.tone ? ` tone-${mark.tone}` : ''}`, children: mark && _jsx(Icon, { name: mark.name, label: mark.label, size: 22 }) })), _jsxs("h3", { className: "cards-title", children: [mark && !tile && _jsx(Icon, { name: mark.name, label: mark.label, className: "cards-icon" }), canOpen && key ? (_jsx("button", { type: "button", className: "cards-open", "data-order-focus": "", "aria-keyshortcuts": ordering.shortcuts, "data-opens": opensRecord(table.id, key), onClick: () => void openRecord(table.id, key, title, 'push', { records, list }), children: title })) : (_jsx("span", { children: title }))] }), titleSecond !== undefined && _jsx("p", { className: "cards-subtitle", children: titleSecond }), description !== undefined && (_jsx("p", { className: "cards-description", title: description, children: description })), (!hasMedia || avatar) && badge, spec.value && spec.value !== spec.primary && row[spec.value] != null && (_jsx("p", { className: "cards-value", children: saidWithSecond(row, spec.value) })), summary?.some((name) => present(row, name)) ? (_jsx("p", { className: "cards-summary", children: summary.filter((name) => present(row, name)).map((name) => fact(row, name, 'cards-summary-item')) })) : null, lines?.length ? (_jsx("dl", { className: "cards-facts", children: lines.map((name) => (_jsxs("div", { className: "cards-fact", children: [_jsx("dt", { children: caption(name) }), _jsx("dd", { children: saidWithSecond(row, name) })] }, name))) })) : null] }), footer?.length ? (_jsx("p", { className: "cards-foot", children: footer.some((name) => present(row, name))
|
|
206
207
|
? footer.filter((name) => present(row, name)).map((name) => fact(row, name, 'cards-foot-item'))
|
|
207
208
|
: '\u00a0' })) : null, hasMedia && !avatar && badge] }) }, key ? JSON.stringify(key) : index));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A row of filter tabs with counts, folding what does not fit under More (useTabFold.ts): the generated list's tabs
|
|
3
|
+
* (AppList.tsx) and a page's counted `<Choose>` (sdk/paramControls.tsx) are this one row, so a look that dresses one
|
|
4
|
+
* dresses both.
|
|
5
|
+
*
|
|
6
|
+
* Two semantics over one markup. The list's tabs are a `tablist` that switches what the list below shows; a page's
|
|
7
|
+
* Choose is a group of toggle buttons (`aria-pressed`) that set a param, named by the page, each named with its count
|
|
8
|
+
* ("Working, 12") so a screen reader hears the number it sees. The lit dress keys on either state (style.css).
|
|
9
|
+
*/
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/** A tab's count: the total, and whether it is a floor ("10,000+"). */
|
|
12
|
+
export interface Counted {
|
|
13
|
+
total: number;
|
|
14
|
+
capped: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const sayCount: (counted: Counted) => string;
|
|
17
|
+
/** A tab's badge. `null` is a current result with no count, not permission to show an older one. */
|
|
18
|
+
export declare function TabCount({ counted }: {
|
|
19
|
+
counted?: Counted | null;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
interface FilterTab {
|
|
22
|
+
key: string;
|
|
23
|
+
label: string;
|
|
24
|
+
count?: Counted | null;
|
|
25
|
+
}
|
|
26
|
+
/** What the fold marks an item with: its place in the strip, and whether it is folded under More. */
|
|
27
|
+
type FoldMark = (at: number) => {
|
|
28
|
+
'data-fold': number;
|
|
29
|
+
'data-folded': '' | undefined;
|
|
30
|
+
'aria-hidden': true | undefined;
|
|
31
|
+
};
|
|
32
|
+
interface FilterTabsProps {
|
|
33
|
+
tabs: readonly FilterTab[];
|
|
34
|
+
/** The lit tab's index, -1 for none (a saved view may be the lit one). */
|
|
35
|
+
lit: number;
|
|
36
|
+
onPick(index: number): void;
|
|
37
|
+
/** `tablist` for tabs that switch a view; `group` for a control's toggle buttons, which `name` names. */
|
|
38
|
+
semantics?: 'tablist' | 'group';
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* More items after the tabs, in the same fold (a list's saved views): how many, which of them is lit (-1 for none),
|
|
42
|
+
* what the row draws for them with their fold marks (counted from 0 after the tabs), and what More lists for the
|
|
43
|
+
* folded ones.
|
|
44
|
+
*/
|
|
45
|
+
extra?: {
|
|
46
|
+
count: number;
|
|
47
|
+
lit: number;
|
|
48
|
+
row(mark: FoldMark): ReactNode;
|
|
49
|
+
more(folded: (at: number) => boolean): ReactNode;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare function FilterTabs({ tabs, lit, onPick, semantics, name, extra }: FilterTabsProps): import("react").JSX.Element;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { DropItem, DropMenu } from '@mistriwork/ui/DropMenu.js';
|
|
3
|
+
import { formatNumber } from '../locale.js';
|
|
4
|
+
import { message } from '../messages.js';
|
|
5
|
+
import { useTabFold } from './useTabFold.js';
|
|
6
|
+
export const sayCount = (counted) => `${formatNumber(counted.total)}${counted.capped ? '+' : ''}`;
|
|
7
|
+
/** A tab's badge. `null` is a current result with no count, not permission to show an older one. */
|
|
8
|
+
export function TabCount({ counted }) {
|
|
9
|
+
const said = counted == null ? '' : sayCount(counted);
|
|
10
|
+
/* The number in a box of its own, over the room a tab keeps for it (features.css). */
|
|
11
|
+
return _jsx("span", { className: "tab-count", children: said && _jsx("span", { children: said }) });
|
|
12
|
+
}
|
|
13
|
+
export function FilterTabs({ tabs, lit, onPick, semantics = 'tablist', name, extra }) {
|
|
14
|
+
const after = tabs.length;
|
|
15
|
+
const { strip, folded } = useTabFold(after + (extra?.count ?? 0), extra && extra.lit !== -1 ? after + extra.lit : lit);
|
|
16
|
+
const foldMark = (at) => ({
|
|
17
|
+
'data-fold': at,
|
|
18
|
+
'data-folded': folded.has(at) ? '' : undefined,
|
|
19
|
+
'aria-hidden': folded.has(at) || undefined,
|
|
20
|
+
});
|
|
21
|
+
const group = semantics === 'group';
|
|
22
|
+
return (_jsxs("div", { className: "tabs folds", ref: strip, children: [_jsxs("div", { className: "tabs-row", ...(group ? { role: 'group', 'aria-label': name } : { role: 'tablist' }), children: [tabs.map((tab, i) => (_jsxs("button", { type: "button", role: group ? undefined : 'tab', className: "tab", "aria-selected": group ? undefined : i === lit, "aria-pressed": group ? i === lit : undefined, "aria-label": group && tab.count != null ? `${tab.label}, ${sayCount(tab.count)}` : undefined, onClick: () => onPick(i), ...foldMark(i), children: [_jsx("span", { children: tab.label }), _jsx(TabCount, { counted: tab.count })] }, tab.key))), extra?.row((at) => foldMark(after + at))] }), _jsx("div", { className: "tab-more", "data-fold-more": "", "data-folded": folded.size ? undefined : '', "aria-hidden": !folded.size || undefined, children: _jsxs(DropMenu, { className: "tab-more-menu", triggerClassName: "tab", label: message('common.more'), popupClassName: "page-actions-popup", align: "end", children: [tabs.map((tab, i) => folded.has(i) ? (_jsxs(DropItem, { className: "page-actions-item", onClick: () => onPick(i), children: [_jsx("span", { children: tab.label }), _jsx(TabCount, { counted: tab.count })] }, tab.key)) : null), extra?.more((at) => folded.has(after + at))] }) })] }));
|
|
23
|
+
}
|
|
@@ -338,6 +338,9 @@ export function FieldsSection({ page, section, index, base, recordKey: key, fold
|
|
|
338
338
|
in a <div> had no list for assistive technology to announce. */
|
|
339
339
|
/* An inferred page's form is the classic one (structure.css); a rail an author placed keeps its own dress. */
|
|
340
340
|
const classic = inferredForm;
|
|
341
|
-
const grid = rail ? (_jsx("dl", { className: classic ? 'page-properties page-classic' : 'page-properties', style: columns ? { '--page-properties-columns': String(columns) } : undefined, children: fields })) : (_jsx("dl", {
|
|
341
|
+
const grid = rail ? (_jsx("dl", { className: classic ? 'page-properties page-classic' : 'page-properties', style: columns ? { '--page-properties-columns': String(columns) } : undefined, children: fields })) : (_jsx("dl", {
|
|
342
|
+
/* Read-only, it is the kit's `Details` (sdk/kit.tsx) and shares its class, so a look dresses both; a grid with
|
|
343
|
+
fields open for editing is the form's alone. */
|
|
344
|
+
className: `page-field-grid${presentation === 'summary' ? ' page-field-summary' : ''}${editing ? '' : ' kit-details'}`, "data-columns": columns, style: columns ? { '--page-field-columns': `repeat(${columns}, minmax(0, 1fr))` } : undefined, children: fields }));
|
|
342
345
|
return (_jsx(SectionBox, { section: section, foldable: foldable, body: _jsxs(_Fragment, { children: [section.workflow && _jsx(WorkflowStatus, { definition: section.workflow, value: row[section.workflow.field], reachable: reachable }), grid] }) }));
|
|
343
346
|
}
|
|
@@ -63,6 +63,10 @@ export interface Section {
|
|
|
63
63
|
x?: string;
|
|
64
64
|
/** breakdown, steps: a line under a step, by its value. */
|
|
65
65
|
notes?: Record<string, string>;
|
|
66
|
+
/** breakdown drawn as bars: a second measure said beside each bar ("4 deals"), asked in the same request. */
|
|
67
|
+
also?: string;
|
|
68
|
+
/** chart: whether buckets with no rows stand at zero across the window, across what was observed, or not at all. */
|
|
69
|
+
fill?: 'window' | 'observed' | false;
|
|
66
70
|
/** chart: a line's curve, and a donut's words for its middle figure. */
|
|
67
71
|
curve?: 'smooth' | 'straight';
|
|
68
72
|
total?: string;
|
package/dist/client/features.css
CHANGED
|
@@ -455,7 +455,7 @@ body.app-mode .page-edit { font-family: var(--sans); }
|
|
|
455
455
|
:is(.page-tab, .page-section-head) .tab-count::before { content: '00' / ''; visibility: hidden; }
|
|
456
456
|
.page-tab[aria-selected="true"] .tab-count { color: inherit; }
|
|
457
457
|
/* The count takes the tab's ink whole: faded, it was 3.3:1 on a filled tab. */
|
|
458
|
-
.tab[aria-selected="true"] .tab-count { color: inherit; }
|
|
458
|
+
.tab:is([aria-selected="true"], [aria-pressed="true"]) .tab-count { color: inherit; }
|
|
459
459
|
/* Quick filters: the list's key vocabularies as one-click conditions. */
|
|
460
460
|
.applist-quick {
|
|
461
461
|
padding: var(--space-2h) var(--space-3);
|
|
@@ -592,12 +592,12 @@
|
|
|
592
592
|
background: transparent;
|
|
593
593
|
color: var(--ink);
|
|
594
594
|
}
|
|
595
|
-
:root[data-look-tabs='underline'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] {
|
|
595
|
+
:root[data-look-tabs='underline'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true']) {
|
|
596
596
|
background: transparent;
|
|
597
597
|
color: var(--ink);
|
|
598
598
|
font-weight: 600;
|
|
599
599
|
}
|
|
600
|
-
:root[data-look-tabs='underline'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true']::after {
|
|
600
|
+
:root[data-look-tabs='underline'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true'])::after {
|
|
601
601
|
content: '';
|
|
602
602
|
position: absolute;
|
|
603
603
|
left: 0;
|
package/dist/client/sageLook.css
CHANGED
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
/* What is chosen: a tint of the accent and the text's ink, never a fill in the accent. A record's tabs are the
|
|
282
282
|
list's: one soft pill for the group that is open, on a page and on a list alike. */
|
|
283
|
-
:root[data-look-tabs='tint'] :is(.tab, body.app-mode .page-tab)[aria-selected='true'] {
|
|
283
|
+
:root[data-look-tabs='tint'] :is(.tab, body.app-mode .page-tab):is([aria-selected='true'], [aria-pressed='true']) {
|
|
284
284
|
background: var(--chosen);
|
|
285
285
|
color: var(--ink);
|
|
286
286
|
}
|
|
@@ -1202,6 +1202,13 @@
|
|
|
1202
1202
|
.free-page-body.is-own > .page-section {
|
|
1203
1203
|
padding-top: 0;
|
|
1204
1204
|
}
|
|
1205
|
+
/* ...but a page that draws the kit's own head (PageHeader) keeps the pane's top space, the one a head's row leaves
|
|
1206
|
+
above its title (--page-top): without it that head stood flush under the pane's bar, a step higher than every page
|
|
1207
|
+
whose head the shell draws. A page whose first part is its own (a hero) still starts at the pane's top, and a bare
|
|
1208
|
+
page owns the window and keeps none. */
|
|
1209
|
+
.free-page-body.is-own:not(.is-bare):has(.applist-head) {
|
|
1210
|
+
padding-top: var(--page-top);
|
|
1211
|
+
}
|
|
1205
1212
|
/* The first part of a free-form page that has a head stands one gap under it (--page-head-gap), as a list's controls
|
|
1206
1213
|
do. It was the head's own margin, the body's (the sidebar shell's rule below) and the section's, three spaces said
|
|
1207
1214
|
one on another: 62px under the head against a list's 27. */
|
package/dist/client/style.css
CHANGED
|
@@ -463,7 +463,7 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
463
463
|
white-space: nowrap; flex-shrink: 0;
|
|
464
464
|
}
|
|
465
465
|
.tab:hover { color: var(--ink); }
|
|
466
|
-
.tab[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
|
|
466
|
+
.tab:is([aria-selected="true"], [aria-pressed="true"]) { color: var(--accent-ink); border-bottom-color: var(--accent); }
|
|
467
467
|
|
|
468
468
|
/* Wider than it was: with the sidebar on the left, 14px of gutter on the
|
|
469
469
|
right reads as none at all beside a panel edge. */
|
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
`font` shorthand resets neither, so four looks named their record tabs in capitals. Mono
|
|
225
225
|
sets its own label below. */
|
|
226
226
|
:root[data-theme-style] :is(.tab, :where(body.app-mode) .page-tab) { border: 0; border-radius: var(--radius); padding: var(--space-2) var(--space-4); font: 500 var(--text-base) var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink-muted); }
|
|
227
|
-
:root[data-theme-style] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-bottom-width: 0; }
|
|
227
|
+
:root[data-theme-style] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected="true"], [aria-pressed="true"]) { background: var(--accent); color: var(--on-accent); border-bottom-width: 0; }
|
|
228
228
|
/* A tab drawn as a box is a control in the list's toolbar: the toolbar's height, so it stands level with the filters
|
|
229
229
|
beside it (a 24px pill stood beside 30px filters), and the control's corner, so a look whose buttons are pills has
|
|
230
230
|
pill tabs. The height is the line's, not a box's, so a count beside the name keeps its baseline. */
|
|
231
231
|
:root[data-theme-style]:is([data-look-tabs='pill'], [data-look-tabs='tint'], [data-look-tabs='inverted']) :is(.tab, :where(body.app-mode) .page-tab) { line-height: calc(var(--control-h-sm) - 2 * var(--space-2)); border-radius: var(--control-radius, var(--radius)); }
|
|
232
232
|
/* The chosen pill is a soft one in the ink with an edge of its own: filled in the accent, as the primary button
|
|
233
233
|
is, it read as a second primary over every list and on every record. */
|
|
234
|
-
html:root[data-theme-style][data-look-tabs='pill'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
|
|
234
|
+
html:root[data-theme-style][data-look-tabs='pill'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true']) { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
|
|
235
235
|
:root[data-theme-style] .tab .tab-count { font-size: var(--text-sm); line-height: 1; }
|
|
236
236
|
/* A two-or-three-way switch (a Segmented, a list's Rows/Board, the phone's Records/Table, Tree/Raw) is one drawing in every
|
|
237
237
|
look: a tray on the raised ground with a hairline, and the chosen one inside it. The tray's corner is the item's plus
|
|
@@ -516,7 +516,7 @@ html:root[data-theme-style] .record-presentation { margin-inline-start: auto; }
|
|
|
516
516
|
:root[data-look-nav='inverted'] .app-mode .topbar :is(.tn-group.active > .tn-group-button, .tn-item[aria-current='true']) :is(.tn-caret, .nav-icon) {
|
|
517
517
|
color: inherit;
|
|
518
518
|
}
|
|
519
|
-
:root[data-look-tabs='inverted'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] {
|
|
519
|
+
:root[data-look-tabs='inverted'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true']) {
|
|
520
520
|
background: var(--ink);
|
|
521
521
|
color: var(--ground);
|
|
522
522
|
border-radius: var(--radius);
|
|
@@ -164,12 +164,12 @@
|
|
|
164
164
|
text-transform: none;
|
|
165
165
|
}
|
|
166
166
|
@media (hover: hover) {
|
|
167
|
-
:root[data-look-tabs='lifted'] :is(.tab, :where(body.app-mode) .page-tab):hover:not([aria-selected='true']) {
|
|
167
|
+
:root[data-look-tabs='lifted'] :is(.tab, :where(body.app-mode) .page-tab):hover:not([aria-selected='true'], [aria-pressed='true']) {
|
|
168
168
|
background: color-mix(in srgb, var(--ink) 5%, transparent);
|
|
169
169
|
color: var(--ink);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
:root[data-look-tabs='lifted'] :is(.tab, :where(body.app-mode) .page-tab)[aria-selected='true'] {
|
|
172
|
+
:root[data-look-tabs='lifted'] :is(.tab, :where(body.app-mode) .page-tab):is([aria-selected='true'], [aria-pressed='true']) {
|
|
173
173
|
background: var(--surface);
|
|
174
174
|
color: var(--ink);
|
|
175
175
|
font-weight: 600;
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
:root[data-visual-theme] .applist-quick-text { min-height: 32px; background: var(--surface); }
|
|
191
191
|
:root[data-visual-theme] .tabs { gap: var(--space-4h); padding-top: var(--space-4); }
|
|
192
192
|
:root[data-visual-theme] .tab { padding: var(--space-3) 0 var(--space-4); font-weight: 550; }
|
|
193
|
-
:root[data-visual-theme] .tab[aria-selected="true"] { border-bottom-width: 3px; }
|
|
193
|
+
:root[data-visual-theme] .tab:is([aria-selected="true"], [aria-pressed="true"]) { border-bottom-width: 3px; }
|
|
194
194
|
:root[data-visual-theme] .app-mode .result-head { padding-top: var(--space-4); padding-bottom: var(--space-4); }
|
|
195
195
|
:root[data-visual-theme] .app-mode table { font-family: var(--mono); font-variant-numeric: tabular-nums; }
|
|
196
196
|
:root[data-visual-theme] .app-mode th { font-family: var(--sans); color: var(--ink-muted); font-weight: 600; }
|
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.77",
|
|
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": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"./package.json": "./package.json"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@mistriwork/engine": "1.0.0-rc.
|
|
89
|
-
"@mistriwork/ui": "1.0.0-rc.
|
|
88
|
+
"@mistriwork/engine": "1.0.0-rc.77",
|
|
89
|
+
"@mistriwork/ui": "1.0.0-rc.77",
|
|
90
90
|
"intl-messageformat": "12.1.2",
|
|
91
91
|
"qrcode-generator": "^2.0.4"
|
|
92
92
|
},
|