@nivaro/react 0.3.140 → 0.3.141

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.
@@ -1,60 +1,60 @@
1
1
  import { jsxs as a, Fragment as u, jsx as n } from "react/jsx-runtime";
2
2
  import { useState as y } from "react";
3
- import { RecordConditionsEditor as I, RecordConditionsJson as P } from "../editors/RecordConditionsEditor.js";
4
- import { RolesPicker as z } from "../editors/RolesPicker.js";
3
+ import { RecordConditionsEditor as F, RecordConditionsJson as I } from "../editors/RecordConditionsEditor.js";
4
+ import { RolesPicker as P } from "../editors/RolesPicker.js";
5
5
  import { DependencyDiagram as w } from "../ops/DependencyDiagram.js";
6
6
  import { useLayoutDependencies as L } from "../ops/ops-api.js";
7
7
  import { LAYOUT_TYPES as D } from "../overview/OverviewActions.js";
8
- import { useRoleNames as F } from "../overview/overview-api.js";
8
+ import { useRoleNames as z } from "../overview/overview-api.js";
9
9
  import { roleIdsPatch as Y } from "../testing/testing-model.js";
10
10
  import { Setting as p, smallBtn as d, quietText as x, Segmented as j } from "./controls.js";
11
- import { ActiveDatesSetting as K, PhoneVersionSetting as M, TabletVersionSetting as U } from "./ResolveSettings.js";
11
+ import { ActiveDatesSetting as K, PhoneVersionSetting as M, TabletVersionSetting as U, SummaryForSetting as $ } from "./ResolveSettings.js";
12
12
  import { changeLabel as _, flag as C } from "./section-props.js";
13
- import { useFieldSources as $, useCollectionLayoutList as B } from "./settings-api.js";
14
- import { layoutKindOf as E } from "./settings-registry.js";
13
+ import { useFieldSources as B, useCollectionLayoutList as E } from "./settings-api.js";
14
+ import { layoutKindOf as G } from "./settings-registry.js";
15
15
  import { TextSetting as S } from "./TextSetting.js";
16
- import { ToggleSetting as G } from "./ToggleSetting.js";
17
- const g = (t) => {
18
- var e;
19
- return ((e = D.find((o) => o.type === t)) == null ? void 0 : e.label) ?? t;
20
- }, J = (t) => t.toLowerCase().replace(/[^a-z0-9_]/g, "_"), v = (t) => t.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_|_$/g, "");
21
- function V(t) {
22
- let e = t;
23
- if (typeof e == "string")
16
+ import { ToggleSetting as J } from "./ToggleSetting.js";
17
+ const g = (e) => {
18
+ var t;
19
+ return ((t = D.find((o) => o.type === e)) == null ? void 0 : t.label) ?? e;
20
+ }, V = (e) => e.toLowerCase().replace(/[^a-z0-9_]/g, "_"), v = (e) => e.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_|_$/g, "");
21
+ function q(e) {
22
+ let t = e;
23
+ if (typeof t == "string")
24
24
  try {
25
- e = JSON.parse(e);
25
+ t = JSON.parse(t);
26
26
  } catch {
27
27
  return [];
28
28
  }
29
- const o = e == null ? void 0 : e.role_ids;
29
+ const o = t == null ? void 0 : t.role_ids;
30
30
  return Array.isArray(o) ? o.map(String) : [];
31
31
  }
32
- function fe(t) {
33
- const { layout: e, collection: o } = t, { fields: c, columns: l, relations: i } = $(o), { data: m = [] } = F(!0), f = V(e.conditions);
32
+ function he(e) {
33
+ const { layout: t, collection: o } = e, { fields: c, columns: l, relations: i } = B(o), { data: m = [] } = z(!0), f = q(t.conditions);
34
34
  return /* @__PURE__ */ a(u, { children: [
35
- /* @__PURE__ */ n(W, { ...t }),
35
+ /* @__PURE__ */ n(H, { ...e }),
36
36
  /* @__PURE__ */ n(
37
37
  p,
38
38
  {
39
39
  k: "layout.record_conditions",
40
40
  note: /* @__PURE__ */ n(
41
- P,
41
+ I,
42
42
  {
43
- value: e.record_conditions,
44
- onApply: (s) => t.set({ record_conditions: s }, _("layout.record_conditions"))
43
+ value: t.record_conditions,
44
+ onApply: (s) => e.set({ record_conditions: s }, _("layout.record_conditions"))
45
45
  }
46
46
  ),
47
47
  children: /* @__PURE__ */ n(
48
- I,
48
+ F,
49
49
  {
50
50
  json: !1,
51
51
  collection: o,
52
- value: e.record_conditions,
52
+ value: t.record_conditions,
53
53
  fields: c,
54
54
  columns: l,
55
55
  relations: i,
56
- onBlur: t.flush,
57
- onChange: (s, { text: h }) => (h ? t.setText : t.set)(
56
+ onBlur: e.flush,
57
+ onChange: (s, { text: h }) => (h ? e.setText : e.set)(
58
58
  { record_conditions: s },
59
59
  _("layout.record_conditions")
60
60
  )
@@ -63,13 +63,13 @@ function fe(t) {
63
63
  }
64
64
  ),
65
65
  /* @__PURE__ */ n(p, { k: "layout.conditions.role_ids", children: /* @__PURE__ */ n(
66
- z,
66
+ P,
67
67
  {
68
68
  value: f,
69
69
  roles: m,
70
- onChange: (s) => t.set(
70
+ onChange: (s) => e.set(
71
71
  // Keeps the layout's pinned test records (conditions.testing).
72
- Y(e.conditions, s),
72
+ Y(t.conditions, s),
73
73
  s.length > f.length ? "Add a role" : "Remove a role"
74
74
  )
75
75
  }
@@ -78,27 +78,27 @@ function fe(t) {
78
78
  S,
79
79
  {
80
80
  k: "layout.slug",
81
- props: t,
81
+ props: e,
82
82
  mono: !0,
83
83
  placeholder: "e.g. unit_order",
84
- sanitize: J,
84
+ sanitize: V,
85
85
  blurOnly: !0,
86
- extra: !e.slug && typeof e.name == "string" && v(e.name) ? /* @__PURE__ */ n(
86
+ extra: !t.slug && typeof t.name == "string" && v(t.name) ? /* @__PURE__ */ n(
87
87
  "button",
88
88
  {
89
89
  type: "button",
90
90
  className: d,
91
- onClick: () => t.set({ slug: v(String(e.name)) }, "Generate link name"),
91
+ onClick: () => e.set({ slug: v(String(t.name)) }, "Generate link name"),
92
92
  children: "Generate"
93
93
  }
94
94
  ) : null,
95
- note: e.slug ? /* @__PURE__ */ a(u, { children: [
95
+ note: t.slug ? /* @__PURE__ */ a(u, { children: [
96
96
  "Opens with ",
97
97
  /* @__PURE__ */ a("code", { className: "font-mono", children: [
98
98
  "?layout=",
99
- String(e.slug)
99
+ String(t.slug)
100
100
  ] }),
101
- /* @__PURE__ */ n(q, { layoutId: Number(e.id) })
101
+ /* @__PURE__ */ n(W, { layoutId: Number(t.id) })
102
102
  ] }) : null
103
103
  }
104
104
  ),
@@ -106,18 +106,19 @@ function fe(t) {
106
106
  S,
107
107
  {
108
108
  k: "layout.create_label",
109
- props: t,
110
- placeholder: typeof e.name == "string" ? e.name : ""
109
+ props: e,
110
+ placeholder: typeof t.name == "string" ? t.name : ""
111
111
  }
112
112
  ),
113
- /* @__PURE__ */ n(G, { k: "layout.create_hidden", props: t }),
114
- /* @__PURE__ */ n(K, { ...t }),
115
- /* @__PURE__ */ n(M, { ...t }),
116
- /* @__PURE__ */ n(U, { ...t })
113
+ /* @__PURE__ */ n(J, { k: "layout.create_hidden", props: e }),
114
+ /* @__PURE__ */ n(K, { ...e }),
115
+ /* @__PURE__ */ n(M, { ...e }),
116
+ /* @__PURE__ */ n(U, { ...e }),
117
+ /* @__PURE__ */ n($, { ...e })
117
118
  ] });
118
119
  }
119
- function q({ layoutId: t }) {
120
- const { data: e } = L(t), [o, c] = y(!1), l = ((e == null ? void 0 : e.nodes) ?? []).filter((i) => i.breaks.includes("slug")).length;
120
+ function W({ layoutId: e }) {
121
+ const { data: t } = L(e), [o, c] = y(!1), l = ((t == null ? void 0 : t.nodes) ?? []).filter((i) => i.breaks.includes("slug")).length;
121
122
  return l ? /* @__PURE__ */ a(u, { children: [
122
123
  " · ",
123
124
  /* @__PURE__ */ a(
@@ -135,14 +136,14 @@ function q({ layoutId: t }) {
135
136
  ]
136
137
  }
137
138
  ),
138
- o && /* @__PURE__ */ n(w, { layoutId: t, change: "slug", compact: !0, className: "mt-2" })
139
+ o && /* @__PURE__ */ n(w, { layoutId: e, change: "slug", compact: !0, className: "mt-2" })
139
140
  ] }) : null;
140
141
  }
141
- function W(t) {
142
- const { layout: e, kind: o, bundle: c } = t, [l, i] = y(null), { data: m } = L(Number(e.id)), f = ((m == null ? void 0 : m.nodes.length) ?? 0) > 0, s = c.placements.length + c.groups.length, h = (r) => t.set({ layout_type: r }, `Change kind to ${g(r)}`), T = C(e.is_active), [O, b] = y(!1), k = B(t.collection).find(
143
- (r) => r.id !== Number(e.id) && E(r) === o && C(r.is_active)
142
+ function H(e) {
143
+ const { layout: t, kind: o, bundle: c } = e, [l, i] = y(null), { data: m } = L(Number(t.id)), f = ((m == null ? void 0 : m.nodes.length) ?? 0) > 0, s = c.placements.length + c.groups.length, h = (r) => e.set({ layout_type: r }, `Change kind to ${g(r)}`), T = C(t.is_active), [O, b] = y(!1), k = E(e.collection).find(
144
+ (r) => r.id !== Number(t.id) && G(r) === o && C(r.is_active)
144
145
  ), N = o === "grouped" ? "form" : `${g(o).toLowerCase()} layout`, A = () => {
145
- t.set({ is_active: !0 }, "Make default", { undoable: !1 }), b(!1);
146
+ e.set({ is_active: !0 }, "Make default", { undoable: !1 }), b(!1);
146
147
  }, R = o === "file" ? null : /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-2", children: T ? /* @__PURE__ */ a("span", { className: x, "data-default-layout": !0, children: [
147
148
  "This is the default ",
148
149
  g(o).toLowerCase(),
@@ -222,7 +223,7 @@ function W(t) {
222
223
  f && /* @__PURE__ */ n(
223
224
  w,
224
225
  {
225
- layoutId: Number(e.id),
226
+ layoutId: Number(t.id),
226
227
  change: "type",
227
228
  compact: !0,
228
229
  className: "mt-2 rounded-md bg-white p-2 text-slate-800 dark:bg-card dark:text-foreground"
@@ -248,6 +249,6 @@ function W(t) {
248
249
  ] });
249
250
  }
250
251
  export {
251
- fe as WhoSection,
252
- J as sanitizeSlug
252
+ he as WhoSection,
253
+ V as sanitizeSlug
253
254
  };
@@ -1,39 +1,39 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { ChevronsUpDown as k, Check as f, X as w } from "lucide-react";
3
- import { createContext as C, useState as S, isValidElement as T, useContext as P } from "react";
2
+ import { ChevronsUpDown as k, Check as b, X as C } from "lucide-react";
3
+ import { createContext as S, useState as P, isValidElement as T, useContext as j } from "react";
4
4
  import { cn as i } from "../../../lib/utils.js";
5
- import { Command as j, CommandInput as O, CommandList as V, CommandEmpty as B, CommandItem as b } from "../../ui/command.js";
6
- import { Popover as D, PopoverTrigger as E, PopoverContent as I } from "../../ui/popover.js";
7
- import { inputBase as v, effectText as $, segOption as q, segTrack as U, labelText as X } from "../panel-style.js";
8
- import { settingDef as z } from "./settings-registry.js";
9
- const A = C(null);
10
- function F(e) {
11
- const n = P(A);
5
+ import { Command as O, CommandInput as V, CommandList as B, CommandEmpty as D, CommandItem as g } from "../../ui/command.js";
6
+ import { Popover as E, PopoverTrigger as I, PopoverContent as $ } from "../../ui/popover.js";
7
+ import { inputBase as N, effectText as q, segOption as U, segTrack as X, labelText as z } from "../panel-style.js";
8
+ import { settingDef as A } from "./settings-registry.js";
9
+ const F = S(null);
10
+ function G(e) {
11
+ const n = j(F);
12
12
  return !n || n.has(e);
13
13
  }
14
- const Z = v, _ = "inline-flex h-7 items-center gap-1 whitespace-nowrap rounded-md border border-slate-200 bg-white px-2 text-[12px] font-medium text-slate-700 transition-colors hover:bg-slate-50 disabled:opacity-50 dark:border-border dark:bg-card dark:text-foreground dark:hover:bg-muted", g = $;
15
- function L({
14
+ const W = N, L = "inline-flex h-7 items-center gap-1 whitespace-nowrap rounded-md border border-slate-200 bg-white px-2 text-[12px] font-medium text-slate-700 transition-colors hover:bg-slate-50 disabled:opacity-50 dark:border-border dark:bg-card dark:text-foreground dark:hover:bg-muted", v = q;
15
+ function ee({
16
16
  k: e,
17
17
  control: n,
18
18
  children: o,
19
19
  note: r,
20
20
  htmlFor: c
21
21
  }) {
22
- const s = F(e), d = z(e);
22
+ const s = G(e), d = A(e);
23
23
  if (!s || !d) return null;
24
- const m = T(n) && n.type === G;
24
+ const m = T(n) && n.type === H;
25
25
  return /* @__PURE__ */ l("div", { "data-setting": e, className: "space-y-1.5", children: [
26
26
  /* @__PURE__ */ l("div", { className: "flex min-h-5 items-center justify-between gap-3", children: [
27
- /* @__PURE__ */ t("label", { htmlFor: c, className: i(X, "min-w-0"), children: d.label }),
27
+ /* @__PURE__ */ t("label", { htmlFor: c, className: i(z, "min-w-0"), children: d.label }),
28
28
  m && /* @__PURE__ */ t("div", { className: "flex shrink-0 items-center", children: n })
29
29
  ] }),
30
30
  n && !m && /* @__PURE__ */ t("div", { children: n }),
31
31
  o,
32
- /* @__PURE__ */ t("p", { className: g, children: d.effect }),
33
- r && /* @__PURE__ */ t("div", { className: g, children: r })
32
+ /* @__PURE__ */ t("p", { className: v, children: d.effect }),
33
+ r && /* @__PURE__ */ t("div", { className: v, children: r })
34
34
  ] });
35
35
  }
36
- function G({
36
+ function H({
37
37
  checked: e,
38
38
  onChange: n,
39
39
  label: o,
@@ -64,7 +64,7 @@ function G({
64
64
  }
65
65
  );
66
66
  }
67
- function ee({
67
+ function te({
68
68
  value: e,
69
69
  options: n,
70
70
  onChange: o,
@@ -75,7 +75,7 @@ function ee({
75
75
  "fieldset",
76
76
  {
77
77
  "aria-label": r,
78
- className: i("m-0 min-w-0 border-0", U(n.length)),
78
+ className: i("m-0 min-w-0 border-0", X(n.length)),
79
79
  children: n.map((s) => /* @__PURE__ */ t(
80
80
  "button",
81
81
  {
@@ -83,7 +83,7 @@ function ee({
83
83
  "aria-pressed": e === s.value,
84
84
  disabled: c,
85
85
  onClick: () => e !== s.value && o(s.value),
86
- className: q(e === s.value),
86
+ className: U(e === s.value),
87
87
  children: s.label
88
88
  },
89
89
  s.value
@@ -91,7 +91,7 @@ function ee({
91
91
  }
92
92
  );
93
93
  }
94
- function te({
94
+ function ne({
95
95
  value: e,
96
96
  options: n,
97
97
  onChange: o,
@@ -100,13 +100,14 @@ function te({
100
100
  ariaLabel: s,
101
101
  disabled: d,
102
102
  className: m,
103
- emptyText: N = "Nothing to pick"
103
+ emptyText: w = "Nothing to pick",
104
+ matchTriggerWidth: u = !1
104
105
  }) {
105
- const [y, u] = S(!1), p = n.find((a) => a.value === e), h = (a) => {
106
- o(a), u(!1);
107
- }, x = "gap-1.5 px-2 py-1 text-[12px] text-slate-700 data-[selected=true]:bg-muted dark:text-foreground";
108
- return /* @__PURE__ */ l(D, { open: y, onOpenChange: u, children: [
109
- /* @__PURE__ */ t(E, { asChild: !0, children: /* @__PURE__ */ l(
106
+ const [y, h] = P(!1), p = n.find((a) => a.value === e), x = (a) => {
107
+ o(a), h(!1);
108
+ }, f = "gap-1.5 px-2 py-1 text-[12px] text-slate-700 data-[selected=true]:bg-muted dark:text-foreground";
109
+ return /* @__PURE__ */ l(E, { open: y, onOpenChange: h, children: [
110
+ /* @__PURE__ */ t(I, { asChild: !0, children: /* @__PURE__ */ l(
110
111
  "button",
111
112
  {
112
113
  type: "button",
@@ -114,7 +115,7 @@ function te({
114
115
  disabled: d,
115
116
  "data-pick-list": s,
116
117
  className: i(
117
- v,
118
+ N,
118
119
  "flex min-w-[140px] items-center justify-between gap-1.5 text-left hover:border-slate-300",
119
120
  m
120
121
  ),
@@ -133,59 +134,66 @@ function te({
133
134
  ]
134
135
  }
135
136
  ) }),
136
- /* @__PURE__ */ t(I, { className: "w-64 p-0", align: "end", children: /* @__PURE__ */ l(j, { children: [
137
- /* @__PURE__ */ t(
138
- O,
139
- {
140
- placeholder: "Search…",
141
- "aria-label": `Search ${s}`,
142
- className: "h-8 text-[12px]"
143
- }
144
- ),
145
- /* @__PURE__ */ l(V, { className: "max-h-60", "aria-label": s, children: [
146
- /* @__PURE__ */ t(B, { className: "px-2 py-1.5 text-[12px] text-slate-500 dark:text-slate-400", children: N }),
147
- c && /* @__PURE__ */ l(
148
- b,
149
- {
150
- value: "—none—",
151
- keywords: [c],
152
- onSelect: () => h(null),
153
- className: i(x, "text-slate-500 dark:text-slate-400"),
154
- children: [
155
- /* @__PURE__ */ t(f, { className: i("h-3 w-3", e ? "opacity-0" : "opacity-100") }),
156
- /* @__PURE__ */ t("span", { children: c })
157
- ]
158
- }
159
- ),
160
- n.map((a) => /* @__PURE__ */ l(
161
- b,
162
- {
163
- value: a.value,
164
- keywords: [a.label, a.hint ?? ""],
165
- "data-option": a.value,
166
- onSelect: () => h(a.value),
167
- className: i(x, a.value === e && "bg-accent"),
168
- children: [
169
- /* @__PURE__ */ t(
170
- f,
171
- {
172
- className: i(
173
- "h-3 w-3 shrink-0",
174
- a.value === e ? "opacity-100" : "opacity-0"
175
- )
176
- }
177
- ),
178
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: a.label }),
179
- a.hint && /* @__PURE__ */ t("span", { className: "shrink-0 font-mono text-[11px] text-slate-500 dark:text-slate-400", children: a.hint })
180
- ]
181
- },
182
- a.value
183
- ))
184
- ] })
185
- ] }) })
137
+ /* @__PURE__ */ t(
138
+ $,
139
+ {
140
+ className: u ? "w-[var(--radix-popover-trigger-width)] min-w-[220px] p-0" : "w-64 p-0",
141
+ align: u ? "start" : "end",
142
+ children: /* @__PURE__ */ l(O, { children: [
143
+ /* @__PURE__ */ t(
144
+ V,
145
+ {
146
+ placeholder: "Search…",
147
+ "aria-label": `Search ${s}`,
148
+ className: "h-8 text-[12px]"
149
+ }
150
+ ),
151
+ /* @__PURE__ */ l(B, { className: "max-h-60", "aria-label": s, children: [
152
+ /* @__PURE__ */ t(D, { className: "px-2 py-1.5 text-[12px] text-slate-500 dark:text-slate-400", children: w }),
153
+ c && /* @__PURE__ */ l(
154
+ g,
155
+ {
156
+ value: "—none—",
157
+ keywords: [c],
158
+ onSelect: () => x(null),
159
+ className: i(f, "text-slate-500 dark:text-slate-400"),
160
+ children: [
161
+ /* @__PURE__ */ t(b, { className: i("h-3 w-3", e ? "opacity-0" : "opacity-100") }),
162
+ /* @__PURE__ */ t("span", { children: c })
163
+ ]
164
+ }
165
+ ),
166
+ n.map((a) => /* @__PURE__ */ l(
167
+ g,
168
+ {
169
+ value: a.value,
170
+ keywords: [a.label, a.hint ?? ""],
171
+ "data-option": a.value,
172
+ onSelect: () => x(a.value),
173
+ className: i(f, a.value === e && "bg-accent"),
174
+ children: [
175
+ /* @__PURE__ */ t(
176
+ b,
177
+ {
178
+ className: i(
179
+ "h-3 w-3 shrink-0",
180
+ a.value === e ? "opacity-100" : "opacity-0"
181
+ )
182
+ }
183
+ ),
184
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: a.label }),
185
+ a.hint && /* @__PURE__ */ t("span", { className: "shrink-0 font-mono text-[11px] text-slate-500 dark:text-slate-400", children: a.hint })
186
+ ]
187
+ },
188
+ a.value
189
+ ))
190
+ ] })
191
+ ] })
192
+ }
193
+ )
186
194
  ] });
187
195
  }
188
- function ne({ label: e, onRemove: n }) {
196
+ function ae({ label: e, onRemove: n }) {
189
197
  return /* @__PURE__ */ l("span", { className: "inline-flex max-w-full items-center gap-1 rounded bg-nvr-cyan/10 px-1.5 py-0.5 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan", children: [
190
198
  /* @__PURE__ */ t("span", { className: "truncate", children: e }),
191
199
  n && /* @__PURE__ */ t(
@@ -195,20 +203,20 @@ function ne({ label: e, onRemove: n }) {
195
203
  "aria-label": `Remove ${e}`,
196
204
  onClick: n,
197
205
  className: "shrink-0 opacity-70 hover:opacity-100",
198
- children: /* @__PURE__ */ t(w, { className: "h-3 w-3" })
206
+ children: /* @__PURE__ */ t(C, { className: "h-3 w-3" })
199
207
  }
200
208
  )
201
209
  ] });
202
210
  }
203
211
  export {
204
- ne as Chip,
205
- te as PickList,
206
- ee as Segmented,
207
- L as Setting,
208
- G as Toggle,
209
- A as VisibleSettingsContext,
210
- Z as inputCls,
211
- g as quietText,
212
- _ as smallBtn,
213
- F as useSettingVisible
212
+ ae as Chip,
213
+ ne as PickList,
214
+ te as Segmented,
215
+ ee as Setting,
216
+ H as Toggle,
217
+ F as VisibleSettingsContext,
218
+ W as inputCls,
219
+ v as quietText,
220
+ L as smallBtn,
221
+ G as useSettingVisible
214
222
  };
@@ -78,6 +78,14 @@ const y = [
78
78
  types: ["grouped", "summary"],
79
79
  keywords: "ipad tablet medium screen variant device touch"
80
80
  },
81
+ {
82
+ key: "layout.conditions.summary_for",
83
+ section: "who",
84
+ label: "Use for these forms",
85
+ effect: "Records that open with one of these forms get this Summary; every other form gets the default Summary.",
86
+ types: ["summary"],
87
+ keywords: "pin form record summary read view per form"
88
+ },
81
89
  // ── How it's laid out ─────────────────────────────────────────────────────
82
90
  {
83
91
  key: "layout.tab_mode",