@optimum-intelligence/opti-ui 0.8.0 → 0.8.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +3 -3
  3. package/dist/components/app-shell/AppShell.d.ts +6 -1
  4. package/dist/components/app-shell/AppShell.js +99 -94
  5. package/dist/components/app-shell/AppShell.js.map +1 -1
  6. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +6 -1
  7. package/dist/components/breadcrumbs/Breadcrumbs.js +42 -40
  8. package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
  9. package/dist/components/combobox/Combobox.d.ts +1 -1
  10. package/dist/components/combobox/Combobox.js +38 -29
  11. package/dist/components/combobox/Combobox.js.map +1 -1
  12. package/dist/components/command-palette/CommandPalette.d.ts +13 -4
  13. package/dist/components/command-palette/CommandPalette.js +91 -89
  14. package/dist/components/command-palette/CommandPalette.js.map +1 -1
  15. package/dist/components/data-table/DataTable.d.ts +34 -12
  16. package/dist/components/data-table/DataTable.js +401 -250
  17. package/dist/components/data-table/DataTable.js.map +1 -1
  18. package/dist/components/data-table/DataTableContent.d.ts +7 -1
  19. package/dist/components/data-table/DataTableContent.js +246 -210
  20. package/dist/components/data-table/DataTableContent.js.map +1 -1
  21. package/dist/components/data-table/DataTableFilters.d.ts +1 -1
  22. package/dist/components/data-table/DataTableFilters.js +24 -23
  23. package/dist/components/data-table/DataTableFilters.js.map +1 -1
  24. package/dist/components/data-table/layout.d.ts +5 -0
  25. package/dist/components/data-table/layout.js +23 -1
  26. package/dist/components/data-table/layout.js.map +1 -1
  27. package/dist/components/data-table/types.d.ts +22 -0
  28. package/dist/components/data-table/useDataTable.d.ts +1 -1
  29. package/dist/components/data-table/useDataTable.js +367 -335
  30. package/dist/components/data-table/useDataTable.js.map +1 -1
  31. package/dist/components/progress/Progress.d.ts +2 -1
  32. package/dist/components/progress/Progress.js.map +1 -1
  33. package/dist/components/stat-card/StatCard.d.ts +7 -2
  34. package/dist/components/stat-card/StatCard.js +1 -1
  35. package/dist/components/stat-card/StatCard.js.map +1 -1
  36. package/dist/components.json +102 -15
  37. package/dist/icons/index.d.ts +4 -0
  38. package/dist/icons/index.js +12 -1
  39. package/dist/icons/index.js.map +1 -1
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +3 -2
  42. package/dist/labels/Labels.d.ts +9 -1
  43. package/dist/labels/Labels.js +4 -0
  44. package/dist/labels/Labels.js.map +1 -1
  45. package/dist/labels/hu.d.ts +17 -0
  46. package/dist/labels/hu.js +124 -0
  47. package/dist/labels/hu.js.map +1 -0
  48. package/dist/llms-full.txt +52 -13
  49. package/dist/llms.txt +2 -1
  50. package/dist/opti-ui.css +171 -40
  51. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,64 @@
3
3
  All notable changes to `@optimum-intelligence/opti-ui`. Versions follow [semver](https://semver.org/); while
4
4
  the version is `0.x`, minor releases may contain breaking changes, which are marked **Breaking**.
5
5
 
6
+ ## 0.8.1
7
+
8
+ ### Added
9
+
10
+ - `--oui-color-hover-shade`: what filled danger and toned buttons mix toward on hover (`black` in light mode,
11
+ `white` in dark mode).
12
+ - `--oui-color-accent-fill`: the accent as a fill that carries state on its own. Equal to the accent in light
13
+ mode, lifted toward the accent text in dark mode.
14
+ - `huLabels`: every built-in text in Hungarian, for `<LabelsProvider labels={huLabels}>`.
15
+ - `NavbarItem` `tabLabel`: a shorter label for the mobile tab bar; the full label becomes the tab's tooltip.
16
+ - `Labels` keys `commandPalette`, `commandSearch`, `breadcrumbs` and `remove`.
17
+ - `DataTable` `bulkActions`: while rows are selected, the header row shows their count, a clear button and these
18
+ actions in place of the column names, at the header's height, so no row moves and the toolbar stays usable.
19
+ `DataTable.Content` takes them as `selectionActions`. Also the instance's `clearSelection` and the label
20
+ `clearSelection`.
21
+ - `DataTable` `columnsMenu`: a button whose menu shows and hides columns (`DataTable.ColumnsMenu`). The choice is
22
+ `hiddenColumns` / `defaultHiddenColumns` / `onHiddenColumnsChange`; `hideable: false` keeps a column out of the
23
+ menu. New label `columns`, and `ColumnsIcon`.
24
+ - `ProgressTone` `info` (the accent, as in `Badge` and `Alert`).
25
+ - `--oui-radius-micro` (2px), for marks inside components: step connectors, tab indicators, legend swatches.
26
+ - `--oui-shadow-thumb` and `--oui-color-thumb`, for the switch and slider knobs.
27
+
28
+ ### Changed
29
+
30
+ - `StatTone` uses the shared vocabulary: `success` and `danger`. `positive` and `negative` still work but are
31
+ deprecated, and the delta's `data-tone` is now `success` / `danger`.
32
+ - `DataTable` toolbar: the "Filters" button comes right after the search, so when the row wraps the quick filters
33
+ move down together instead of the button alone. On phones the filter sheet's button is an icon with the active
34
+ count on its corner, leaving the search about 70px wider.
35
+ - `DataTable`: the selected-row count moved from the footer to the header row; the pagination keeps its range
36
+ while rows are selected.
37
+ - Disabled buttons of every variant turn neutral (45% ink text, a 10% ink fill on filled and soft buttons, a plain
38
+ border on secondary ones) instead of fading to 50% opacity, as filled buttons already did.
39
+
40
+ ### Fixed
41
+
42
+ - Dark mode: focused fields, comboboxes and table editors no longer get dimmer when focused. The focus border,
43
+ focus ring and hover border now come from the light accent text instead of the dark accent (about 2:1 before).
44
+ - Dark mode: the danger button, toned filled buttons on hover, avatar initials and the stepper's error step use
45
+ `--oui-color-on-tone` instead of white, which was about 3.3:1 on the light dark-mode fills.
46
+ - `Map.Marker` numbers pick white or near-black from the pin colour, so they stay readable on warning, yellow
47
+ and other light series colours, and on the default accent pin in dark mode.
48
+ - The light cyan, green and pink tones are a little darker (`#007f9d`, `#38852a`, `#c04599`) so white text on
49
+ solid badges, toned buttons and pins reaches 4.5:1.
50
+ - Dark mode: progress and meter bars, the slider and the switch "on" track use `--oui-color-accent-fill`, which
51
+ reaches 3:1 on the surfaces (the accent was about 2.5:1). Chart series 8 follows.
52
+ - Touch screens: checkboxes, radios and the remove buttons of tags and combobox chips get a 40px hit area
53
+ without changing their size (shared `touch-target` mixin, also used by sortable table headers).
54
+ - `DataTable` "Filters" button: its label is centred. The active count sits on the button's corner instead of
55
+ an invisible placeholder that pushed the label left.
56
+ - `DataTable` `stickyFirstColumn` with selection: the sticky column sits at the checkboxes' measured width. It
57
+ assumed 36px, so on phones (where the checkbox column measures 26px) it covered 10px of the next column.
58
+ - `Avatar` initials have a 10px floor; at `xs` they were 8.6px.
59
+ - Placeholders and subtle text (`--oui-color-text-subtle`) reach 4.5:1 in dark mode; they measured 4.1:1 on the
60
+ muted dark surface.
61
+ - `CommandPalette` title, placeholder and empty text, the `Combobox.Chip` remove button and the `Breadcrumbs`
62
+ name come from `LabelsProvider` instead of fixed English. A chip with text content is named "Remove <text>".
63
+
6
64
  ## 0.8.0
7
65
 
8
66
  ### Added
package/README.md CHANGED
@@ -79,7 +79,7 @@ so the components work in Next.js App Router.
79
79
  | Disclosure & navigation | `Tabs.*`, `Accordion.*`, `Collapsible.*`, `Breadcrumbs` + `Breadcrumb`, `Pagination`, `Stepper` |
80
80
  | Feedback & data | `Alert`, `Badge`, `Tag`, `Avatar`, `AvatarGroup`, `Progress`, `Meter`, `Skeleton`, `SkeletonText`, `Spinner`, `Table` (+ parts), `DataTable`, `EmptyState`, `Heading`, `Text`, `Eyebrow`, `Link` |
81
81
  | Maps (`/map` entry) | `Map.Root`, `Map.Routes`, `Map.Areas`, `Map.Points`, `Map.Marker`, `Map.Popup`, `Map.Tooltip`, `Map.Overlay`, `Map.Legend`, `Map.BaseLayerSwitch`, `rasterStyle`, `useResolvedColors` (see [Maps](#maps)) |
82
- | Theme | `ThemeProvider`, `createTheme`, `themeToStyle`, `seriesColor`, `DateConfigProvider`, `useDateConfig`, `LabelsProvider`, `useLabels`, `useMediaQuery`, icons (`CheckIcon`, `ChevronDownIcon`, …) |
82
+ | Theme | `ThemeProvider`, `createTheme`, `themeToStyle`, `seriesColor`, `DateConfigProvider`, `useDateConfig`, `LabelsProvider`, `useLabels`, `huLabels`, `useMediaQuery`, icons (`CheckIcon`, `ChevronDownIcon`, …) |
83
83
 
84
84
  Components with a common one-line form can be called directly, and their parts are attached for full
85
85
  control: `<Select items={…} />` or `<Select.Root>…<Select.Trigger/>…</Select.Root>`; the same applies to
@@ -96,7 +96,7 @@ Display is ISO-style on a 24-hour clock (`2026-03-09 14:30`) unless you pass a `
96
96
 
97
97
  Built-in texts (close buttons, placeholders, table and calendar texts) are English. `LabelsProvider`
98
98
  replaces them for everything inside it, so an app translates them once; a component's own label props still
99
- win.
99
+ win. `huLabels` is the full Hungarian set: `<LabelsProvider labels={huLabels}>`.
100
100
 
101
101
  `DataTable` handles search, filters, sorting, pagination, selection, row actions and inline editing for
102
102
  rows held in memory. Columns declare what they take part in:
@@ -190,8 +190,8 @@ const table = useDataTable({ data, columns });
190
190
  <DataTable.Toolbar>
191
191
  <DataTable.Controls>
192
192
  <DataTable.Search />
193
- <DataTable.Filters quick />
194
193
  <DataTable.FilterPanel />
194
+ <DataTable.Filters quick />
195
195
  <DataTable.ClearFilters keepSpace />
196
196
  </DataTable.Controls>
197
197
  <DataTable.Actions>
@@ -76,12 +76,17 @@ export interface NavbarItemProps extends useRender.ComponentProps<'a', NavbarIte
76
76
  * first four in navbar order are used. Has no effect outside an `AppShell`.
77
77
  */
78
78
  pinned?: boolean;
79
+ /**
80
+ * Shorter label for the mobile tab bar, where long labels are cut short (e.g. "Vehicles" for "Vehicle
81
+ * register"). The full label stays in the navbar and becomes the tab's tooltip. Only used with `pinned`.
82
+ */
83
+ tabLabel?: React.ReactNode;
79
84
  }
80
85
  /**
81
86
  * Navigation link. Renders an `<a>`; use `render={<Link to="…" />}` for a
82
87
  * router link or `render={<button />}` for an action. Inside a `NavbarGroup` it becomes an indented sub-link.
83
88
  */
84
- export declare function NavbarItem({ icon, active, badge, pinned, render, children, ref, ...props }: NavbarItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
89
+ export declare function NavbarItem({ icon, active, badge, pinned, tabLabel, render, children, ref, ...props }: NavbarItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
85
90
  export interface NavbarGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
86
91
  /** Ref to the group's root element. */
87
92
  ref?: React.Ref<HTMLDivElement>;
@@ -259,7 +259,7 @@ function NavbarBrand(t0) {
259
259
  * router link or `render={<button />}` for an action. Inside a `NavbarGroup` it becomes an indented sub-link.
260
260
  */
261
261
  function NavbarItem(t0) {
262
- const $ = c(46);
262
+ const $ = c(48);
263
263
  let badge;
264
264
  let children;
265
265
  let icon;
@@ -268,8 +268,9 @@ function NavbarItem(t0) {
268
268
  let render;
269
269
  let t1;
270
270
  let t2;
271
+ let tabLabel;
271
272
  if ($[0] !== t0) {
272
- ({icon, active: t1, badge, pinned: t2, render, children, ref, ...props} = t0);
273
+ ({icon, active: t1, badge, pinned: t2, tabLabel, render, children, ref, ...props} = t0);
273
274
  $[0] = t0;
274
275
  $[1] = badge;
275
276
  $[2] = children;
@@ -279,6 +280,7 @@ function NavbarItem(t0) {
279
280
  $[6] = render;
280
281
  $[7] = t1;
281
282
  $[8] = t2;
283
+ $[9] = tabLabel;
282
284
  } else {
283
285
  badge = $[1];
284
286
  children = $[2];
@@ -288,6 +290,7 @@ function NavbarItem(t0) {
288
290
  render = $[6];
289
291
  t1 = $[7];
290
292
  t2 = $[8];
293
+ tabLabel = $[9];
291
294
  }
292
295
  const active = t1 === void 0 ? false : t1;
293
296
  const pinned = t2 === void 0 ? false : t2;
@@ -299,117 +302,120 @@ function NavbarItem(t0) {
299
302
  const id = React.useId();
300
303
  const nodeRef = React.useRef(null);
301
304
  let t3;
302
- if ($[9] !== active || $[10] !== children || $[11] !== icon || $[12] !== id || $[13] !== props || $[14] !== register || $[15] !== render) {
305
+ if ($[10] !== active || $[11] !== children || $[12] !== icon || $[13] !== id || $[14] !== props || $[15] !== register || $[16] !== render || $[17] !== tabLabel) {
303
306
  t3 = () => {
304
307
  if (!register) return;
305
308
  const { className: _className, style: _style, title: _title, ...rest } = props;
309
+ const title = typeof children === "string" ? children : void 0;
306
310
  register(id, {
307
311
  node: nodeRef.current,
308
312
  icon,
309
- label: children,
313
+ label: tabLabel ?? children,
314
+ title,
310
315
  active,
311
316
  render,
312
317
  props: rest
313
318
  });
314
319
  };
315
- $[9] = active;
316
- $[10] = children;
317
- $[11] = icon;
318
- $[12] = id;
319
- $[13] = props;
320
- $[14] = register;
321
- $[15] = render;
322
- $[16] = t3;
323
- } else t3 = $[16];
320
+ $[10] = active;
321
+ $[11] = children;
322
+ $[12] = icon;
323
+ $[13] = id;
324
+ $[14] = props;
325
+ $[15] = register;
326
+ $[16] = render;
327
+ $[17] = tabLabel;
328
+ $[18] = t3;
329
+ } else t3 = $[18];
324
330
  React.useEffect(t3);
325
331
  let t4;
326
332
  let t5;
327
- if ($[17] !== id || $[18] !== register) {
333
+ if ($[19] !== id || $[20] !== register) {
328
334
  t4 = () => {
329
335
  if (register) return () => register(id, null);
330
336
  };
331
337
  t5 = [register, id];
332
- $[17] = id;
333
- $[18] = register;
334
- $[19] = t4;
335
- $[20] = t5;
338
+ $[19] = id;
339
+ $[20] = register;
340
+ $[21] = t4;
341
+ $[22] = t5;
336
342
  } else {
337
- t4 = $[19];
338
- t5 = $[20];
343
+ t4 = $[21];
344
+ t5 = $[22];
339
345
  }
340
346
  React.useEffect(t4, t5);
341
347
  let t6;
342
- if ($[21] !== active) {
348
+ if ($[23] !== active) {
343
349
  t6 = { active };
344
- $[21] = active;
345
- $[22] = t6;
346
- } else t6 = $[22];
350
+ $[23] = active;
351
+ $[24] = t6;
352
+ } else t6 = $[24];
347
353
  const state = t6;
348
354
  let t7;
349
- if ($[23] !== ref) {
355
+ if ($[25] !== ref) {
350
356
  t7 = [ref, nodeRef];
351
- $[23] = ref;
352
- $[24] = t7;
353
- } else t7 = $[24];
357
+ $[25] = ref;
358
+ $[26] = t7;
359
+ } else t7 = $[26];
354
360
  const t8 = t7;
355
361
  const t9 = active ? "page" : void 0;
356
362
  const t10 = collapsed && typeof children === "string" ? children : void 0;
357
363
  let t11;
358
- if ($[25] !== icon || $[26] !== nested) {
364
+ if ($[27] !== icon || $[28] !== nested) {
359
365
  t11 = icon && !nested && /* @__PURE__ */ jsx("span", {
360
366
  className: "oui-navbar__item-icon",
361
367
  children: icon
362
368
  });
363
- $[25] = icon;
364
- $[26] = nested;
365
- $[27] = t11;
366
- } else t11 = $[27];
369
+ $[27] = icon;
370
+ $[28] = nested;
371
+ $[29] = t11;
372
+ } else t11 = $[29];
367
373
  let t12;
368
- if ($[28] !== children) {
374
+ if ($[30] !== children) {
369
375
  t12 = /* @__PURE__ */ jsx("span", {
370
376
  className: "oui-navbar__item-label",
371
377
  children
372
378
  });
373
- $[28] = children;
374
- $[29] = t12;
375
- } else t12 = $[29];
379
+ $[30] = children;
380
+ $[31] = t12;
381
+ } else t12 = $[31];
376
382
  let t13;
377
- if ($[30] !== badge) {
383
+ if ($[32] !== badge) {
378
384
  t13 = badge != null && /* @__PURE__ */ jsx("span", {
379
385
  className: "oui-navbar__item-badge",
380
386
  children: badge
381
387
  });
382
- $[30] = badge;
383
- $[31] = t13;
384
- } else t13 = $[31];
388
+ $[32] = badge;
389
+ $[33] = t13;
390
+ } else t13 = $[33];
385
391
  let t14;
386
- if ($[32] !== t11 || $[33] !== t12 || $[34] !== t13) {
392
+ if ($[34] !== t11 || $[35] !== t12 || $[36] !== t13) {
387
393
  t14 = /* @__PURE__ */ jsxs(Fragment, { children: [
388
394
  t11,
389
395
  t12,
390
396
  t13
391
397
  ] });
392
- $[32] = t11;
393
- $[33] = t12;
394
- $[34] = t13;
395
- $[35] = t14;
396
- } else t14 = $[35];
398
+ $[34] = t11;
399
+ $[35] = t12;
400
+ $[36] = t13;
401
+ $[37] = t14;
402
+ } else t14 = $[37];
397
403
  let t15;
398
- if ($[36] !== props || $[37] !== t10 || $[38] !== t14 || $[39] !== t9) {
404
+ if ($[38] !== props || $[39] !== t10 || $[40] !== t14 || $[41] !== t9) {
399
405
  t15 = mergeProps({
400
406
  className: "oui-navbar__item",
401
407
  "aria-current": t9,
402
408
  title: t10,
403
409
  children: t14
404
410
  }, props);
405
- $[36] = props;
406
- $[37] = t10;
407
- $[38] = t14;
408
- $[39] = t9;
409
- $[40] = t15;
410
- } else t15 = $[40];
411
+ $[38] = props;
412
+ $[39] = t10;
413
+ $[40] = t14;
414
+ $[41] = t9;
415
+ $[42] = t15;
416
+ } else t15 = $[42];
411
417
  let t16;
412
- if ($[41] !== render || $[42] !== state || $[43] !== t15 || $[44] !== t8) {
418
+ if ($[43] !== render || $[44] !== state || $[45] !== t15 || $[46] !== t8) {
413
419
  t16 = {
414
420
  defaultTagName: "a",
415
421
  render,
@@ -417,12 +423,12 @@ function NavbarItem(t0) {
417
423
  state,
418
424
  props: t15
419
425
  };
420
- $[41] = render;
421
- $[42] = state;
422
- $[43] = t15;
423
- $[44] = t8;
424
- $[45] = t16;
425
- } else t16 = $[45];
426
+ $[43] = render;
427
+ $[44] = state;
428
+ $[45] = t15;
429
+ $[46] = t8;
430
+ $[47] = t16;
431
+ } else t16 = $[47];
426
432
  return useRender(t16);
427
433
  }
428
434
  function hasActiveItem(children) {
@@ -625,60 +631,59 @@ function PinnedTab(t0) {
625
631
  const state = t1;
626
632
  const t2 = entry.render;
627
633
  const t3 = entry.active ? "page" : void 0;
628
- const t4 = typeof entry.label === "string" ? entry.label : void 0;
629
- let t5;
634
+ let t4;
630
635
  if ($[2] !== entry.icon) {
631
- t5 = /* @__PURE__ */ jsx("span", {
636
+ t4 = /* @__PURE__ */ jsx("span", {
632
637
  className: "oui-app-shell__tab-icon",
633
638
  children: entry.icon
634
639
  });
635
640
  $[2] = entry.icon;
636
- $[3] = t5;
637
- } else t5 = $[3];
638
- let t6;
641
+ $[3] = t4;
642
+ } else t4 = $[3];
643
+ let t5;
639
644
  if ($[4] !== entry.label) {
640
- t6 = /* @__PURE__ */ jsx("span", {
645
+ t5 = /* @__PURE__ */ jsx("span", {
641
646
  className: "oui-app-shell__tab-label",
642
647
  children: entry.label
643
648
  });
644
649
  $[4] = entry.label;
645
- $[5] = t6;
646
- } else t6 = $[5];
650
+ $[5] = t5;
651
+ } else t5 = $[5];
652
+ let t6;
653
+ if ($[6] !== t4 || $[7] !== t5) {
654
+ t6 = /* @__PURE__ */ jsxs(Fragment, { children: [t4, t5] });
655
+ $[6] = t4;
656
+ $[7] = t5;
657
+ $[8] = t6;
658
+ } else t6 = $[8];
647
659
  let t7;
648
- if ($[6] !== t5 || $[7] !== t6) {
649
- t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t6] });
650
- $[6] = t5;
651
- $[7] = t6;
652
- $[8] = t7;
653
- } else t7 = $[8];
654
- let t8;
655
- if ($[9] !== entry.props || $[10] !== t3 || $[11] !== t4 || $[12] !== t7) {
656
- t8 = mergeProps({
660
+ if ($[9] !== entry.props || $[10] !== entry.title || $[11] !== t3 || $[12] !== t6) {
661
+ t7 = mergeProps({
657
662
  className: "oui-app-shell__tab",
658
663
  "aria-current": t3,
659
- title: t4,
660
- children: t7
664
+ title: entry.title,
665
+ children: t6
661
666
  }, entry.props);
662
667
  $[9] = entry.props;
663
- $[10] = t3;
664
- $[11] = t4;
665
- $[12] = t7;
666
- $[13] = t8;
667
- } else t8 = $[13];
668
- let t9;
669
- if ($[14] !== entry.render || $[15] !== state || $[16] !== t8) {
670
- t9 = {
668
+ $[10] = entry.title;
669
+ $[11] = t3;
670
+ $[12] = t6;
671
+ $[13] = t7;
672
+ } else t7 = $[13];
673
+ let t8;
674
+ if ($[14] !== entry.render || $[15] !== state || $[16] !== t7) {
675
+ t8 = {
671
676
  defaultTagName: "a",
672
677
  render: t2,
673
678
  state,
674
- props: t8
679
+ props: t7
675
680
  };
676
681
  $[14] = entry.render;
677
682
  $[15] = state;
678
- $[16] = t8;
679
- $[17] = t9;
680
- } else t9 = $[17];
681
- return useRender(t9);
683
+ $[16] = t7;
684
+ $[17] = t8;
685
+ } else t8 = $[17];
686
+ return useRender(t8);
682
687
  }
683
688
  /**
684
689
  * Full-height layout with a fixed navbar and an internally scrolling main