@burdenoff/fe-libs 2026.1118.13 → 2026.1119.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.
Files changed (37) hide show
  1. package/dist/chrome/globalSearch/AdvancedFiltersPanel.js +128 -127
  2. package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
  3. package/dist/connections/CredentialStorageSelector.js +135 -134
  4. package/dist/connections/SharePanels.js +70 -69
  5. package/dist/credentials/AuthMethodSelector.js +33 -32
  6. package/dist/credentials/SchemaForm.js +96 -95
  7. package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
  8. package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
  9. package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
  10. package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
  11. package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
  12. package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
  13. package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
  14. package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
  15. package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
  16. package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
  17. package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
  18. package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
  19. package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
  20. package/dist/shared/providers/AppShellProvider.d.ts +8 -0
  21. package/dist/shared/providers/AppShellProvider.js +199 -193
  22. package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
  23. package/dist/shared/providers/shell/ThemeProvider.js +65 -62
  24. package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
  25. package/dist/shared/providers/shell/themedNativeControls.js +13 -0
  26. package/dist/sharing/ShareDialog.js +33 -32
  27. package/dist/storage/StorageFolderPicker.js +50 -49
  28. package/dist/ui/index.d.ts +2 -0
  29. package/dist/ui/themed-select-context.d.ts +9 -0
  30. package/dist/ui/themed-select-context.js +15 -0
  31. package/dist/ui/themed-select-options.d.ts +42 -0
  32. package/dist/ui/themed-select-options.js +88 -0
  33. package/dist/ui/themed-select.d.ts +7 -0
  34. package/dist/ui/themed-select.js +234 -0
  35. package/dist/ui.js +31 -29
  36. package/package.json +1 -1
  37. package/src/shared/tokens/tokens.css +100 -0
@@ -4,59 +4,60 @@ import { resolveAvatarVoiceMode as r } from "../avatarPreferences.js";
4
4
  import { useAvatarCopy as i } from "../useAvatarCopy.js";
5
5
  import { AvatarFace as a } from "./AvatarFace.js";
6
6
  import { hostedAvatarVoice as o } from "./avatarVoice.js";
7
- import { LiveAvatarMinutes as s } from "./LiveAvatarMinutes.js";
8
- import { useSyncExternalStore as c } from "react";
9
- import { Volume2 as l } from "lucide-react";
10
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ import { ThemedSelect as s } from "../../../../ui/themed-select.js";
8
+ import { LiveAvatarMinutes as c } from "./LiveAvatarMinutes.js";
9
+ import { useSyncExternalStore as l } from "react";
10
+ import { Volume2 as u } from "lucide-react";
11
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
12
  // src/shared/assistant/avatar/live/LiveAvatarSettingsFields.tsx
12
- var f = "mine", p = "paired", m = "speaker:", h = /-Chirp3-HD-([A-Za-z]+)$/;
13
- function g(e) {
14
- let n = h.exec(e)?.[1];
13
+ var p = "mine", m = "paired", h = "speaker:", g = /-Chirp3-HD-([A-Za-z]+)$/;
14
+ function _(e) {
15
+ let n = g.exec(e)?.[1];
15
16
  return n !== void 0 && t(n) ? n : e;
16
17
  }
17
- function _(e, t) {
18
+ function v(e, t) {
18
19
  let n = t.find((e) => e.source === "hosted")?.lang;
19
20
  return n === void 0 ? null : o(e, n, t);
20
21
  }
21
- var v = "text-xs font-medium text-text-secondary", y = "text-xs text-text-muted", b = "focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong", x = "relative inline-flex min-h-11 min-w-0 max-w-full cursor-pointer items-center gap-2 rounded-full border ps-1.5 pe-4 text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-border-strong", S = "absolute inset-0 m-0 size-full cursor-pointer appearance-none rounded-full opacity-0";
22
- function C(e) {
22
+ var y = "text-xs font-medium text-text-secondary", b = "text-xs text-text-muted", x = "focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong", S = "relative inline-flex min-h-11 min-w-0 max-w-full cursor-pointer items-center gap-2 rounded-full border ps-1.5 pe-4 text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-border-strong", C = "absolute inset-0 m-0 size-full cursor-pointer appearance-none rounded-full opacity-0";
23
+ function w(e) {
23
24
  return e.phase === "starting" || e.phase === "connecting" || e.phase === "ready" || e.phase === "ending";
24
25
  }
25
- var w = ({ controller: e, snapshot: t, chooserName: n, nameOf: r, imageOf: o, markBroken: s, persistSelection: c = !1, selectedId: l, showEmpty: f, lockedHint: p = !0 }) => {
26
- let m = i(), h = C(t), g = l === void 0 ? t.selectedAvatarId : l, { phase: _ } = t;
27
- return t.avatars.length > 1 && !h ? /* @__PURE__ */ d("fieldset", {
26
+ var T = ({ controller: e, snapshot: t, chooserName: n, nameOf: r, imageOf: o, markBroken: s, persistSelection: c = !1, selectedId: l, showEmpty: u, lockedHint: p = !0 }) => {
27
+ let m = i(), h = w(t), g = l === void 0 ? t.selectedAvatarId : l, { phase: _ } = t;
28
+ return t.avatars.length > 1 && !h ? /* @__PURE__ */ f("fieldset", {
28
29
  className: "flex min-w-0 flex-col gap-1.5",
29
30
  "data-testid": "assistant-avatar-tab-chooser",
30
- children: [/* @__PURE__ */ u("legend", {
31
- className: v,
31
+ children: [/* @__PURE__ */ d("legend", {
32
+ className: y,
32
33
  children: m.chooserTitle
33
- }), /* @__PURE__ */ u("div", {
34
+ }), /* @__PURE__ */ d("div", {
34
35
  className: "flex flex-wrap gap-2",
35
36
  children: t.avatars.map((t) => {
36
37
  let i = t === g, l = r(t);
37
- return /* @__PURE__ */ d("label", {
38
- className: `${x} ${i ? "border-transparent bg-action-primary-bg text-action-primary-text" : "border-border-default bg-bg-elevated text-text-secondary hover:bg-bg-raised hover:text-text-primary"}`,
38
+ return /* @__PURE__ */ f("label", {
39
+ className: `${S} ${i ? "border-transparent bg-action-primary-bg text-action-primary-text" : "border-border-default bg-bg-elevated text-text-secondary hover:bg-bg-raised hover:text-text-primary"}`,
39
40
  title: i ? m.chooserSelected(l) : m.chooserOption(l),
40
41
  children: [
41
- /* @__PURE__ */ u("input", {
42
+ /* @__PURE__ */ d("input", {
42
43
  type: "radio",
43
44
  name: n,
44
45
  value: t,
45
46
  checked: i,
46
47
  onChange: () => {
47
- c ? C(e.getSnapshot()) || e.selectAvatar(t, { persist: !0 }) : e.selectAvatar(t);
48
+ c ? w(e.getSnapshot()) || e.selectAvatar(t, { persist: !0 }) : e.selectAvatar(t);
48
49
  },
49
- className: S,
50
+ className: C,
50
51
  "data-avatar-id": t
51
52
  }),
52
- /* @__PURE__ */ u(a, {
53
+ /* @__PURE__ */ d(a, {
53
54
  size: "pill",
54
55
  name: l,
55
56
  src: o(t),
56
57
  selected: i,
57
58
  onError: s
58
59
  }),
59
- /* @__PURE__ */ u("span", {
60
+ /* @__PURE__ */ d("span", {
60
61
  className: "truncate",
61
62
  children: l
62
63
  })
@@ -64,99 +65,99 @@ var w = ({ controller: e, snapshot: t, chooserName: n, nameOf: r, imageOf: o, ma
64
65
  }, t);
65
66
  })
66
67
  })]
67
- }) : t.avatars.length > 0 && g !== null ? /* @__PURE__ */ d("div", {
68
+ }) : t.avatars.length > 0 && g !== null ? /* @__PURE__ */ f("div", {
68
69
  className: "flex flex-col gap-0.5",
69
70
  "data-testid": "assistant-avatar-tab-chosen",
70
- children: [/* @__PURE__ */ d("p", {
71
+ children: [/* @__PURE__ */ f("p", {
71
72
  className: "flex min-w-0 items-baseline gap-2 text-sm",
72
- children: [/* @__PURE__ */ u("span", {
73
- className: v,
73
+ children: [/* @__PURE__ */ d("span", {
74
+ className: y,
74
75
  children: m.chooserLabel
75
- }), /* @__PURE__ */ u("span", {
76
+ }), /* @__PURE__ */ d("span", {
76
77
  className: "truncate text-text-primary",
77
78
  children: r(g)
78
79
  })]
79
- }), h && t.avatars.length > 1 && p ? /* @__PURE__ */ u("p", {
80
- className: y,
80
+ }), h && t.avatars.length > 1 && p ? /* @__PURE__ */ d("p", {
81
+ className: b,
81
82
  children: m.chooserLocked
82
83
  }) : null]
83
- }) : f ?? _ === "choosing" ? /* @__PURE__ */ u("p", {
84
- className: y,
84
+ }) : u ?? _ === "choosing" ? /* @__PURE__ */ d("p", {
85
+ className: b,
85
86
  "data-testid": "assistant-avatar-tab-empty",
86
87
  children: m.chooserEmpty
87
88
  }) : null;
88
- }, T = ({ controller: a, selected: o, avatarVoices: s, defaultAvatarVoiceMode: h, voiceStore: x, selectId: S, voiceHintId: w, voiceLive: T, lockWhileOn: E = !1 }) => {
89
- let D = i(), O = n(), k = c(a.subscribe, a.getSnapshot, a.getSnapshot), A = E && C(k), j = c(x.subscribe, x.getState, x.getState), M = r(j, h), N = o === null ? null : s.get(o) ?? null, P = M === "speaker" && j.avatarSpeaker !== null ? `${m}${j.avatarSpeaker}` : M === "paired" && N !== null ? p : f, F = P === p ? N : P.startsWith(m) ? j.avatarSpeaker : null, I = P === f ? O.activeVoiceName : F === null ? null : _(F, O.voiceChoices)?.name ?? null, L = O.speakingMessageId !== null || O.spokenChunks !== null, R = I !== null && !T && !L && !A, z = O.activeVoiceName ? D.voiceModeMineNamed(g(O.activeVoiceName)) : D.voiceModeMine, B = (e) => {
90
- if (E && C(a.getSnapshot())) return;
91
- if (e === f || e === p) {
92
- x.setVoiceMode(e);
89
+ }, E = ({ controller: a, selected: o, avatarVoices: c, defaultAvatarVoiceMode: g, voiceStore: S, selectId: C, voiceHintId: T, voiceLive: E, lockWhileOn: D = !1 }) => {
90
+ let O = i(), k = n(), A = l(a.subscribe, a.getSnapshot, a.getSnapshot), j = D && w(A), M = l(S.subscribe, S.getState, S.getState), N = r(M, g), P = o === null ? null : c.get(o) ?? null, F = N === "speaker" && M.avatarSpeaker !== null ? `${h}${M.avatarSpeaker}` : N === "paired" && P !== null ? m : p, I = F === m ? P : F.startsWith(h) ? M.avatarSpeaker : null, L = F === p ? k.activeVoiceName : I === null ? null : v(I, k.voiceChoices)?.name ?? null, R = k.speakingMessageId !== null || k.spokenChunks !== null, z = L !== null && !E && !R && !j, B = k.activeVoiceName ? O.voiceModeMineNamed(_(k.activeVoiceName)) : O.voiceModeMine, V = (e) => {
91
+ if (D && w(a.getSnapshot())) return;
92
+ if (e === p || e === m) {
93
+ S.setVoiceMode(e);
93
94
  return;
94
95
  }
95
96
  let n = e.slice(8);
96
- e.startsWith(m) && t(n) && x.setAvatarSpeaker(n);
97
+ e.startsWith(h) && t(n) && S.setAvatarSpeaker(n);
97
98
  };
98
- return /* @__PURE__ */ d("div", {
99
+ return /* @__PURE__ */ f("div", {
99
100
  className: "flex flex-col gap-1",
100
101
  children: [
101
- /* @__PURE__ */ u("label", {
102
- htmlFor: S,
103
- className: v,
104
- children: D.voiceModeLabel
102
+ /* @__PURE__ */ d("label", {
103
+ htmlFor: C,
104
+ className: y,
105
+ children: O.voiceModeLabel
105
106
  }),
106
- /* @__PURE__ */ d("div", {
107
+ /* @__PURE__ */ f("div", {
107
108
  className: "flex items-center gap-2",
108
- children: [/* @__PURE__ */ d("select", {
109
- id: S,
110
- value: P,
111
- onChange: (e) => B(e.target.value),
112
- "aria-describedby": w,
113
- disabled: A || void 0,
114
- className: `min-h-11 min-w-0 flex-1 rounded-xl border border-border-default bg-bg-elevated px-3 text-sm text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary ${b}`,
109
+ children: [/* @__PURE__ */ f(s, {
110
+ id: C,
111
+ value: F,
112
+ onChange: (e) => V(e.target.value),
113
+ "aria-describedby": T,
114
+ disabled: j || void 0,
115
+ className: `min-h-11 min-w-0 flex-1 rounded-xl border border-border-default bg-bg-elevated px-3 text-sm text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary ${x}`,
115
116
  "data-testid": "assistant-avatar-tab-voice",
116
117
  children: [
117
- /* @__PURE__ */ u("option", {
118
- value: f,
119
- children: z
120
- }),
121
- N === null ? null : /* @__PURE__ */ u("option", {
118
+ /* @__PURE__ */ d("option", {
122
119
  value: p,
123
- children: D.voiceModeDefaultNamed(N)
120
+ children: B
121
+ }),
122
+ P === null ? null : /* @__PURE__ */ d("option", {
123
+ value: m,
124
+ children: O.voiceModeDefaultNamed(P)
124
125
  }),
125
- e.map((e) => /* @__PURE__ */ u("option", {
126
- value: `${m}${e}`,
126
+ e.map((e) => /* @__PURE__ */ d("option", {
127
+ value: `${h}${e}`,
127
128
  children: e
128
129
  }, e))
129
130
  ]
130
- }), /* @__PURE__ */ u("button", {
131
+ }), /* @__PURE__ */ d("button", {
131
132
  type: "button",
132
133
  onClick: () => {
133
- R && I !== null && O.previewVoice(I);
134
+ z && L !== null && k.previewVoice(L);
134
135
  },
135
- "aria-disabled": !R,
136
- "aria-label": D.hearVoice,
137
- title: D.hearVoice,
138
- className: `inline-flex size-11 shrink-0 items-center justify-center rounded-xl border border-border-default bg-bg-elevated text-text-secondary transition-colors hover:bg-bg-raised hover:text-text-primary aria-disabled:cursor-default aria-disabled:opacity-60 ${b}`,
136
+ "aria-disabled": !z,
137
+ "aria-label": O.hearVoice,
138
+ title: O.hearVoice,
139
+ className: `inline-flex size-11 shrink-0 items-center justify-center rounded-xl border border-border-default bg-bg-elevated text-text-secondary transition-colors hover:bg-bg-raised hover:text-text-primary aria-disabled:cursor-default aria-disabled:opacity-60 ${x}`,
139
140
  "data-testid": "assistant-avatar-tab-hear",
140
- children: /* @__PURE__ */ u(l, {
141
+ children: /* @__PURE__ */ d(u, {
141
142
  className: "size-5",
142
143
  "aria-hidden": "true"
143
144
  })
144
145
  })]
145
146
  }),
146
- /* @__PURE__ */ u("p", {
147
- id: w,
148
- className: y,
149
- children: D.voiceModeHint
147
+ /* @__PURE__ */ d("p", {
148
+ id: T,
149
+ className: b,
150
+ children: O.voiceModeHint
150
151
  })
151
152
  ]
152
153
  });
153
- }, E = ({ id: e }) => {
154
+ }, D = ({ id: e }) => {
154
155
  let t = i();
155
- return /* @__PURE__ */ u("p", {
156
+ return /* @__PURE__ */ d("p", {
156
157
  id: e,
157
158
  className: "text-xs text-text-secondary",
158
159
  "data-testid": "assistant-avatar-tab-disclosure",
159
160
  children: t.consent
160
161
  });
161
162
  };
162
- export { w as LiveAvatarSettingsChooser, s as LiveAvatarSettingsCredits, E as LiveAvatarSettingsDisclosure, T as LiveAvatarSettingsVoice, _ as avatarPreviewVoice, C as avatarSettingsLocked, g as avatarVoiceDisplayName };
163
+ export { T as LiveAvatarSettingsChooser, c as LiveAvatarSettingsCredits, D as LiveAvatarSettingsDisclosure, E as LiveAvatarSettingsVoice, v as avatarPreviewVoice, w as avatarSettingsLocked, _ as avatarVoiceDisplayName };
@@ -22,6 +22,8 @@ import { FC } from 'react';
22
22
  * ★ Both stay native `<select>`s. On a phone that opens the OS picker, which
23
23
  * already scrolls, searches and localises itself — worth far more across nine
24
24
  * Indic languages than a custom dropdown that reimplements all three badly.
25
+ * They are `ThemedSelect`s: only an app that opts in to themed native controls
26
+ * (FluidGrids, BOFF-15413) swaps the system menu for its own styled one.
25
27
  */
26
28
  export interface AssistantLanguageMenuProps {
27
29
  /**
@@ -3,82 +3,83 @@ import { ASSISTANT_LANGUAGES as t } from "../voice/languages.js";
3
3
  import { resolveLanguagePair as n } from "../voice/languagePair.js";
4
4
  import { useAssistantStore as r } from "../store.js";
5
5
  import { useAssistantTr as i } from "../i18n.js";
6
- import { useMemo as a } from "react";
7
- import { Languages as o } from "lucide-react";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { ThemedSelect as a } from "../../../ui/themed-select.js";
7
+ import { useMemo as o } from "react";
8
+ import { Languages as s } from "lucide-react";
9
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
10
  // src/shared/assistant/ui/AssistantLanguageMenu.tsx
10
- var l = "__match__", u = ({ inputOnly: u = !1 }) => {
11
- let d = i(), { locale: f } = e(), p = r((e) => e.assistantLanguage), m = r((e) => e.setAssistantLanguage), h = r((e) => e.replyLanguage), g = r((e) => e.setReplyLanguage), _ = a(() => n(p, h, f), [
12
- p,
13
- h,
14
- f
15
- ]), v = d("language.inputLabel", "Language"), y = d("language.replyLabel", "Assistant replies in"), b = p ?? "";
16
- return /* @__PURE__ */ c("div", {
11
+ var u = "__match__", d = ({ inputOnly: d = !1 }) => {
12
+ let f = i(), { locale: p } = e(), m = r((e) => e.assistantLanguage), h = r((e) => e.setAssistantLanguage), g = r((e) => e.replyLanguage), _ = r((e) => e.setReplyLanguage), v = o(() => n(m, g, p), [
13
+ m,
14
+ g,
15
+ p
16
+ ]), y = f("language.inputLabel", "Language"), b = f("language.replyLabel", "Assistant replies in"), x = m ?? "";
17
+ return /* @__PURE__ */ l("div", {
17
18
  "data-testid": "assistant-language-menu",
18
- children: [/* @__PURE__ */ c("label", {
19
+ children: [/* @__PURE__ */ l("label", {
19
20
  className: "relative flex cursor-pointer items-center gap-2.5 px-3 py-2 text-xs text-text-primary transition-colors hover:bg-bg-elevated focus-within:ring-2 focus-within:ring-border-strong",
20
- title: `${v}: ${_.input.label}`,
21
+ title: `${y}: ${v.input.label}`,
21
22
  "data-testid": "assistant-input-language",
22
23
  children: [
23
- /* @__PURE__ */ s(o, {
24
+ /* @__PURE__ */ c(s, {
24
25
  className: "size-3.5 flex-shrink-0 text-text-secondary",
25
26
  "aria-hidden": "true"
26
27
  }),
27
- /* @__PURE__ */ s("span", {
28
+ /* @__PURE__ */ c("span", {
28
29
  className: "flex-1",
29
- children: v
30
+ children: y
30
31
  }),
31
- /* @__PURE__ */ s("span", {
32
+ /* @__PURE__ */ c("span", {
32
33
  className: "text-text-muted",
33
- children: _.input.label
34
+ children: v.input.label
34
35
  }),
35
- /* @__PURE__ */ c("select", {
36
- "aria-label": v,
37
- value: b,
36
+ /* @__PURE__ */ l(a, {
37
+ "aria-label": y,
38
+ value: x,
38
39
  onChange: (e) => {
39
40
  let t = e.target.value;
40
- m(t === "" ? null : t);
41
+ h(t === "" ? null : t);
41
42
  },
42
43
  className: "absolute inset-0 cursor-pointer opacity-0 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
43
- children: [/* @__PURE__ */ s("option", {
44
+ children: [/* @__PURE__ */ c("option", {
44
45
  value: "",
45
- children: d("voice.languageFollowApp", "Same as interface")
46
- }), t.map((e) => /* @__PURE__ */ s("option", {
46
+ children: f("voice.languageFollowApp", "Same as interface")
47
+ }), t.map((e) => /* @__PURE__ */ c("option", {
47
48
  value: e.code,
48
49
  children: e.label
49
50
  }, e.code))]
50
51
  })
51
52
  ]
52
- }), u ? null : /* @__PURE__ */ c("label", {
53
+ }), d ? null : /* @__PURE__ */ l("label", {
53
54
  className: "relative flex cursor-pointer items-center gap-2.5 py-2 ps-9 pe-3 text-xs text-text-secondary transition-colors hover:bg-bg-elevated focus-within:ring-2 focus-within:ring-border-strong",
54
- title: `${y}: ${_.reply.english}`,
55
+ title: `${b}: ${v.reply.english}`,
55
56
  "data-testid": "assistant-reply-language",
56
57
  children: [
57
- /* @__PURE__ */ s("span", {
58
+ /* @__PURE__ */ c("span", {
58
59
  className: "flex-1",
59
- children: y
60
+ children: b
60
61
  }),
61
- /* @__PURE__ */ s("span", {
62
+ /* @__PURE__ */ c("span", {
62
63
  className: "text-text-muted",
63
- children: h === null ? `${d("language.replyMatch", "Match my language")} (${_.reply.label})` : _.reply.label
64
+ children: g === null ? `${f("language.replyMatch", "Match my language")} (${v.reply.label})` : v.reply.label
64
65
  }),
65
- /* @__PURE__ */ c("select", {
66
- "aria-label": y,
67
- value: h ?? l,
66
+ /* @__PURE__ */ l(a, {
67
+ "aria-label": b,
68
+ value: g ?? u,
68
69
  onChange: (e) => {
69
70
  let t = e.target.value;
70
- g(t === l ? null : t);
71
+ _(t === u ? null : t);
71
72
  },
72
73
  className: "absolute inset-0 cursor-pointer opacity-0 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
73
- children: [/* @__PURE__ */ c("option", {
74
- value: l,
74
+ children: [/* @__PURE__ */ l("option", {
75
+ value: u,
75
76
  children: [
76
- d("language.replyMatch", "Match my language"),
77
+ f("language.replyMatch", "Match my language"),
77
78
  " (",
78
- _.input.label,
79
+ v.input.label,
79
80
  ")"
80
81
  ]
81
- }), t.map((e) => /* @__PURE__ */ s("option", {
82
+ }), t.map((e) => /* @__PURE__ */ c("option", {
82
83
  value: e.code,
83
84
  children: e.label
84
85
  }, e.code))]
@@ -87,4 +88,4 @@ var l = "__match__", u = ({ inputOnly: u = !1 }) => {
87
88
  })]
88
89
  });
89
90
  };
90
- export { u as AssistantLanguageMenu };
91
+ export { d as AssistantLanguageMenu };
@@ -16,6 +16,8 @@ import { FC } from 'react';
16
16
  * exactly full at 390px, and this is a setting rather than a per-turn control.
17
17
  *
18
18
  * A native `<select>` for the same reason as the language chip — on a phone it
19
- * opens the OS picker, which already scrolls and localises itself.
19
+ * opens the OS picker, which already scrolls and localises itself. A `ThemedSelect`,
20
+ * so an app that opts in to themed native controls (FluidGrids, BOFF-15413) gets its
21
+ * own styled menu instead.
20
22
  */
21
23
  export declare const AssistantReplyLanguageSelector: FC;
@@ -3,50 +3,51 @@ import { ASSISTANT_LANGUAGES as t } from "../voice/languages.js";
3
3
  import { resolveLanguagePair as n } from "../voice/languagePair.js";
4
4
  import { useAssistantStore as r } from "../store.js";
5
5
  import { useAssistantTr as i } from "../i18n.js";
6
- import { useMemo as a } from "react";
7
- import { Languages as o } from "lucide-react";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { ThemedSelect as a } from "../../../ui/themed-select.js";
7
+ import { useMemo as o } from "react";
8
+ import { Languages as s } from "lucide-react";
9
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
10
  // src/shared/assistant/ui/AssistantReplyLanguageSelector.tsx
10
- var l = "__match__", u = () => {
11
- let u = i(), { locale: d } = e(), f = r((e) => e.assistantLanguage), p = r((e) => e.replyLanguage), m = r((e) => e.setReplyLanguage), h = a(() => n(f, p, d), [
12
- f,
11
+ var u = "__match__", d = () => {
12
+ let d = i(), { locale: f } = e(), p = r((e) => e.assistantLanguage), m = r((e) => e.replyLanguage), h = r((e) => e.setReplyLanguage), g = o(() => n(p, m, f), [
13
13
  p,
14
- d
15
- ]), g = u("language.replyLabel", "Assistant replies in");
16
- return /* @__PURE__ */ c("label", {
14
+ m,
15
+ f
16
+ ]), _ = d("language.replyLabel", "Assistant replies in");
17
+ return /* @__PURE__ */ l("label", {
17
18
  className: "relative flex cursor-pointer items-center gap-2.5 px-3 py-2 text-xs text-text-primary transition-colors hover:bg-bg-elevated focus-within:ring-2 focus-within:ring-border-strong",
18
- title: `${g}: ${h.reply.english}`,
19
+ title: `${_}: ${g.reply.english}`,
19
20
  "data-testid": "assistant-reply-language",
20
21
  children: [
21
- /* @__PURE__ */ s(o, {
22
+ /* @__PURE__ */ c(s, {
22
23
  className: "size-3.5 flex-shrink-0 text-text-secondary",
23
24
  "aria-hidden": "true"
24
25
  }),
25
- /* @__PURE__ */ s("span", {
26
+ /* @__PURE__ */ c("span", {
26
27
  className: "flex-1",
27
- children: g
28
+ children: _
28
29
  }),
29
- /* @__PURE__ */ s("span", {
30
+ /* @__PURE__ */ c("span", {
30
31
  className: "text-text-muted",
31
- children: h.reply.label
32
+ children: g.reply.label
32
33
  }),
33
- /* @__PURE__ */ c("select", {
34
- "aria-label": g,
35
- value: p ?? l,
34
+ /* @__PURE__ */ l(a, {
35
+ "aria-label": _,
36
+ value: m ?? u,
36
37
  onChange: (e) => {
37
38
  let t = e.target.value;
38
- m(t === l ? null : t);
39
+ h(t === u ? null : t);
39
40
  },
40
41
  className: "absolute inset-0 cursor-pointer opacity-0 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
41
- children: [/* @__PURE__ */ c("option", {
42
- value: l,
42
+ children: [/* @__PURE__ */ l("option", {
43
+ value: u,
43
44
  children: [
44
- u("language.replyMatch", "Match my language"),
45
+ d("language.replyMatch", "Match my language"),
45
46
  " (",
46
- h.input.label,
47
+ g.input.label,
47
48
  ")"
48
49
  ]
49
- }), t.map((e) => /* @__PURE__ */ s("option", {
50
+ }), t.map((e) => /* @__PURE__ */ c("option", {
50
51
  value: e.code,
51
52
  children: e.label
52
53
  }, e.code))]
@@ -54,4 +55,4 @@ var l = "__match__", u = () => {
54
55
  ]
55
56
  });
56
57
  };
57
- export { u as AssistantReplyLanguageSelector };
58
+ export { d as AssistantReplyLanguageSelector };
@@ -25,7 +25,9 @@ interface Props {
25
25
  * in Tamil actually is — this opens the OS picker, which is already localised,
26
26
  * already scrolls properly, and already handles 17 languages across five scripts
27
27
  * without us reimplementing any of it. A custom dropdown would look tidier in a
28
- * desktop screenshot and be worse everywhere that matters.
28
+ * desktop screenshot and be worse everywhere that matters. It is a `ThemedSelect`:
29
+ * native in every product except one that opts in to themed native controls
30
+ * (FluidGrids, BOFF-15413), whose own styled menu replaces the system one.
29
31
  *
30
32
  * Each option is labelled with its ENDONYM (`தமிழ்`, not `Tamil`): a user who
31
33
  * reads only Tamil cannot find "Tamil" in a list. The visible trigger shows the
@@ -1,41 +1,42 @@
1
1
  import { ASSISTANT_LANGUAGES as e } from "../../voice/languages.js";
2
2
  import { useAssistantTr as t } from "../../i18n.js";
3
- import { Languages as n } from "lucide-react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ import { ThemedSelect as n } from "../../../../ui/themed-select.js";
4
+ import { Languages as r } from "lucide-react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
6
  // src/shared/assistant/ui/composer/AssistantLanguageSelector.tsx
6
- var a = ({ current: a, selected: s, onChange: c, disabled: l = !1 }) => {
7
- let u = t(), d = u("voice.languageLabel", "Language you speak to the assistant");
8
- return /* @__PURE__ */ i("label", {
9
- className: `relative flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-colors focus-within:ring-2 focus-within:ring-border-strong ${l ? "cursor-not-allowed opacity-50" : "cursor-pointer text-text-muted hover:bg-bg-elevated hover:text-text-secondary"}`,
10
- title: `${d}: ${a.label}`,
7
+ var o = ({ current: o, selected: c, onChange: l, disabled: u = !1 }) => {
8
+ let d = t(), f = d("voice.languageLabel", "Language you speak to the assistant");
9
+ return /* @__PURE__ */ a("label", {
10
+ className: `relative flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-colors focus-within:ring-2 focus-within:ring-border-strong ${u ? "cursor-not-allowed opacity-50" : "cursor-pointer text-text-muted hover:bg-bg-elevated hover:text-text-secondary"}`,
11
+ title: `${f}: ${o.label}`,
11
12
  "data-testid": "assistant-language-selector",
12
13
  children: [
13
- /* @__PURE__ */ r(n, {
14
+ /* @__PURE__ */ i(r, {
14
15
  className: "size-3.5",
15
16
  "aria-hidden": "true"
16
17
  }),
17
- /* @__PURE__ */ r("span", {
18
+ /* @__PURE__ */ i("span", {
18
19
  "aria-hidden": "true",
19
- children: a.code.toUpperCase()
20
+ children: o.code.toUpperCase()
20
21
  }),
21
- /* @__PURE__ */ i("select", {
22
- "aria-label": d,
23
- value: s ?? "__app__",
24
- disabled: l,
22
+ /* @__PURE__ */ a(n, {
23
+ "aria-label": f,
24
+ value: c ?? "__app__",
25
+ disabled: u,
25
26
  onChange: (e) => {
26
27
  let t = e.target.value;
27
- c(t === "__app__" ? null : t);
28
+ l(t === "__app__" ? null : t);
28
29
  },
29
30
  className: "absolute inset-0 cursor-pointer opacity-0 scheme-normal dark:scheme-dark disabled:cursor-not-allowed [&_option]:bg-bg-surface [&_option]:text-text-primary",
30
- children: [/* @__PURE__ */ r("option", {
31
- value: o,
32
- children: u("voice.languageFollowApp", "Same as interface")
33
- }), e.map((e) => /* @__PURE__ */ r("option", {
31
+ children: [/* @__PURE__ */ i("option", {
32
+ value: s,
33
+ children: d("voice.languageFollowApp", "Same as interface")
34
+ }), e.map((e) => /* @__PURE__ */ i("option", {
34
35
  value: e.code,
35
36
  children: e.label
36
37
  }, e.code))]
37
38
  })
38
39
  ]
39
40
  });
40
- }, o = "__app__";
41
- export { a as AssistantLanguageSelector, o as FOLLOW_APP_LOCALE };
41
+ }, s = "__app__";
42
+ export { o as AssistantLanguageSelector, s as FOLLOW_APP_LOCALE };
@@ -14,6 +14,7 @@ import { FC } from 'react';
14
14
  * A native `<select>`, like the voice and language pickers: on a phone it opens
15
15
  * the OS picker, which already scrolls, localises itself and is reachable by
16
16
  * speech-control users. Wrapped in its `<label>`, so the visible words are the
17
- * accessible name (WCAG 2.5.3).
17
+ * accessible name (WCAG 2.5.3). A `ThemedSelect`: an app that opts in to themed
18
+ * native controls (FluidGrids, BOFF-15413) gets its own styled menu instead.
18
19
  */
19
20
  export declare const AssistantVoiceGraceSelector: FC;
@@ -2,37 +2,38 @@ import { useAssistantTr as e } from "../../i18n.js";
2
2
  import { useAssistantStore as t } from "../../store.js";
3
3
  import { VOICE_GRACE_CHOICES_MS as n, resolveVoiceGraceMs as r } from "../../voice/handsFree.js";
4
4
  import { isSpeechRecognitionSupported as i } from "../../voice/useVoiceInput.js";
5
- import { Timer as a } from "lucide-react";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { ThemedSelect as a } from "../../../../ui/themed-select.js";
6
+ import { Timer as o } from "lucide-react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
8
  // src/shared/assistant/ui/composer/AssistantVoiceGraceSelector.tsx
8
- var c = () => {
9
- let c = e(), l = t((e) => e.voiceGraceMs), u = t((e) => e.setVoiceGraceMs);
9
+ var l = () => {
10
+ let l = e(), u = t((e) => e.voiceGraceMs), d = t((e) => e.setVoiceGraceMs);
10
11
  if (!i()) return null;
11
- let d = r(l), f = (e) => e / 1e3;
12
- return /* @__PURE__ */ s("label", {
12
+ let f = r(u), p = (e) => e / 1e3;
13
+ return /* @__PURE__ */ c("label", {
13
14
  className: "flex items-center gap-2.5 px-3 py-2 text-xs text-text-primary focus-within:ring-2 focus-within:ring-inset focus-within:ring-border-strong",
14
- title: c("voice.graceHint", "How long the assistant waits in silence before it sends what you said. Start talking again and it carries on with the same message."),
15
+ title: l("voice.graceHint", "How long the assistant waits in silence before it sends what you said. Start talking again and it carries on with the same message."),
15
16
  "data-testid": "assistant-voice-grace",
16
17
  children: [
17
- /* @__PURE__ */ o(a, {
18
+ /* @__PURE__ */ s(o, {
18
19
  className: "size-3.5 flex-shrink-0 text-text-secondary",
19
20
  "aria-hidden": "true"
20
21
  }),
21
- /* @__PURE__ */ o("span", {
22
+ /* @__PURE__ */ s("span", {
22
23
  className: "flex-1",
23
- children: c("voice.graceLabel", "Wait after I stop talking")
24
+ children: l("voice.graceLabel", "Wait after I stop talking")
24
25
  }),
25
- /* @__PURE__ */ o("select", {
26
- value: d,
27
- onChange: (e) => u(Number(e.target.value)),
26
+ /* @__PURE__ */ s(a, {
27
+ value: f,
28
+ onChange: (e) => d(Number(e.target.value)),
28
29
  className: "rounded-md border border-border-default bg-bg-surface px-1.5 py-1 text-xs text-text-primary focus:outline-none scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
29
30
  "data-testid": "assistant-voice-grace-select",
30
- children: n.map((e) => /* @__PURE__ */ o("option", {
31
+ children: n.map((e) => /* @__PURE__ */ s("option", {
31
32
  value: e,
32
- children: e === 2e3 ? c("voice.graceOptionDefault", "{{seconds}} seconds (default)", { seconds: f(e) }) : c("voice.graceOption", "{{seconds}} seconds", { seconds: f(e) })
33
+ children: e === 2e3 ? l("voice.graceOptionDefault", "{{seconds}} seconds (default)", { seconds: p(e) }) : l("voice.graceOption", "{{seconds}} seconds", { seconds: p(e) })
33
34
  }, e))
34
35
  })
35
36
  ]
36
37
  });
37
38
  };
38
- export { c as AssistantVoiceGraceSelector };
39
+ export { l as AssistantVoiceGraceSelector };
@@ -15,7 +15,9 @@ import { FC } from 'react';
15
15
  * message rather than here.
16
16
  *
17
17
  * A native `<select>` for the same reason as the language chip: on a phone it
18
- * opens the OS picker, which already scrolls and localises itself.
18
+ * opens the OS picker, which already scrolls and localises itself. A `ThemedSelect`,
19
+ * so an app that opts in to themed native controls (FluidGrids, BOFF-15413) gets its
20
+ * own styled menu instead.
19
21
  */
20
22
  export declare const AssistantVoiceSelector: FC<{
21
23
  disabled?: boolean;