@apliteni/apliteni-ui 0.141.0 → 0.142.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.
@@ -4100,7 +4100,33 @@ function Toast({ children, collapse = false }) {
4100
4100
 
4101
4101
  // src/AppShell.tsx
4102
4102
  import { useEffect as useEffect15, useId as useId12, useRef as useRef20, useState as useState16 } from "react";
4103
- import { paletteHotkey, prism, railCollapsed } from "@apliteni/apliteni-ui";
4103
+ import { prism } from "@apliteni/apliteni-ui";
4104
+
4105
+ // src/lib/palette-hotkey.ts
4106
+ function paletteHotkey(platform = typeof navigator === "undefined" ? "" : navigator.platform) {
4107
+ return /mac|iphone|ipad|ipod/i.test(platform || "") ? "\u2318K" : "Ctrl K";
4108
+ }
4109
+
4110
+ // src/lib/rail.ts
4111
+ var RAIL_COOKIE = "apliteni-ui-rail";
4112
+ var RAIL_VALUE = new RegExp(`(?:^|;\\s*)${RAIL_COOKIE}=(collapsed|expanded)(?:;|$)`);
4113
+ var documentCookies = () => {
4114
+ try {
4115
+ return typeof document === "undefined" ? "" : document.cookie;
4116
+ } catch {
4117
+ return "";
4118
+ }
4119
+ };
4120
+ function railCollapsed(cookies = documentCookies()) {
4121
+ const match = RAIL_VALUE.exec(String(cookies ?? ""));
4122
+ return match ? match[1] === "collapsed" : null;
4123
+ }
4124
+ function storeRailCollapsed(collapsed) {
4125
+ try {
4126
+ document.cookie = `${RAIL_COOKIE}=${collapsed ? "collapsed" : "expanded"}; Max-Age=31536000; Path=/; SameSite=Lax`;
4127
+ } catch {
4128
+ }
4129
+ }
4104
4130
 
4105
4131
  // src/SidebarNav.tsx
4106
4132
  import { forwardRef as forwardRef8, useEffect as useEffect14, useId as useId11, useState as useState15 } from "react";
@@ -4199,10 +4225,48 @@ var SidebarNav = forwardRef8(function SidebarNav2({
4199
4225
  ] });
4200
4226
  });
4201
4227
 
4228
+ // src/Breadcrumbs.tsx
4229
+ import { forwardRef as forwardRef9 } from "react";
4230
+ import { icon as icon7, safeUrl as safeUrl2 } from "@apliteni/apliteni-ui";
4231
+ import { Fragment as Fragment15, jsx as jsx37, jsxs as jsxs32 } from "react/jsx-runtime";
4232
+ var Breadcrumbs = forwardRef9(function Breadcrumbs2({
4233
+ items,
4234
+ renderLink,
4235
+ className,
4236
+ "aria-label": ariaLabel = "Breadcrumb",
4237
+ ...rest
4238
+ }, ref) {
4239
+ return /* @__PURE__ */ jsx37(
4240
+ "nav",
4241
+ {
4242
+ ...rest,
4243
+ ref,
4244
+ className: ["ui-nav", "ui-nav--crumbs", className].filter(Boolean).join(" "),
4245
+ "aria-label": ariaLabel,
4246
+ children: /* @__PURE__ */ jsx37("ol", { className: "ui-nav__crumbs", children: items.map((item, index) => {
4247
+ const current = index === items.length - 1;
4248
+ const inner = /* @__PURE__ */ jsxs32(Fragment15, { children: [
4249
+ item.icon && /* @__PURE__ */ jsx37("span", { className: "ui-nav__ic", dangerouslySetInnerHTML: { __html: icon7(item.icon) } }),
4250
+ /* @__PURE__ */ jsx37("span", { className: "ui-nav__crumb-label", children: item.label })
4251
+ ] });
4252
+ const linkProps = !current && item.href ? { className: "ui-nav__crumb", href: safeUrl2(item.href), target: item.target, children: inner } : null;
4253
+ return /* @__PURE__ */ jsx37("li", { className: "ui-nav__crumb-item", children: linkProps ? renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx37("a", { ...linkProps }) : /* @__PURE__ */ jsx37(
4254
+ "span",
4255
+ {
4256
+ className: ["ui-nav__crumb", current && "is-current"].filter(Boolean).join(" "),
4257
+ "aria-current": current ? "page" : void 0,
4258
+ children: inner
4259
+ }
4260
+ ) }, index);
4261
+ }) })
4262
+ }
4263
+ );
4264
+ });
4265
+
4202
4266
  // src/ThemeToggle.tsx
4203
4267
  import { useSyncExternalStore } from "react";
4204
4268
  import { themeIcon } from "@apliteni/apliteni-ui";
4205
- import { jsx as jsx37, jsxs as jsxs32 } from "react/jsx-runtime";
4269
+ import { jsx as jsx38, jsxs as jsxs33 } from "react/jsx-runtime";
4206
4270
  var STORAGE_KEY = "apliteni-strategy-theme";
4207
4271
  var CHOICE_EVENT = "apliteni-theme-choice";
4208
4272
  var THEME_INIT_SCRIPT = `(()=>{let t;try{t=localStorage.getItem('apliteni-strategy-theme')}catch{}document.documentElement.setAttribute('data-theme',t==='dark'||t==='light'?t:window.matchMedia?.('(prefers-color-scheme: light)').matches?'light':'dark')})()`;
@@ -4260,10 +4324,10 @@ function ThemeToggle({ labelled = false }) {
4260
4324
  }
4261
4325
  window.dispatchEvent(new Event(CHOICE_EVENT));
4262
4326
  };
4263
- const button = /* @__PURE__ */ jsx37("button", { type: "button", className: "toggle", "aria-label": name, title: name, onClick: toggle, children: /* @__PURE__ */ jsx37("span", { className: "ic", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: themeIcon(theme) } }) });
4264
- return labelled ? /* @__PURE__ */ jsxs32("span", { className: "ui-theme-toggle", children: [
4327
+ const button = /* @__PURE__ */ jsx38("button", { type: "button", className: "toggle", "aria-label": name, title: name, onClick: toggle, children: /* @__PURE__ */ jsx38("span", { className: "ic", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: themeIcon(theme) } }) });
4328
+ return labelled ? /* @__PURE__ */ jsxs33("span", { className: "ui-theme-toggle", children: [
4265
4329
  button,
4266
- /* @__PURE__ */ jsxs32("span", { children: [
4330
+ /* @__PURE__ */ jsxs33("span", { children: [
4267
4331
  label,
4268
4332
  " theme"
4269
4333
  ] })
@@ -4271,7 +4335,7 @@ function ThemeToggle({ labelled = false }) {
4271
4335
  }
4272
4336
 
4273
4337
  // src/AppShell.tsx
4274
- import { Fragment as Fragment15, jsx as jsx38, jsxs as jsxs33 } from "react/jsx-runtime";
4338
+ import { Fragment as Fragment16, jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
4275
4339
  var path = (value) => value.split(/[?#]/)[0].replace(/\/+$/, "") || "/";
4276
4340
  function AppShell({
4277
4341
  sections,
@@ -4280,9 +4344,11 @@ function AppShell({
4280
4344
  children,
4281
4345
  word = "apliteni-ui",
4282
4346
  brand,
4347
+ layout = "topbar",
4283
4348
  brandHref = "/",
4284
4349
  width = "centered",
4285
4350
  back,
4351
+ crumbs,
4286
4352
  lede,
4287
4353
  actions,
4288
4354
  bandControl,
@@ -4318,6 +4384,7 @@ function AppShell({
4318
4384
  return () => window.removeEventListener("resize", grown);
4319
4385
  }, [menu]);
4320
4386
  useEffect15(() => {
4387
+ if (layout === "rail") return;
4321
4388
  const hotkey = (event) => {
4322
4389
  if (!(event.metaKey || event.ctrlKey) || event.altKey || event.shiftKey || event.key.toLowerCase() !== "k") return;
4323
4390
  const target = event.target;
@@ -4327,20 +4394,17 @@ function AppShell({
4327
4394
  };
4328
4395
  document.addEventListener("keydown", hotkey);
4329
4396
  return () => document.removeEventListener("keydown", hotkey);
4330
- }, []);
4397
+ }, [layout]);
4331
4398
  const fold = () => {
4332
4399
  const next = !collapsed;
4333
4400
  setCollapsed(next);
4334
- try {
4335
- document.cookie = `apliteni-ui-rail=${next ? "collapsed" : "expanded"}; Max-Age=31536000; Path=/; SameSite=Lax`;
4336
- } catch {
4337
- }
4401
+ storeRailCollapsed(next);
4338
4402
  };
4339
- const sidebar = (label) => /* @__PURE__ */ jsx38(
4403
+ const sidebar = (label) => /* @__PURE__ */ jsx39(
4340
4404
  SidebarNav,
4341
4405
  {
4342
4406
  "aria-label": label,
4343
- items: sections.map((section) => ({ ...section, id: section.href, badge: section.count })),
4407
+ items: sections.map((section) => ({ ...section, id: section.href, badge: layout === "rail" ? void 0 : section.count })),
4344
4408
  active: active?.href,
4345
4409
  activeIs: back ? "section" : "page",
4346
4410
  renderLink: (item, props) => {
@@ -4348,33 +4412,112 @@ function AppShell({
4348
4412
  const linkProps = { ...props, onClick: (event) => {
4349
4413
  if (!event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey) setMenu(false);
4350
4414
  } };
4351
- return renderLink ? renderLink(section, linkProps) : /* @__PURE__ */ jsx38("a", { ...linkProps });
4415
+ return renderLink ? renderLink(section, linkProps) : /* @__PURE__ */ jsx39("a", { ...linkProps });
4352
4416
  }
4353
4417
  }
4354
4418
  );
4355
4419
  const foldLabel = collapsed ? "Expand sidebar" : "Collapse sidebar";
4356
4420
  const navigable = sections.length > 1 || Boolean(back);
4357
- const lockup = /* @__PURE__ */ jsxs33("a", { className: "ui-app__brand", href: brandHref, "aria-label": word, children: [
4358
- brand ?? /* @__PURE__ */ jsx38("i", { "aria-hidden": "true", className: "ui-react-app__mark", dangerouslySetInnerHTML: { __html: prism(uid, 24) } }),
4359
- /* @__PURE__ */ jsx38("span", { children: word })
4421
+ const lockup = /* @__PURE__ */ jsxs34("a", { className: "ui-app__brand", href: brandHref, "aria-label": word, children: [
4422
+ brand ?? /* @__PURE__ */ jsx39("i", { "aria-hidden": "true", className: "ui-react-app__mark", dangerouslySetInnerHTML: { __html: prism(uid, 24) } }),
4423
+ /* @__PURE__ */ jsx39("span", { children: word })
4360
4424
  ] });
4361
- return /* @__PURE__ */ jsxs33("div", { className: `ui-app ui-app--topbar ui-react-app${collapsed ? " is-collapsed" : ""}`, children: [
4362
- navigable && /* @__PURE__ */ jsxs33("div", { className: "ui-app__rail", role: "region", "aria-label": "Sidebar", children: [
4363
- /* @__PURE__ */ jsx38("div", { className: "ui-app__head", children: lockup }),
4364
- sidebar("Sections"),
4365
- /* @__PURE__ */ jsx38("div", { className: "ui-app__foot", children: /* @__PURE__ */ jsx38("div", { className: "ui-app__fold-row", children: /* @__PURE__ */ jsxs33("button", { type: "button", className: "ui-nav__item ui-app__fold", "aria-expanded": !collapsed, "aria-label": foldLabel, onClick: fold, children: [
4366
- /* @__PURE__ */ jsx38("span", { className: "ui-nav__ic", children: /* @__PURE__ */ jsxs33("svg", { className: "ui-icon", viewBox: "0 0 24 24", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4367
- /* @__PURE__ */ jsx38("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
4368
- /* @__PURE__ */ jsx38("path", { className: "ui-app__fold-seam", d: "M9 3v18" }),
4369
- /* @__PURE__ */ jsx38("path", { className: "ui-app__fold-arrow", d: "m16 15-3-3 3-3" })
4425
+ const accountBlock = () => /* @__PURE__ */ jsx39("div", { className: "ui-app__user", children: /* @__PURE__ */ jsx39(
4426
+ Dropdown,
4427
+ {
4428
+ variant: "menu",
4429
+ direction: "up",
4430
+ align: "start",
4431
+ chevron: true,
4432
+ ariaLabel: `Signed in as ${account.name}, ${account.email}`,
4433
+ triggerClass: "ui-app__user-trigger",
4434
+ panelClass: "ui-app__user-panel",
4435
+ triggerContent: /* @__PURE__ */ jsxs34(Fragment16, { children: [
4436
+ /* @__PURE__ */ jsx39("span", { className: "ui-app__av", "aria-hidden": "true", children: /* @__PURE__ */ jsx39(Avatar, { personKey: account.email || account.name, name: account.name, size: 32 }) }),
4437
+ /* @__PURE__ */ jsxs34("span", { className: "ui-app__who", children: [
4438
+ /* @__PURE__ */ jsx39("b", { children: account.name }),
4439
+ /* @__PURE__ */ jsx39("span", { children: account.email })
4440
+ ] })
4441
+ ] }),
4442
+ items: [{ label: "Sign out", icon: "logout", danger: true }],
4443
+ onSelect: onSignOut
4444
+ }
4445
+ ) });
4446
+ const foldControl = /* @__PURE__ */ jsx39("div", { className: "ui-app__fold-row", children: /* @__PURE__ */ jsxs34(
4447
+ "button",
4448
+ {
4449
+ type: "button",
4450
+ className: "ui-nav__item ui-app__fold",
4451
+ "aria-expanded": !collapsed,
4452
+ "aria-label": foldLabel,
4453
+ onClick: fold,
4454
+ children: [
4455
+ /* @__PURE__ */ jsx39("span", { className: "ui-nav__ic", children: /* @__PURE__ */ jsxs34("svg", { className: "ui-icon", viewBox: "0 0 24 24", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4456
+ /* @__PURE__ */ jsx39("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
4457
+ /* @__PURE__ */ jsx39("path", { className: "ui-app__fold-seam", d: "M9 3v18" }),
4458
+ /* @__PURE__ */ jsx39("path", { className: "ui-app__fold-arrow", d: "m16 15-3-3 3-3" })
4370
4459
  ] }) }),
4371
- /* @__PURE__ */ jsx38("span", { className: "ui-nav__label", children: foldLabel })
4372
- ] }) }) })
4460
+ /* @__PURE__ */ jsx39("span", { className: "ui-nav__label", children: foldLabel })
4461
+ ]
4462
+ }
4463
+ ) });
4464
+ const page = /* @__PURE__ */ jsxs34("main", { className: `ui-app__main${width === "wide" ? " ui-app__main--wide" : ""}`, children: [
4465
+ back ? /* @__PURE__ */ jsx39(BackLink, { ...back }) : crumbs?.length ? /* @__PURE__ */ jsx39(Breadcrumbs, { items: crumbs }) : null,
4466
+ /* @__PURE__ */ jsx39("h1", { children: title }),
4467
+ lede && /* @__PURE__ */ jsx39("p", { className: "ui-app__sub", children: lede }),
4468
+ actions && /* @__PURE__ */ jsx39("div", { className: "ui-react-app__actions", children: actions }),
4469
+ /* @__PURE__ */ jsx39("div", { className: "ui-app__body", children })
4470
+ ] });
4471
+ if (layout === "rail") return /* @__PURE__ */ jsxs34("div", { className: `ui-app ui-react-app${collapsed ? " is-collapsed" : ""}`, children: [
4472
+ /* @__PURE__ */ jsxs34("div", { className: "ui-app__rail", role: "region", "aria-label": "Sidebar", children: [
4473
+ /* @__PURE__ */ jsxs34("div", { className: "ui-app__head", children: [
4474
+ lockup,
4475
+ foldControl
4476
+ ] }),
4477
+ sidebar("Sections"),
4478
+ accountBlock()
4373
4479
  ] }),
4374
- /* @__PURE__ */ jsxs33("div", { className: "ui-app__well", children: [
4375
- /* @__PURE__ */ jsxs33("header", { className: "ui-app__bar", children: [
4376
- navigable && /* @__PURE__ */ jsxs33(Fragment15, { children: [
4377
- /* @__PURE__ */ jsx38(
4480
+ /* @__PURE__ */ jsxs34("header", { className: "ui-app__bar ui-app__bar--phone", children: [
4481
+ /* @__PURE__ */ jsx39(
4482
+ Button,
4483
+ {
4484
+ ref: menuButton,
4485
+ variant: "ghost",
4486
+ icon: "menu",
4487
+ iconOnly: true,
4488
+ "aria-label": "Menu",
4489
+ className: "ui-app__menu",
4490
+ "aria-haspopup": "dialog",
4491
+ "aria-expanded": menu,
4492
+ onClick: () => setMenu(true)
4493
+ }
4494
+ ),
4495
+ /* @__PURE__ */ jsx39("a", { className: "ui-app__brand ui-app__brand--band", href: brandHref, "aria-label": word, children: brand ?? /* @__PURE__ */ jsx39("i", { "aria-hidden": "true", className: "ui-react-app__mark", dangerouslySetInnerHTML: { __html: prism(`${uid}-band`, 24) } }) })
4496
+ ] }),
4497
+ page,
4498
+ /* @__PURE__ */ jsx39(
4499
+ Drawer,
4500
+ {
4501
+ open: menu,
4502
+ onClose: () => setMenu(false),
4503
+ title: word,
4504
+ side: "left",
4505
+ size: "sm",
4506
+ footer: /* @__PURE__ */ jsx39("div", { className: "ui-app__drawer", children: accountBlock() }),
4507
+ children: /* @__PURE__ */ jsx39("div", { className: "ui-app__drawer", children: sidebar("Menu sections") })
4508
+ }
4509
+ )
4510
+ ] });
4511
+ return /* @__PURE__ */ jsxs34("div", { className: `ui-app ui-app--topbar ui-react-app${collapsed ? " is-collapsed" : ""}`, children: [
4512
+ navigable && /* @__PURE__ */ jsxs34("div", { className: "ui-app__rail", role: "region", "aria-label": "Sidebar", children: [
4513
+ /* @__PURE__ */ jsx39("div", { className: "ui-app__head", children: lockup }),
4514
+ sidebar("Sections"),
4515
+ /* @__PURE__ */ jsx39("div", { className: "ui-app__foot", children: foldControl })
4516
+ ] }),
4517
+ /* @__PURE__ */ jsxs34("div", { className: "ui-app__well", children: [
4518
+ /* @__PURE__ */ jsxs34("header", { className: "ui-app__bar", children: [
4519
+ navigable && /* @__PURE__ */ jsxs34(Fragment16, { children: [
4520
+ /* @__PURE__ */ jsx39(
4378
4521
  Button,
4379
4522
  {
4380
4523
  ref: menuButton,
@@ -4388,19 +4531,19 @@ function AppShell({
4388
4531
  onClick: () => setMenu(true)
4389
4532
  }
4390
4533
  ),
4391
- /* @__PURE__ */ jsx38("a", { className: "ui-app__brand ui-app__brand--band", href: brandHref, "aria-label": word, children: brand ?? /* @__PURE__ */ jsx38("i", { "aria-hidden": "true", className: "ui-react-app__mark", dangerouslySetInnerHTML: { __html: prism(`${uid}-band`, 24) } }) })
4534
+ /* @__PURE__ */ jsx39("a", { className: "ui-app__brand ui-app__brand--band", href: brandHref, "aria-label": word, children: brand ?? /* @__PURE__ */ jsx39("i", { "aria-hidden": "true", className: "ui-react-app__mark", dangerouslySetInnerHTML: { __html: prism(`${uid}-band`, 24) } }) })
4392
4535
  ] }),
4393
4536
  !navigable && lockup,
4394
- /* @__PURE__ */ jsxs33("button", { type: "button", className: "ui-app__search", "aria-haspopup": "dialog", onClick: () => setSearch(true), children: [
4395
- /* @__PURE__ */ jsx38("span", { className: "ui-app__search-ic", children: /* @__PURE__ */ jsx38(Icon, { name: "search" }) }),
4396
- /* @__PURE__ */ jsx38("span", { className: "ui-app__search-txt", children: searchLabel }),
4397
- /* @__PURE__ */ jsx38("span", { className: "ui-app__search-short", "aria-hidden": "true", children: searchShortLabel }),
4398
- /* @__PURE__ */ jsx38("kbd", { className: "ui-cmdk__key", children: paletteHotkey() })
4537
+ /* @__PURE__ */ jsxs34("button", { type: "button", className: "ui-app__search", "aria-haspopup": "dialog", onClick: () => setSearch(true), children: [
4538
+ /* @__PURE__ */ jsx39("span", { className: "ui-app__search-ic", children: /* @__PURE__ */ jsx39(Icon, { name: "search" }) }),
4539
+ /* @__PURE__ */ jsx39("span", { className: "ui-app__search-txt", children: searchLabel }),
4540
+ /* @__PURE__ */ jsx39("span", { className: "ui-app__search-short", "aria-hidden": "true", children: searchShortLabel }),
4541
+ /* @__PURE__ */ jsx39("kbd", { className: "ui-cmdk__key", children: paletteHotkey() })
4399
4542
  ] }),
4400
- /* @__PURE__ */ jsx38("span", { className: "ui-app__bar-gap" }),
4401
- bandControl && /* @__PURE__ */ jsx38("span", { className: "ui-react-app__band-control", children: bandControl }),
4402
- /* @__PURE__ */ jsx38(ThemeToggle, {}),
4403
- /* @__PURE__ */ jsx38("div", { className: "ui-app__user ui-app__user--bar", children: /* @__PURE__ */ jsx38(
4543
+ /* @__PURE__ */ jsx39("span", { className: "ui-app__bar-gap" }),
4544
+ bandControl && /* @__PURE__ */ jsx39("span", { className: "ui-react-app__band-control", children: bandControl }),
4545
+ /* @__PURE__ */ jsx39(ThemeToggle, {}),
4546
+ /* @__PURE__ */ jsx39("div", { className: "ui-app__user ui-app__user--bar", children: /* @__PURE__ */ jsx39(
4404
4547
  Dropdown,
4405
4548
  {
4406
4549
  variant: "menu",
@@ -4409,43 +4552,37 @@ function AppShell({
4409
4552
  ariaLabel: `Signed in as ${account.name}, ${account.email}`,
4410
4553
  triggerClass: "ui-app__user-trigger",
4411
4554
  panelClass: "ui-app__user-panel",
4412
- triggerContent: /* @__PURE__ */ jsx38("span", { className: "ui-app__av", "aria-hidden": "true", children: /* @__PURE__ */ jsx38(Avatar, { personKey: account.email || account.name, name: account.name, size: 32 }) }),
4413
- header: /* @__PURE__ */ jsxs33("div", { className: "ui-dropdown__head", children: [
4414
- /* @__PURE__ */ jsx38("b", { children: account.name }),
4415
- /* @__PURE__ */ jsx38("span", { children: account.email })
4555
+ triggerContent: /* @__PURE__ */ jsx39("span", { className: "ui-app__av", "aria-hidden": "true", children: /* @__PURE__ */ jsx39(Avatar, { personKey: account.email || account.name, name: account.name, size: 32 }) }),
4556
+ header: /* @__PURE__ */ jsxs34("div", { className: "ui-dropdown__head", children: [
4557
+ /* @__PURE__ */ jsx39("b", { children: account.name }),
4558
+ /* @__PURE__ */ jsx39("span", { children: account.email })
4416
4559
  ] }),
4417
4560
  items: [{ label: "Sign out", icon: "logout", danger: true }],
4418
4561
  onSelect: onSignOut
4419
4562
  }
4420
4563
  ) })
4421
4564
  ] }),
4422
- /* @__PURE__ */ jsxs33("main", { className: `ui-app__main${width === "wide" ? " ui-app__main--wide" : ""}`, children: [
4423
- back && /* @__PURE__ */ jsx38(BackLink, { ...back }),
4424
- /* @__PURE__ */ jsx38("h1", { children: title }),
4425
- lede && /* @__PURE__ */ jsx38("p", { className: "ui-app__sub", children: lede }),
4426
- actions && /* @__PURE__ */ jsx38("div", { className: "ui-react-app__actions", children: actions }),
4427
- /* @__PURE__ */ jsx38("div", { className: "ui-app__body", children })
4428
- ] })
4565
+ page
4429
4566
  ] }),
4430
- navigable && /* @__PURE__ */ jsx38(Drawer, { open: menu, onClose: () => setMenu(false), title: word, side: "left", size: "sm", children: /* @__PURE__ */ jsx38("div", { className: "ui-react-app__menu", children: sidebar("Menu sections") }) }),
4431
- /* @__PURE__ */ jsx38(CommandPalette, { ...palette ?? { groups: [{ items: sections.map((section) => ({ id: section.href, ...section })) }] }, open: search, onClose: () => setSearch(false) })
4567
+ navigable && /* @__PURE__ */ jsx39(Drawer, { open: menu, onClose: () => setMenu(false), title: word, side: "left", size: "sm", children: /* @__PURE__ */ jsx39("div", { className: "ui-react-app__menu", children: sidebar("Menu sections") }) }),
4568
+ /* @__PURE__ */ jsx39(CommandPalette, { ...palette ?? { groups: [{ items: sections.map((section) => ({ id: section.href, ...section })) }] }, open: search, onClose: () => setSearch(false) })
4432
4569
  ] });
4433
4570
  }
4434
4571
 
4435
4572
  // src/AuthShell.tsx
4436
- import { forwardRef as forwardRef9 } from "react";
4437
- import { jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
4438
- var AuthShell = forwardRef9(function AuthShell2({ brand, children, className, ...rest }, ref) {
4439
- return /* @__PURE__ */ jsx39("div", { ...rest, ref, className: ["ui-auth", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs34("div", { className: "ui-auth__card", children: [
4440
- /* @__PURE__ */ jsx39("div", { className: "ui-auth__brand", children: brand }),
4573
+ import { forwardRef as forwardRef10 } from "react";
4574
+ import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
4575
+ var AuthShell = forwardRef10(function AuthShell2({ brand, children, className, ...rest }, ref) {
4576
+ return /* @__PURE__ */ jsx40("div", { ...rest, ref, className: ["ui-auth", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs35("div", { className: "ui-auth__card", children: [
4577
+ /* @__PURE__ */ jsx40("div", { className: "ui-auth__brand", children: brand }),
4441
4578
  children
4442
4579
  ] }) });
4443
4580
  });
4444
4581
 
4445
4582
  // src/Footer.tsx
4446
4583
  import { useId as useId13 } from "react";
4447
- import { prism as prism2, safeUrl as safeUrl2 } from "@apliteni/apliteni-ui";
4448
- import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
4584
+ import { prism as prism2, safeUrl as safeUrl3 } from "@apliteni/apliteni-ui";
4585
+ import { jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
4449
4586
  var SOCIAL_GLYPHS = {
4450
4587
  github: '<path d="M12 2a10 10 0 0 0-3.16 19.49c.5.09.68-.22.68-.48v-1.7c-2.78.6-3.37-1.34-3.37-1.34-.45-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.53 2.34 1.09 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.09.39-1.98 1.03-2.68-.1-.25-.45-1.27.1-2.64 0 0 .84-.27 2.75 1.02a9.5 9.5 0 0 1 5 0c1.91-1.29 2.75-1.02 2.75-1.02.55 1.37.2 2.39.1 2.64.64.7 1.03 1.59 1.03 2.68 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85v2.74c0 .27.18.58.69.48A10 10 0 0 0 12 2z"/>',
4451
4588
  x: '<path d="M4 3h4.5l4 5.5L17.5 3H21l-6.5 8.5L21 21h-4.5l-4.3-5.9L7 21H3.5l6.8-8.9z"/>',
@@ -4454,10 +4591,10 @@ var SOCIAL_GLYPHS = {
4454
4591
  };
4455
4592
  var escapeText = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
4456
4593
  function Legal({ legal, legalLinks, switcher }) {
4457
- return /* @__PURE__ */ jsxs35("div", { className: "ui-footer__bar", children: [
4458
- /* @__PURE__ */ jsx40("span", { className: "ui-footer__legal", children: legal }),
4459
- legalLinks && legalLinks.length > 0 && /* @__PURE__ */ jsx40("nav", { className: "ui-footer__legal-links", "aria-label": "Legal", children: legalLinks.map(({ label, href: to }) => /* @__PURE__ */ jsx40("a", { href: safeUrl2(to ?? "#"), children: label }, label)) }),
4460
- switcher ? /* @__PURE__ */ jsx40("div", { className: "ui-footer__switcher", children: switcher }) : null
4594
+ return /* @__PURE__ */ jsxs36("div", { className: "ui-footer__bar", children: [
4595
+ /* @__PURE__ */ jsx41("span", { className: "ui-footer__legal", children: legal }),
4596
+ legalLinks && legalLinks.length > 0 && /* @__PURE__ */ jsx41("nav", { className: "ui-footer__legal-links", "aria-label": "Legal", children: legalLinks.map(({ label, href: to }) => /* @__PURE__ */ jsx41("a", { href: safeUrl3(to ?? "#"), children: label }, label)) }),
4597
+ switcher ? /* @__PURE__ */ jsx41("div", { className: "ui-footer__switcher", children: switcher }) : null
4461
4598
  ] });
4462
4599
  }
4463
4600
  function Footer({
@@ -4477,35 +4614,35 @@ function Footer({
4477
4614
  }) {
4478
4615
  const uid = useId13();
4479
4616
  const cls = ["ui-footer", `ui-footer--${variant}`, className].filter(Boolean).join(" ");
4480
- const bar = /* @__PURE__ */ jsx40(Legal, { legal, legalLinks, switcher });
4617
+ const bar = /* @__PURE__ */ jsx41(Legal, { legal, legalLinks, switcher });
4481
4618
  if (variant !== "full") {
4482
- return /* @__PURE__ */ jsx40("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsx40("div", { className: "ui-footer__in", children: bar }) });
4619
+ return /* @__PURE__ */ jsx41("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsx41("div", { className: "ui-footer__in", children: bar }) });
4483
4620
  }
4484
4621
  const mark = prism2(uid.replace(/:/g, ""), 22);
4485
- const lockup = brand ?? /* @__PURE__ */ jsx40(
4622
+ const lockup = brand ?? /* @__PURE__ */ jsx41(
4486
4623
  "a",
4487
4624
  {
4488
4625
  className: "brand",
4489
- href: safeUrl2(brandHref),
4626
+ href: safeUrl3(brandHref),
4490
4627
  "aria-label": `Apliteni ${word}`,
4491
4628
  dangerouslySetInnerHTML: { __html: `${mark}<span>${escapeText(word)}</span>` }
4492
4629
  }
4493
4630
  );
4494
- return /* @__PURE__ */ jsx40("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsxs35("div", { className: "ui-footer__in", children: [
4495
- /* @__PURE__ */ jsxs35("div", { className: "ui-footer__top", children: [
4496
- brand !== false && /* @__PURE__ */ jsxs35("div", { className: "ui-footer__brand", children: [
4631
+ return /* @__PURE__ */ jsx41("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsxs36("div", { className: "ui-footer__in", children: [
4632
+ /* @__PURE__ */ jsxs36("div", { className: "ui-footer__top", children: [
4633
+ brand !== false && /* @__PURE__ */ jsxs36("div", { className: "ui-footer__brand", children: [
4497
4634
  lockup,
4498
- tagline && /* @__PURE__ */ jsx40("p", { className: "ui-footer__tagline", children: tagline }),
4499
- social.length > 0 && /* @__PURE__ */ jsx40("div", { className: "ui-footer__socials", children: social.map(({ label, href: to, icon: icon9 = "github" }) => {
4635
+ tagline && /* @__PURE__ */ jsx41("p", { className: "ui-footer__tagline", children: tagline }),
4636
+ social.length > 0 && /* @__PURE__ */ jsx41("div", { className: "ui-footer__socials", children: social.map(({ label, href: to, icon: icon9 = "github" }) => {
4500
4637
  const markup = SOCIAL_GLYPHS[icon9];
4501
4638
  const fill = icon9 === "mail" ? "none" : "currentColor";
4502
4639
  const viewBox = icon9 === "linkedin" ? "0 0 448 512" : "0 0 24 24";
4503
- return /* @__PURE__ */ jsx40("a", { className: "ui-footer__social", href: safeUrl2(to ?? "#"), "aria-label": label, children: /* @__PURE__ */ jsx40("svg", { viewBox, fill, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: markup } }) }, label);
4640
+ return /* @__PURE__ */ jsx41("a", { className: "ui-footer__social", href: safeUrl3(to ?? "#"), "aria-label": label, children: /* @__PURE__ */ jsx41("svg", { viewBox, fill, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: markup } }) }, label);
4504
4641
  }) })
4505
4642
  ] }),
4506
- (links || columns.length > 0) && /* @__PURE__ */ jsx40("nav", { className: "ui-footer__nav", "aria-label": "Footer", children: links ?? columns.map(({ title, links: columnLinks }, i) => /* @__PURE__ */ jsxs35("div", { className: "ui-footer__col", children: [
4507
- title && /* @__PURE__ */ jsx40("h2", { className: "ui-footer__col-title", children: title }),
4508
- /* @__PURE__ */ jsx40("ul", { className: "ui-footer__links", children: columnLinks.map(({ label, href: to, target }) => /* @__PURE__ */ jsx40("li", { children: /* @__PURE__ */ jsx40("a", { href: safeUrl2(to ?? "#"), target, rel: target ? "noreferrer" : void 0, children: label }) }, label)) })
4643
+ (links || columns.length > 0) && /* @__PURE__ */ jsx41("nav", { className: "ui-footer__nav", "aria-label": "Footer", children: links ?? columns.map(({ title, links: columnLinks }, i) => /* @__PURE__ */ jsxs36("div", { className: "ui-footer__col", children: [
4644
+ title && /* @__PURE__ */ jsx41("h2", { className: "ui-footer__col-title", children: title }),
4645
+ /* @__PURE__ */ jsx41("ul", { className: "ui-footer__links", children: columnLinks.map(({ label, href: to, target }) => /* @__PURE__ */ jsx41("li", { children: /* @__PURE__ */ jsx41("a", { href: safeUrl3(to ?? "#"), target, rel: target ? "noreferrer" : void 0, children: label }) }, label)) })
4509
4646
  ] }, title ?? i)) })
4510
4647
  ] }),
4511
4648
  bar
@@ -4513,11 +4650,11 @@ function Footer({
4513
4650
  }
4514
4651
 
4515
4652
  // src/Success.tsx
4516
- import { forwardRef as forwardRef10, useEffect as useEffect16, useRef as useRef21, useState as useState17 } from "react";
4517
- import { jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
4518
- var SuccessCheck = forwardRef10(function SuccessCheck2({ variant = "line", className, ...rest }, ref) {
4653
+ import { forwardRef as forwardRef11, useEffect as useEffect16, useRef as useRef21, useState as useState17 } from "react";
4654
+ import { jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4655
+ var SuccessCheck = forwardRef11(function SuccessCheck2({ variant = "line", className, ...rest }, ref) {
4519
4656
  const circled = variant === "circled";
4520
- return /* @__PURE__ */ jsxs36(
4657
+ return /* @__PURE__ */ jsxs37(
4521
4658
  "svg",
4522
4659
  {
4523
4660
  ...rest,
@@ -4529,18 +4666,18 @@ var SuccessCheck = forwardRef10(function SuccessCheck2({ variant = "line", class
4529
4666
  "aria-hidden": "true",
4530
4667
  focusable: "false",
4531
4668
  children: [
4532
- circled && /* @__PURE__ */ jsx41("path", { className: "ui-sx__circle", d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
4533
- /* @__PURE__ */ jsx41("path", { className: "ui-sx__tick", d: circled ? "M22 4L12 14.01l-3-3" : "M20 6L9 17l-5-5" })
4669
+ circled && /* @__PURE__ */ jsx42("path", { className: "ui-sx__circle", d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
4670
+ /* @__PURE__ */ jsx42("path", { className: "ui-sx__tick", d: circled ? "M22 4L12 14.01l-3-3" : "M20 6L9 17l-5-5" })
4534
4671
  ]
4535
4672
  }
4536
4673
  );
4537
4674
  });
4538
- var SuccessPanel = forwardRef10(function SuccessPanel2({ title = "Done", sub, check = "line", className, ...rest }, ref) {
4675
+ var SuccessPanel = forwardRef11(function SuccessPanel2({ title = "Done", sub, check = "line", className, ...rest }, ref) {
4539
4676
  const circled = check === "circled";
4540
- return /* @__PURE__ */ jsxs36("div", { ...rest, ref, className: ["ui-success", className].filter(Boolean).join(" "), children: [
4541
- /* @__PURE__ */ jsx41("div", { className: ["ui-success__check", circled && "ui-success__check--circled"].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx41(SuccessCheck, { variant: circled ? "circled" : "line" }) }),
4542
- /* @__PURE__ */ jsx41("div", { className: "ui-success__title", children: title }),
4543
- sub && /* @__PURE__ */ jsx41("div", { className: "ui-success__sub", children: sub })
4677
+ return /* @__PURE__ */ jsxs37("div", { ...rest, ref, className: ["ui-success", className].filter(Boolean).join(" "), children: [
4678
+ /* @__PURE__ */ jsx42("div", { className: ["ui-success__check", circled && "ui-success__check--circled"].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx42(SuccessCheck, { variant: circled ? "circled" : "line" }) }),
4679
+ /* @__PURE__ */ jsx42("div", { className: "ui-success__title", children: title }),
4680
+ sub && /* @__PURE__ */ jsx42("div", { className: "ui-success__sub", children: sub })
4544
4681
  ] });
4545
4682
  });
4546
4683
  var pieces = [
@@ -4577,17 +4714,17 @@ function Countdown({ seconds, label = "Redirecting", onDone }) {
4577
4714
  }, 1e3);
4578
4715
  return () => clearInterval(timer);
4579
4716
  }, [seconds]);
4580
- return /* @__PURE__ */ jsxs36("div", { className: "ui-sx__count", "data-sx-count": "", style: { "--sx-secs": `${seconds}s` }, children: [
4581
- /* @__PURE__ */ jsx41("span", { className: "ui-sx__count-ring", "aria-hidden": "true" }),
4582
- /* @__PURE__ */ jsxs36("span", { className: "ui-sx__count-text", children: [
4717
+ return /* @__PURE__ */ jsxs37("div", { className: "ui-sx__count", "data-sx-count": "", style: { "--sx-secs": `${seconds}s` }, children: [
4718
+ /* @__PURE__ */ jsx42("span", { className: "ui-sx__count-ring", "aria-hidden": "true" }),
4719
+ /* @__PURE__ */ jsxs37("span", { className: "ui-sx__count-text", children: [
4583
4720
  label,
4584
4721
  " in ",
4585
- /* @__PURE__ */ jsx41("b", { "data-sx-num": "", children: remaining }),
4722
+ /* @__PURE__ */ jsx42("b", { "data-sx-num": "", children: remaining }),
4586
4723
  "s"
4587
4724
  ] })
4588
4725
  ] });
4589
4726
  }
4590
- var Success = forwardRef10(function Success2({
4727
+ var Success = forwardRef11(function Success2({
4591
4728
  layout = "hero",
4592
4729
  level,
4593
4730
  check = "line",
@@ -4609,7 +4746,7 @@ var Success = forwardRef10(function Success2({
4609
4746
  const seconds = countdown?.seconds;
4610
4747
  const duration = seconds != null && Number.isFinite(seconds) && seconds >= 1 ? Math.floor(seconds) : 5;
4611
4748
  const mark = check === "circled" ? "circled" : "line";
4612
- return /* @__PURE__ */ jsxs36(
4749
+ return /* @__PURE__ */ jsxs37(
4613
4750
  "div",
4614
4751
  {
4615
4752
  role: "status",
@@ -4618,16 +4755,16 @@ var Success = forwardRef10(function Success2({
4618
4755
  ref,
4619
4756
  className: ["ui-sx", `ui-sx--${layout}`, `ui-sx--check-${mark}`, confetti && "ui-sx--confetti", className].filter(Boolean).join(" "),
4620
4757
  children: [
4621
- confetti && /* @__PURE__ */ jsx41("div", { className: "ui-sx__confetti", "aria-hidden": "true", children: pieces.map(
4622
- ([x, d, r, t, s], index) => /* @__PURE__ */ jsx41("i", { className: `ui-sx__piece ui-sx__piece--${t}`, style: { left: `${x}%`, "--sx-d": `${d}s`, "--sx-r": `${r}deg`, "--sx-s": s } }, index)
4758
+ confetti && /* @__PURE__ */ jsx42("div", { className: "ui-sx__confetti", "aria-hidden": "true", children: pieces.map(
4759
+ ([x, d, r, t, s], index) => /* @__PURE__ */ jsx42("i", { className: `ui-sx__piece ui-sx__piece--${t}`, style: { left: `${x}%`, "--sx-d": `${d}s`, "--sx-r": `${r}deg`, "--sx-s": s } }, index)
4623
4760
  ) }),
4624
- /* @__PURE__ */ jsxs36("div", { className: "ui-sx__inner", children: [
4625
- /* @__PURE__ */ jsx41("div", { className: "ui-sx__visual", children: /* @__PURE__ */ jsx41(SuccessCheck, { variant: mark }) }),
4626
- /* @__PURE__ */ jsxs36("div", { className: "ui-sx__content", children: [
4627
- /* @__PURE__ */ jsx41(Heading, { className: "ui-sx__title", children: title }),
4628
- body && /* @__PURE__ */ jsx41("p", { className: "ui-sx__body", children: body }),
4629
- hasActions && /* @__PURE__ */ jsx41("div", { className: "ui-sx__actions", children: actions }),
4630
- countdown && /* @__PURE__ */ jsx41(Countdown, { seconds: duration, label: countdown.label, onDone: onCountdownEnd }, duration)
4761
+ /* @__PURE__ */ jsxs37("div", { className: "ui-sx__inner", children: [
4762
+ /* @__PURE__ */ jsx42("div", { className: "ui-sx__visual", children: /* @__PURE__ */ jsx42(SuccessCheck, { variant: mark }) }),
4763
+ /* @__PURE__ */ jsxs37("div", { className: "ui-sx__content", children: [
4764
+ /* @__PURE__ */ jsx42(Heading, { className: "ui-sx__title", children: title }),
4765
+ body && /* @__PURE__ */ jsx42("p", { className: "ui-sx__body", children: body }),
4766
+ hasActions && /* @__PURE__ */ jsx42("div", { className: "ui-sx__actions", children: actions }),
4767
+ countdown && /* @__PURE__ */ jsx42(Countdown, { seconds: duration, label: countdown.label, onDone: onCountdownEnd }, duration)
4631
4768
  ] })
4632
4769
  ] })
4633
4770
  ]
@@ -4646,7 +4783,7 @@ import {
4646
4783
  useState as useState18
4647
4784
  } from "react";
4648
4785
  import { CHART_FLOOR, bridgeWalk, chartScale, pointTarget } from "@apliteni/apliteni-ui";
4649
- import { Fragment as Fragment16, jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4786
+ import { Fragment as Fragment17, jsx as jsx43, jsxs as jsxs38 } from "react/jsx-runtime";
4650
4787
  var HEIGHT = { months: 216, bridge: 216, spark: 32 };
4651
4788
  var PAD = 2;
4652
4789
  var ZERO_INSET = 1.5;
@@ -5022,7 +5159,7 @@ function Chart(props) {
5022
5159
  const estimated = columns.filter((c) => c.estimated);
5023
5160
  const estimatedTone = marks.find((m) => m.estimated && m.kind === "bar")?.tone ?? keys[0]?.tone ?? "neutral";
5024
5161
  const hitBand = (band) => band === "up" ? { y: PAD, h: Math.max(zero - PAD, TARGET) } : band === "down" ? { y: zero, h: Math.max(plotHeight - PAD - zero, TARGET) } : { y: PAD, h: Math.max(plotHeight - PAD * 2, TARGET) };
5025
- return /* @__PURE__ */ jsxs37(
5162
+ return /* @__PURE__ */ jsxs38(
5026
5163
  "div",
5027
5164
  {
5028
5165
  className: cx8("ui-chart", `ui-chart--${variant}`, selectable && "ui-chart--pick", className),
@@ -5033,9 +5170,9 @@ function Chart(props) {
5033
5170
  "--ui-chart-pad": `${PAD}px`
5034
5171
  },
5035
5172
  children: [
5036
- !spark && keys.length > 0 && /* @__PURE__ */ jsxs37("ul", { className: "ui-chart__legend", children: [
5037
- keys.map((key) => /* @__PURE__ */ jsxs37("li", { className: cx8("ui-chart__key", `ui-chart__tone--${key.tone}`), children: [
5038
- key.shape === "line" ? /* @__PURE__ */ jsx42("svg", { className: "ui-chart__key-mark", width: "18", height: "12", viewBox: "0 0 18 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx42("path", { className: "ui-chart__key-line", d: "M1 9 L6 5 L12 7 L17 3" }) }) : /* @__PURE__ */ jsx42("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx42(
5173
+ !spark && keys.length > 0 && /* @__PURE__ */ jsxs38("ul", { className: "ui-chart__legend", children: [
5174
+ keys.map((key) => /* @__PURE__ */ jsxs38("li", { className: cx8("ui-chart__key", `ui-chart__tone--${key.tone}`), children: [
5175
+ key.shape === "line" ? /* @__PURE__ */ jsx43("svg", { className: "ui-chart__key-mark", width: "18", height: "12", viewBox: "0 0 18 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx43("path", { className: "ui-chart__key-line", d: "M1 9 L6 5 L12 7 L17 3" }) }) : /* @__PURE__ */ jsx43("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx43(
5039
5176
  "rect",
5040
5177
  {
5041
5178
  className: "ui-chart__key-swatch",
@@ -5048,12 +5185,12 @@ function Chart(props) {
5048
5185
  ) }),
5049
5186
  key.name
5050
5187
  ] }, key.id)),
5051
- estimated.length > 0 && /* @__PURE__ */ jsxs37("li", { className: cx8("ui-chart__key", `ui-chart__tone--${estimatedTone}`), children: [
5052
- /* @__PURE__ */ jsx42("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx42("rect", { className: "ui-chart__key-estimated", x: "1.5", y: "1.5", width: "9", height: "9", rx: "1" }) }),
5188
+ estimated.length > 0 && /* @__PURE__ */ jsxs38("li", { className: cx8("ui-chart__key", `ui-chart__tone--${estimatedTone}`), children: [
5189
+ /* @__PURE__ */ jsx43("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx43("rect", { className: "ui-chart__key-estimated", x: "1.5", y: "1.5", width: "9", height: "9", rx: "1" }) }),
5053
5190
  "Estimated"
5054
5191
  ] })
5055
5192
  ] }),
5056
- /* @__PURE__ */ jsxs37(
5193
+ /* @__PURE__ */ jsxs38(
5057
5194
  "div",
5058
5195
  {
5059
5196
  ref: frameEl,
@@ -5077,8 +5214,8 @@ function Chart(props) {
5077
5214
  setSaid("");
5078
5215
  },
5079
5216
  children: [
5080
- !spark && scale.ticks.length > 0 && /* @__PURE__ */ jsx42("div", { className: "ui-chart__axis", "aria-hidden": "true", children: [...scale.ticks].reverse().map((tick) => /* @__PURE__ */ jsx42("span", { className: "ui-chart__tick", children: formatAxis(tick) }, tick)) }),
5081
- /* @__PURE__ */ jsx42("div", { ref: scroller, className: "ui-chart__scroll", tabIndex: -1, onScroll: () => {
5217
+ !spark && scale.ticks.length > 0 && /* @__PURE__ */ jsx43("div", { className: "ui-chart__axis", "aria-hidden": "true", children: [...scale.ticks].reverse().map((tick) => /* @__PURE__ */ jsx43("span", { className: "ui-chart__tick", children: formatAxis(tick) }, tick)) }),
5218
+ /* @__PURE__ */ jsx43("div", { ref: scroller, className: "ui-chart__scroll", tabIndex: -1, onScroll: () => {
5082
5219
  syncEdges();
5083
5220
  const anchor = [...svgEl.current?.querySelectorAll("[data-anchor]") ?? []].find((el) => el.getAttribute("data-anchor") === openId);
5084
5221
  if (!anchor || !scroller.current || !frameEl.current || !tipEl.current) return;
@@ -5086,8 +5223,8 @@ function Chart(props) {
5086
5223
  const view = scroller.current.getBoundingClientRect();
5087
5224
  if (mark.right <= view.left || mark.left >= view.right) setOpenId(null);
5088
5225
  else placeTip(frameEl.current, anchor, tipEl.current, frameEl.current);
5089
- }, children: /* @__PURE__ */ jsxs37("div", { ref: plot, className: "ui-chart__plot", children: [
5090
- /* @__PURE__ */ jsxs37(
5226
+ }, children: /* @__PURE__ */ jsxs38("div", { ref: plot, className: "ui-chart__plot", children: [
5227
+ /* @__PURE__ */ jsxs38(
5091
5228
  "svg",
5092
5229
  {
5093
5230
  ref: svgEl,
@@ -5147,7 +5284,7 @@ function Chart(props) {
5147
5284
  announce(mark.column, selectable ? mark.column : pick);
5148
5285
  },
5149
5286
  children: [
5150
- !spark && pick !== null && pick >= 0 && pick < count && /* @__PURE__ */ jsx42(
5287
+ !spark && pick !== null && pick >= 0 && pick < count && /* @__PURE__ */ jsx43(
5151
5288
  "rect",
5152
5289
  {
5153
5290
  className: "ui-chart__band",
@@ -5160,7 +5297,7 @@ function Chart(props) {
5160
5297
  frame.links && frame.bars.slice(0, -1).map((bar, i) => {
5161
5298
  const from = byId.get(bar.id);
5162
5299
  const to = byId.get(frame.bars[i + 1].id);
5163
- return from && to ? /* @__PURE__ */ jsx42(
5300
+ return from && to ? /* @__PURE__ */ jsx43(
5164
5301
  "line",
5165
5302
  {
5166
5303
  className: "ui-chart__carry",
@@ -5172,7 +5309,7 @@ function Chart(props) {
5172
5309
  `carry-${bar.id}`
5173
5310
  ) : null;
5174
5311
  }),
5175
- !spark && scale.ticks.filter((tick) => tick !== 0).map((tick) => /* @__PURE__ */ jsx42(
5312
+ !spark && scale.ticks.filter((tick) => tick !== 0).map((tick) => /* @__PURE__ */ jsx43(
5176
5313
  "line",
5177
5314
  {
5178
5315
  className: "ui-chart__grid",
@@ -5183,7 +5320,7 @@ function Chart(props) {
5183
5320
  },
5184
5321
  `grid-${tick}`
5185
5322
  )),
5186
- !spark && scale.ticks.includes(0) && /* @__PURE__ */ jsx42(
5323
+ !spark && scale.ticks.includes(0) && /* @__PURE__ */ jsx43(
5187
5324
  "line",
5188
5325
  {
5189
5326
  className: "ui-chart__zero",
@@ -5193,7 +5330,7 @@ function Chart(props) {
5193
5330
  y2: px(y(0))
5194
5331
  }
5195
5332
  ),
5196
- marks.filter((m) => m.kind === "bar").map((mark) => /* @__PURE__ */ jsx42(
5333
+ marks.filter((m) => m.kind === "bar").map((mark) => /* @__PURE__ */ jsx43(
5197
5334
  "path",
5198
5335
  {
5199
5336
  className: cx8(
@@ -5206,7 +5343,7 @@ function Chart(props) {
5206
5343
  `bar-${mark.id}`
5207
5344
  )),
5208
5345
  ["casing", "stroke"].map((layer) => lines.flatMap(
5209
- (line) => line.values.slice(1).map((value, i) => Number.isFinite(value) && Number.isFinite(line.values[i]) ? /* @__PURE__ */ jsx42(
5346
+ (line) => line.values.slice(1).map((value, i) => Number.isFinite(value) && Number.isFinite(line.values[i]) ? /* @__PURE__ */ jsx43(
5210
5347
  "line",
5211
5348
  {
5212
5349
  className: layer === "casing" ? "ui-chart__line-casing" : cx8(
@@ -5222,7 +5359,7 @@ function Chart(props) {
5222
5359
  `${line.id}-${layer}-${i}`
5223
5360
  ) : null)
5224
5361
  )),
5225
- lines.flatMap((line) => line.values.map((value, i) => Number.isFinite(value) && !Number.isFinite(line.values[i - 1]) && !Number.isFinite(line.values[i + 1]) ? /* @__PURE__ */ jsx42(
5362
+ lines.flatMap((line) => line.values.map((value, i) => Number.isFinite(value) && !Number.isFinite(line.values[i - 1]) && !Number.isFinite(line.values[i + 1]) ? /* @__PURE__ */ jsx43(
5226
5363
  "circle",
5227
5364
  {
5228
5365
  className: cx8("ui-chart__isolated", `ui-chart__tone--${line.tone}`),
@@ -5232,8 +5369,8 @@ function Chart(props) {
5232
5369
  },
5233
5370
  `isolated-${line.id}-${i}`
5234
5371
  ) : null)),
5235
- marks.map((mark) => /* @__PURE__ */ jsxs37("g", { "data-mark": mark.id, children: [
5236
- mark.kind === "bar" ? /* @__PURE__ */ jsx42(
5372
+ marks.map((mark) => /* @__PURE__ */ jsxs38("g", { "data-mark": mark.id, children: [
5373
+ mark.kind === "bar" ? /* @__PURE__ */ jsx43(
5237
5374
  "rect",
5238
5375
  {
5239
5376
  className: "ui-chart__hit",
@@ -5242,7 +5379,7 @@ function Chart(props) {
5242
5379
  y: px(hitBand(mark.band).y),
5243
5380
  height: px(hitBand(mark.band).h)
5244
5381
  }
5245
- ) : /* @__PURE__ */ jsx42(
5382
+ ) : /* @__PURE__ */ jsx43(
5246
5383
  "rect",
5247
5384
  {
5248
5385
  className: "ui-chart__hit",
@@ -5252,7 +5389,7 @@ function Chart(props) {
5252
5389
  height: px(mark.hit?.h ?? TARGET)
5253
5390
  }
5254
5391
  ),
5255
- /* @__PURE__ */ jsx42(
5392
+ /* @__PURE__ */ jsx43(
5256
5393
  "rect",
5257
5394
  {
5258
5395
  "data-anchor": mark.id,
@@ -5267,7 +5404,7 @@ function Chart(props) {
5267
5404
  ]
5268
5405
  }
5269
5406
  ),
5270
- !spark && /* @__PURE__ */ jsx42("div", { className: "ui-chart__periods", "aria-hidden": "true", children: columns.map((column, i) => /* @__PURE__ */ jsx42(
5407
+ !spark && /* @__PURE__ */ jsx43("div", { className: "ui-chart__periods", "aria-hidden": "true", children: columns.map((column, i) => /* @__PURE__ */ jsx43(
5271
5408
  "span",
5272
5409
  {
5273
5410
  className: cx8("ui-chart__period", pick === i && "is-selected"),
@@ -5276,35 +5413,35 @@ function Chart(props) {
5276
5413
  `${column.label}-${i}`
5277
5414
  )) })
5278
5415
  ] }) }),
5279
- /* @__PURE__ */ jsx42("span", { ref: tipEl, className: cx8("ui-tip", openId && "is-open"), role: open ? "tooltip" : void 0, children: open && /* @__PURE__ */ jsxs37(Fragment16, { children: [
5280
- /* @__PURE__ */ jsx42("span", { className: "ui-tip__label", children: spark ? columns[open.column]?.label : `${open.name}, ${columns[open.column]?.label}` }),
5281
- /* @__PURE__ */ jsx42("span", { className: "ui-tip__value", children: format(open.value) }),
5282
- (stateOf(columns[open.column]) || open.detail) && /* @__PURE__ */ jsx42("span", { className: "ui-tip__detail", children: stateOf(columns[open.column]) || open.detail })
5416
+ /* @__PURE__ */ jsx43("span", { ref: tipEl, className: cx8("ui-tip", openId && "is-open"), role: open ? "tooltip" : void 0, children: open && /* @__PURE__ */ jsxs38(Fragment17, { children: [
5417
+ /* @__PURE__ */ jsx43("span", { className: "ui-tip__label", children: spark ? columns[open.column]?.label : `${open.name}, ${columns[open.column]?.label}` }),
5418
+ /* @__PURE__ */ jsx43("span", { className: "ui-tip__value", children: format(open.value) }),
5419
+ (stateOf(columns[open.column]) || open.detail) && /* @__PURE__ */ jsx43("span", { className: "ui-tip__detail", children: stateOf(columns[open.column]) || open.detail })
5283
5420
  ] }) })
5284
5421
  ]
5285
5422
  }
5286
5423
  ),
5287
- /* @__PURE__ */ jsx42("div", { className: "ui-sr", role: "status", children: said }),
5288
- showTable && /* @__PURE__ */ jsxs37("details", { className: "ui-chart__data", children: [
5289
- /* @__PURE__ */ jsx42("summary", { className: "ui-focusable", children: "Values as a table" }),
5290
- /* @__PURE__ */ jsx42(
5424
+ /* @__PURE__ */ jsx43("div", { className: "ui-sr", role: "status", children: said }),
5425
+ showTable && /* @__PURE__ */ jsxs38("details", { className: "ui-chart__data", children: [
5426
+ /* @__PURE__ */ jsx43("summary", { className: "ui-focusable", children: "Values as a table" }),
5427
+ /* @__PURE__ */ jsx43(
5291
5428
  "div",
5292
5429
  {
5293
5430
  className: "ui-table-scroll",
5294
5431
  role: "region",
5295
5432
  tabIndex: 0,
5296
5433
  "aria-label": `${title}, as a table. Scroll for more columns.`,
5297
- children: /* @__PURE__ */ jsxs37("table", { className: "ui-table", "aria-label": title, children: [
5298
- /* @__PURE__ */ jsx42("thead", { children: /* @__PURE__ */ jsx42("tr", { children: tableHead.map((head, i) => /* @__PURE__ */ jsx42("th", { scope: "col", className: cx8(i > 0 && "ui-table__num"), children: head }, head)) }) }),
5299
- /* @__PURE__ */ jsx42("tbody", { children: tableRows.map((row, i) => /* @__PURE__ */ jsxs37("tr", { "aria-current": pick === i ? true : void 0, children: [
5300
- /* @__PURE__ */ jsxs37("th", { scope: "row", children: [
5434
+ children: /* @__PURE__ */ jsxs38("table", { className: "ui-table", "aria-label": title, children: [
5435
+ /* @__PURE__ */ jsx43("thead", { children: /* @__PURE__ */ jsx43("tr", { children: tableHead.map((head, i) => /* @__PURE__ */ jsx43("th", { scope: "col", className: cx8(i > 0 && "ui-table__num"), children: head }, head)) }) }),
5436
+ /* @__PURE__ */ jsx43("tbody", { children: tableRows.map((row, i) => /* @__PURE__ */ jsxs38("tr", { "aria-current": pick === i ? true : void 0, children: [
5437
+ /* @__PURE__ */ jsxs38("th", { scope: "row", children: [
5301
5438
  row.column.label,
5302
- row.column.estimated && /* @__PURE__ */ jsxs37(Fragment16, { children: [
5439
+ row.column.estimated && /* @__PURE__ */ jsxs38(Fragment17, { children: [
5303
5440
  " ",
5304
- /* @__PURE__ */ jsx42("span", { className: "ui-chart__state", children: stateOf(row.column) })
5441
+ /* @__PURE__ */ jsx43("span", { className: "ui-chart__state", children: stateOf(row.column) })
5305
5442
  ] })
5306
5443
  ] }),
5307
- row.cells.map((cell, j) => /* @__PURE__ */ jsx42("td", { className: "ui-table__num", children: cell }, tableHead[j + 1]))
5444
+ row.cells.map((cell, j) => /* @__PURE__ */ jsx43("td", { className: "ui-table__num", children: cell }, tableHead[j + 1]))
5308
5445
  ] }, `${row.column.label}-${i}`)) })
5309
5446
  ] })
5310
5447
  }
@@ -5316,10 +5453,10 @@ function Chart(props) {
5316
5453
  }
5317
5454
 
5318
5455
  // src/AccentPicker.tsx
5319
- import { forwardRef as forwardRef11 } from "react";
5456
+ import { forwardRef as forwardRef12 } from "react";
5320
5457
  import { ACCENTS, accentSwatchStyle } from "@apliteni/apliteni-ui";
5321
- import { jsx as jsx43 } from "react/jsx-runtime";
5322
- var AccentPicker = forwardRef11(function AccentPicker2({
5458
+ import { jsx as jsx44 } from "react/jsx-runtime";
5459
+ var AccentPicker = forwardRef12(function AccentPicker2({
5323
5460
  value,
5324
5461
  onChange,
5325
5462
  options = ACCENTS,
@@ -5327,7 +5464,7 @@ var AccentPicker = forwardRef11(function AccentPicker2({
5327
5464
  "aria-label": label = "Accent",
5328
5465
  ...rest
5329
5466
  }, ref) {
5330
- return /* @__PURE__ */ jsx43(
5467
+ return /* @__PURE__ */ jsx44(
5331
5468
  "div",
5332
5469
  {
5333
5470
  ...rest,
@@ -5338,7 +5475,7 @@ var AccentPicker = forwardRef11(function AccentPicker2({
5338
5475
  "aria-label": label,
5339
5476
  children: options.map((accent) => {
5340
5477
  const title = accent.charAt(0).toUpperCase() + accent.slice(1);
5341
- return /* @__PURE__ */ jsx43(
5478
+ return /* @__PURE__ */ jsx44(
5342
5479
  "button",
5343
5480
  {
5344
5481
  type: "button",
@@ -5357,9 +5494,9 @@ var AccentPicker = forwardRef11(function AccentPicker2({
5357
5494
  });
5358
5495
 
5359
5496
  // src/TopBar.tsx
5360
- import { Fragment as Fragment17 } from "react";
5361
- import { prism as prism3, safeUrl as safeUrl3, icon as icon7, ACCOUNT_NAV } from "@apliteni/apliteni-ui";
5362
- import { Fragment as Fragment18, jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
5497
+ import { Fragment as Fragment18 } from "react";
5498
+ import { prism as prism3, safeUrl as safeUrl4, icon as icon8, ACCOUNT_NAV } from "@apliteni/apliteni-ui";
5499
+ import { Fragment as Fragment19, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
5363
5500
  function TopBar({
5364
5501
  brand,
5365
5502
  word = "Strategy",
@@ -5371,35 +5508,35 @@ function TopBar({
5371
5508
  className,
5372
5509
  ...rest
5373
5510
  }) {
5374
- return /* @__PURE__ */ jsx44("header", { ...rest, className: ["topbar", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs38("div", { className: "topbar__in", children: [
5375
- brand ?? /* @__PURE__ */ jsxs38("a", { className: "brand", href: safeUrl3(brandHref), "aria-label": `Apliteni ${word}`, children: [
5376
- /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: prism3("tb-mark", 22) } }),
5377
- /* @__PURE__ */ jsx44("span", { children: word })
5511
+ return /* @__PURE__ */ jsx45("header", { ...rest, className: ["topbar", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs39("div", { className: "topbar__in", children: [
5512
+ brand ?? /* @__PURE__ */ jsxs39("a", { className: "brand", href: safeUrl4(brandHref), "aria-label": `Apliteni ${word}`, children: [
5513
+ /* @__PURE__ */ jsx45("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: prism3("tb-mark", 22) } }),
5514
+ /* @__PURE__ */ jsx45("span", { children: word })
5378
5515
  ] }),
5379
5516
  view,
5380
- /* @__PURE__ */ jsx44("span", { className: "spacer" }),
5517
+ /* @__PURE__ */ jsx45("span", { className: "spacer" }),
5381
5518
  version,
5382
5519
  theme,
5383
5520
  account
5384
5521
  ] }) });
5385
5522
  }
5386
5523
  function ViewSwitch({ items, active, label = "View", renderLink }) {
5387
- return /* @__PURE__ */ jsx44("div", { className: "dtsw on", role: "group", "aria-label": label, children: items.map((item) => {
5524
+ return /* @__PURE__ */ jsx45("div", { className: "dtsw on", role: "group", "aria-label": label, children: items.map((item) => {
5388
5525
  const current = item.id === active;
5389
5526
  const linkProps = {
5390
5527
  className: current ? "cur" : void 0,
5391
- href: safeUrl3(item.href || `#${item.id}`),
5528
+ href: safeUrl4(item.href || `#${item.id}`),
5392
5529
  target: item.target,
5393
5530
  "aria-current": current ? "page" : void 0,
5394
5531
  children: item.label
5395
5532
  };
5396
- return /* @__PURE__ */ jsx44(Fragment17, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx44("a", { ...linkProps }) }, item.id);
5533
+ return /* @__PURE__ */ jsx45(Fragment18, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx45("a", { ...linkProps }) }, item.id);
5397
5534
  }) });
5398
5535
  }
5399
5536
  var BADGE = { live: "Live", archive: "Archive" };
5400
5537
  function VersionSwitcher({ versions, value, onChange, label = "Version", defaultOpen }) {
5401
5538
  const current = versions.find((v) => v.value === value);
5402
- return /* @__PURE__ */ jsx44("div", { className: "vsw", children: /* @__PURE__ */ jsx44(
5539
+ return /* @__PURE__ */ jsx45("div", { className: "vsw", children: /* @__PURE__ */ jsx45(
5403
5540
  Dropdown,
5404
5541
  {
5405
5542
  variant: "select",
@@ -5410,9 +5547,9 @@ function VersionSwitcher({ versions, value, onChange, label = "Version", default
5410
5547
  chevron: false,
5411
5548
  defaultOpen,
5412
5549
  ariaLabel: `${label} \u2014 ${current?.label ?? ""}`,
5413
- triggerContent: /* @__PURE__ */ jsxs38(Fragment18, { children: [
5414
- /* @__PURE__ */ jsx44("span", { className: "cur", children: current?.label }),
5415
- /* @__PURE__ */ jsx44("span", { className: "car", "aria-hidden": "true" })
5550
+ triggerContent: /* @__PURE__ */ jsxs39(Fragment19, { children: [
5551
+ /* @__PURE__ */ jsx45("span", { className: "cur", children: current?.label }),
5552
+ /* @__PURE__ */ jsx45("span", { className: "car", "aria-hidden": "true" })
5416
5553
  ] }),
5417
5554
  items: versions.map((v) => ({
5418
5555
  label: v.label,
@@ -5420,10 +5557,10 @@ function VersionSwitcher({ versions, value, onChange, label = "Version", default
5420
5557
  badge: BADGE[v.badge ?? "archive"],
5421
5558
  selected: v.value === value
5422
5559
  })),
5423
- row: (item, props) => /* @__PURE__ */ jsxs38("div", { ...props, className: `${props.className} vopt`, children: [
5424
- /* @__PURE__ */ jsx44("span", { className: "vname", children: item.label }),
5425
- /* @__PURE__ */ jsx44("span", { className: `vbadge ${item.badge === "Live" ? "live" : "arch"}`, children: String(item.badge) }),
5426
- /* @__PURE__ */ jsx44("span", { className: "vtick", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7("check") } })
5560
+ row: (item, props) => /* @__PURE__ */ jsxs39("div", { ...props, className: `${props.className} vopt`, children: [
5561
+ /* @__PURE__ */ jsx45("span", { className: "vname", children: item.label }),
5562
+ /* @__PURE__ */ jsx45("span", { className: `vbadge ${item.badge === "Live" ? "live" : "arch"}`, children: String(item.badge) }),
5563
+ /* @__PURE__ */ jsx45("span", { className: "vtick", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon8("check") } })
5427
5564
  ] }),
5428
5565
  onSelect: (picked) => {
5429
5566
  if (picked != null) onChange?.(String(picked));
@@ -5452,7 +5589,7 @@ function AccountMenu({
5452
5589
  defaultOpen
5453
5590
  }) {
5454
5591
  const mark = initialsOf(name, email);
5455
- return /* @__PURE__ */ jsx44("div", { className: "acct on", children: /* @__PURE__ */ jsx44(
5592
+ return /* @__PURE__ */ jsx45("div", { className: "acct on", children: /* @__PURE__ */ jsx45(
5456
5593
  Dropdown,
5457
5594
  {
5458
5595
  variant: "menu",
@@ -5463,22 +5600,22 @@ function AccountMenu({
5463
5600
  defaultOpen,
5464
5601
  ariaLabel: "Account",
5465
5602
  triggerContent: mark,
5466
- header: /* @__PURE__ */ jsxs38("div", { className: "ahead", children: [
5467
- /* @__PURE__ */ jsx44("span", { className: "avatar", children: mark }),
5468
- /* @__PURE__ */ jsxs38("span", { className: "aw", children: [
5469
- /* @__PURE__ */ jsx44("span", { className: "anm", children: name }),
5470
- /* @__PURE__ */ jsx44("span", { className: "aem", title: email, children: email })
5603
+ header: /* @__PURE__ */ jsxs39("div", { className: "ahead", children: [
5604
+ /* @__PURE__ */ jsx45("span", { className: "avatar", children: mark }),
5605
+ /* @__PURE__ */ jsxs39("span", { className: "aw", children: [
5606
+ /* @__PURE__ */ jsx45("span", { className: "anm", children: name }),
5607
+ /* @__PURE__ */ jsx45("span", { className: "aem", title: email, children: email })
5471
5608
  ] })
5472
5609
  ] }),
5473
5610
  items: [...items, "---", { label: "Sign out", icon: "logout", value: "sign-out", href: signOutHref }],
5474
- row: (item, props) => /* @__PURE__ */ jsxs38(
5611
+ row: (item, props) => /* @__PURE__ */ jsxs39(
5475
5612
  "a",
5476
5613
  {
5477
5614
  ...props,
5478
- href: item.disabled ? void 0 : item.href ? safeUrl3(item.href) : item.value === "sign-out" && onSignOut ? void 0 : safeUrl3(item.value === "sign-out" ? "#logout" : `#${item.value}`),
5615
+ href: item.disabled ? void 0 : item.href ? safeUrl4(item.href) : item.value === "sign-out" && onSignOut ? void 0 : safeUrl4(item.value === "sign-out" ? "#logout" : `#${item.value}`),
5479
5616
  className: [props.className.replace(/\bui-dropdown__item\b/, "").trim(), !item.disabled && item.value === current && "cur", item.value === "sign-out" && "aout"].filter(Boolean).join(" "),
5480
5617
  children: [
5481
- item.icon && /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7(item.icon) } }),
5618
+ item.icon && /* @__PURE__ */ jsx45("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon8(item.icon) } }),
5482
5619
  item.label
5483
5620
  ]
5484
5621
  }
@@ -5492,10 +5629,10 @@ function AccountMenu({
5492
5629
  }
5493
5630
 
5494
5631
  // src/NavTabs.tsx
5495
- import { Fragment as Fragment19, forwardRef as forwardRef12, useEffect as useEffect18, useRef as useRef23, useImperativeHandle as useImperativeHandle2 } from "react";
5496
- import { safeUrl as safeUrl4, observeNavFit, revealCurrentNav, revealFocusedNav } from "@apliteni/apliteni-ui";
5497
- import { Fragment as Fragment20, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
5498
- var NavTabs = forwardRef12(function NavTabs2({
5632
+ import { Fragment as Fragment20, forwardRef as forwardRef13, useEffect as useEffect18, useRef as useRef23, useImperativeHandle as useImperativeHandle2 } from "react";
5633
+ import { safeUrl as safeUrl5, observeNavFit, revealCurrentNav, revealFocusedNav } from "@apliteni/apliteni-ui";
5634
+ import { Fragment as Fragment21, jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
5635
+ var NavTabs = forwardRef13(function NavTabs2({
5499
5636
  items,
5500
5637
  active,
5501
5638
  variant = "underline",
@@ -5512,7 +5649,7 @@ var NavTabs = forwardRef12(function NavTabs2({
5512
5649
  useEffect18(() => {
5513
5650
  if (navRef.current) revealCurrentNav(navRef.current);
5514
5651
  }, [active, signature]);
5515
- return /* @__PURE__ */ jsx45(
5652
+ return /* @__PURE__ */ jsx46(
5516
5653
  "nav",
5517
5654
  {
5518
5655
  ...rest,
@@ -5525,63 +5662,25 @@ var NavTabs = forwardRef12(function NavTabs2({
5525
5662
  },
5526
5663
  children: items.map((item) => {
5527
5664
  const badge = item.badge != null && typeof item.badge === "object" ? item.badge : { text: item.badge, tone: void 0 };
5528
- const inner = /* @__PURE__ */ jsxs39(Fragment20, { children: [
5529
- /* @__PURE__ */ jsx45("span", { className: "ui-nav__tab-label", children: item.label }),
5530
- badge.text != null && badge.text !== "" && /* @__PURE__ */ jsx45("span", { className: `ui-nav__badge is-${badge.tone || "neutral"}`, children: badge.text })
5665
+ const inner = /* @__PURE__ */ jsxs40(Fragment21, { children: [
5666
+ /* @__PURE__ */ jsx46("span", { className: "ui-nav__tab-label", children: item.label }),
5667
+ badge.text != null && badge.text !== "" && /* @__PURE__ */ jsx46("span", { className: `ui-nav__badge is-${badge.tone || "neutral"}`, children: badge.text })
5531
5668
  ] });
5532
- if (item.disabled) return /* @__PURE__ */ jsx45("span", { className: "ui-nav__tab is-disabled", "aria-disabled": "true", children: inner }, item.id);
5669
+ if (item.disabled) return /* @__PURE__ */ jsx46("span", { className: "ui-nav__tab is-disabled", "aria-disabled": "true", children: inner }, item.id);
5533
5670
  const current = item.id === active;
5534
5671
  const linkProps = {
5535
5672
  className: ["ui-nav__tab", current && "is-active"].filter(Boolean).join(" "),
5536
- href: safeUrl4(item.href || `#${item.id}`),
5673
+ href: safeUrl5(item.href || `#${item.id}`),
5537
5674
  target: item.target,
5538
5675
  "aria-current": current ? "page" : void 0,
5539
5676
  children: inner
5540
5677
  };
5541
- return /* @__PURE__ */ jsx45(Fragment19, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx45("a", { ...linkProps }) }, item.id);
5678
+ return /* @__PURE__ */ jsx46(Fragment20, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx46("a", { ...linkProps }) }, item.id);
5542
5679
  })
5543
5680
  }
5544
5681
  );
5545
5682
  });
5546
5683
 
5547
- // src/Breadcrumbs.tsx
5548
- import { forwardRef as forwardRef13 } from "react";
5549
- import { icon as icon8, safeUrl as safeUrl5 } from "@apliteni/apliteni-ui";
5550
- import { Fragment as Fragment21, jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
5551
- var Breadcrumbs = forwardRef13(function Breadcrumbs2({
5552
- items,
5553
- renderLink,
5554
- className,
5555
- "aria-label": ariaLabel = "Breadcrumb",
5556
- ...rest
5557
- }, ref) {
5558
- return /* @__PURE__ */ jsx46(
5559
- "nav",
5560
- {
5561
- ...rest,
5562
- ref,
5563
- className: ["ui-nav", "ui-nav--crumbs", className].filter(Boolean).join(" "),
5564
- "aria-label": ariaLabel,
5565
- children: /* @__PURE__ */ jsx46("ol", { className: "ui-nav__crumbs", children: items.map((item, index) => {
5566
- const current = index === items.length - 1;
5567
- const inner = /* @__PURE__ */ jsxs40(Fragment21, { children: [
5568
- item.icon && /* @__PURE__ */ jsx46("span", { className: "ui-nav__ic", dangerouslySetInnerHTML: { __html: icon8(item.icon) } }),
5569
- /* @__PURE__ */ jsx46("span", { className: "ui-nav__crumb-label", children: item.label })
5570
- ] });
5571
- const linkProps = !current && item.href ? { className: "ui-nav__crumb", href: safeUrl5(item.href), target: item.target, children: inner } : null;
5572
- return /* @__PURE__ */ jsx46("li", { className: "ui-nav__crumb-item", children: linkProps ? renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx46("a", { ...linkProps }) : /* @__PURE__ */ jsx46(
5573
- "span",
5574
- {
5575
- className: ["ui-nav__crumb", current && "is-current"].filter(Boolean).join(" "),
5576
- "aria-current": current ? "page" : void 0,
5577
- children: inner
5578
- }
5579
- ) }, index);
5580
- }) })
5581
- }
5582
- );
5583
- });
5584
-
5585
5684
  // src/index.ts
5586
5685
  var PAGE_SIZES = KIT_PAGE_SIZES;
5587
5686
  var DEFAULT_PAGE_SIZE3 = KIT_DEFAULT_PAGE_SIZE;