@mistriwork/kit 1.0.0-rc.60 → 1.0.0-rc.62

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.
@@ -5,7 +5,8 @@
5
5
  /* Round controls (`shape.radius.control: 'round'`) are pills; a check box, a radio and a slider keep their own
6
6
  shape, and a form's field keeps the field's corner (the rule below outranks this one). A look that corners its
7
7
  own controls (the dashboard's window and filters, a list's search and toggles) reads --control-radius there, unset
8
- in every built-in look; a card that is a button keeps the look's panel corner. */
8
+ in every built-in look. An App's own <button> card is dressed in the `app` layer, which stands after this one, so
9
+ its rule keeps the corner it says (--radius-card is the look's card corner to read). */
9
10
  :root[data-control-radius] :is(button, input:not([role=switch], [type=checkbox], [type=radio], [type=range]), select, .tn-search,[data-slot='select-trigger']) { border-radius: var(--control-radius); }
10
11
  :root[data-custom-theme] :is(.applist-title, .root-current, .page-section-title) { font-family: var(--heading-font, var(--sans)); }
11
12
  :root[data-custom-theme] .page-field-edit :is(.cell-edit, .record-picker-trigger),
@@ -906,6 +906,11 @@
906
906
  were a scroll away from the record they act on. The page keeps the dock's clearance under its last section
907
907
  (style.css), and the pending dock, when it is up, stands over the bar. */
908
908
  @media (max-width: 600px) {
909
+ /* The bar's height with its safe-area inset, one number for the bar and for the room's clearance under it. */
910
+ body.app-mode { --record-bar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
911
+ /* A record laid out in a grid (.page-layout) is not the sibling the dock's clearance (style.css) is set on, so
912
+ its last section stood under the bar. */
913
+ body.app-mode .page-head.has-record.is-room:has(> .page-head-actions) + .page-layout { padding-bottom: var(--record-bar-h); }
909
914
  body.app-mode .page-head.has-record.is-room > .page-head-actions {
910
915
  position: fixed;
911
916
  z-index: 40;
@@ -2,14 +2,16 @@
2
2
  base — the tool's own rules, and the components features.css imports;
3
3
  components — the stylesheets a component brings with it;
4
4
  kit — the shared dress under every look, and custom themes' token machinery;
5
- look — each look; theme — what an App's own theme says beyond the menu: its
5
+ look — each look; app — the stylesheets an App's own components and control kit bring, over the kit's control
6
+ recipes and the look's (a card an App draws as a <button> keeps the corner it gives it) and under the theme;
7
+ theme — what an App's own theme says beyond the menu: its
6
8
  parts' styles, its patterns and its own stylesheet (partsLook.css,
7
9
  surfacesLook.css, themeStylesheet.ts), over the look it extends;
8
10
  structure — layout that no look may move (structure.css);
9
11
  print — paper, last.
10
12
  A later layer wins whatever its specificity: nothing here out-specifies or
11
13
  out-loads another to win. */
12
- @layer base, components, kit, look, theme, structure, print;
14
+ @layer base, components, kit, look, app, theme, structure, print;
13
15
  /* The tokens are @mistriwork/ui's (packages/ui/src), and so is what the controls wear (controls.css): each control is
14
16
  drawn over UI SDK and dressed by its `data-slot`, in layers of its own. Nested in base they stand under every rule
15
17
  written here: a dialog this stylesheet places by its class, a menu a component dresses and a control a toolbar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistriwork/kit",
3
- "version": "1.0.0-rc.60",
3
+ "version": "1.0.0-rc.62",
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": {
@@ -84,8 +84,8 @@
84
84
  "./package.json": "./package.json"
85
85
  },
86
86
  "dependencies": {
87
- "@mistriwork/engine": "1.0.0-rc.60",
88
- "@mistriwork/ui": "1.0.0-rc.60",
87
+ "@mistriwork/engine": "1.0.0-rc.62",
88
+ "@mistriwork/ui": "1.0.0-rc.62",
89
89
  "intl-messageformat": "12.1.2",
90
90
  "qrcode-generator": "^2.0.4"
91
91
  },