@the-portland-company/shell 0.76.14 → 0.76.18

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/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { NavItem } from './native.cjs';
5
- export { FormColumn } from './native.cjs';
4
+ import { N as NavItem } from './index-Cu5frXRQ.cjs';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-Cu5frXRQ.cjs';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.cjs';
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, CSSProperties } from 'react';
4
- import { NavItem } from './native.js';
5
- export { FormColumn } from './native.js';
4
+ import { N as NavItem } from './index-DJ3qBzfQ.js';
5
+ export { C as CommsNotification, a as CommsNotificationKind, F as FormColumn, b as NotificationsAdapter, c as NotificationsFeed, d as createCommsNotificationsAdapter, e as emptyNotificationsFeed, n as normalizeNotificationsFeed } from './index-DJ3qBzfQ.js';
6
6
  import { User, Session, SupabaseClient } from '@supabase/supabase-js';
7
7
  import './theme-preference.js';
8
8
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { warnDeprecated } from './chunk-MY6G3LMN.js';
2
- export { FormColumn, SpeculationRulesScript, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls } from './chunk-MY6G3LMN.js';
1
+ import { warnDeprecated, TopBarTooltip } from './chunk-TUK2IEL5.js';
2
+ export { FormColumn, SpeculationRulesScript, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed } from './chunk-TUK2IEL5.js';
3
3
  import { readResolvedTheme } from './chunk-BHRVZPZ7.js';
4
- import { extendTheme, Tooltip, ChakraProvider, useColorMode } from '@chakra-ui/react';
4
+ import { extendTheme, ChakraProvider, useColorMode } from '@chakra-ui/react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
  import { Link, useLocation } from 'react-router-dom';
7
7
  import clsx from 'clsx';
@@ -1028,46 +1028,47 @@ function HeaderTabBar({
1028
1028
  "aria-label": ariaLabel,
1029
1029
  className: clsx(
1030
1030
  // Header-wide tab strip: background + bottom border only (no outer box).
1031
- "app-header-tab-bar m-0 flex w-full bg-slate-100 p-0",
1031
+ // Left-aligned and fluid: the container spans the full content width,
1032
+ // the tabs keep their natural width packed from the left (Global-Rules
1033
+ // "Tabs & UI Styling": the strip spans the full width of the content
1034
+ // area; tabs keep their natural width, left-aligned. Spencer 2026-10-11:
1035
+ // all apps, all tabs, all screens). No mx-auto / justify-center /
1036
+ // fixed width on the container.
1037
+ "app-header-tab-bar m-0 flex w-full justify-start bg-slate-100 p-0",
1032
1038
  "border-b border-slate-200",
1033
1039
  className
1034
1040
  ),
1035
1041
  children: items.map((item, idx) => {
1036
1042
  const isActive = item.id === activeId;
1037
1043
  const isDisabled = Boolean(item.disabled);
1038
- return /* @__PURE__ */ jsx(
1039
- Tooltip,
1044
+ return /* @__PURE__ */ jsxs(
1045
+ "button",
1040
1046
  {
1041
- label: item.label,
1042
- placement: "top",
1043
- hasArrow: true,
1044
- bg: "black",
1045
- color: "white",
1046
- isDisabled,
1047
- children: /* @__PURE__ */ jsx(
1048
- "button",
1049
- {
1050
- type: "button",
1051
- role: "tab",
1052
- "aria-selected": isActive,
1053
- "aria-label": item.label,
1054
- disabled: isDisabled,
1055
- onClick: () => onChange(item.id),
1056
- className: clsx(
1057
- "app-header-tab-button relative inline-flex flex-1 items-center justify-center",
1058
- "transition-colors",
1059
- "rounded-none",
1060
- idx === 0 ? "rounded-tl-lg" : null,
1061
- idx === items.length - 1 ? "rounded-tr-lg" : null,
1062
- isActive ? "text-white" : "bg-transparent text-slate-600 hover:bg-white/60 hover:text-slate-900",
1063
- isDisabled ? "cursor-not-allowed opacity-50" : null
1064
- ),
1065
- style: {
1066
- background: isActive ? "var(--mode-primary-color, var(--app-btn-primary-bg))" : void 0
1067
- },
1068
- children: /* @__PURE__ */ jsx("span", { className: "inline-flex items-center justify-center text-[14px] leading-none", children: item.icon })
1069
- }
1070
- )
1047
+ type: "button",
1048
+ role: "tab",
1049
+ "aria-selected": isActive,
1050
+ "aria-label": item.label,
1051
+ disabled: isDisabled,
1052
+ onClick: () => onChange(item.id),
1053
+ className: clsx(
1054
+ // `group/tbtip relative` powers the shared <TopBarTooltip>.
1055
+ // Natural width (no flex-1 stretch); 40px square hit area for the
1056
+ // icon-only tab so the strip stays tappable.
1057
+ "group/tbtip app-header-tab-button relative inline-flex h-10 min-w-10 items-center justify-center px-3",
1058
+ "transition-colors",
1059
+ "rounded-none",
1060
+ idx === 0 ? "rounded-tl-lg" : null,
1061
+ idx === items.length - 1 ? "rounded-tr-lg" : null,
1062
+ isActive ? "text-white" : "bg-transparent text-slate-600 hover:bg-white/60 hover:text-slate-900",
1063
+ isDisabled ? "cursor-not-allowed opacity-50" : null
1064
+ ),
1065
+ style: {
1066
+ background: isActive ? "var(--mode-primary-color, var(--app-btn-primary-bg))" : void 0
1067
+ },
1068
+ children: [
1069
+ /* @__PURE__ */ jsx("span", { className: "inline-flex items-center justify-center text-[14px] leading-none", children: item.icon }),
1070
+ isDisabled ? null : /* @__PURE__ */ jsx(TopBarTooltip, { title: item.label })
1071
+ ]
1071
1072
  },
1072
1073
  item.id
1073
1074
  );