@apliteni/apliteni-ui 0.138.0 → 0.139.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.138.0",
3
+ "version": "0.139.0",
4
4
 
5
5
  "workspaces": [
6
6
  "react"
@@ -987,3 +987,8 @@
987
987
  display: none;
988
988
  }
989
989
  }
990
+
991
+ /* src/AuthShell.css */
992
+ .ui-auth__brand > span {
993
+ display: flex;
994
+ }
@@ -927,6 +927,16 @@ type AppShellProps = {
927
927
  };
928
928
  declare function AppShell({ sections, pathname, title, children, word, brand, brandHref, width, back, lede, actions, bandControl, account, onSignOut, searchLabel, searchShortLabel, defaultCollapsed, palette, renderLink }: AppShellProps): react.JSX.Element;
929
929
 
930
+ type AuthShellProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
931
+ brand: ReactNode;
932
+ children: ReactNode;
933
+ };
934
+ /** Centers one auth task on the kit's auth card. */
935
+ declare const AuthShell: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
936
+ brand: ReactNode;
937
+ children: ReactNode;
938
+ } & react.RefAttributes<HTMLDivElement>>;
939
+
930
940
  type FooterLink = {
931
941
  label: string;
932
942
  href?: string;
@@ -1313,4 +1323,4 @@ declare const Breadcrumbs: react.ForwardRefExoticComponent<Omit<Omit<react.Detai
1313
1323
  declare const PAGE_SIZES: readonly number[];
1314
1324
  declare const DEFAULT_PAGE_SIZE: number;
1315
1325
 
1316
- export { type Accent, AccentPicker, type AccentPickerProps, AccountMenu, type AccountMenuProps, type AddFilter, AppShell, type AppShellProps, type AppShellSection, Avatar, type AvatarProps, BackLink, type BackLinkOwnProps, type BackLinkProps, Badge, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BusyRegion, type BusyRegionProps, Button, type ButtonLinkProps, type ButtonProps, Callout, type CalloutProps, type CalloutVariant, Card, Chart, type ChartBridgeStep, type ChartBridgeTones, type ChartPeriod, type ChartProps, type ChartSeries, type ChartTone, CheckList, type CheckListProps, Checkbox, type CheckboxProps, type Column, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Confirm, type ConfirmProps, DEFAULT_PAGE_SIZE, DataTable, type DataTableProps, DatePicker, type DatePickerMode, type DatePickerPreset, type DatePickerProps, type DatePickerRange, DeltaValue, type DeltaValueProps, Denied, type DeniedProps, Drawer, type DrawerProps, DrawerSection, type DrawerSectionProps, Dropdown, type DropdownAvatar, type DropdownBadge, type DropdownEntry, type DropdownItem, type DropdownProps, type DropdownRowProps, type DropdownSearch, type DropdownSection, type DropdownSeparator, EmptyState, type EmptyStateProps, type EmptyStateVariant, Feedback, type FeedbackPayload, type FeedbackProps, type FeedbackResult, type FeedbackSection, Field, type FieldControlProps, type FieldProps, FileDrop, type FileDropFile, type FileDropProps, type FileDropStatus, FileField, type FileFieldProps, type Filter, FilterBar, type FilterBarProps, Footer, type FooterColumn, type FooterLink, type FooterProps, type FooterSocial, Icon, KeyValueList, type KeyValueListProps, type KeyValueRow, Modal, type ModalProps, type NativeButtonProps, type NavTabBadge, type NavTabItem, NavTabs, type NavTabsProps, NumericValue, type NumericValueProps, PAGE_SIZES, Pagination, type PaginationProps, Pill, type PillProps, RowIdentity, type RowIdentityProps, SearchField, type SearchFieldProps, type SegmentOption, Segmented, type SegmentedProps, SelectField, type SelectFieldProps, SidebarNav, type SidebarNavBadge, type SidebarNavItem, type SidebarNavLeaf, type SidebarNavProps, type SidebarNavSection, Skeleton, type SkeletonProps, SkeletonTable, type SkeletonTableProps, Snippet, type SnippetProps, StatBand, type StatBandProps, type StatDelta, type StatFigure, type StatTone, type StatVariant, StatusDot, type StatusDotProps, Success, SuccessCheck, type SuccessCheckProps, type SuccessCountdown, SuccessPanel, type SuccessPanelProps, type SuccessProps, Switch, type SwitchProps, THEME_INIT_SCRIPT, type TabItem, type TableSort, Tabs, type TabsProps, TextArea, type TextAreaProps, TextField, type TextFieldProps, ThemeToggle, type ThemeToggleProps, Timeline, type TimelineEvent, type TimelineEventKind, type TimelineProps, Toast, type ToastNotice, type ToastProps, Tooltip, type TooltipProps, TopBar, type TopBarProps, type Version, VersionSwitcher, type VersionSwitcherProps, ViewSwitch, type ViewSwitchItem, type ViewSwitchProps, sortTableRows, useToast };
1326
+ export { type Accent, AccentPicker, type AccentPickerProps, AccountMenu, type AccountMenuProps, type AddFilter, AppShell, type AppShellProps, type AppShellSection, AuthShell, type AuthShellProps, Avatar, type AvatarProps, BackLink, type BackLinkOwnProps, type BackLinkProps, Badge, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BusyRegion, type BusyRegionProps, Button, type ButtonLinkProps, type ButtonProps, Callout, type CalloutProps, type CalloutVariant, Card, Chart, type ChartBridgeStep, type ChartBridgeTones, type ChartPeriod, type ChartProps, type ChartSeries, type ChartTone, CheckList, type CheckListProps, Checkbox, type CheckboxProps, type Column, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Confirm, type ConfirmProps, DEFAULT_PAGE_SIZE, DataTable, type DataTableProps, DatePicker, type DatePickerMode, type DatePickerPreset, type DatePickerProps, type DatePickerRange, DeltaValue, type DeltaValueProps, Denied, type DeniedProps, Drawer, type DrawerProps, DrawerSection, type DrawerSectionProps, Dropdown, type DropdownAvatar, type DropdownBadge, type DropdownEntry, type DropdownItem, type DropdownProps, type DropdownRowProps, type DropdownSearch, type DropdownSection, type DropdownSeparator, EmptyState, type EmptyStateProps, type EmptyStateVariant, Feedback, type FeedbackPayload, type FeedbackProps, type FeedbackResult, type FeedbackSection, Field, type FieldControlProps, type FieldProps, FileDrop, type FileDropFile, type FileDropProps, type FileDropStatus, FileField, type FileFieldProps, type Filter, FilterBar, type FilterBarProps, Footer, type FooterColumn, type FooterLink, type FooterProps, type FooterSocial, Icon, KeyValueList, type KeyValueListProps, type KeyValueRow, Modal, type ModalProps, type NativeButtonProps, type NavTabBadge, type NavTabItem, NavTabs, type NavTabsProps, NumericValue, type NumericValueProps, PAGE_SIZES, Pagination, type PaginationProps, Pill, type PillProps, RowIdentity, type RowIdentityProps, SearchField, type SearchFieldProps, type SegmentOption, Segmented, type SegmentedProps, SelectField, type SelectFieldProps, SidebarNav, type SidebarNavBadge, type SidebarNavItem, type SidebarNavLeaf, type SidebarNavProps, type SidebarNavSection, Skeleton, type SkeletonProps, SkeletonTable, type SkeletonTableProps, Snippet, type SnippetProps, StatBand, type StatBandProps, type StatDelta, type StatFigure, type StatTone, type StatVariant, StatusDot, type StatusDotProps, Success, SuccessCheck, type SuccessCheckProps, type SuccessCountdown, SuccessPanel, type SuccessPanelProps, type SuccessProps, Switch, type SwitchProps, THEME_INIT_SCRIPT, type TabItem, type TableSort, Tabs, type TabsProps, TextArea, type TextAreaProps, TextField, type TextFieldProps, ThemeToggle, type ThemeToggleProps, Timeline, type TimelineEvent, type TimelineEventKind, type TimelineProps, Toast, type ToastNotice, type ToastProps, Tooltip, type TooltipProps, TopBar, type TopBarProps, type Version, VersionSwitcher, type VersionSwitcherProps, ViewSwitch, type ViewSwitchItem, type ViewSwitchProps, sortTableRows, useToast };
@@ -4289,10 +4289,20 @@ function AppShell({
4289
4289
  ] });
4290
4290
  }
4291
4291
 
4292
+ // src/AuthShell.tsx
4293
+ import { forwardRef as forwardRef9 } from "react";
4294
+ import { jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
4295
+ var AuthShell = forwardRef9(function AuthShell2({ brand, children, className, ...rest }, ref) {
4296
+ return /* @__PURE__ */ jsx39("div", { ...rest, ref, className: ["ui-auth", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs34("div", { className: "ui-auth__card", children: [
4297
+ /* @__PURE__ */ jsx39("div", { className: "ui-auth__brand", children: brand }),
4298
+ children
4299
+ ] }) });
4300
+ });
4301
+
4292
4302
  // src/Footer.tsx
4293
4303
  import { useId as useId13 } from "react";
4294
4304
  import { prism as prism2, safeUrl as safeUrl2 } from "@apliteni/apliteni-ui";
4295
- import { jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
4305
+ import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
4296
4306
  var SOCIAL_GLYPHS = {
4297
4307
  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"/>',
4298
4308
  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"/>',
@@ -4301,10 +4311,10 @@ var SOCIAL_GLYPHS = {
4301
4311
  };
4302
4312
  var escapeText = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
4303
4313
  function Legal({ legal, legalLinks, switcher }) {
4304
- return /* @__PURE__ */ jsxs34("div", { className: "ui-footer__bar", children: [
4305
- /* @__PURE__ */ jsx39("span", { className: "ui-footer__legal", children: legal }),
4306
- legalLinks && legalLinks.length > 0 && /* @__PURE__ */ jsx39("nav", { className: "ui-footer__legal-links", "aria-label": "Legal", children: legalLinks.map(({ label, href: to }) => /* @__PURE__ */ jsx39("a", { href: safeUrl2(to ?? "#"), children: label }, label)) }),
4307
- switcher ? /* @__PURE__ */ jsx39("div", { className: "ui-footer__switcher", children: switcher }) : null
4314
+ return /* @__PURE__ */ jsxs35("div", { className: "ui-footer__bar", children: [
4315
+ /* @__PURE__ */ jsx40("span", { className: "ui-footer__legal", children: legal }),
4316
+ 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)) }),
4317
+ switcher ? /* @__PURE__ */ jsx40("div", { className: "ui-footer__switcher", children: switcher }) : null
4308
4318
  ] });
4309
4319
  }
4310
4320
  function Footer({
@@ -4324,12 +4334,12 @@ function Footer({
4324
4334
  }) {
4325
4335
  const uid = useId13();
4326
4336
  const cls = ["ui-footer", `ui-footer--${variant}`, className].filter(Boolean).join(" ");
4327
- const bar = /* @__PURE__ */ jsx39(Legal, { legal, legalLinks, switcher });
4337
+ const bar = /* @__PURE__ */ jsx40(Legal, { legal, legalLinks, switcher });
4328
4338
  if (variant !== "full") {
4329
- return /* @__PURE__ */ jsx39("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsx39("div", { className: "ui-footer__in", children: bar }) });
4339
+ return /* @__PURE__ */ jsx40("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsx40("div", { className: "ui-footer__in", children: bar }) });
4330
4340
  }
4331
4341
  const mark = prism2(uid.replace(/:/g, ""), 22);
4332
- const lockup = brand ?? /* @__PURE__ */ jsx39(
4342
+ const lockup = brand ?? /* @__PURE__ */ jsx40(
4333
4343
  "a",
4334
4344
  {
4335
4345
  className: "brand",
@@ -4338,21 +4348,21 @@ function Footer({
4338
4348
  dangerouslySetInnerHTML: { __html: `${mark}<span>${escapeText(word)}</span>` }
4339
4349
  }
4340
4350
  );
4341
- return /* @__PURE__ */ jsx39("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsxs34("div", { className: "ui-footer__in", children: [
4342
- /* @__PURE__ */ jsxs34("div", { className: "ui-footer__top", children: [
4343
- brand !== false && /* @__PURE__ */ jsxs34("div", { className: "ui-footer__brand", children: [
4351
+ return /* @__PURE__ */ jsx40("footer", { ...rest, className: cls, role: "contentinfo", children: /* @__PURE__ */ jsxs35("div", { className: "ui-footer__in", children: [
4352
+ /* @__PURE__ */ jsxs35("div", { className: "ui-footer__top", children: [
4353
+ brand !== false && /* @__PURE__ */ jsxs35("div", { className: "ui-footer__brand", children: [
4344
4354
  lockup,
4345
- tagline && /* @__PURE__ */ jsx39("p", { className: "ui-footer__tagline", children: tagline }),
4346
- social.length > 0 && /* @__PURE__ */ jsx39("div", { className: "ui-footer__socials", children: social.map(({ label, href: to, icon: icon9 = "github" }) => {
4355
+ tagline && /* @__PURE__ */ jsx40("p", { className: "ui-footer__tagline", children: tagline }),
4356
+ social.length > 0 && /* @__PURE__ */ jsx40("div", { className: "ui-footer__socials", children: social.map(({ label, href: to, icon: icon9 = "github" }) => {
4347
4357
  const markup = SOCIAL_GLYPHS[icon9];
4348
4358
  const fill = icon9 === "mail" ? "none" : "currentColor";
4349
4359
  const viewBox = icon9 === "linkedin" ? "0 0 448 512" : "0 0 24 24";
4350
- return /* @__PURE__ */ jsx39("a", { className: "ui-footer__social", href: safeUrl2(to ?? "#"), "aria-label": label, children: /* @__PURE__ */ jsx39("svg", { viewBox, fill, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: markup } }) }, label);
4360
+ 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);
4351
4361
  }) })
4352
4362
  ] }),
4353
- (links || columns.length > 0) && /* @__PURE__ */ jsx39("nav", { className: "ui-footer__nav", "aria-label": "Footer", children: links ?? columns.map(({ title, links: columnLinks }, i) => /* @__PURE__ */ jsxs34("div", { className: "ui-footer__col", children: [
4354
- title && /* @__PURE__ */ jsx39("h2", { className: "ui-footer__col-title", children: title }),
4355
- /* @__PURE__ */ jsx39("ul", { className: "ui-footer__links", children: columnLinks.map(({ label, href: to, target }) => /* @__PURE__ */ jsx39("li", { children: /* @__PURE__ */ jsx39("a", { href: safeUrl2(to ?? "#"), target, rel: target ? "noreferrer" : void 0, children: label }) }, label)) })
4363
+ (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: [
4364
+ title && /* @__PURE__ */ jsx40("h2", { className: "ui-footer__col-title", children: title }),
4365
+ /* @__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)) })
4356
4366
  ] }, title ?? i)) })
4357
4367
  ] }),
4358
4368
  bar
@@ -4360,11 +4370,11 @@ function Footer({
4360
4370
  }
4361
4371
 
4362
4372
  // src/Success.tsx
4363
- import { forwardRef as forwardRef9, useEffect as useEffect16, useRef as useRef21, useState as useState17 } from "react";
4364
- import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
4365
- var SuccessCheck = forwardRef9(function SuccessCheck2({ variant = "line", className, ...rest }, ref) {
4373
+ import { forwardRef as forwardRef10, useEffect as useEffect16, useRef as useRef21, useState as useState17 } from "react";
4374
+ import { jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
4375
+ var SuccessCheck = forwardRef10(function SuccessCheck2({ variant = "line", className, ...rest }, ref) {
4366
4376
  const circled = variant === "circled";
4367
- return /* @__PURE__ */ jsxs35(
4377
+ return /* @__PURE__ */ jsxs36(
4368
4378
  "svg",
4369
4379
  {
4370
4380
  ...rest,
@@ -4376,18 +4386,18 @@ var SuccessCheck = forwardRef9(function SuccessCheck2({ variant = "line", classN
4376
4386
  "aria-hidden": "true",
4377
4387
  focusable: "false",
4378
4388
  children: [
4379
- circled && /* @__PURE__ */ jsx40("path", { className: "ui-sx__circle", d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
4380
- /* @__PURE__ */ jsx40("path", { className: "ui-sx__tick", d: circled ? "M22 4L12 14.01l-3-3" : "M20 6L9 17l-5-5" })
4389
+ circled && /* @__PURE__ */ jsx41("path", { className: "ui-sx__circle", d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
4390
+ /* @__PURE__ */ jsx41("path", { className: "ui-sx__tick", d: circled ? "M22 4L12 14.01l-3-3" : "M20 6L9 17l-5-5" })
4381
4391
  ]
4382
4392
  }
4383
4393
  );
4384
4394
  });
4385
- var SuccessPanel = forwardRef9(function SuccessPanel2({ title = "Done", sub, check = "line", className, ...rest }, ref) {
4395
+ var SuccessPanel = forwardRef10(function SuccessPanel2({ title = "Done", sub, check = "line", className, ...rest }, ref) {
4386
4396
  const circled = check === "circled";
4387
- return /* @__PURE__ */ jsxs35("div", { ...rest, ref, className: ["ui-success", className].filter(Boolean).join(" "), children: [
4388
- /* @__PURE__ */ jsx40("div", { className: ["ui-success__check", circled && "ui-success__check--circled"].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx40(SuccessCheck, { variant: circled ? "circled" : "line" }) }),
4389
- /* @__PURE__ */ jsx40("div", { className: "ui-success__title", children: title }),
4390
- sub && /* @__PURE__ */ jsx40("div", { className: "ui-success__sub", children: sub })
4397
+ return /* @__PURE__ */ jsxs36("div", { ...rest, ref, className: ["ui-success", className].filter(Boolean).join(" "), children: [
4398
+ /* @__PURE__ */ jsx41("div", { className: ["ui-success__check", circled && "ui-success__check--circled"].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx41(SuccessCheck, { variant: circled ? "circled" : "line" }) }),
4399
+ /* @__PURE__ */ jsx41("div", { className: "ui-success__title", children: title }),
4400
+ sub && /* @__PURE__ */ jsx41("div", { className: "ui-success__sub", children: sub })
4391
4401
  ] });
4392
4402
  });
4393
4403
  var pieces = [
@@ -4424,17 +4434,17 @@ function Countdown({ seconds, label = "Redirecting", onDone }) {
4424
4434
  }, 1e3);
4425
4435
  return () => clearInterval(timer);
4426
4436
  }, [seconds]);
4427
- return /* @__PURE__ */ jsxs35("div", { className: "ui-sx__count", "data-sx-count": "", style: { "--sx-secs": `${seconds}s` }, children: [
4428
- /* @__PURE__ */ jsx40("span", { className: "ui-sx__count-ring", "aria-hidden": "true" }),
4429
- /* @__PURE__ */ jsxs35("span", { className: "ui-sx__count-text", children: [
4437
+ return /* @__PURE__ */ jsxs36("div", { className: "ui-sx__count", "data-sx-count": "", style: { "--sx-secs": `${seconds}s` }, children: [
4438
+ /* @__PURE__ */ jsx41("span", { className: "ui-sx__count-ring", "aria-hidden": "true" }),
4439
+ /* @__PURE__ */ jsxs36("span", { className: "ui-sx__count-text", children: [
4430
4440
  label,
4431
4441
  " in ",
4432
- /* @__PURE__ */ jsx40("b", { "data-sx-num": "", children: remaining }),
4442
+ /* @__PURE__ */ jsx41("b", { "data-sx-num": "", children: remaining }),
4433
4443
  "s"
4434
4444
  ] })
4435
4445
  ] });
4436
4446
  }
4437
- var Success = forwardRef9(function Success2({
4447
+ var Success = forwardRef10(function Success2({
4438
4448
  layout = "hero",
4439
4449
  level,
4440
4450
  check = "line",
@@ -4456,7 +4466,7 @@ var Success = forwardRef9(function Success2({
4456
4466
  const seconds = countdown?.seconds;
4457
4467
  const duration = seconds != null && Number.isFinite(seconds) && seconds >= 1 ? Math.floor(seconds) : 5;
4458
4468
  const mark = check === "circled" ? "circled" : "line";
4459
- return /* @__PURE__ */ jsxs35(
4469
+ return /* @__PURE__ */ jsxs36(
4460
4470
  "div",
4461
4471
  {
4462
4472
  role: "status",
@@ -4465,16 +4475,16 @@ var Success = forwardRef9(function Success2({
4465
4475
  ref,
4466
4476
  className: ["ui-sx", `ui-sx--${layout}`, `ui-sx--check-${mark}`, confetti && "ui-sx--confetti", className].filter(Boolean).join(" "),
4467
4477
  children: [
4468
- confetti && /* @__PURE__ */ jsx40("div", { className: "ui-sx__confetti", "aria-hidden": "true", children: pieces.map(
4469
- ([x, d, r, t, s], index) => /* @__PURE__ */ jsx40("i", { className: `ui-sx__piece ui-sx__piece--${t}`, style: { left: `${x}%`, "--sx-d": `${d}s`, "--sx-r": `${r}deg`, "--sx-s": s } }, index)
4478
+ confetti && /* @__PURE__ */ jsx41("div", { className: "ui-sx__confetti", "aria-hidden": "true", children: pieces.map(
4479
+ ([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)
4470
4480
  ) }),
4471
- /* @__PURE__ */ jsxs35("div", { className: "ui-sx__inner", children: [
4472
- /* @__PURE__ */ jsx40("div", { className: "ui-sx__visual", children: /* @__PURE__ */ jsx40(SuccessCheck, { variant: mark }) }),
4473
- /* @__PURE__ */ jsxs35("div", { className: "ui-sx__content", children: [
4474
- /* @__PURE__ */ jsx40(Heading, { className: "ui-sx__title", children: title }),
4475
- body && /* @__PURE__ */ jsx40("p", { className: "ui-sx__body", children: body }),
4476
- hasActions && /* @__PURE__ */ jsx40("div", { className: "ui-sx__actions", children: actions }),
4477
- countdown && /* @__PURE__ */ jsx40(Countdown, { seconds: duration, label: countdown.label, onDone: onCountdownEnd }, duration)
4481
+ /* @__PURE__ */ jsxs36("div", { className: "ui-sx__inner", children: [
4482
+ /* @__PURE__ */ jsx41("div", { className: "ui-sx__visual", children: /* @__PURE__ */ jsx41(SuccessCheck, { variant: mark }) }),
4483
+ /* @__PURE__ */ jsxs36("div", { className: "ui-sx__content", children: [
4484
+ /* @__PURE__ */ jsx41(Heading, { className: "ui-sx__title", children: title }),
4485
+ body && /* @__PURE__ */ jsx41("p", { className: "ui-sx__body", children: body }),
4486
+ hasActions && /* @__PURE__ */ jsx41("div", { className: "ui-sx__actions", children: actions }),
4487
+ countdown && /* @__PURE__ */ jsx41(Countdown, { seconds: duration, label: countdown.label, onDone: onCountdownEnd }, duration)
4478
4488
  ] })
4479
4489
  ] })
4480
4490
  ]
@@ -4493,7 +4503,7 @@ import {
4493
4503
  useState as useState18
4494
4504
  } from "react";
4495
4505
  import { CHART_FLOOR, bridgeWalk, chartScale, pointTarget } from "@apliteni/apliteni-ui";
4496
- import { Fragment as Fragment16, jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
4506
+ import { Fragment as Fragment16, jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4497
4507
  var HEIGHT = { months: 216, bridge: 216, spark: 32 };
4498
4508
  var PAD = 2;
4499
4509
  var ZERO_INSET = 1.5;
@@ -4869,7 +4879,7 @@ function Chart(props) {
4869
4879
  const estimated = columns.filter((c) => c.estimated);
4870
4880
  const estimatedTone = marks.find((m) => m.estimated && m.kind === "bar")?.tone ?? keys[0]?.tone ?? "neutral";
4871
4881
  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) };
4872
- return /* @__PURE__ */ jsxs36(
4882
+ return /* @__PURE__ */ jsxs37(
4873
4883
  "div",
4874
4884
  {
4875
4885
  className: cx8("ui-chart", `ui-chart--${variant}`, selectable && "ui-chart--pick", className),
@@ -4880,9 +4890,9 @@ function Chart(props) {
4880
4890
  "--ui-chart-pad": `${PAD}px`
4881
4891
  },
4882
4892
  children: [
4883
- !spark && keys.length > 0 && /* @__PURE__ */ jsxs36("ul", { className: "ui-chart__legend", children: [
4884
- keys.map((key) => /* @__PURE__ */ jsxs36("li", { className: cx8("ui-chart__key", `ui-chart__tone--${key.tone}`), children: [
4885
- key.shape === "line" ? /* @__PURE__ */ jsx41("svg", { className: "ui-chart__key-mark", width: "18", height: "12", viewBox: "0 0 18 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx41("path", { className: "ui-chart__key-line", d: "M1 9 L6 5 L12 7 L17 3" }) }) : /* @__PURE__ */ jsx41("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx41(
4893
+ !spark && keys.length > 0 && /* @__PURE__ */ jsxs37("ul", { className: "ui-chart__legend", children: [
4894
+ keys.map((key) => /* @__PURE__ */ jsxs37("li", { className: cx8("ui-chart__key", `ui-chart__tone--${key.tone}`), children: [
4895
+ 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(
4886
4896
  "rect",
4887
4897
  {
4888
4898
  className: "ui-chart__key-swatch",
@@ -4895,12 +4905,12 @@ function Chart(props) {
4895
4905
  ) }),
4896
4906
  key.name
4897
4907
  ] }, key.id)),
4898
- estimated.length > 0 && /* @__PURE__ */ jsxs36("li", { className: cx8("ui-chart__key", `ui-chart__tone--${estimatedTone}`), children: [
4899
- /* @__PURE__ */ jsx41("svg", { className: "ui-chart__key-mark", width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ jsx41("rect", { className: "ui-chart__key-estimated", x: "1.5", y: "1.5", width: "9", height: "9", rx: "1" }) }),
4908
+ estimated.length > 0 && /* @__PURE__ */ jsxs37("li", { className: cx8("ui-chart__key", `ui-chart__tone--${estimatedTone}`), children: [
4909
+ /* @__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" }) }),
4900
4910
  "Estimated"
4901
4911
  ] })
4902
4912
  ] }),
4903
- /* @__PURE__ */ jsxs36(
4913
+ /* @__PURE__ */ jsxs37(
4904
4914
  "div",
4905
4915
  {
4906
4916
  ref: frameEl,
@@ -4924,8 +4934,8 @@ function Chart(props) {
4924
4934
  setSaid("");
4925
4935
  },
4926
4936
  children: [
4927
- !spark && scale.ticks.length > 0 && /* @__PURE__ */ jsx41("div", { className: "ui-chart__axis", "aria-hidden": "true", children: [...scale.ticks].reverse().map((tick) => /* @__PURE__ */ jsx41("span", { className: "ui-chart__tick", children: formatAxis(tick) }, tick)) }),
4928
- /* @__PURE__ */ jsx41("div", { ref: scroller, className: "ui-chart__scroll", tabIndex: -1, onScroll: () => {
4937
+ !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)) }),
4938
+ /* @__PURE__ */ jsx42("div", { ref: scroller, className: "ui-chart__scroll", tabIndex: -1, onScroll: () => {
4929
4939
  syncEdges();
4930
4940
  const anchor = [...svgEl.current?.querySelectorAll("[data-anchor]") ?? []].find((el) => el.getAttribute("data-anchor") === openId);
4931
4941
  if (!anchor || !scroller.current || !frameEl.current || !tipEl.current) return;
@@ -4933,8 +4943,8 @@ function Chart(props) {
4933
4943
  const view = scroller.current.getBoundingClientRect();
4934
4944
  if (mark.right <= view.left || mark.left >= view.right) setOpenId(null);
4935
4945
  else placeTip(frameEl.current, anchor, tipEl.current, frameEl.current);
4936
- }, children: /* @__PURE__ */ jsxs36("div", { ref: plot, className: "ui-chart__plot", children: [
4937
- /* @__PURE__ */ jsxs36(
4946
+ }, children: /* @__PURE__ */ jsxs37("div", { ref: plot, className: "ui-chart__plot", children: [
4947
+ /* @__PURE__ */ jsxs37(
4938
4948
  "svg",
4939
4949
  {
4940
4950
  ref: svgEl,
@@ -4994,7 +5004,7 @@ function Chart(props) {
4994
5004
  announce(mark.column, selectable ? mark.column : pick);
4995
5005
  },
4996
5006
  children: [
4997
- !spark && pick !== null && pick >= 0 && pick < count && /* @__PURE__ */ jsx41(
5007
+ !spark && pick !== null && pick >= 0 && pick < count && /* @__PURE__ */ jsx42(
4998
5008
  "rect",
4999
5009
  {
5000
5010
  className: "ui-chart__band",
@@ -5007,7 +5017,7 @@ function Chart(props) {
5007
5017
  frame.links && frame.bars.slice(0, -1).map((bar, i) => {
5008
5018
  const from = byId.get(bar.id);
5009
5019
  const to = byId.get(frame.bars[i + 1].id);
5010
- return from && to ? /* @__PURE__ */ jsx41(
5020
+ return from && to ? /* @__PURE__ */ jsx42(
5011
5021
  "line",
5012
5022
  {
5013
5023
  className: "ui-chart__carry",
@@ -5019,7 +5029,7 @@ function Chart(props) {
5019
5029
  `carry-${bar.id}`
5020
5030
  ) : null;
5021
5031
  }),
5022
- !spark && scale.ticks.filter((tick) => tick !== 0).map((tick) => /* @__PURE__ */ jsx41(
5032
+ !spark && scale.ticks.filter((tick) => tick !== 0).map((tick) => /* @__PURE__ */ jsx42(
5023
5033
  "line",
5024
5034
  {
5025
5035
  className: "ui-chart__grid",
@@ -5030,7 +5040,7 @@ function Chart(props) {
5030
5040
  },
5031
5041
  `grid-${tick}`
5032
5042
  )),
5033
- !spark && scale.ticks.includes(0) && /* @__PURE__ */ jsx41(
5043
+ !spark && scale.ticks.includes(0) && /* @__PURE__ */ jsx42(
5034
5044
  "line",
5035
5045
  {
5036
5046
  className: "ui-chart__zero",
@@ -5040,7 +5050,7 @@ function Chart(props) {
5040
5050
  y2: px(y(0))
5041
5051
  }
5042
5052
  ),
5043
- marks.filter((m) => m.kind === "bar").map((mark) => /* @__PURE__ */ jsx41(
5053
+ marks.filter((m) => m.kind === "bar").map((mark) => /* @__PURE__ */ jsx42(
5044
5054
  "path",
5045
5055
  {
5046
5056
  className: cx8(
@@ -5053,7 +5063,7 @@ function Chart(props) {
5053
5063
  `bar-${mark.id}`
5054
5064
  )),
5055
5065
  ["casing", "stroke"].map((layer) => lines.flatMap(
5056
- (line) => line.values.slice(1).map((value, i) => Number.isFinite(value) && Number.isFinite(line.values[i]) ? /* @__PURE__ */ jsx41(
5066
+ (line) => line.values.slice(1).map((value, i) => Number.isFinite(value) && Number.isFinite(line.values[i]) ? /* @__PURE__ */ jsx42(
5057
5067
  "line",
5058
5068
  {
5059
5069
  className: layer === "casing" ? "ui-chart__line-casing" : cx8(
@@ -5069,7 +5079,7 @@ function Chart(props) {
5069
5079
  `${line.id}-${layer}-${i}`
5070
5080
  ) : null)
5071
5081
  )),
5072
- lines.flatMap((line) => line.values.map((value, i) => Number.isFinite(value) && !Number.isFinite(line.values[i - 1]) && !Number.isFinite(line.values[i + 1]) ? /* @__PURE__ */ jsx41(
5082
+ 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(
5073
5083
  "circle",
5074
5084
  {
5075
5085
  className: cx8("ui-chart__isolated", `ui-chart__tone--${line.tone}`),
@@ -5079,8 +5089,8 @@ function Chart(props) {
5079
5089
  },
5080
5090
  `isolated-${line.id}-${i}`
5081
5091
  ) : null)),
5082
- marks.map((mark) => /* @__PURE__ */ jsxs36("g", { "data-mark": mark.id, children: [
5083
- mark.kind === "bar" ? /* @__PURE__ */ jsx41(
5092
+ marks.map((mark) => /* @__PURE__ */ jsxs37("g", { "data-mark": mark.id, children: [
5093
+ mark.kind === "bar" ? /* @__PURE__ */ jsx42(
5084
5094
  "rect",
5085
5095
  {
5086
5096
  className: "ui-chart__hit",
@@ -5089,7 +5099,7 @@ function Chart(props) {
5089
5099
  y: px(hitBand(mark.band).y),
5090
5100
  height: px(hitBand(mark.band).h)
5091
5101
  }
5092
- ) : /* @__PURE__ */ jsx41(
5102
+ ) : /* @__PURE__ */ jsx42(
5093
5103
  "rect",
5094
5104
  {
5095
5105
  className: "ui-chart__hit",
@@ -5099,7 +5109,7 @@ function Chart(props) {
5099
5109
  height: px(mark.hit?.h ?? TARGET)
5100
5110
  }
5101
5111
  ),
5102
- /* @__PURE__ */ jsx41(
5112
+ /* @__PURE__ */ jsx42(
5103
5113
  "rect",
5104
5114
  {
5105
5115
  "data-anchor": mark.id,
@@ -5114,7 +5124,7 @@ function Chart(props) {
5114
5124
  ]
5115
5125
  }
5116
5126
  ),
5117
- !spark && /* @__PURE__ */ jsx41("div", { className: "ui-chart__periods", "aria-hidden": "true", children: columns.map((column, i) => /* @__PURE__ */ jsx41(
5127
+ !spark && /* @__PURE__ */ jsx42("div", { className: "ui-chart__periods", "aria-hidden": "true", children: columns.map((column, i) => /* @__PURE__ */ jsx42(
5118
5128
  "span",
5119
5129
  {
5120
5130
  className: cx8("ui-chart__period", pick === i && "is-selected"),
@@ -5123,35 +5133,35 @@ function Chart(props) {
5123
5133
  `${column.label}-${i}`
5124
5134
  )) })
5125
5135
  ] }) }),
5126
- /* @__PURE__ */ jsx41("span", { ref: tipEl, className: cx8("ui-tip", openId && "is-open"), role: open ? "tooltip" : void 0, children: open && /* @__PURE__ */ jsxs36(Fragment16, { children: [
5127
- /* @__PURE__ */ jsx41("span", { className: "ui-tip__label", children: spark ? columns[open.column]?.label : `${open.name}, ${columns[open.column]?.label}` }),
5128
- /* @__PURE__ */ jsx41("span", { className: "ui-tip__value", children: format(open.value) }),
5129
- (stateOf(columns[open.column]) || open.detail) && /* @__PURE__ */ jsx41("span", { className: "ui-tip__detail", children: stateOf(columns[open.column]) || open.detail })
5136
+ /* @__PURE__ */ jsx42("span", { ref: tipEl, className: cx8("ui-tip", openId && "is-open"), role: open ? "tooltip" : void 0, children: open && /* @__PURE__ */ jsxs37(Fragment16, { children: [
5137
+ /* @__PURE__ */ jsx42("span", { className: "ui-tip__label", children: spark ? columns[open.column]?.label : `${open.name}, ${columns[open.column]?.label}` }),
5138
+ /* @__PURE__ */ jsx42("span", { className: "ui-tip__value", children: format(open.value) }),
5139
+ (stateOf(columns[open.column]) || open.detail) && /* @__PURE__ */ jsx42("span", { className: "ui-tip__detail", children: stateOf(columns[open.column]) || open.detail })
5130
5140
  ] }) })
5131
5141
  ]
5132
5142
  }
5133
5143
  ),
5134
- /* @__PURE__ */ jsx41("div", { className: "ui-sr", role: "status", children: said }),
5135
- showTable && /* @__PURE__ */ jsxs36("details", { className: "ui-chart__data", children: [
5136
- /* @__PURE__ */ jsx41("summary", { className: "ui-focusable", children: "Values as a table" }),
5137
- /* @__PURE__ */ jsx41(
5144
+ /* @__PURE__ */ jsx42("div", { className: "ui-sr", role: "status", children: said }),
5145
+ showTable && /* @__PURE__ */ jsxs37("details", { className: "ui-chart__data", children: [
5146
+ /* @__PURE__ */ jsx42("summary", { className: "ui-focusable", children: "Values as a table" }),
5147
+ /* @__PURE__ */ jsx42(
5138
5148
  "div",
5139
5149
  {
5140
5150
  className: "ui-table-scroll",
5141
5151
  role: "region",
5142
5152
  tabIndex: 0,
5143
5153
  "aria-label": `${title}, as a table. Scroll for more columns.`,
5144
- children: /* @__PURE__ */ jsxs36("table", { className: "ui-table", "aria-label": title, children: [
5145
- /* @__PURE__ */ jsx41("thead", { children: /* @__PURE__ */ jsx41("tr", { children: tableHead.map((head, i) => /* @__PURE__ */ jsx41("th", { scope: "col", className: cx8(i > 0 && "ui-table__num"), children: head }, head)) }) }),
5146
- /* @__PURE__ */ jsx41("tbody", { children: tableRows.map((row, i) => /* @__PURE__ */ jsxs36("tr", { "aria-current": pick === i ? true : void 0, children: [
5147
- /* @__PURE__ */ jsxs36("th", { scope: "row", children: [
5154
+ children: /* @__PURE__ */ jsxs37("table", { className: "ui-table", "aria-label": title, children: [
5155
+ /* @__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)) }) }),
5156
+ /* @__PURE__ */ jsx42("tbody", { children: tableRows.map((row, i) => /* @__PURE__ */ jsxs37("tr", { "aria-current": pick === i ? true : void 0, children: [
5157
+ /* @__PURE__ */ jsxs37("th", { scope: "row", children: [
5148
5158
  row.column.label,
5149
- row.column.estimated && /* @__PURE__ */ jsxs36(Fragment16, { children: [
5159
+ row.column.estimated && /* @__PURE__ */ jsxs37(Fragment16, { children: [
5150
5160
  " ",
5151
- /* @__PURE__ */ jsx41("span", { className: "ui-chart__state", children: stateOf(row.column) })
5161
+ /* @__PURE__ */ jsx42("span", { className: "ui-chart__state", children: stateOf(row.column) })
5152
5162
  ] })
5153
5163
  ] }),
5154
- row.cells.map((cell, j) => /* @__PURE__ */ jsx41("td", { className: "ui-table__num", children: cell }, tableHead[j + 1]))
5164
+ row.cells.map((cell, j) => /* @__PURE__ */ jsx42("td", { className: "ui-table__num", children: cell }, tableHead[j + 1]))
5155
5165
  ] }, `${row.column.label}-${i}`)) })
5156
5166
  ] })
5157
5167
  }
@@ -5163,10 +5173,10 @@ function Chart(props) {
5163
5173
  }
5164
5174
 
5165
5175
  // src/AccentPicker.tsx
5166
- import { forwardRef as forwardRef10 } from "react";
5176
+ import { forwardRef as forwardRef11 } from "react";
5167
5177
  import { ACCENTS, accentSwatchStyle } from "@apliteni/apliteni-ui";
5168
- import { jsx as jsx42 } from "react/jsx-runtime";
5169
- var AccentPicker = forwardRef10(function AccentPicker2({
5178
+ import { jsx as jsx43 } from "react/jsx-runtime";
5179
+ var AccentPicker = forwardRef11(function AccentPicker2({
5170
5180
  value,
5171
5181
  onChange,
5172
5182
  options = ACCENTS,
@@ -5174,7 +5184,7 @@ var AccentPicker = forwardRef10(function AccentPicker2({
5174
5184
  "aria-label": label = "Accent",
5175
5185
  ...rest
5176
5186
  }, ref) {
5177
- return /* @__PURE__ */ jsx42(
5187
+ return /* @__PURE__ */ jsx43(
5178
5188
  "div",
5179
5189
  {
5180
5190
  ...rest,
@@ -5185,7 +5195,7 @@ var AccentPicker = forwardRef10(function AccentPicker2({
5185
5195
  "aria-label": label,
5186
5196
  children: options.map((accent) => {
5187
5197
  const title = accent.charAt(0).toUpperCase() + accent.slice(1);
5188
- return /* @__PURE__ */ jsx42(
5198
+ return /* @__PURE__ */ jsx43(
5189
5199
  "button",
5190
5200
  {
5191
5201
  type: "button",
@@ -5206,7 +5216,7 @@ var AccentPicker = forwardRef10(function AccentPicker2({
5206
5216
  // src/TopBar.tsx
5207
5217
  import { Fragment as Fragment17 } from "react";
5208
5218
  import { prism as prism3, safeUrl as safeUrl3, icon as icon7, ACCOUNT_NAV } from "@apliteni/apliteni-ui";
5209
- import { Fragment as Fragment18, jsx as jsx43, jsxs as jsxs37 } from "react/jsx-runtime";
5219
+ import { Fragment as Fragment18, jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
5210
5220
  function TopBar({
5211
5221
  brand,
5212
5222
  word = "Strategy",
@@ -5218,20 +5228,20 @@ function TopBar({
5218
5228
  className,
5219
5229
  ...rest
5220
5230
  }) {
5221
- return /* @__PURE__ */ jsx43("header", { ...rest, className: ["topbar", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs37("div", { className: "topbar__in", children: [
5222
- brand ?? /* @__PURE__ */ jsxs37("a", { className: "brand", href: safeUrl3(brandHref), "aria-label": `Apliteni ${word}`, children: [
5223
- /* @__PURE__ */ jsx43("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: prism3("tb-mark", 22) } }),
5224
- /* @__PURE__ */ jsx43("span", { children: word })
5231
+ return /* @__PURE__ */ jsx44("header", { ...rest, className: ["topbar", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs38("div", { className: "topbar__in", children: [
5232
+ brand ?? /* @__PURE__ */ jsxs38("a", { className: "brand", href: safeUrl3(brandHref), "aria-label": `Apliteni ${word}`, children: [
5233
+ /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: prism3("tb-mark", 22) } }),
5234
+ /* @__PURE__ */ jsx44("span", { children: word })
5225
5235
  ] }),
5226
5236
  view,
5227
- /* @__PURE__ */ jsx43("span", { className: "spacer" }),
5237
+ /* @__PURE__ */ jsx44("span", { className: "spacer" }),
5228
5238
  version,
5229
5239
  theme,
5230
5240
  account
5231
5241
  ] }) });
5232
5242
  }
5233
5243
  function ViewSwitch({ items, active, label = "View", renderLink }) {
5234
- return /* @__PURE__ */ jsx43("div", { className: "dtsw on", role: "group", "aria-label": label, children: items.map((item) => {
5244
+ return /* @__PURE__ */ jsx44("div", { className: "dtsw on", role: "group", "aria-label": label, children: items.map((item) => {
5235
5245
  const current = item.id === active;
5236
5246
  const linkProps = {
5237
5247
  className: current ? "cur" : void 0,
@@ -5240,13 +5250,13 @@ function ViewSwitch({ items, active, label = "View", renderLink }) {
5240
5250
  "aria-current": current ? "page" : void 0,
5241
5251
  children: item.label
5242
5252
  };
5243
- return /* @__PURE__ */ jsx43(Fragment17, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx43("a", { ...linkProps }) }, item.id);
5253
+ return /* @__PURE__ */ jsx44(Fragment17, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx44("a", { ...linkProps }) }, item.id);
5244
5254
  }) });
5245
5255
  }
5246
5256
  var BADGE = { live: "Live", archive: "Archive" };
5247
5257
  function VersionSwitcher({ versions, value, onChange, label = "Version", defaultOpen }) {
5248
5258
  const current = versions.find((v) => v.value === value);
5249
- return /* @__PURE__ */ jsx43("div", { className: "vsw", children: /* @__PURE__ */ jsx43(
5259
+ return /* @__PURE__ */ jsx44("div", { className: "vsw", children: /* @__PURE__ */ jsx44(
5250
5260
  Dropdown,
5251
5261
  {
5252
5262
  variant: "select",
@@ -5257,9 +5267,9 @@ function VersionSwitcher({ versions, value, onChange, label = "Version", default
5257
5267
  chevron: false,
5258
5268
  defaultOpen,
5259
5269
  ariaLabel: `${label} \u2014 ${current?.label ?? ""}`,
5260
- triggerContent: /* @__PURE__ */ jsxs37(Fragment18, { children: [
5261
- /* @__PURE__ */ jsx43("span", { className: "cur", children: current?.label }),
5262
- /* @__PURE__ */ jsx43("span", { className: "car", "aria-hidden": "true" })
5270
+ triggerContent: /* @__PURE__ */ jsxs38(Fragment18, { children: [
5271
+ /* @__PURE__ */ jsx44("span", { className: "cur", children: current?.label }),
5272
+ /* @__PURE__ */ jsx44("span", { className: "car", "aria-hidden": "true" })
5263
5273
  ] }),
5264
5274
  items: versions.map((v) => ({
5265
5275
  label: v.label,
@@ -5267,10 +5277,10 @@ function VersionSwitcher({ versions, value, onChange, label = "Version", default
5267
5277
  badge: BADGE[v.badge ?? "archive"],
5268
5278
  selected: v.value === value
5269
5279
  })),
5270
- row: (item, props) => /* @__PURE__ */ jsxs37("div", { ...props, className: `${props.className} vopt`, children: [
5271
- /* @__PURE__ */ jsx43("span", { className: "vname", children: item.label }),
5272
- /* @__PURE__ */ jsx43("span", { className: `vbadge ${item.badge === "Live" ? "live" : "arch"}`, children: String(item.badge) }),
5273
- /* @__PURE__ */ jsx43("span", { className: "vtick", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7("check") } })
5280
+ row: (item, props) => /* @__PURE__ */ jsxs38("div", { ...props, className: `${props.className} vopt`, children: [
5281
+ /* @__PURE__ */ jsx44("span", { className: "vname", children: item.label }),
5282
+ /* @__PURE__ */ jsx44("span", { className: `vbadge ${item.badge === "Live" ? "live" : "arch"}`, children: String(item.badge) }),
5283
+ /* @__PURE__ */ jsx44("span", { className: "vtick", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7("check") } })
5274
5284
  ] }),
5275
5285
  onSelect: (picked) => {
5276
5286
  if (picked != null) onChange?.(String(picked));
@@ -5299,7 +5309,7 @@ function AccountMenu({
5299
5309
  defaultOpen
5300
5310
  }) {
5301
5311
  const mark = initialsOf(name, email);
5302
- return /* @__PURE__ */ jsx43("div", { className: "acct on", children: /* @__PURE__ */ jsx43(
5312
+ return /* @__PURE__ */ jsx44("div", { className: "acct on", children: /* @__PURE__ */ jsx44(
5303
5313
  Dropdown,
5304
5314
  {
5305
5315
  variant: "menu",
@@ -5310,22 +5320,22 @@ function AccountMenu({
5310
5320
  defaultOpen,
5311
5321
  ariaLabel: "Account",
5312
5322
  triggerContent: mark,
5313
- header: /* @__PURE__ */ jsxs37("div", { className: "ahead", children: [
5314
- /* @__PURE__ */ jsx43("span", { className: "avatar", children: mark }),
5315
- /* @__PURE__ */ jsxs37("span", { className: "aw", children: [
5316
- /* @__PURE__ */ jsx43("span", { className: "anm", children: name }),
5317
- /* @__PURE__ */ jsx43("span", { className: "aem", title: email, children: email })
5323
+ header: /* @__PURE__ */ jsxs38("div", { className: "ahead", children: [
5324
+ /* @__PURE__ */ jsx44("span", { className: "avatar", children: mark }),
5325
+ /* @__PURE__ */ jsxs38("span", { className: "aw", children: [
5326
+ /* @__PURE__ */ jsx44("span", { className: "anm", children: name }),
5327
+ /* @__PURE__ */ jsx44("span", { className: "aem", title: email, children: email })
5318
5328
  ] })
5319
5329
  ] }),
5320
5330
  items: [...items, "---", { label: "Sign out", icon: "logout", value: "sign-out", href: signOutHref }],
5321
- row: (item, props) => /* @__PURE__ */ jsxs37(
5331
+ row: (item, props) => /* @__PURE__ */ jsxs38(
5322
5332
  "a",
5323
5333
  {
5324
5334
  ...props,
5325
5335
  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}`),
5326
5336
  className: [props.className.replace(/\bui-dropdown__item\b/, "").trim(), !item.disabled && item.value === current && "cur", item.value === "sign-out" && "aout"].filter(Boolean).join(" "),
5327
5337
  children: [
5328
- item.icon && /* @__PURE__ */ jsx43("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7(item.icon) } }),
5338
+ item.icon && /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", dangerouslySetInnerHTML: { __html: icon7(item.icon) } }),
5329
5339
  item.label
5330
5340
  ]
5331
5341
  }
@@ -5339,10 +5349,10 @@ function AccountMenu({
5339
5349
  }
5340
5350
 
5341
5351
  // src/NavTabs.tsx
5342
- import { Fragment as Fragment19, forwardRef as forwardRef11, useEffect as useEffect18, useRef as useRef23, useImperativeHandle as useImperativeHandle2 } from "react";
5352
+ import { Fragment as Fragment19, forwardRef as forwardRef12, useEffect as useEffect18, useRef as useRef23, useImperativeHandle as useImperativeHandle2 } from "react";
5343
5353
  import { safeUrl as safeUrl4, observeNavFit, revealCurrentNav, revealFocusedNav } from "@apliteni/apliteni-ui";
5344
- import { Fragment as Fragment20, jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
5345
- var NavTabs = forwardRef11(function NavTabs2({
5354
+ import { Fragment as Fragment20, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
5355
+ var NavTabs = forwardRef12(function NavTabs2({
5346
5356
  items,
5347
5357
  active,
5348
5358
  variant = "underline",
@@ -5359,7 +5369,7 @@ var NavTabs = forwardRef11(function NavTabs2({
5359
5369
  useEffect18(() => {
5360
5370
  if (navRef.current) revealCurrentNav(navRef.current);
5361
5371
  }, [active, signature]);
5362
- return /* @__PURE__ */ jsx44(
5372
+ return /* @__PURE__ */ jsx45(
5363
5373
  "nav",
5364
5374
  {
5365
5375
  ...rest,
@@ -5372,11 +5382,11 @@ var NavTabs = forwardRef11(function NavTabs2({
5372
5382
  },
5373
5383
  children: items.map((item) => {
5374
5384
  const badge = item.badge != null && typeof item.badge === "object" ? item.badge : { text: item.badge, tone: void 0 };
5375
- const inner = /* @__PURE__ */ jsxs38(Fragment20, { children: [
5376
- /* @__PURE__ */ jsx44("span", { className: "ui-nav__tab-label", children: item.label }),
5377
- badge.text != null && badge.text !== "" && /* @__PURE__ */ jsx44("span", { className: `ui-nav__badge is-${badge.tone || "neutral"}`, children: badge.text })
5385
+ const inner = /* @__PURE__ */ jsxs39(Fragment20, { children: [
5386
+ /* @__PURE__ */ jsx45("span", { className: "ui-nav__tab-label", children: item.label }),
5387
+ badge.text != null && badge.text !== "" && /* @__PURE__ */ jsx45("span", { className: `ui-nav__badge is-${badge.tone || "neutral"}`, children: badge.text })
5378
5388
  ] });
5379
- if (item.disabled) return /* @__PURE__ */ jsx44("span", { className: "ui-nav__tab is-disabled", "aria-disabled": "true", children: inner }, item.id);
5389
+ if (item.disabled) return /* @__PURE__ */ jsx45("span", { className: "ui-nav__tab is-disabled", "aria-disabled": "true", children: inner }, item.id);
5380
5390
  const current = item.id === active;
5381
5391
  const linkProps = {
5382
5392
  className: ["ui-nav__tab", current && "is-active"].filter(Boolean).join(" "),
@@ -5385,38 +5395,38 @@ var NavTabs = forwardRef11(function NavTabs2({
5385
5395
  "aria-current": current ? "page" : void 0,
5386
5396
  children: inner
5387
5397
  };
5388
- return /* @__PURE__ */ jsx44(Fragment19, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx44("a", { ...linkProps }) }, item.id);
5398
+ return /* @__PURE__ */ jsx45(Fragment19, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx45("a", { ...linkProps }) }, item.id);
5389
5399
  })
5390
5400
  }
5391
5401
  );
5392
5402
  });
5393
5403
 
5394
5404
  // src/Breadcrumbs.tsx
5395
- import { forwardRef as forwardRef12 } from "react";
5405
+ import { forwardRef as forwardRef13 } from "react";
5396
5406
  import { icon as icon8, safeUrl as safeUrl5 } from "@apliteni/apliteni-ui";
5397
- import { Fragment as Fragment21, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
5398
- var Breadcrumbs = forwardRef12(function Breadcrumbs2({
5407
+ import { Fragment as Fragment21, jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
5408
+ var Breadcrumbs = forwardRef13(function Breadcrumbs2({
5399
5409
  items,
5400
5410
  renderLink,
5401
5411
  className,
5402
5412
  "aria-label": ariaLabel = "Breadcrumb",
5403
5413
  ...rest
5404
5414
  }, ref) {
5405
- return /* @__PURE__ */ jsx45(
5415
+ return /* @__PURE__ */ jsx46(
5406
5416
  "nav",
5407
5417
  {
5408
5418
  ...rest,
5409
5419
  ref,
5410
5420
  className: ["ui-nav", "ui-nav--crumbs", className].filter(Boolean).join(" "),
5411
5421
  "aria-label": ariaLabel,
5412
- children: /* @__PURE__ */ jsx45("ol", { className: "ui-nav__crumbs", children: items.map((item, index) => {
5422
+ children: /* @__PURE__ */ jsx46("ol", { className: "ui-nav__crumbs", children: items.map((item, index) => {
5413
5423
  const current = index === items.length - 1;
5414
- const inner = /* @__PURE__ */ jsxs39(Fragment21, { children: [
5415
- item.icon && /* @__PURE__ */ jsx45("span", { className: "ui-nav__ic", dangerouslySetInnerHTML: { __html: icon8(item.icon) } }),
5416
- /* @__PURE__ */ jsx45("span", { className: "ui-nav__crumb-label", children: item.label })
5424
+ const inner = /* @__PURE__ */ jsxs40(Fragment21, { children: [
5425
+ item.icon && /* @__PURE__ */ jsx46("span", { className: "ui-nav__ic", dangerouslySetInnerHTML: { __html: icon8(item.icon) } }),
5426
+ /* @__PURE__ */ jsx46("span", { className: "ui-nav__crumb-label", children: item.label })
5417
5427
  ] });
5418
5428
  const linkProps = !current && item.href ? { className: "ui-nav__crumb", href: safeUrl5(item.href), target: item.target, children: inner } : null;
5419
- return /* @__PURE__ */ jsx45("li", { className: "ui-nav__crumb-item", children: linkProps ? renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx45("a", { ...linkProps }) : /* @__PURE__ */ jsx45(
5429
+ return /* @__PURE__ */ jsx46("li", { className: "ui-nav__crumb-item", children: linkProps ? renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx46("a", { ...linkProps }) : /* @__PURE__ */ jsx46(
5420
5430
  "span",
5421
5431
  {
5422
5432
  className: ["ui-nav__crumb", current && "is-current"].filter(Boolean).join(" "),
@@ -5436,6 +5446,7 @@ export {
5436
5446
  AccentPicker,
5437
5447
  AccountMenu,
5438
5448
  AppShell,
5449
+ AuthShell,
5439
5450
  Avatar,
5440
5451
  BackLink,
5441
5452
  Badge,