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

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.
@@ -119,7 +119,7 @@ export function ListFilterBar(props) {
119
119
  const rest = idle.filter((box) => hidden.has(box.column));
120
120
  return (_jsxs(_Fragment, { children: [_jsx("span", { ref: mark, hidden: true }), searchBox, search && _jsx(FilterSlot, { ...props, box: search }), pickers
121
121
  .filter((box) => !hidden.has(box.column))
122
- .map((box) => (_jsx(FilterSlot, { ...props, box: box }, box.column))), rest.length > 0 && (_jsx("span", { className: "applist-slot applist-slot-more", children: _jsxs("button", { type: "button", className: "applist-add", "aria-haspopup": "dialog", "aria-label": say('moreFilters', { map: rest.map((box) => box.label).join(', ') }), onClick: onSheet, children: [_jsx("span", { className: "applist-add-mark", "aria-hidden": "true", children: "+" }), say('common.filter')] }) })), residueChip, clearAll] }));
122
+ .map((box) => (_jsx(FilterSlot, { ...props, box: box }, box.column))), rest.length > 0 && (_jsx("span", { className: "applist-slot applist-slot-more", children: _jsxs("button", { type: "button", className: "applist-add", "aria-haspopup": "dialog", "aria-label": say('moreFilters', { filter: say('common.filter'), map: rest.map((box) => box.label).join(', ') }), onClick: onSheet, children: [_jsx("span", { className: "applist-add-mark", "aria-hidden": "true", children: "+" }), say('common.filter')] }) })), residueChip, clearAll] }));
123
123
  }
124
124
  /**
125
125
  * One declared filter in its place in the row: its chip when it narrows the
@@ -1,5 +1,5 @@
1
1
  export declare const say: import("../../../messages.js").RoomMessage<{
2
- readonly moreFilters: "More filters: {map}";
2
+ readonly moreFilters: "{filter}: {map}";
3
3
  readonly search: "Search {listLabel}…";
4
4
  readonly labelEquals: "{label} equals…";
5
5
  readonly takesANumber: "{label} takes a number.";
@@ -1,7 +1,8 @@
1
1
  /** What ListFilterBar says, in the filter rail room (packages/kit/src/client/messages.ts says how the catalog is split). */
2
2
  import { defineMessages } from '../../../messages.js';
3
3
  export const say = defineMessages({
4
- moreFilters: 'More filters: {map}',
4
+ // Starts with the button's visible word (WCAG 2.5.3, label in name): {filter} is the word it shows.
5
+ moreFilters: '{filter}: {map}',
5
6
  search: 'Search {listLabel}…',
6
7
  labelEquals: '{label} equals…',
7
8
  takesANumber: '{label} takes a number.',
@@ -200,7 +200,9 @@
200
200
  }
201
201
  :root[data-look-avatar='round'] .sidebar-identity-mark {
202
202
  border-radius: 50%;
203
- background: var(--accent-soft);
203
+ /* The menu's accent on a 12% tint of itself, so the mark keeps its contrast on any menu ground; the round
204
+ check in theme.ts models exactly this pair. */
205
+ background: color-mix(in srgb, var(--current-ink) 12%, transparent);
204
206
  color: var(--current-ink);
205
207
  }
206
208
  /* The topbar's own items when the menu is a bar. */
@@ -953,6 +953,32 @@
953
953
  font-variant-caps: var(--part-avatar-caps);
954
954
  letter-spacing: var(--part-avatar-tracking);
955
955
  }
956
+ :root[data-parts~="identityMark:ground"] .app-mode .sidebar-identity-mark {
957
+ background: var(--part-identityMark-ground);
958
+ }
959
+ :root[data-parts~="identityMark:ink"] .app-mode .sidebar-identity-mark {
960
+ color: var(--part-identityMark-ink);
961
+ }
962
+ :root[data-parts~="identityMark:edge"] .app-mode .sidebar-identity-mark {
963
+ border-color: var(--part-identityMark-edge);
964
+ }
965
+ :root[data-parts~="identityMark:radius"] .app-mode .sidebar-identity-mark {
966
+ border-radius: var(--part-identityMark-radius);
967
+ }
968
+ :root[data-parts~="identityMark:lift"] .app-mode .sidebar-identity-mark {
969
+ box-shadow: var(--part-identityMark-lift);
970
+ }
971
+ :root[data-parts~="identityMark:face"] .app-mode .sidebar-identity-mark {
972
+ font-family: var(--part-identityMark-face);
973
+ }
974
+ :root[data-parts~="identityMark:weight"] .app-mode .sidebar-identity-mark {
975
+ font-weight: var(--part-identityMark-weight);
976
+ }
977
+ :root[data-parts~="identityMark:case"] .app-mode .sidebar-identity-mark {
978
+ text-transform: var(--part-identityMark-transform);
979
+ font-variant-caps: var(--part-identityMark-caps);
980
+ letter-spacing: var(--part-identityMark-tracking);
981
+ }
956
982
  :root[data-parts~="menu:ground"] .app-mode .tn-pop,
957
983
  :root[data-parts~="menu:ground"] .app-mode .th-menu,
958
984
  :root[data-parts~="menu:ground"] .app-mode .page-actions-menu {
@@ -20,6 +20,11 @@
20
20
  a host's look (`registerHostLooks`, worn in `theme` under `data-host-look`), so a host look over it says only what
21
21
  it changes: a palette is colour alone, and the structure below is shared.
22
22
 
23
+ A host with looks of its own (the standalone database browser: blueprint, console, folio) relies on the keying:
24
+ every rule below also needs the root to wear no `data-host-look`, or Instrument's own (`instrument`,
25
+ `instrument-*`), so a foreign host look is drawn by that host alone and this sheet adds nothing under it. The
26
+ condition is one `:where()`, which weighs nothing, so the rules compete as they did before it.
27
+
23
28
  Bends, each on purpose:
24
29
  - The column heads stand on a tinted band: with hairlines between columns, a band is what tells the head from the
25
30
  first row at a glance without a heavier rule.
@@ -33,7 +38,7 @@
33
38
  @import './fonts/faces.css';
34
39
 
35
40
  @layer look {
36
- :root:not([data-visual-theme]) {
41
+ :root:not([data-visual-theme]):where(:not([data-host-look]), [data-host-look='instrument'], [data-host-look^='instrument-']) {
37
42
  --face-ui: Inter, 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
38
43
  --sans: var(--face-ui);
39
44
  /* The kit's seam for a host look's data face (tokens.css): every chrome string the code face set reads it, so
@@ -71,7 +76,7 @@
71
76
  --scrim: rgb(16 20 28 / 0.32);
72
77
  }
73
78
  @media (prefers-color-scheme: dark) {
74
- :root:not([data-visual-theme]):not([data-theme='light']) {
79
+ :root:not([data-visual-theme]):where(:not([data-host-look]), [data-host-look='instrument'], [data-host-look^='instrument-']):not([data-theme='light']) {
75
80
  --ground: #101010;
76
81
  --surface: #151515;
77
82
  --raised: #1d1d1d;
@@ -101,7 +106,7 @@
101
106
  --scrim: rgb(0 0 0 / 0.55);
102
107
  }
103
108
  }
104
- :root:not([data-visual-theme])[data-theme='dark'] {
109
+ :root:not([data-visual-theme]):where(:not([data-host-look]), [data-host-look='instrument'], [data-host-look^='instrument-'])[data-theme='dark'] {
105
110
  --ground: #101010;
106
111
  --surface: #151515;
107
112
  --raised: #1d1d1d;
@@ -131,7 +136,7 @@
131
136
  --scrim: rgb(0 0 0 / 0.55);
132
137
  }
133
138
 
134
- :root:not([data-visual-theme]) {
139
+ :root:not([data-visual-theme]):where(:not([data-host-look]), [data-host-look='instrument'], [data-host-look^='instrument-']) {
135
140
  & body {
136
141
  font-feature-settings: 'cv11', 'ss03';
137
142
  -webkit-font-smoothing: antialiased;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistriwork/kit",
3
- "version": "1.0.0-rc.18",
3
+ "version": "1.0.0-rc.19",
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": {
@@ -83,8 +83,8 @@
83
83
  "./package.json": "./package.json"
84
84
  },
85
85
  "dependencies": {
86
- "@mistriwork/engine": "1.0.0-rc.18",
87
- "@mistriwork/ui": "1.0.0-rc.18",
86
+ "@mistriwork/engine": "1.0.0-rc.19",
87
+ "@mistriwork/ui": "1.0.0-rc.19",
88
88
  "intl-messageformat": "12.1.2",
89
89
  "qrcode-generator": "^2.0.4"
90
90
  },