@burdenoff/fe-libs 2026.805.2 → 2026.805.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/ContextSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAQ3C,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAW,MAAM,yBAAyB,CAAC;AAEzF,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2MpD,CAAC"}
1
+ {"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/ContextSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAQ3C,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAW,MAAM,yBAAyB,CAAC;AAGzF,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA8MpD,CAAC"}
@@ -1,150 +1,151 @@
1
1
  import { Sheet as e, SheetContent as t, SheetHeader as n, SheetTitle as r } from "../ui/sheet.js";
2
- import { useIsMobile as i } from "./contextSwitcher/useIsMobile.js";
3
- import { TabButton as a } from "./contextSwitcher/TabButton.js";
4
- import { OrganizationList as o } from "./contextSwitcher/OrganizationList.js";
5
- import { WorkspaceList as s } from "./contextSwitcher/WorkspaceList.js";
6
- import { ProjectList as c } from "./contextSwitcher/ProjectList.js";
7
- import { TriggerButton as l } from "./contextSwitcher/TriggerButton.js";
8
- import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
9
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
2
+ import { useShellLabel as i } from "../shared/providers/shell/useShellLabel.js";
3
+ import { useIsMobile as a } from "./contextSwitcher/useIsMobile.js";
4
+ import { TabButton as o } from "./contextSwitcher/TabButton.js";
5
+ import { OrganizationList as s } from "./contextSwitcher/OrganizationList.js";
6
+ import { WorkspaceList as c } from "./contextSwitcher/WorkspaceList.js";
7
+ import { ProjectList as l } from "./contextSwitcher/ProjectList.js";
8
+ import { TriggerButton as u } from "./contextSwitcher/TriggerButton.js";
9
+ import { useCallback as d, useEffect as f, useRef as p, useState as m } from "react";
10
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
10
11
  //#region src/chrome/ContextSwitcher.tsx
11
- var _ = ({ organizations: _, workspaces: v, projects: y, currentOrganizationId: b, currentWorkspaceId: x, currentProjectId: S, onOrganizationChange: C, onWorkspaceChange: w, onProjectChange: T, compact: E = !1 }) => {
12
- let [D, O] = p(!1), [k, A] = p(() => b ? "workspace" : "org"), [j, M] = p({
12
+ var v = ({ organizations: v, workspaces: y, projects: b, currentOrganizationId: x, currentWorkspaceId: S, currentProjectId: C, onOrganizationChange: w, onWorkspaceChange: T, onProjectChange: E, compact: D = !1 }) => {
13
+ let O = i(), [k, A] = m(!1), [j, M] = m(() => x ? "workspace" : "org"), [N, P] = m({
13
14
  org: "",
14
15
  workspace: "",
15
16
  project: ""
16
- }), N = i(), P = f(null), F = f(null), I = f(b);
17
- I.current = b;
18
- let L = _.find((e) => e.id === b), R = v.find((e) => e.id === x), z = y.find((e) => e.id === S), B = v.filter((e) => e.organizationId === b), V = y.filter((e) => e.workspaceId === x), H = u((e, t) => {
17
+ }), F = a(), I = p(null), L = p(null), R = p(x);
18
+ R.current = x;
19
+ let z = v.find((e) => e.id === x), B = y.find((e) => e.id === S), V = b.find((e) => e.id === C), H = y.filter((e) => e.organizationId === x), U = b.filter((e) => e.workspaceId === S), W = d((e, t) => {
19
20
  if (!t.trim()) return e;
20
21
  let n = t.toLowerCase().trim();
21
22
  return e.filter((e) => e.name.toLowerCase().includes(n));
22
- }, []), U = H(_, j.org), W = H(B, j.workspace), G = H(V, j.project), K = u((e, t) => {
23
- M((n) => ({
23
+ }, []), G = W(v, N.org), K = W(H, N.workspace), q = W(U, N.project), J = d((e, t) => {
24
+ P((n) => ({
24
25
  ...n,
25
26
  [e]: t
26
27
  }));
27
- }, []), q = u((e) => {
28
- A(e), M({
28
+ }, []), Y = d((e) => {
29
+ M(e), P({
29
30
  org: "",
30
31
  workspace: "",
31
32
  project: ""
32
33
  }), setTimeout(() => {
33
- F.current?.focus();
34
+ L.current?.focus();
34
35
  }, 50);
35
36
  }, []);
36
- d(() => {
37
- if (N) return;
37
+ f(() => {
38
+ if (F) return;
38
39
  let e = (e) => {
39
- P.current && !P.current.contains(e.target) && O(!1);
40
+ I.current && !I.current.contains(e.target) && A(!1);
40
41
  };
41
- if (D) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
42
- }, [D, N]), d(() => {
43
- if (D) {
44
- A(I.current ? "workspace" : "org");
42
+ if (k) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
43
+ }, [k, F]), f(() => {
44
+ if (k) {
45
+ M(R.current ? "workspace" : "org");
45
46
  let e = setTimeout(() => {
46
- F.current?.focus();
47
+ L.current?.focus();
47
48
  }, 100);
48
49
  return () => clearTimeout(e);
49
50
  }
50
- M({
51
+ P({
51
52
  org: "",
52
53
  workspace: "",
53
54
  project: ""
54
55
  });
55
- }, [D]);
56
- let J = (e) => {
57
- C && C(e);
58
- }, Y = (e) => {
56
+ }, [k]);
57
+ let X = (e) => {
59
58
  w && w(e);
60
- }, X = (e) => {
61
- T && T(e), O(!1);
62
- }, Z = () => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
59
+ }, Z = (e) => {
60
+ T && T(e);
61
+ }, ee = (e) => {
62
+ E && E(e), A(!1);
63
+ }, Q = () => /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
63
64
  className: "flex items-stretch border-b border-[var(--color-border-subtle)] bg-[var(--color-bg-surface)]",
64
65
  children: [
65
- /* @__PURE__ */ h(a, {
66
- label: "Organization",
67
- isActive: k === "org",
68
- onClick: () => q("org")
66
+ /* @__PURE__ */ g(o, {
67
+ label: O("contextSwitcher.organization", "Organization"),
68
+ isActive: j === "org",
69
+ onClick: () => Y("org")
69
70
  }),
70
- /* @__PURE__ */ h(a, {
71
- label: "Workspace",
72
- isActive: k === "workspace",
73
- onClick: () => q("workspace")
71
+ /* @__PURE__ */ g(o, {
72
+ label: O("contextSwitcher.workspace", "Workspace"),
73
+ isActive: j === "workspace",
74
+ onClick: () => Y("workspace")
74
75
  }),
75
- /* @__PURE__ */ h(a, {
76
- label: "Project",
77
- isActive: k === "project",
78
- onClick: () => q("project")
76
+ /* @__PURE__ */ g(o, {
77
+ label: O("contextSwitcher.project", "Project"),
78
+ isActive: j === "project",
79
+ onClick: () => Y("project")
79
80
  })
80
81
  ]
81
- }), /* @__PURE__ */ g("div", {
82
+ }), /* @__PURE__ */ _("div", {
82
83
  className: "flex-1 overflow-hidden",
83
84
  children: [
84
- k === "org" && /* @__PURE__ */ h(o, {
85
- organizations: _,
86
- searchedOrganizations: U,
87
- currentOrganizationId: b,
88
- searchQuery: j.org,
89
- onSearchChange: (e) => K("org", e),
90
- onSelect: J,
91
- searchInputRef: F
85
+ j === "org" && /* @__PURE__ */ g(s, {
86
+ organizations: v,
87
+ searchedOrganizations: G,
88
+ currentOrganizationId: x,
89
+ searchQuery: N.org,
90
+ onSearchChange: (e) => J("org", e),
91
+ onSelect: X,
92
+ searchInputRef: L
92
93
  }),
93
- k === "workspace" && /* @__PURE__ */ h(s, {
94
- filteredWorkspaces: B,
95
- searchedWorkspaces: W,
96
- currentWorkspaceId: x,
97
- searchQuery: j.workspace,
98
- onSearchChange: (e) => K("workspace", e),
99
- onSelect: Y,
100
- searchInputRef: F
94
+ j === "workspace" && /* @__PURE__ */ g(c, {
95
+ filteredWorkspaces: H,
96
+ searchedWorkspaces: K,
97
+ currentWorkspaceId: S,
98
+ searchQuery: N.workspace,
99
+ onSearchChange: (e) => J("workspace", e),
100
+ onSelect: Z,
101
+ searchInputRef: L
101
102
  }),
102
- k === "project" && /* @__PURE__ */ h(c, {
103
- filteredProjects: V,
104
- searchedProjects: G,
105
- currentProjectId: S,
106
- searchQuery: j.project,
107
- onSearchChange: (e) => K("project", e),
108
- onSelect: X,
109
- searchInputRef: F
103
+ j === "project" && /* @__PURE__ */ g(l, {
104
+ filteredProjects: U,
105
+ searchedProjects: q,
106
+ currentProjectId: C,
107
+ searchQuery: N.project,
108
+ onSearchChange: (e) => J("project", e),
109
+ onSelect: ee,
110
+ searchInputRef: L
110
111
  })
111
112
  ]
112
- })] }), Q = /* @__PURE__ */ h(l, {
113
- isOpen: D,
114
- compact: E,
115
- currentOrg: L,
116
- currentWorkspace: R,
117
- currentProject: z,
118
- onToggle: () => O(!D)
113
+ })] }), $ = /* @__PURE__ */ g(u, {
114
+ isOpen: k,
115
+ compact: D,
116
+ currentOrg: z,
117
+ currentWorkspace: B,
118
+ currentProject: V,
119
+ onToggle: () => A(!k)
119
120
  });
120
- return N ? /* @__PURE__ */ g("div", {
121
+ return F ? /* @__PURE__ */ _("div", {
121
122
  className: "relative",
122
- children: [Q, /* @__PURE__ */ h(e, {
123
- open: D,
124
- onOpenChange: O,
125
- children: /* @__PURE__ */ g(t, {
123
+ children: [$, /* @__PURE__ */ g(e, {
124
+ open: k,
125
+ onOpenChange: A,
126
+ children: /* @__PURE__ */ _(t, {
126
127
  side: "bottom",
127
128
  className: "h-[70vh] flex flex-col p-0",
128
- children: [/* @__PURE__ */ h(n, {
129
+ children: [/* @__PURE__ */ g(n, {
129
130
  className: "px-4 pt-4 pb-2 border-b border-[var(--color-border-subtle)]",
130
- children: /* @__PURE__ */ h(r, {
131
+ children: /* @__PURE__ */ g(r, {
131
132
  className: "text-[var(--color-text-primary)]",
132
- children: "Switch Context"
133
+ children: O("contextSwitcher.title", "Switch Context")
133
134
  })
134
- }), /* @__PURE__ */ h("div", {
135
+ }), /* @__PURE__ */ g("div", {
135
136
  className: "flex-1 flex flex-col overflow-hidden",
136
- children: Z()
137
+ children: Q()
137
138
  })]
138
139
  })
139
140
  })]
140
- }) : /* @__PURE__ */ g("div", {
141
+ }) : /* @__PURE__ */ _("div", {
141
142
  className: "relative",
142
- ref: P,
143
- children: [Q, D && /* @__PURE__ */ h("div", {
143
+ ref: I,
144
+ children: [$, k && /* @__PURE__ */ g("div", {
144
145
  className: "absolute right-0 mt-2 w-[calc(100vw-2rem)] sm:w-[26rem] bg-[var(--color-bg-elevated)] border border-[var(--color-border-subtle)] rounded-card shadow-[var(--shadow-elevation-4)] z-50 flex flex-col max-h-[400px] overflow-hidden animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200",
145
- children: Z()
146
+ children: Q()
146
147
  })]
147
148
  });
148
149
  };
149
150
  //#endregion
150
- export { _ as ContextSwitcher };
151
+ export { v as ContextSwitcher };
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../src/chrome/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAYjE;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,EAAE,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E,CAAC;IACzB,yBAAyB;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,OAAO,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACnC,CAAC;IACF,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,SAAS,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,KAAK,SAAS,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,YAAY,EAwDhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,EAmB5C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAwJlC,CAAC"}
@@ -1,8 +1,9 @@
1
- import { PluginFooterStrip as e } from "./PluginFooterStrip.js";
2
- import { ExternalLink as t, Github as n, MessageCircle as r, Twitter as i } from "lucide-react";
3
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { useShellLabel as e } from "../shared/providers/shell/useShellLabel.js";
2
+ import { PluginFooterStrip as t } from "./PluginFooterStrip.js";
3
+ import { ExternalLink as n, Github as r, MessageCircle as i, Twitter as a } from "lucide-react";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
5
  //#region src/chrome/Footer.tsx
5
- function s(e) {
6
+ function c(e) {
6
7
  return {
7
8
  0: "lg:grid-cols-2",
8
9
  1: "lg:grid-cols-3",
@@ -13,7 +14,7 @@ function s(e) {
13
14
  6: "lg:grid-cols-8"
14
15
  }[e] ?? "lg:grid-cols-6";
15
16
  }
16
- var c = [
17
+ var l = [
17
18
  {
18
19
  title: "Products",
19
20
  links: [
@@ -97,60 +98,60 @@ var c = [
97
98
  }
98
99
  ]
99
100
  }
100
- ], l = [
101
+ ], u = [
101
102
  {
102
103
  id: "twitter",
103
104
  label: "Twitter",
104
105
  href: "https://twitter.com/burdenoff",
105
- icon: /* @__PURE__ */ a(i, { className: "size-5" })
106
+ icon: /* @__PURE__ */ o(a, { className: "size-5" })
106
107
  },
107
108
  {
108
109
  id: "github",
109
110
  label: "GitHub",
110
111
  href: "https://github.com/algoshred",
111
- icon: /* @__PURE__ */ a(n, { className: "size-5" })
112
+ icon: /* @__PURE__ */ o(r, { className: "size-5" })
112
113
  },
113
114
  {
114
115
  id: "discord",
115
116
  label: "Discord",
116
117
  href: "https://discord.gg/burdenoff",
117
- icon: /* @__PURE__ */ a(r, { className: "size-5" })
118
+ icon: /* @__PURE__ */ o(i, { className: "size-5" })
118
119
  }
119
- ], u = ({ logo: n, productName: r = "Burdenoff Workspaces", tagline: i = "Enterprise collaboration made simple", columns: u = c, socialLinks: d = l, copyright: f, version: p, buildInfo: m, context: h, children: g, renderLink: _ }) => {
120
- let v = (/* @__PURE__ */ new Date()).getFullYear(), y = f ?? `${v} Burdenoff. All rights reserved.`, b = _ ?? (({ href: e, external: t, children: n, className: r }) => /* @__PURE__ */ a("a", {
120
+ ], d = ({ logo: r, productName: i = "Burdenoff Workspaces", tagline: a = "Enterprise collaboration made simple", columns: d = l, socialLinks: f = u, copyright: p, version: m, buildInfo: h, context: g, children: _, renderLink: v }) => {
121
+ let y = e(), b = (/* @__PURE__ */ new Date()).getFullYear(), x = p ?? y("footer.copyright", `${b} Burdenoff. All rights reserved.`).replace("{year}", String(b)), S = v ?? (({ href: e, external: t, children: n, className: r }) => /* @__PURE__ */ o("a", {
121
122
  href: e,
122
123
  target: t ? "_blank" : void 0,
123
124
  rel: t ? "noopener noreferrer" : void 0,
124
125
  className: r,
125
126
  children: n
126
127
  }));
127
- return /* @__PURE__ */ o("footer", {
128
+ return /* @__PURE__ */ s("footer", {
128
129
  className: "bg-bg-elevated border-t border-border-subtle",
129
130
  children: [
130
- /* @__PURE__ */ a("div", {
131
+ /* @__PURE__ */ o("div", {
131
132
  className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",
132
- children: /* @__PURE__ */ o("div", {
133
- className: `grid grid-cols-2 ${s(u.length)} gap-8`,
134
- children: [/* @__PURE__ */ o("div", {
133
+ children: /* @__PURE__ */ s("div", {
134
+ className: `grid grid-cols-2 ${c(d.length)} gap-8`,
135
+ children: [/* @__PURE__ */ s("div", {
135
136
  className: "col-span-2",
136
137
  children: [
137
- /* @__PURE__ */ o("div", {
138
+ /* @__PURE__ */ s("div", {
138
139
  className: "flex items-center gap-3 mb-4",
139
- children: [n ?? /* @__PURE__ */ a("div", {
140
+ children: [r ?? /* @__PURE__ */ o("div", {
140
141
  className: "size-8 rounded-md bg-action-primary-bg flex items-center justify-center text-action-primary-text font-bold text-sm",
141
142
  children: "B"
142
- }), /* @__PURE__ */ a("span", {
143
+ }), /* @__PURE__ */ o("span", {
143
144
  className: "text-lg font-semibold text-text-primary",
144
- children: r
145
+ children: i
145
146
  })]
146
147
  }),
147
- /* @__PURE__ */ a("p", {
148
+ /* @__PURE__ */ o("p", {
148
149
  className: "text-text-secondary text-sm mb-6 max-w-xs",
149
- children: i
150
+ children: a
150
151
  }),
151
- d.length > 0 && /* @__PURE__ */ a("div", {
152
+ f.length > 0 && /* @__PURE__ */ o("div", {
152
153
  className: "flex items-center gap-4",
153
- children: d.map((e) => /* @__PURE__ */ a("a", {
154
+ children: f.map((e) => /* @__PURE__ */ o("a", {
154
155
  href: e.href,
155
156
  target: "_blank",
156
157
  rel: "noopener noreferrer",
@@ -160,67 +161,67 @@ var c = [
160
161
  }, e.id))
161
162
  })
162
163
  ]
163
- }), u.map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("h3", {
164
+ }), d.map((e) => /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h3", {
164
165
  className: "text-sm font-semibold text-text-primary mb-4",
165
166
  children: e.title
166
- }), /* @__PURE__ */ a("ul", {
167
+ }), /* @__PURE__ */ o("ul", {
167
168
  className: "space-y-3",
168
- children: e.links.map((e) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ o(b, {
169
+ children: e.links.map((e) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ s(S, {
169
170
  href: e.href,
170
171
  external: e.external,
171
172
  className: "text-sm text-text-secondary hover:text-text-primary transition-colors inline-flex items-center gap-1",
172
173
  children: [
173
174
  e.icon,
174
175
  e.label,
175
- e.external && /* @__PURE__ */ a(t, { className: "size-3" })
176
+ e.external && /* @__PURE__ */ o(n, { className: "size-3" })
176
177
  ]
177
178
  }) }, e.id))
178
179
  })] }, e.title))]
179
180
  })
180
181
  }),
181
- /* @__PURE__ */ a(e, {}),
182
- /* @__PURE__ */ a("div", {
182
+ /* @__PURE__ */ o(t, {}),
183
+ /* @__PURE__ */ o("div", {
183
184
  className: "border-t border-border-subtle",
184
- children: /* @__PURE__ */ a("div", {
185
+ children: /* @__PURE__ */ o("div", {
185
186
  className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",
186
- children: /* @__PURE__ */ o("div", {
187
+ children: /* @__PURE__ */ s("div", {
187
188
  className: "flex flex-col sm:flex-row justify-between items-center gap-4 text-xs text-text-muted",
188
189
  children: [
189
- /* @__PURE__ */ a("div", {
190
+ /* @__PURE__ */ o("div", {
190
191
  className: "flex items-center gap-2",
191
- children: /* @__PURE__ */ o("span", { children: ["© ", y] })
192
+ children: /* @__PURE__ */ s("span", { children: ["© ", x] })
192
193
  }),
193
- h && Object.values(h).some(Boolean) && /* @__PURE__ */ a("div", {
194
+ g && Object.values(g).some(Boolean) && /* @__PURE__ */ o("div", {
194
195
  className: "flex items-center gap-3",
195
- children: Object.entries(h).map(([e, t]) => t && /* @__PURE__ */ o("div", {
196
+ children: Object.entries(g).map(([e, t]) => t && /* @__PURE__ */ s("div", {
196
197
  className: "flex items-center gap-1",
197
- children: [/* @__PURE__ */ o("span", {
198
+ children: [/* @__PURE__ */ s("span", {
198
199
  className: "capitalize",
199
200
  children: [e, ":"]
200
- }), /* @__PURE__ */ a("span", {
201
+ }), /* @__PURE__ */ o("span", {
201
202
  className: "text-text-secondary font-medium",
202
203
  children: t
203
204
  })]
204
205
  }, e))
205
206
  }),
206
- /* @__PURE__ */ o("div", {
207
+ /* @__PURE__ */ s("div", {
207
208
  className: "flex items-center gap-3",
208
209
  children: [
209
- p && /* @__PURE__ */ a("span", { children: p }),
210
- p && m && /* @__PURE__ */ a("span", {
210
+ m && /* @__PURE__ */ o("span", { children: m }),
211
+ m && h && /* @__PURE__ */ o("span", {
211
212
  className: "text-border-subtle",
212
213
  children: "|"
213
214
  }),
214
- m && /* @__PURE__ */ o("span", { children: ["Build ", m] })
215
+ h && /* @__PURE__ */ s("span", { children: ["Build ", h] })
215
216
  ]
216
217
  })
217
218
  ]
218
219
  })
219
220
  })
220
221
  }),
221
- g
222
+ _
222
223
  ]
223
224
  });
224
225
  };
225
226
  //#endregion
226
- export { c as DEFAULT_FOOTER_COLUMNS, l as DEFAULT_SOCIAL_LINKS, u as Footer };
227
+ export { l as DEFAULT_FOOTER_COLUMNS, u as DEFAULT_SOCIAL_LINKS, d as Footer };
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageSwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/LanguageSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IAChD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAqItD,CAAC"}
1
+ {"version":3,"file":"LanguageSwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/LanguageSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IAChD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAsItD,CAAC"}
@@ -1,84 +1,85 @@
1
- import { useEffect as e, useRef as t, useState as n } from "react";
2
- import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { useShellLabel as e } from "../shared/providers/shell/useShellLabel.js";
2
+ import { useEffect as t, useRef as n, useState as r } from "react";
3
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
3
4
  //#region src/chrome/LanguageSwitcher.tsx
4
- var o = ({ languages: o, currentLanguage: s, onLanguageChange: c, compact: l = !1 }) => {
5
- let [u, d] = n(!1), f = t(null), p = o.find((e) => e.code === s) || o[0];
6
- e(() => {
5
+ var s = ({ languages: s, currentLanguage: c, onLanguageChange: l, compact: u = !1 }) => {
6
+ let d = e(), [f, p] = r(!1), m = n(null), h = s.find((e) => e.code === c) || s[0];
7
+ t(() => {
7
8
  let e = (e) => {
8
- f.current && !f.current.contains(e.target) && d(!1);
9
+ m.current && !m.current.contains(e.target) && p(!1);
9
10
  };
10
- if (u) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
11
- }, [u]);
12
- let m = (e) => {
13
- c && c(e), d(!1);
11
+ if (f) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
12
+ }, [f]);
13
+ let g = (e) => {
14
+ l && l(e), p(!1);
14
15
  };
15
- return /* @__PURE__ */ a("div", {
16
+ return /* @__PURE__ */ o("div", {
16
17
  className: "relative",
17
- ref: f,
18
- children: [/* @__PURE__ */ i("button", {
19
- onClick: () => d(!u),
20
- className: `flex items-center gap-2 px-3 py-2 rounded-button hover:bg-bg-sunken transition-colors ${u ? "bg-bg-sunken" : ""}`,
21
- "aria-label": "Change language",
22
- "aria-expanded": u,
23
- children: l ? /* @__PURE__ */ i("svg", {
18
+ ref: m,
19
+ children: [/* @__PURE__ */ a("button", {
20
+ onClick: () => p(!f),
21
+ className: `flex items-center gap-2 px-3 py-2 rounded-button hover:bg-bg-sunken transition-colors ${f ? "bg-bg-sunken" : ""}`,
22
+ "aria-label": d("languageSwitcher.change", "Change language"),
23
+ "aria-expanded": f,
24
+ children: u ? /* @__PURE__ */ a("svg", {
24
25
  className: "size-5 text-text-primary",
25
26
  fill: "none",
26
27
  stroke: "currentColor",
27
28
  viewBox: "0 0 24 24",
28
- children: /* @__PURE__ */ i("path", {
29
+ children: /* @__PURE__ */ a("path", {
29
30
  strokeLinecap: "round",
30
31
  strokeLinejoin: "round",
31
32
  strokeWidth: 2,
32
33
  d: "M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"
33
34
  })
34
- }) : /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
35
+ }) : /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("span", {
35
36
  className: "text-body-sm font-medium text-text-primary uppercase",
36
- children: p?.code
37
- }), /* @__PURE__ */ i("svg", {
38
- className: `w-4 h-4 text-text-secondary transition-transform ${u ? "rotate-180" : ""}`,
37
+ children: h?.code
38
+ }), /* @__PURE__ */ a("svg", {
39
+ className: `w-4 h-4 text-text-secondary transition-transform ${f ? "rotate-180" : ""}`,
39
40
  fill: "none",
40
41
  stroke: "currentColor",
41
42
  viewBox: "0 0 24 24",
42
- children: /* @__PURE__ */ i("path", {
43
+ children: /* @__PURE__ */ a("path", {
43
44
  strokeLinecap: "round",
44
45
  strokeLinejoin: "round",
45
46
  strokeWidth: 2,
46
47
  d: "M19 9l-7 7-7-7"
47
48
  })
48
49
  })] })
49
- }), u && /* @__PURE__ */ a("div", {
50
+ }), f && /* @__PURE__ */ o("div", {
50
51
  className: "absolute right-0 mt-2 w-[calc(100vw-1.5rem)] sm:w-64 max-w-64 bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] z-50 py-2 overflow-hidden animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200",
51
- children: [/* @__PURE__ */ i("div", {
52
+ children: [/* @__PURE__ */ a("div", {
52
53
  className: "px-4 py-2 border-b border-border-subtle",
53
- children: /* @__PURE__ */ i("p", {
54
+ children: /* @__PURE__ */ a("p", {
54
55
  className: "text-[11px] font-medium text-text-muted uppercase tracking-wider",
55
- children: "Select Language"
56
+ children: d("languageSwitcher.title", "Select Language")
56
57
  })
57
- }), /* @__PURE__ */ i("div", {
58
+ }), /* @__PURE__ */ a("div", {
58
59
  className: "py-1 max-h-96 overflow-y-auto",
59
- children: o.map((e) => /* @__PURE__ */ a("button", {
60
- onClick: () => m(e),
61
- className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.code === s ? "bg-[var(--color-accent-soft)] text-text-primary font-medium" : "text-text-primary hover:bg-bg-sunken"}`,
60
+ children: s.map((e) => /* @__PURE__ */ o("button", {
61
+ onClick: () => g(e),
62
+ className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.code === c ? "bg-[var(--color-accent-soft)] text-text-primary font-medium" : "text-text-primary hover:bg-bg-sunken"}`,
62
63
  children: [
63
- e.flag && /* @__PURE__ */ i("span", {
64
+ e.flag && /* @__PURE__ */ a("span", {
64
65
  className: "text-xl flex-shrink-0",
65
66
  children: e.flag
66
67
  }),
67
- /* @__PURE__ */ a("div", {
68
+ /* @__PURE__ */ o("div", {
68
69
  className: "flex-1 text-left min-w-0",
69
- children: [/* @__PURE__ */ i("p", {
70
+ children: [/* @__PURE__ */ a("p", {
70
71
  className: "font-medium truncate",
71
72
  children: e.name
72
- }), /* @__PURE__ */ i("p", {
73
+ }), /* @__PURE__ */ a("p", {
73
74
  className: "text-xs text-text-secondary truncate",
74
75
  children: e.nativeName
75
76
  })]
76
77
  }),
77
- e.code === s && /* @__PURE__ */ i("svg", {
78
+ e.code === c && /* @__PURE__ */ a("svg", {
78
79
  className: "size-5 text-action-primary-bg flex-shrink-0",
79
80
  fill: "currentColor",
80
81
  viewBox: "0 0 20 20",
81
- children: /* @__PURE__ */ i("path", {
82
+ children: /* @__PURE__ */ a("path", {
82
83
  fillRule: "evenodd",
83
84
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
84
85
  clipRule: "evenodd"
@@ -91,4 +92,4 @@ var o = ({ languages: o, currentLanguage: s, onLanguageChange: c, compact: l = !
91
92
  });
92
93
  };
93
94
  //#endregion
94
- export { o as LanguageSwitcher };
95
+ export { s as LanguageSwitcher };
@@ -1 +1 @@
1
- {"version":3,"file":"PersonaSurfaceControls.d.ts","sourceRoot":"","sources":["../../src/chrome/PersonaSurfaceControls.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAkBH,MAAM,WAAW,2BAA2B;IAC1C,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqWD,wBAAgB,sBAAsB,CAAC,EACrC,eAA8B,EAC9B,cAAiC,GAClC,EAAE,2BAA2B,kDA6C7B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,mDAyBpC"}
1
+ {"version":3,"file":"PersonaSurfaceControls.d.ts","sourceRoot":"","sources":["../../src/chrome/PersonaSurfaceControls.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAmBH,MAAM,WAAW,2BAA2B;IAC1C,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqWD,wBAAgB,sBAAsB,CAAC,EACrC,eAAe,EACf,cAAc,GACf,EAAE,2BAA2B,kDAkD7B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,mDAyBpC"}