@burdenoff/fe-libs 2026.1118.13 → 2026.1119.2

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 (41) 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-menu.d.ts +10 -0
  32. package/dist/ui/themed-select-menu.js +70 -0
  33. package/dist/ui/themed-select-options.d.ts +42 -0
  34. package/dist/ui/themed-select-options.js +88 -0
  35. package/dist/ui/themed-select-state.d.ts +43 -0
  36. package/dist/ui/themed-select-state.js +73 -0
  37. package/dist/ui/themed-select.d.ts +7 -0
  38. package/dist/ui/themed-select.js +176 -0
  39. package/dist/ui.js +31 -29
  40. package/package.json +1 -1
  41. package/src/shared/tokens/tokens.css +100 -0
@@ -31,6 +31,8 @@ export { Label } from './label';
31
31
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from './popover';
32
32
  export { ScrollArea, ScrollBar } from './scroll-area';
33
33
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './select';
34
+ export { ThemedSelect, type ThemedSelectProps } from './themed-select';
35
+ export { ThemedSelectProvider, useThemedSelects, type ThemedSelectProviderProps, } from './themed-select-context';
34
36
  export { Separator } from './separator';
35
37
  export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './sheet';
36
38
  export { Skeleton } from './skeleton';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ThemedSelectProviderProps {
3
+ /** Open the app's styled menu instead of the system's. Default true. */
4
+ enabled?: boolean;
5
+ children: ReactNode;
6
+ }
7
+ export declare function ThemedSelectProvider({ enabled, children }: ThemedSelectProviderProps): import('react').JSX.Element;
8
+ /** True when the selects under this point open the app's styled menu. */
9
+ export declare function useThemedSelects(): boolean;
@@ -0,0 +1,15 @@
1
+ import { createContext as e, use as t } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ // src/ui/themed-select-context.tsx
4
+ var r = e(!1);
5
+ r.displayName = "ThemedSelectContext";
6
+ function i({ enabled: e = !0, children: t }) {
7
+ return /* @__PURE__ */ n(r.Provider, {
8
+ value: e,
9
+ children: t
10
+ });
11
+ }
12
+ function a() {
13
+ return t(r);
14
+ }
15
+ export { i as ThemedSelectProvider, a as useThemedSelects };
@@ -0,0 +1,10 @@
1
+ import { FocusEventHandler, Ref } from 'react';
2
+ import { ThemedSelectModel } from './themed-select-options';
3
+ export interface ThemedSelectMenuProps {
4
+ model: ThemedSelectModel;
5
+ contentRef: Ref<HTMLDivElement>;
6
+ /** The control's focus handlers: a pointer opens the menu without focusing the button. */
7
+ onFocus: FocusEventHandler<HTMLElement>;
8
+ onBlur: FocusEventHandler<HTMLElement>;
9
+ }
10
+ export declare function ThemedSelectMenu({ model, contentRef, onFocus, onBlur }: ThemedSelectMenuProps): import('react').JSX.Element;
@@ -0,0 +1,70 @@
1
+ import { Fragment as e } from "react";
2
+ import { Check as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import * as i from "@radix-ui/react-select";
5
+ // src/ui/themed-select-menu.tsx
6
+ var a = "relative z-50 max-h-[min(22.5rem,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] max-w-[calc(100vw-1rem)] overflow-hidden rounded-card border border-border-subtle bg-bg-elevated text-text-primary shadow-elevation-3 motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2", o = "scrollbar-slim scrollbar-box overscroll-contain p-1", s = "relative flex min-h-11 w-full cursor-default select-none items-center rounded-lg py-1.5 ps-8 pe-2 text-sm text-text-primary outline-none motion-safe:transition-colors focus:bg-[var(--color-accent-soft)] focus:text-text-primary data-[state=checked]:bg-action-primary-bg/10 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 sm:min-h-0", c = "-mx-1 my-1 h-px bg-border-subtle", l = "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-text-muted";
7
+ function u(e) {
8
+ e.stopPropagation();
9
+ }
10
+ function d(e) {
11
+ e.stopPropagation();
12
+ }
13
+ function f(e) {
14
+ return /* @__PURE__ */ r(i.Item, {
15
+ value: String(e.index),
16
+ disabled: e.disabled,
17
+ textValue: e.label,
18
+ className: s,
19
+ "data-slot": "themed-select-item",
20
+ children: [/* @__PURE__ */ n("span", {
21
+ className: "absolute start-2 flex size-4 items-center justify-center",
22
+ children: /* @__PURE__ */ n(i.ItemIndicator, { children: /* @__PURE__ */ n(t, {
23
+ className: "size-4 text-action-primary-bg",
24
+ "aria-hidden": "true"
25
+ }) })
26
+ }), /* @__PURE__ */ n(i.ItemText, { children: e.label })]
27
+ }, e.index);
28
+ }
29
+ function p(e) {
30
+ return e.entries.flatMap((e) => {
31
+ if (e.kind === "option") return e.option.hidden ? [] : [e];
32
+ let t = e.options.filter((e) => !e.hidden);
33
+ return t.length > 0 ? [{
34
+ ...e,
35
+ options: t
36
+ }] : [];
37
+ });
38
+ }
39
+ function m({ model: t, contentRef: s, onFocus: m, onBlur: h }) {
40
+ let g = p(t);
41
+ return /* @__PURE__ */ n(i.Portal, { children: /* @__PURE__ */ n(i.Content, {
42
+ ref: s,
43
+ position: "popper",
44
+ side: "bottom",
45
+ align: "start",
46
+ sideOffset: 6,
47
+ collisionPadding: 8,
48
+ className: a,
49
+ "data-slot": "themed-select-content",
50
+ onFocus: m,
51
+ onBlur: h,
52
+ onKeyDown: u,
53
+ onEscapeKeyDown: d,
54
+ children: /* @__PURE__ */ n(i.Viewport, {
55
+ className: o,
56
+ children: g.map((t, a) => {
57
+ let o = a > 0 && (t.kind === "group" || g[a - 1]?.kind === "group") ? /* @__PURE__ */ n(i.Separator, { className: c }) : null;
58
+ return t.kind === "option" ? o ? /* @__PURE__ */ r(e, { children: [o, f(t.option)] }, t.option.index) : f(t.option) : /* @__PURE__ */ r(i.Group, { children: [
59
+ o,
60
+ t.label ? /* @__PURE__ */ n(i.Label, {
61
+ className: l,
62
+ children: t.label
63
+ }) : null,
64
+ t.options.map(f)
65
+ ] }, `group-${t.options[0]?.index ?? a}`);
66
+ })
67
+ })
68
+ }) });
69
+ }
70
+ export { m as ThemedSelectMenu };
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ThemedSelectOption {
3
+ /** Position among every `<option>`, in document order (as in `select.options`). */
4
+ index: number;
5
+ /** The submitted value: the `value` prop, or the option's text when it has none. */
6
+ value: string;
7
+ /** What the option shows: its `label` prop, or its text. */
8
+ label: string;
9
+ /** Disabled itself, or inside a disabled `<optgroup>`: shown, never chosen. */
10
+ disabled: boolean;
11
+ /** Its own `disabled` only: React's rule for the fallback choice reads just this. */
12
+ ownDisabled: boolean;
13
+ /** `hidden`: a placeholder the list never shows. */
14
+ hidden: boolean;
15
+ }
16
+ export type ThemedSelectEntry = {
17
+ kind: 'option';
18
+ option: ThemedSelectOption;
19
+ } | {
20
+ kind: 'group';
21
+ label: string;
22
+ options: ThemedSelectOption[];
23
+ };
24
+ export interface ThemedSelectModel {
25
+ /** What the menu lists, groups kept. */
26
+ entries: ThemedSelectEntry[];
27
+ /** Every option, flattened, in document order. */
28
+ options: ThemedSelectOption[];
29
+ }
30
+ /**
31
+ * Reads `children` as a native `<select>` would see them. Returns null when they hold
32
+ * anything else (a component that renders its own `<option>`, stray text): the caller
33
+ * then keeps the native `<select>`, which still works, rather than guess.
34
+ */
35
+ export declare function readThemedSelectChildren(children: ReactNode): ThemedSelectModel | null;
36
+ /**
37
+ * The option a native `<select>` shows for `value`, as React selects it: the first
38
+ * option with that value, else the first one not disabled itself. -1: no options.
39
+ */
40
+ export declare function selectedOptionIndex(options: readonly ThemedSelectOption[], value: string | undefined): number;
41
+ /** `value` / `defaultValue` as React writes it to a single `<select>`. */
42
+ export declare function selectValueString(value: unknown): string | undefined;
@@ -0,0 +1,88 @@
1
+ import { Fragment as e, isValidElement as t } from "react";
2
+ // src/ui/themed-select-options.ts
3
+ function n(e) {
4
+ return e.replace(/[\t\n\f\r ]+/g, " ").trim();
5
+ }
6
+ function r(e) {
7
+ return typeof e == "object" && !!e && Symbol.iterator in e;
8
+ }
9
+ function i(e) {
10
+ if (e == null || typeof e == "boolean") return "";
11
+ if (typeof e == "string" || typeof e == "number" || typeof e == "bigint") return String(e);
12
+ if (r(e) && !t(e)) {
13
+ let t = "";
14
+ for (let n of e) {
15
+ let e = i(n);
16
+ if (e === null) return null;
17
+ t += e;
18
+ }
19
+ return t;
20
+ }
21
+ return null;
22
+ }
23
+ function a(e, t) {
24
+ let n = e[t];
25
+ if (typeof n == "string") return n;
26
+ if (typeof n == "number" || typeof n == "bigint") return String(n);
27
+ }
28
+ function o(o) {
29
+ let s = [], c = [], l = (e, t) => {
30
+ let r = i(e.children);
31
+ if (r === null) return null;
32
+ let o = n(r), s = e.disabled === !0, l = {
33
+ index: c.length,
34
+ value: a(e, "value") ?? o,
35
+ label: n(a(e, "label") ?? "") || o,
36
+ disabled: s || t,
37
+ ownDisabled: s,
38
+ hidden: e.hidden === !0
39
+ };
40
+ return c.push(l), l;
41
+ }, u = (i, o) => {
42
+ if (i == null || typeof i == "boolean") return !0;
43
+ if (typeof i == "string") return i.trim() === "";
44
+ if (t(i)) {
45
+ if (i.type === e) return u(i.props.children, o);
46
+ if (i.type === "option") {
47
+ let e = l(i.props, o?.disabled ?? !1);
48
+ return e ? (o ? o.options.push(e) : s.push({
49
+ kind: "option",
50
+ option: e
51
+ }), !0) : !1;
52
+ }
53
+ if (i.type === "optgroup" && !o) {
54
+ let e = {
55
+ disabled: i.props.disabled === !0,
56
+ options: []
57
+ };
58
+ return u(i.props.children, e) ? (s.push({
59
+ kind: "group",
60
+ label: n(a(i.props, "label") ?? ""),
61
+ options: e.options
62
+ }), !0) : !1;
63
+ }
64
+ return !1;
65
+ }
66
+ if (r(i)) {
67
+ for (let e of i) if (!u(e, o)) return !1;
68
+ return !0;
69
+ }
70
+ return !1;
71
+ };
72
+ return u(o, null) ? {
73
+ entries: s,
74
+ options: c
75
+ } : null;
76
+ }
77
+ function s(e, t) {
78
+ let n = -1;
79
+ for (let r of e) {
80
+ if (t !== void 0 && r.value === t) return r.index;
81
+ n === -1 && !r.ownDisabled && (n = r.index);
82
+ }
83
+ return n;
84
+ }
85
+ function c(e) {
86
+ if (e != null) return Array.isArray(e) ? e.length > 0 ? String(e[0]) : void 0 : String(e);
87
+ }
88
+ export { o as readThemedSelectChildren, c as selectValueString, s as selectedOptionIndex };
@@ -0,0 +1,43 @@
1
+ import { FocusEvent as ReactFocusEvent, FocusEventHandler, ReactNode, RefObject, SelectHTMLAttributes } from 'react';
2
+ import { ThemedSelectModel, ThemedSelectOption } from './themed-select-options';
3
+ type SelectAttributes = SelectHTMLAttributes<HTMLSelectElement>;
4
+ export interface ThemedSelectChoiceInput {
5
+ model: ThemedSelectModel;
6
+ value: SelectAttributes['value'];
7
+ defaultValue: SelectAttributes['defaultValue'];
8
+ /** The options as the page rendered them: a new value whenever they may have changed. */
9
+ children: ReactNode;
10
+ /** The `form` attribute: the form the select resets with can change with it. */
11
+ form: SelectAttributes['form'];
12
+ selectRef: RefObject<HTMLSelectElement | null>;
13
+ }
14
+ export interface ThemedSelectChoice {
15
+ controlled: boolean;
16
+ /** The option the button shows, which is the one the native select holds. */
17
+ selected: ThemedSelectOption | undefined;
18
+ /** A pick in the menu, by its Radix value (the option's index). */
19
+ choose: (key: string) => void;
20
+ }
21
+ /**
22
+ * Which option is chosen. A controlled select shows the option its `value` names, by
23
+ * React's rule for a select. An uncontrolled one shows the option its native select
24
+ * holds, read back whenever that can change: a pick, a form reset, new options.
25
+ */
26
+ export declare function useThemedSelectChoice({ model, value, defaultValue, children, form, selectRef, }: ThemedSelectChoiceInput): ThemedSelectChoice;
27
+ export interface ControlFocusInput {
28
+ selectRef: RefObject<HTMLSelectElement | null>;
29
+ triggerRef: RefObject<HTMLButtonElement | null>;
30
+ contentRef: RefObject<HTMLDivElement | null>;
31
+ /** The page's own handlers, which the native select fires as the control's. */
32
+ onFocus: FocusEventHandler<HTMLSelectElement> | undefined;
33
+ onBlur: FocusEventHandler<HTMLSelectElement> | undefined;
34
+ }
35
+ /**
36
+ * The control's focus, as a native select's: the button and its open menu are one
37
+ * control, which gains focus once and loses it once, on the native select.
38
+ */
39
+ export declare function useControlFocus({ selectRef, triggerRef, contentRef, onFocus, onBlur, }: ControlFocusInput): {
40
+ handleFocusIn: (event: ReactFocusEvent<HTMLElement>) => void;
41
+ handleFocusOut: (event: ReactFocusEvent<HTMLElement>) => void;
42
+ };
43
+ export {};
@@ -0,0 +1,73 @@
1
+ import { selectValueString as e, selectedOptionIndex as t } from "./themed-select-options.js";
2
+ import { useEffect as n, useEffectEvent as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
3
+ // src/ui/themed-select-state.ts
4
+ function s({ model: s, value: c, defaultValue: l, children: u, form: d, selectRef: f }) {
5
+ let p = a(!1), m = c !== void 0, [h, g] = o(() => {
6
+ let n = t(s.options, e(l));
7
+ return {
8
+ value: s.options[n]?.value,
9
+ index: n
10
+ };
11
+ }), _ = m ? t(s.options, e(c)) : h.value !== void 0 && s.options[h.index]?.value === h.value ? h.index : t(s.options, h.value);
12
+ i(() => {
13
+ let e = f.current;
14
+ if (m || !e) return;
15
+ let { selectedIndex: t, value: n } = e;
16
+ g((e) => e.index === t && e.value === n ? e : {
17
+ value: n,
18
+ index: t
19
+ });
20
+ }, [
21
+ m,
22
+ u,
23
+ f
24
+ ]);
25
+ let v = (e) => {
26
+ if (p.current) return;
27
+ let t = s.options[Number(e)], n = f.current;
28
+ t && n && (m || g({
29
+ value: t.value,
30
+ index: t.index
31
+ }), n.selectedIndex !== t.index && (n.selectedIndex = t.index, n.dispatchEvent(new Event("input", { bubbles: !0 })), n.dispatchEvent(new Event("change", { bubbles: !0 }))));
32
+ }, y = r(() => {
33
+ p.current = !1;
34
+ let e = f.current;
35
+ e && (m ? _ >= 0 && e.selectedIndex !== _ && (e.selectedIndex = _) : g({
36
+ value: e.value,
37
+ index: e.selectedIndex
38
+ }));
39
+ });
40
+ return n(() => {
41
+ let e = f.current?.form;
42
+ if (!e) return;
43
+ let t, n = () => {
44
+ p.current = !0, clearTimeout(t), t = setTimeout(() => y(), 0);
45
+ };
46
+ return e.addEventListener("reset", n, !0), () => {
47
+ e.removeEventListener("reset", n, !0), clearTimeout(t), p.current = !1;
48
+ };
49
+ }, [d, f]), {
50
+ controlled: m,
51
+ selected: _ >= 0 ? s.options[_] : void 0,
52
+ choose: v
53
+ };
54
+ }
55
+ function c(e, t, n) {
56
+ let r = n instanceof Element ? n : null;
57
+ e.dispatchEvent(new FocusEvent(t, {
58
+ bubbles: !0,
59
+ relatedTarget: r
60
+ }));
61
+ }
62
+ function l({ selectRef: e, triggerRef: t, contentRef: n, onFocus: r, onBlur: i }) {
63
+ let o = a(!1), s = (e) => e instanceof Node && (!!t.current?.contains(e) || !!n.current?.contains(e));
64
+ return {
65
+ handleFocusIn: (t) => {
66
+ o.current || (o.current = !0, r && e.current && c(e.current, "focusin", t.relatedTarget));
67
+ },
68
+ handleFocusOut: (t) => {
69
+ o.current && !s(t.relatedTarget) && (o.current = !1, i && e.current && c(e.current, "focusout", t.relatedTarget));
70
+ }
71
+ };
72
+ }
73
+ export { l as useControlFocus, s as useThemedSelectChoice };
@@ -0,0 +1,7 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export type ThemedSelectProps = ComponentPropsWithRef<'select'>;
3
+ /**
4
+ * A `<select>` that opens the app's styled menu where the app opted in, and is the
5
+ * plain native `<select>` everywhere else. See the file header for what it keeps.
6
+ */
7
+ export declare function ThemedSelect(props: ThemedSelectProps): import('react').JSX.Element;
@@ -0,0 +1,176 @@
1
+ import { cn as e } from "../shared-utils.js";
2
+ import { useThemedSelects as t } from "./themed-select-context.js";
3
+ import { ThemedSelectMenu as n } from "./themed-select-menu.js";
4
+ import { readThemedSelectChildren as r } from "./themed-select-options.js";
5
+ import { useControlFocus as i, useThemedSelectChoice as a } from "./themed-select-state.js";
6
+ import { useCallback as o, useRef as s, useState as c } from "react";
7
+ import { ChevronDown as l } from "lucide-react";
8
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
+ import * as p from "@radix-ui/react-select";
10
+ // src/ui/themed-select.tsx
11
+ var m = /* @__PURE__ */ new Set([
12
+ "onChange",
13
+ "onInput",
14
+ "onInvalid",
15
+ "onFocus",
16
+ "onBlur"
17
+ ]);
18
+ function h(e) {
19
+ return Object.entries(e);
20
+ }
21
+ function g(e) {
22
+ return e.startsWith("aria-") || e.startsWith("data-");
23
+ }
24
+ function _(e) {
25
+ return h(e).some(([e, t]) => /^on[A-Z]/.test(e) && !m.has(e) && t !== void 0);
26
+ }
27
+ function v(e) {
28
+ let t = {};
29
+ for (let [n, r] of h(e)) g(n) && (t[n] = r);
30
+ return t;
31
+ }
32
+ function y(e) {
33
+ return e.multiple || typeof e.size == "number" && e.size > 1 || e.ref && e.value === void 0 || _(e) ? null : r(e.children);
34
+ }
35
+ function b(e, t) {
36
+ if (typeof e == "function") {
37
+ let n = e(t);
38
+ return typeof n == "function" ? n : void 0;
39
+ }
40
+ e && (e.current = t);
41
+ }
42
+ function x(e) {
43
+ e.ctrlKey || e.metaKey || e.altKey || e.key !== "Escape" && e.key !== "Tab" && e.stopPropagation();
44
+ }
45
+ var S = "inline-block cursor-default text-start disabled:cursor-not-allowed disabled:opacity-60";
46
+ function C({ options: e, selected: t, arrow: n }) {
47
+ let r = e.filter((e) => !e.hidden);
48
+ return /* @__PURE__ */ f("span", {
49
+ className: "flex w-full min-w-0 items-center gap-2",
50
+ children: [/* @__PURE__ */ f("span", {
51
+ className: "grid min-w-0 flex-1",
52
+ children: [/* @__PURE__ */ d("span", {
53
+ className: "col-start-1 row-start-1 min-w-0 truncate",
54
+ "data-slot": "themed-select-value",
55
+ children: /* @__PURE__ */ d(p.Value, { children: t?.label ?? "" })
56
+ }), r.map((e) => /* @__PURE__ */ d("span", {
57
+ "aria-hidden": "true",
58
+ className: "invisible col-start-1 row-start-1 h-0 min-w-0 overflow-hidden whitespace-nowrap",
59
+ children: e.label
60
+ }, e.index))]
61
+ }), n ? /* @__PURE__ */ d(p.Icon, {
62
+ asChild: !0,
63
+ children: /* @__PURE__ */ d(l, {
64
+ className: "size-4 shrink-0 text-text-muted",
65
+ "aria-hidden": "true"
66
+ })
67
+ }) : null]
68
+ });
69
+ }
70
+ function w({ nodeRef: e, triggerRef: t, controlled: n, name: r, form: i, required: a, autoComplete: o, disabled: s, value: c, defaultValue: l, onChange: u, onInput: f, onInvalid: p, onFocus: m, onBlur: h, children: g }) {
71
+ return /* @__PURE__ */ d("select", {
72
+ ref: e,
73
+ "aria-hidden": "true",
74
+ tabIndex: -1,
75
+ className: "sr-only pointer-events-none",
76
+ "data-slot": "themed-select-native",
77
+ name: r,
78
+ form: i,
79
+ required: a,
80
+ autoComplete: o,
81
+ disabled: s,
82
+ ...n ? { value: c } : { defaultValue: l },
83
+ onChange: u,
84
+ onInput: f,
85
+ onInvalid: p,
86
+ onFocus: (e) => {
87
+ e.nativeEvent.isTrusted ? t.current?.focus() : (e.stopPropagation(), m?.(e));
88
+ },
89
+ onBlur: (e) => {
90
+ e.nativeEvent.isTrusted || (e.stopPropagation(), h?.(e));
91
+ },
92
+ children: g
93
+ });
94
+ }
95
+ function T({ model: t, ref: r, id: l, className: m, style: h, title: g, hidden: _, lang: y, dir: T, tabIndex: E, autoFocus: D, name: O, form: k, required: A, autoComplete: j, value: M, defaultValue: N, onChange: P, onInput: F, onInvalid: I, onFocus: L, onBlur: R, disabled: z, children: B, ...V }) {
96
+ let H = s(null), U = s(null), W = s(null), [G, K] = c(!1), { controlled: q, selected: J, choose: Y } = a({
97
+ model: t,
98
+ value: M,
99
+ defaultValue: N,
100
+ children: B,
101
+ form: k,
102
+ selectRef: H
103
+ }), { handleFocusIn: X, handleFocusOut: Z } = i({
104
+ selectRef: H,
105
+ triggerRef: U,
106
+ contentRef: W,
107
+ onFocus: L,
108
+ onBlur: R
109
+ }), Q = typeof m == "string" && /(^|\s)appearance-none(\s|$)/.test(m), $ = o((e) => {
110
+ H.current = e;
111
+ let t = b(r, e);
112
+ return () => {
113
+ H.current = null, t ? t() : b(r, null);
114
+ };
115
+ }, [r]);
116
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f(p.Root, {
117
+ value: J ? String(J.index) : "",
118
+ onValueChange: Y,
119
+ open: G,
120
+ onOpenChange: K,
121
+ disabled: z,
122
+ dir: T === "rtl" || T === "ltr" ? T : void 0,
123
+ children: [/* @__PURE__ */ d(p.Trigger, {
124
+ ref: U,
125
+ id: l,
126
+ title: g,
127
+ hidden: _,
128
+ lang: y,
129
+ tabIndex: E,
130
+ autoFocus: D,
131
+ style: h,
132
+ "aria-required": A ? !0 : void 0,
133
+ ...v(V),
134
+ "data-slot": "themed-select-trigger",
135
+ className: e(S, m),
136
+ onFocus: X,
137
+ onBlur: Z,
138
+ onKeyDown: x,
139
+ children: /* @__PURE__ */ d(C, {
140
+ options: t.options,
141
+ selected: J,
142
+ arrow: !Q
143
+ })
144
+ }), /* @__PURE__ */ d(n, {
145
+ model: t,
146
+ contentRef: W,
147
+ onFocus: X,
148
+ onBlur: Z
149
+ })]
150
+ }), /* @__PURE__ */ d(w, {
151
+ nodeRef: $,
152
+ triggerRef: U,
153
+ controlled: q,
154
+ name: O,
155
+ form: k,
156
+ required: A,
157
+ autoComplete: j,
158
+ disabled: z,
159
+ value: M,
160
+ defaultValue: N,
161
+ onChange: P,
162
+ onInput: F,
163
+ onInvalid: I,
164
+ onFocus: L,
165
+ onBlur: R,
166
+ children: B
167
+ })] });
168
+ }
169
+ function E(e) {
170
+ let n = t() ? y(e) : null;
171
+ return n ? /* @__PURE__ */ d(T, {
172
+ ...e,
173
+ model: n
174
+ }) : /* @__PURE__ */ d("select", { ...e });
175
+ }
176
+ export { E as ThemedSelect };
package/dist/ui.js CHANGED
@@ -31,32 +31,34 @@ import { Label as et } from "./ui/label.js";
31
31
  import { Popover as tt, PopoverAnchor as nt, PopoverContent as rt, PopoverTrigger as it } from "./ui/popover.js";
32
32
  import { ScrollArea as at, ScrollBar as ot } from "./ui/scroll-area.js";
33
33
  import { NativeSelect as st, Select as ct, SelectContent as lt, SelectGroup as ut, SelectItem as dt, SelectLabel as ft, SelectScrollDownButton as pt, SelectScrollUpButton as mt, SelectSeparator as ht, SelectTrigger as gt, SelectValue as _t } from "./ui/select.js";
34
- import { Separator as vt } from "./ui/separator.js";
35
- import { Sheet as yt, SheetClose as bt, SheetContent as xt, SheetDescription as St, SheetFooter as Ct, SheetHeader as wt, SheetTitle as Tt, SheetTrigger as Et } from "./ui/sheet.js";
36
- import { Skeleton as Dt } from "./ui/skeleton.js";
37
- import { Toaster as Ot } from "./ui/sonner.js";
38
- import { Spinner as kt } from "./ui/spinner.js";
39
- import { Switch as At } from "./ui/switch.js";
40
- import { Table as jt, TableBody as Mt, TableCaption as Nt, TableCell as Pt, TableFooter as Ft, TableHead as It, TableHeader as Lt, TableRow as Rt } from "./ui/table.js";
41
- import { Tabs as zt, TabsContent as Bt, TabsList as Vt, TabsTrigger as Ht } from "./ui/tabs.js";
42
- import { Textarea as Ut } from "./ui/textarea.js";
43
- import { Tooltip as Wt, TooltipContent as Gt, TooltipProvider as Kt, TooltipTrigger as qt } from "./ui/tooltip.js";
44
- import { PageContainer as Jt } from "./ui/page-container.js";
45
- import { GlassCard as Yt, glassCardVariants as Xt } from "./ui/glass-card.js";
46
- import { EmphasisPanel as Zt } from "./ui/emphasis-panel.js";
47
- import { IconTile as Qt } from "./ui/icon-tile.js";
48
- import { ShowMore as $t } from "./ui/show-more.js";
49
- import { CTAOverflowMenu as en } from "./ui/cta-overflow-menu.js";
50
- import { BrandedSplash as tn } from "./ui/branded-splash.js";
51
- import { ModernLanding as nn } from "./ui/modern-landing.js";
52
- import { AuroraBackground as rn } from "./ui/aurora-background.js";
53
- import { IllustratedEmptyState as an, Illustration as on } from "./ui/illustration.js";
54
- import { GradientText as sn } from "./ui/gradient-text.js";
55
- import { NextSteps as cn, PagePurpose as ln } from "./ui/guidance.js";
56
- import { NativeWelcome as un } from "./ui/native-welcome.js";
57
- import { ActionSheet as dn } from "./ui/action-sheet.js";
58
- import { OfflineBanner as fn } from "./ui/offline-banner.js";
59
- import { PullToRefresh as pn } from "./ui/pull-to-refresh.js";
60
- import { PWAUpdateToast as mn } from "./ui/pwa-update-toast.js";
61
- import { ModalShell as hn } from "./ui/modal-shell.js";
62
- export { f as AccessGate, p as AccessNeededChip, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, dn as ActionSheet, Z as AlertDialog, Q as AlertDialogAction, $ as AlertDialogCancel, ee as AlertDialogContent, te as AlertDialogDescription, ne as AlertDialogFooter, re as AlertDialogHeader, ie as AlertDialogOverlay, ae as AlertDialogPortal, oe as AlertDialogTitle, se as AlertDialogTrigger, rn as AuroraBackground, ce as Badge, h as BottomSheet, g as BottomSheetClose, _ as BottomSheetContent, v as BottomSheetDescription, y as BottomSheetFooter, b as BottomSheetHeader, x as BottomSheetTitle, S as BottomSheetTrigger, tn as BrandedSplash, ue as Button, en as CTAOverflowMenu, fe as Card, pe as CardContent, me as CardDescription, he as CardFooter, ge as CardHeader, _e as CardTitle, ve as Checkbox, ye as Command, be as CommandDialog, xe as CommandEmpty, Se as CommandGroup, Ce as CommandInput, we as CommandItem, Te as CommandList, Ee as CommandSeparator, De as CommandShortcut, P as DEFAULT_GALLERY_PAGER_LABELS, Oe as Dialog, ke as DialogClose, Ae as DialogContent, je as DialogDescription, Me as DialogFooter, Ne as DialogHeader, Pe as DialogOverlay, Fe as DialogPortal, Ie as DialogTitle, Le as DialogTrigger, Re as DropdownMenu, ze as DropdownMenuCheckboxItem, Be as DropdownMenuContent, Ve as DropdownMenuGroup, He as DropdownMenuItem, Ue as DropdownMenuLabel, We as DropdownMenuPortal, Ge as DropdownMenuRadioGroup, Ke as DropdownMenuRadioItem, qe as DropdownMenuSeparator, Je as DropdownMenuShortcut, Ye as DropdownMenuSub, Xe as DropdownMenuSubContent, Ze as DropdownMenuSubTrigger, Qe as DropdownMenuTrigger, Zt as EmphasisPanel, X as EmptyState, i as EntityIdModal, F as GALLERY_PAGE_SIZE, G as GalleryCategoryRail, K as GalleryChip, N as GalleryPager, q as GalleryPanel, Yt as GlassCard, sn as GradientText, Qt as IconTile, an as IllustratedEmptyState, on as Illustration, $e as Input, et as Label, hn as ModalShell, nn as ModernLanding, st as NativeSelect, un as NativeWelcome, cn as NextSteps, fn as OfflineBanner, o as OptionalFields, mn as PWAUpdateToast, Jt as PageContainer, ln as PagePurpose, l as PageTabs, M as Pagination, tt as Popover, nt as PopoverAnchor, rt as PopoverContent, it as PopoverTrigger, pn as PullToRefresh, C as ResponsiveDialog, w as ResponsiveDialogClose, T as ResponsiveDialogContent, E as ResponsiveDialogDescription, D as ResponsiveDialogFooter, O as ResponsiveDialogHeader, k as ResponsiveDialogTitle, A as ResponsiveDialogTrigger, Y as ResponsiveStack, j as ResponsiveTable, at as ScrollArea, ot as ScrollBar, ct as Select, lt as SelectContent, ut as SelectGroup, dt as SelectItem, ft as SelectLabel, pt as SelectScrollDownButton, mt as SelectScrollUpButton, ht as SelectSeparator, gt as SelectTrigger, _t as SelectValue, vt as Separator, yt as Sheet, bt as SheetClose, xt as SheetContent, St as SheetDescription, Ct as SheetFooter, wt as SheetHeader, Tt as SheetTitle, Et as SheetTrigger, $t as ShowMore, c as ShowTechnicalDetails, Dt as Skeleton, kt as Spinner, J as Stepper, At as Switch, I as TOP_CATEGORY_COUNT, jt as Table, Mt as TableBody, Nt as TableCaption, Pt as TableCell, Ft as TableFooter, It as TableHead, Lt as TableHeader, Rt as TableRow, zt as Tabs, Bt as TabsContent, Vt as TabsList, Ht as TabsTrigger, Ut as Textarea, Ot as Toaster, Wt as Tooltip, Gt as TooltipContent, Kt as TooltipProvider, qt as TooltipTrigger, le as badgeVariants, de as buttonVariants, L as clampPage, Xt as glassCardVariants, u as matchActiveTab, R as offsetForPage, z as pageItems, B as pageRange, V as parsePageParam, H as splitCategories, d as splitTabs, U as totalPagesFor, a as useEntityIdModal, m as useHeadingDocumentTitle, s as useRememberedOpen, W as withPageParam };
34
+ import { ThemedSelect as vt } from "./ui/themed-select.js";
35
+ import { ThemedSelectProvider as yt, useThemedSelects as bt } from "./ui/themed-select-context.js";
36
+ import { Separator as xt } from "./ui/separator.js";
37
+ import { Sheet as St, SheetClose as Ct, SheetContent as wt, SheetDescription as Tt, SheetFooter as Et, SheetHeader as Dt, SheetTitle as Ot, SheetTrigger as kt } from "./ui/sheet.js";
38
+ import { Skeleton as At } from "./ui/skeleton.js";
39
+ import { Toaster as jt } from "./ui/sonner.js";
40
+ import { Spinner as Mt } from "./ui/spinner.js";
41
+ import { Switch as Nt } from "./ui/switch.js";
42
+ import { Table as Pt, TableBody as Ft, TableCaption as It, TableCell as Lt, TableFooter as Rt, TableHead as zt, TableHeader as Bt, TableRow as Vt } from "./ui/table.js";
43
+ import { Tabs as Ht, TabsContent as Ut, TabsList as Wt, TabsTrigger as Gt } from "./ui/tabs.js";
44
+ import { Textarea as Kt } from "./ui/textarea.js";
45
+ import { Tooltip as qt, TooltipContent as Jt, TooltipProvider as Yt, TooltipTrigger as Xt } from "./ui/tooltip.js";
46
+ import { PageContainer as Zt } from "./ui/page-container.js";
47
+ import { GlassCard as Qt, glassCardVariants as $t } from "./ui/glass-card.js";
48
+ import { EmphasisPanel as en } from "./ui/emphasis-panel.js";
49
+ import { IconTile as tn } from "./ui/icon-tile.js";
50
+ import { ShowMore as nn } from "./ui/show-more.js";
51
+ import { CTAOverflowMenu as rn } from "./ui/cta-overflow-menu.js";
52
+ import { BrandedSplash as an } from "./ui/branded-splash.js";
53
+ import { ModernLanding as on } from "./ui/modern-landing.js";
54
+ import { AuroraBackground as sn } from "./ui/aurora-background.js";
55
+ import { IllustratedEmptyState as cn, Illustration as ln } from "./ui/illustration.js";
56
+ import { GradientText as un } from "./ui/gradient-text.js";
57
+ import { NextSteps as dn, PagePurpose as fn } from "./ui/guidance.js";
58
+ import { NativeWelcome as pn } from "./ui/native-welcome.js";
59
+ import { ActionSheet as mn } from "./ui/action-sheet.js";
60
+ import { OfflineBanner as hn } from "./ui/offline-banner.js";
61
+ import { PullToRefresh as gn } from "./ui/pull-to-refresh.js";
62
+ import { PWAUpdateToast as _n } from "./ui/pwa-update-toast.js";
63
+ import { ModalShell as vn } from "./ui/modal-shell.js";
64
+ export { f as AccessGate, p as AccessNeededChip, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, mn as ActionSheet, Z as AlertDialog, Q as AlertDialogAction, $ as AlertDialogCancel, ee as AlertDialogContent, te as AlertDialogDescription, ne as AlertDialogFooter, re as AlertDialogHeader, ie as AlertDialogOverlay, ae as AlertDialogPortal, oe as AlertDialogTitle, se as AlertDialogTrigger, sn as AuroraBackground, ce as Badge, h as BottomSheet, g as BottomSheetClose, _ as BottomSheetContent, v as BottomSheetDescription, y as BottomSheetFooter, b as BottomSheetHeader, x as BottomSheetTitle, S as BottomSheetTrigger, an as BrandedSplash, ue as Button, rn as CTAOverflowMenu, fe as Card, pe as CardContent, me as CardDescription, he as CardFooter, ge as CardHeader, _e as CardTitle, ve as Checkbox, ye as Command, be as CommandDialog, xe as CommandEmpty, Se as CommandGroup, Ce as CommandInput, we as CommandItem, Te as CommandList, Ee as CommandSeparator, De as CommandShortcut, P as DEFAULT_GALLERY_PAGER_LABELS, Oe as Dialog, ke as DialogClose, Ae as DialogContent, je as DialogDescription, Me as DialogFooter, Ne as DialogHeader, Pe as DialogOverlay, Fe as DialogPortal, Ie as DialogTitle, Le as DialogTrigger, Re as DropdownMenu, ze as DropdownMenuCheckboxItem, Be as DropdownMenuContent, Ve as DropdownMenuGroup, He as DropdownMenuItem, Ue as DropdownMenuLabel, We as DropdownMenuPortal, Ge as DropdownMenuRadioGroup, Ke as DropdownMenuRadioItem, qe as DropdownMenuSeparator, Je as DropdownMenuShortcut, Ye as DropdownMenuSub, Xe as DropdownMenuSubContent, Ze as DropdownMenuSubTrigger, Qe as DropdownMenuTrigger, en as EmphasisPanel, X as EmptyState, i as EntityIdModal, F as GALLERY_PAGE_SIZE, G as GalleryCategoryRail, K as GalleryChip, N as GalleryPager, q as GalleryPanel, Qt as GlassCard, un as GradientText, tn as IconTile, cn as IllustratedEmptyState, ln as Illustration, $e as Input, et as Label, vn as ModalShell, on as ModernLanding, st as NativeSelect, pn as NativeWelcome, dn as NextSteps, hn as OfflineBanner, o as OptionalFields, _n as PWAUpdateToast, Zt as PageContainer, fn as PagePurpose, l as PageTabs, M as Pagination, tt as Popover, nt as PopoverAnchor, rt as PopoverContent, it as PopoverTrigger, gn as PullToRefresh, C as ResponsiveDialog, w as ResponsiveDialogClose, T as ResponsiveDialogContent, E as ResponsiveDialogDescription, D as ResponsiveDialogFooter, O as ResponsiveDialogHeader, k as ResponsiveDialogTitle, A as ResponsiveDialogTrigger, Y as ResponsiveStack, j as ResponsiveTable, at as ScrollArea, ot as ScrollBar, ct as Select, lt as SelectContent, ut as SelectGroup, dt as SelectItem, ft as SelectLabel, pt as SelectScrollDownButton, mt as SelectScrollUpButton, ht as SelectSeparator, gt as SelectTrigger, _t as SelectValue, xt as Separator, St as Sheet, Ct as SheetClose, wt as SheetContent, Tt as SheetDescription, Et as SheetFooter, Dt as SheetHeader, Ot as SheetTitle, kt as SheetTrigger, nn as ShowMore, c as ShowTechnicalDetails, At as Skeleton, Mt as Spinner, J as Stepper, Nt as Switch, I as TOP_CATEGORY_COUNT, Pt as Table, Ft as TableBody, It as TableCaption, Lt as TableCell, Rt as TableFooter, zt as TableHead, Bt as TableHeader, Vt as TableRow, Ht as Tabs, Ut as TabsContent, Wt as TabsList, Gt as TabsTrigger, Kt as Textarea, vt as ThemedSelect, yt as ThemedSelectProvider, jt as Toaster, qt as Tooltip, Jt as TooltipContent, Yt as TooltipProvider, Xt as TooltipTrigger, le as badgeVariants, de as buttonVariants, L as clampPage, $t as glassCardVariants, u as matchActiveTab, R as offsetForPage, z as pageItems, B as pageRange, V as parsePageParam, H as splitCategories, d as splitTabs, U as totalPagesFor, a as useEntityIdModal, m as useHeadingDocumentTitle, s as useRememberedOpen, bt as useThemedSelects, W as withPageParam };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1118.13",
3
+ "version": "2026.1119.2",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",