@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.
- package/CHANGELOG.md +58 -0
- package/README.md +3 -3
- package/dist/components/app-shell/AppShell.d.ts +6 -1
- package/dist/components/app-shell/AppShell.js +99 -94
- package/dist/components/app-shell/AppShell.js.map +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +6 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +42 -40
- package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +38 -29
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/command-palette/CommandPalette.d.ts +13 -4
- package/dist/components/command-palette/CommandPalette.js +91 -89
- package/dist/components/command-palette/CommandPalette.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +34 -12
- package/dist/components/data-table/DataTable.js +401 -250
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTableContent.d.ts +7 -1
- package/dist/components/data-table/DataTableContent.js +246 -210
- package/dist/components/data-table/DataTableContent.js.map +1 -1
- package/dist/components/data-table/DataTableFilters.d.ts +1 -1
- package/dist/components/data-table/DataTableFilters.js +24 -23
- package/dist/components/data-table/DataTableFilters.js.map +1 -1
- package/dist/components/data-table/layout.d.ts +5 -0
- package/dist/components/data-table/layout.js +23 -1
- package/dist/components/data-table/layout.js.map +1 -1
- package/dist/components/data-table/types.d.ts +22 -0
- package/dist/components/data-table/useDataTable.d.ts +1 -1
- package/dist/components/data-table/useDataTable.js +367 -335
- package/dist/components/data-table/useDataTable.js.map +1 -1
- package/dist/components/progress/Progress.d.ts +2 -1
- package/dist/components/progress/Progress.js.map +1 -1
- package/dist/components/stat-card/StatCard.d.ts +7 -2
- package/dist/components/stat-card/StatCard.js +1 -1
- package/dist/components/stat-card/StatCard.js.map +1 -1
- package/dist/components.json +102 -15
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +12 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/labels/Labels.d.ts +9 -1
- package/dist/labels/Labels.js +4 -0
- package/dist/labels/Labels.js.map +1 -1
- package/dist/labels/hu.d.ts +17 -0
- package/dist/labels/hu.js +124 -0
- package/dist/labels/hu.js.map +1 -0
- package/dist/llms-full.txt +52 -13
- package/dist/llms.txt +2 -1
- package/dist/opti-ui.css +171 -40
- 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(
|
|
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 ($[
|
|
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
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
338
|
+
$[19] = id;
|
|
339
|
+
$[20] = register;
|
|
340
|
+
$[21] = t4;
|
|
341
|
+
$[22] = t5;
|
|
336
342
|
} else {
|
|
337
|
-
t4 = $[
|
|
338
|
-
t5 = $[
|
|
343
|
+
t4 = $[21];
|
|
344
|
+
t5 = $[22];
|
|
339
345
|
}
|
|
340
346
|
React.useEffect(t4, t5);
|
|
341
347
|
let t6;
|
|
342
|
-
if ($[
|
|
348
|
+
if ($[23] !== active) {
|
|
343
349
|
t6 = { active };
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
} else t6 = $[
|
|
350
|
+
$[23] = active;
|
|
351
|
+
$[24] = t6;
|
|
352
|
+
} else t6 = $[24];
|
|
347
353
|
const state = t6;
|
|
348
354
|
let t7;
|
|
349
|
-
if ($[
|
|
355
|
+
if ($[25] !== ref) {
|
|
350
356
|
t7 = [ref, nodeRef];
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
} else t7 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
} else t11 = $[
|
|
369
|
+
$[27] = icon;
|
|
370
|
+
$[28] = nested;
|
|
371
|
+
$[29] = t11;
|
|
372
|
+
} else t11 = $[29];
|
|
367
373
|
let t12;
|
|
368
|
-
if ($[
|
|
374
|
+
if ($[30] !== children) {
|
|
369
375
|
t12 = /* @__PURE__ */ jsx("span", {
|
|
370
376
|
className: "oui-navbar__item-label",
|
|
371
377
|
children
|
|
372
378
|
});
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
} else t12 = $[
|
|
379
|
+
$[30] = children;
|
|
380
|
+
$[31] = t12;
|
|
381
|
+
} else t12 = $[31];
|
|
376
382
|
let t13;
|
|
377
|
-
if ($[
|
|
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
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
} else t13 = $[
|
|
388
|
+
$[32] = badge;
|
|
389
|
+
$[33] = t13;
|
|
390
|
+
} else t13 = $[33];
|
|
385
391
|
let t14;
|
|
386
|
-
if ($[
|
|
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
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
} else t14 = $[
|
|
398
|
+
$[34] = t11;
|
|
399
|
+
$[35] = t12;
|
|
400
|
+
$[36] = t13;
|
|
401
|
+
$[37] = t14;
|
|
402
|
+
} else t14 = $[37];
|
|
397
403
|
let t15;
|
|
398
|
-
if ($[
|
|
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
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
} else t15 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
} else t16 = $[
|
|
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
|
-
|
|
629
|
-
let t5;
|
|
634
|
+
let t4;
|
|
630
635
|
if ($[2] !== entry.icon) {
|
|
631
|
-
|
|
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] =
|
|
637
|
-
} else
|
|
638
|
-
let
|
|
641
|
+
$[3] = t4;
|
|
642
|
+
} else t4 = $[3];
|
|
643
|
+
let t5;
|
|
639
644
|
if ($[4] !== entry.label) {
|
|
640
|
-
|
|
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] =
|
|
646
|
-
} else
|
|
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 ($[
|
|
649
|
-
t7 =
|
|
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:
|
|
660
|
-
children:
|
|
664
|
+
title: entry.title,
|
|
665
|
+
children: t6
|
|
661
666
|
}, entry.props);
|
|
662
667
|
$[9] = entry.props;
|
|
663
|
-
$[10] =
|
|
664
|
-
$[11] =
|
|
665
|
-
$[12] =
|
|
666
|
-
$[13] =
|
|
667
|
-
} else
|
|
668
|
-
let
|
|
669
|
-
if ($[14] !== entry.render || $[15] !== state || $[16] !==
|
|
670
|
-
|
|
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:
|
|
679
|
+
props: t7
|
|
675
680
|
};
|
|
676
681
|
$[14] = entry.render;
|
|
677
682
|
$[15] = state;
|
|
678
|
-
$[16] =
|
|
679
|
-
$[17] =
|
|
680
|
-
} else
|
|
681
|
-
return useRender(
|
|
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
|