@tomny-dev/uzi 0.19.0 → 0.20.0-pr.134.459.1.7c935fa

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":"AIChat.d.ts","sourceRoot":"","sources":["../../../src/components/ai-chat/AIChat.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAG/F,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAgB,MAAM,sBAAsB,CAAC;AAIvF,KAAK,sBAAsB,GAAG,WAAW,CAAC,qBAAqB,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnG,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,0BAA0B,CAAC,EAAE,sBAAsB,CAAC,4BAA4B,CAAC,CAAC;IAC3F,mFAAmF;IACnF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtC,iDAAiD;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,gDAAgD;IAChD,QAAQ,CAAC,cA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7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAQjG;AA0JD,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,KAAK,EACL,UAAU,EACV,KAAK,EAAE,YAAY,EACnB,OAAO,EACP,WAAW,EACX,0BAA0B,EAC1B,UAAU,EACV,YAAoC,EACpC,gBAAsC,EACtC,cAA0B,EAC1B,cAAqB,EACrB,UAAU,EACV,cAAc,EACd,oBAA2B,EAC3B,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACrB,OAAO,EACP,SAAS,EACT,KAAK,GACN,EAAE,WAAW,2CAuDb;AAwND;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,MAAgB,EAChB,aAA2C,EAC3C,kBAAkB,EAClB,KAAK,EACL,KAAU,EACV,aAAa,EACb,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,oBAA2B,EAC3B,YAAY,EACZ,gBAAsC,EACtC,cAA0B,EAC1B,cAAqB,EACrB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,GACN,EAAE,eAAe,2CAuNjB"}
@@ -9,13 +9,10 @@
9
9
  * @param props.size - Size preset.
10
10
  * @param props.icon - Optional leading icon.
11
11
  */
12
- import type { HTMLAttributes, ReactNode } from "react";
12
+ import type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from "react";
13
13
  export type PillTone = "neutral" | "success" | "warning" | "info" | "danger";
14
14
  export type PillSize = "sm" | "md";
15
- type PillElement = "span" | "div" | "button";
16
- export type PillProps = HTMLAttributes<HTMLElement> & {
17
- /** Optional rendered element; defaults to `span`. */
18
- as?: PillElement;
15
+ type PillBaseProps = {
19
16
  /** Visual tone; adjusts color and border. */
20
17
  tone?: PillTone;
21
18
  /** Size preset. */
@@ -23,6 +20,12 @@ export type PillProps = HTMLAttributes<HTMLElement> & {
23
20
  /** Leading icon node (not focusable). */
24
21
  icon?: ReactNode;
25
22
  };
23
+ /** Static labels are spans/divs; interactive pills use native button props. */
24
+ export type PillProps = PillBaseProps & (({
25
+ as?: "span" | "div";
26
+ } & HTMLAttributes<HTMLElement>) | ({
27
+ as: "button";
28
+ } & ButtonHTMLAttributes<HTMLButtonElement>));
26
29
  export declare function Pill({ as, tone, size, icon, className, children, ...rest }: PillProps): import("react/jsx-runtime").JSX.Element;
27
30
  export {};
28
31
  //# sourceMappingURL=Pill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/components/pill/Pill.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnC,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACpD,qDAAqD;IACrD,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,mBAAmB;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,yCAAyC;IACzC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,wBAAgB,IAAI,CAAC,EACnB,EAAE,EACF,IAAgB,EAChB,IAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,SAAS,2CAcX"}
1
+ {"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/components/pill/Pill.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7E,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAInC,KAAK,aAAa,GAAG;IACnB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,mBAAmB;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,yCAAyC;IACzC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,CACpC,CAAC;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC,GACvD,CAAC;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,CAC/D,CAAC;AAEF,wBAAgB,IAAI,CAAC,EACnB,EAAE,EACF,IAAgB,EAChB,IAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,SAAS,2CAqBX"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Pill.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pill.test.d.ts","sourceRoot":"","sources":["../../../src/components/pill/Pill.test.tsx"],"names":[],"mappings":""}
package/dist/index12.js CHANGED
@@ -2,6 +2,7 @@
2
2
  var pill = "uzi-pill-module__pill__uCKcP";
3
3
  var icon = "uzi-pill-module__icon__KQ8zg";
4
4
  var content = "uzi-pill-module__content__T7AG1";
5
+ var interactive = "uzi-pill-module__interactive__CkNyV";
5
6
  var pill_module_default = {
6
7
  pill,
7
8
  "size-sm": "uzi-pill-module__size-sm__JANOQ",
@@ -11,9 +12,10 @@ var pill_module_default = {
11
12
  "tone-info": "uzi-pill-module__tone-info__0vQrj",
12
13
  "tone-danger": "uzi-pill-module__tone-danger__gzNOa",
13
14
  icon,
14
- content
15
+ content,
16
+ interactive
15
17
  };
16
18
  //#endregion
17
- export { content, pill_module_default as default, icon, pill };
19
+ export { content, pill_module_default as default, icon, interactive, pill };
18
20
 
19
21
  //# sourceMappingURL=index12.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index12.js","names":[],"sources":["../src/components/pill/pill.module.css"],"sourcesContent":[".pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n border: 1px solid var(--ts-pill-border, var(--border));\n background: var(--ts-pill-bg, color-mix(in srgb, var(--foreground) 4%, transparent));\n color: var(--ts-pill-fg, var(--muted-foreground));\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n line-height: 1.2;\n white-space: nowrap;\n}\n\n.size-sm {\n padding: 3px 8px;\n font-size: 11px;\n}\n\n.size-md {\n padding: 4px 10px;\n}\n\n.tone-success {\n color: var(--success);\n border-color: color-mix(in srgb, var(--success) 45%, transparent);\n background: color-mix(in srgb, var(--success) 12%, transparent);\n}\n\n.tone-warning {\n color: var(--warning);\n border-color: color-mix(in srgb, var(--warning) 45%, transparent);\n background: color-mix(in srgb, var(--warning) 12%, transparent);\n}\n\n.tone-info {\n color: var(--primary);\n border-color: color-mix(in srgb, var(--primary) 50%, transparent);\n background: color-mix(in srgb, var(--primary) 12%, transparent);\n}\n\n.tone-danger {\n color: var(--destructive);\n border-color: color-mix(in srgb, var(--destructive) 45%, transparent);\n background: color-mix(in srgb, var(--destructive) 12%, transparent);\n}\n\n.icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n}\n\n.content {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"index12.js","names":[],"sources":["../src/components/pill/pill.module.css"],"sourcesContent":[".pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n border: 1px solid var(--ts-pill-border, var(--border));\n background: var(--ts-pill-bg, color-mix(in srgb, var(--foreground) 4%, transparent));\n color: var(--ts-pill-fg, var(--muted-foreground));\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n line-height: 1.2;\n white-space: nowrap;\n}\n\n.size-sm {\n padding: 3px 8px;\n font-size: 11px;\n}\n\n.size-md {\n padding: 4px 10px;\n}\n\n.tone-success {\n color: var(--success);\n border-color: color-mix(in srgb, var(--success) 45%, transparent);\n background: color-mix(in srgb, var(--success) 12%, transparent);\n}\n\n.tone-warning {\n color: var(--warning);\n border-color: color-mix(in srgb, var(--warning) 45%, transparent);\n background: color-mix(in srgb, var(--warning) 12%, transparent);\n}\n\n.tone-info {\n color: var(--primary);\n border-color: color-mix(in srgb, var(--primary) 50%, transparent);\n background: color-mix(in srgb, var(--primary) 12%, transparent);\n}\n\n.tone-danger {\n color: var(--destructive);\n border-color: color-mix(in srgb, var(--destructive) 45%, transparent);\n background: color-mix(in srgb, var(--destructive) 12%, transparent);\n}\n\n.icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n}\n\n.content {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.interactive {\n font-family: inherit;\n appearance: none;\n cursor: pointer;\n transition: filter 120ms ease, transform 120ms ease;\n}\n\n.interactive:hover:not(:disabled) {\n filter: brightness(1.15);\n}\n\n.interactive:active:not(:disabled) {\n transform: translateY(1px);\n}\n\n.interactive:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.interactive:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n"],"mappings":""}
package/dist/index13.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
  var pill = "uzi-pill-module__pill__uCKcP";
3
3
  var icon = "uzi-pill-module__icon__KQ8zg";
4
4
  var content = "uzi-pill-module__content__T7AG1";
5
+ var interactive = "uzi-pill-module__interactive__CkNyV";
5
6
  var pill_module_default = {
6
7
  pill,
7
8
  "size-sm": "uzi-pill-module__size-sm__JANOQ",
@@ -11,12 +12,14 @@ var pill_module_default = {
11
12
  "tone-info": "uzi-pill-module__tone-info__0vQrj",
12
13
  "tone-danger": "uzi-pill-module__tone-danger__gzNOa",
13
14
  icon,
14
- content
15
+ content,
16
+ interactive
15
17
  };
16
18
  //#endregion
17
19
  exports.content = content;
18
20
  exports.default = pill_module_default;
19
21
  exports.icon = icon;
22
+ exports.interactive = interactive;
20
23
  exports.pill = pill;
21
24
 
22
25
  //# sourceMappingURL=index13.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index13.cjs","names":[],"sources":["../src/components/pill/pill.module.css"],"sourcesContent":[".pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n border: 1px solid var(--ts-pill-border, var(--border));\n background: var(--ts-pill-bg, color-mix(in srgb, var(--foreground) 4%, transparent));\n color: var(--ts-pill-fg, var(--muted-foreground));\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n line-height: 1.2;\n white-space: nowrap;\n}\n\n.size-sm {\n padding: 3px 8px;\n font-size: 11px;\n}\n\n.size-md {\n padding: 4px 10px;\n}\n\n.tone-success {\n color: var(--success);\n border-color: color-mix(in srgb, var(--success) 45%, transparent);\n background: color-mix(in srgb, var(--success) 12%, transparent);\n}\n\n.tone-warning {\n color: var(--warning);\n border-color: color-mix(in srgb, var(--warning) 45%, transparent);\n background: color-mix(in srgb, var(--warning) 12%, transparent);\n}\n\n.tone-info {\n color: var(--primary);\n border-color: color-mix(in srgb, var(--primary) 50%, transparent);\n background: color-mix(in srgb, var(--primary) 12%, transparent);\n}\n\n.tone-danger {\n color: var(--destructive);\n border-color: color-mix(in srgb, var(--destructive) 45%, transparent);\n background: color-mix(in srgb, var(--destructive) 12%, transparent);\n}\n\n.icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n}\n\n.content {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"index13.cjs","names":[],"sources":["../src/components/pill/pill.module.css"],"sourcesContent":[".pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border-radius: 999px;\n border: 1px solid var(--ts-pill-border, var(--border));\n background: var(--ts-pill-bg, color-mix(in srgb, var(--foreground) 4%, transparent));\n color: var(--ts-pill-fg, var(--muted-foreground));\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n line-height: 1.2;\n white-space: nowrap;\n}\n\n.size-sm {\n padding: 3px 8px;\n font-size: 11px;\n}\n\n.size-md {\n padding: 4px 10px;\n}\n\n.tone-success {\n color: var(--success);\n border-color: color-mix(in srgb, var(--success) 45%, transparent);\n background: color-mix(in srgb, var(--success) 12%, transparent);\n}\n\n.tone-warning {\n color: var(--warning);\n border-color: color-mix(in srgb, var(--warning) 45%, transparent);\n background: color-mix(in srgb, var(--warning) 12%, transparent);\n}\n\n.tone-info {\n color: var(--primary);\n border-color: color-mix(in srgb, var(--primary) 50%, transparent);\n background: color-mix(in srgb, var(--primary) 12%, transparent);\n}\n\n.tone-danger {\n color: var(--destructive);\n border-color: color-mix(in srgb, var(--destructive) 45%, transparent);\n background: color-mix(in srgb, var(--destructive) 12%, transparent);\n}\n\n.icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n}\n\n.content {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.interactive {\n font-family: inherit;\n appearance: none;\n cursor: pointer;\n transition: filter 120ms ease, transform 120ms ease;\n}\n\n.interactive:hover:not(:disabled) {\n filter: brightness(1.15);\n}\n\n.interactive:active:not(:disabled) {\n transform: translateY(1px);\n}\n\n.interactive:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.interactive:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n"],"mappings":""}
package/dist/index13.js CHANGED
@@ -1,19 +1,28 @@
1
1
  import { cx } from "./index3.js";
2
2
  import pill_module_default from "./index12.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/pill/Pill.tsx
5
5
  function Pill({ as, tone = "neutral", size = "md", icon, className, children, ...rest }) {
6
- return /* @__PURE__ */ jsxs(as ?? "span", {
7
- className: cx(pill_module_default.pill, pill_module_default[`tone-${tone}`], pill_module_default[`size-${size}`], className),
6
+ const Component = as ?? "span";
7
+ const classes = cx(pill_module_default.pill, pill_module_default[`tone-${tone}`], pill_module_default[`size-${size}`], as === "button" && pill_module_default.interactive, className);
8
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [icon ? /* @__PURE__ */ jsx("span", {
9
+ className: pill_module_default.icon,
10
+ "aria-hidden": "true",
11
+ children: icon
12
+ }) : null, /* @__PURE__ */ jsx("span", {
13
+ className: pill_module_default.content,
14
+ children
15
+ })] });
16
+ if (as === "button") return /* @__PURE__ */ jsx("button", {
17
+ type: "button",
18
+ className: classes,
8
19
  ...rest,
9
- children: [icon ? /* @__PURE__ */ jsx("span", {
10
- className: pill_module_default.icon,
11
- "aria-hidden": "true",
12
- children: icon
13
- }) : null, /* @__PURE__ */ jsx("span", {
14
- className: pill_module_default.content,
15
- children
16
- })]
20
+ children: content
21
+ });
22
+ return /* @__PURE__ */ jsx(Component, {
23
+ className: classes,
24
+ ...rest,
25
+ children: content
17
26
  });
18
27
  }
19
28
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index13.js","names":[],"sources":["../src/components/pill/Pill.tsx"],"sourcesContent":["/**\n * Compact label component for status chips and tags.\n *\n * @remarks\n * Supports tone and size presets, and can render any inline element.\n *\n * @param props.as - Element to render (defaults to `span`).\n * @param props.tone - Visual tone variant.\n * @param props.size - Size preset.\n * @param props.icon - Optional leading icon.\n */\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./pill.module.css\";\n\nexport type PillTone = \"neutral\" | \"success\" | \"warning\" | \"info\" | \"danger\";\nexport type PillSize = \"sm\" | \"md\";\n\ntype PillElement = \"span\" | \"div\" | \"button\";\n\nexport type PillProps = HTMLAttributes<HTMLElement> & {\n /** Optional rendered element; defaults to `span`. */\n as?: PillElement;\n /** Visual tone; adjusts color and border. */\n tone?: PillTone;\n /** Size preset. */\n size?: PillSize;\n /** Leading icon node (not focusable). */\n icon?: ReactNode;\n};\n\nexport function Pill({\n as,\n tone = \"neutral\",\n size = \"md\",\n icon,\n className,\n children,\n ...rest\n}: PillProps) {\n const Component: PillElement = as ?? \"span\";\n const classes = cx(styles.pill, styles[`tone-${tone}`], styles[`size-${size}`], className);\n\n return (\n <Component className={classes} {...rest}>\n {icon ? (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n ) : null}\n <span className={styles.content}>{children}</span>\n </Component>\n );\n}\n"],"mappings":";;;;AA+BA,SAAgB,KAAK,EACnB,IACA,OAAO,WACP,OAAO,MACP,MACA,WACA,UACA,GAAG,QACS;CAIZ,OACE,qBAJ6B,MAAM,QAInC;EAAW,WAHG,GAAG,oBAAO,MAAM,oBAAO,QAAQ,SAAS,oBAAO,QAAQ,SAAS,SAGxD;EAAS,GAAI;YAAnC,CACG,OACC,oBAAC,QAAD;GAAM,WAAW,oBAAO;GAAM,eAAY;aACvC;EACG,CAAA,IACJ,MACJ,oBAAC,QAAD;GAAM,WAAW,oBAAO;GAAU;EAAe,CAAA,CACxC;;AAEf"}
1
+ {"version":3,"file":"index13.js","names":[],"sources":["../src/components/pill/Pill.tsx"],"sourcesContent":["/**\n * Compact label component for status chips and tags.\n *\n * @remarks\n * Supports tone and size presets, and can render any inline element.\n *\n * @param props.as - Element to render (defaults to `span`).\n * @param props.tone - Visual tone variant.\n * @param props.size - Size preset.\n * @param props.icon - Optional leading icon.\n */\nimport type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./pill.module.css\";\n\nexport type PillTone = \"neutral\" | \"success\" | \"warning\" | \"info\" | \"danger\";\nexport type PillSize = \"sm\" | \"md\";\n\ntype PillElement = \"span\" | \"div\" | \"button\";\n\ntype PillBaseProps = {\n /** Visual tone; adjusts color and border. */\n tone?: PillTone;\n /** Size preset. */\n size?: PillSize;\n /** Leading icon node (not focusable). */\n icon?: ReactNode;\n};\n\n/** Static labels are spans/divs; interactive pills use native button props. */\nexport type PillProps = PillBaseProps & (\n | ({ as?: \"span\" | \"div\" } & HTMLAttributes<HTMLElement>)\n | ({ as: \"button\" } & ButtonHTMLAttributes<HTMLButtonElement>)\n);\n\nexport function Pill({\n as,\n tone = \"neutral\",\n size = \"md\",\n icon,\n className,\n children,\n ...rest\n}: PillProps) {\n const Component: PillElement = as ?? \"span\";\n const classes = cx(styles.pill, styles[`tone-${tone}`], styles[`size-${size}`], as === \"button\" && styles.interactive, className);\n const content = (\n <>\n {icon ? (\n <span className={styles.icon} aria-hidden=\"true\">{icon}</span>\n ) : null}\n <span className={styles.content}>{children}</span>\n </>\n );\n\n if (as === \"button\") {\n return <button type=\"button\" className={classes} {...(rest as ButtonHTMLAttributes<HTMLButtonElement>)}>{content}</button>;\n }\n\n return (\n <Component className={classes} {...(rest as HTMLAttributes<HTMLElement>)}>\n {content}\n </Component>\n );\n}\n"],"mappings":";;;;AAmCA,SAAgB,KAAK,EACnB,IACA,OAAO,WACP,OAAO,MACP,MACA,WACA,UACA,GAAG,QACS;CACZ,MAAM,YAAyB,MAAM;CACrC,MAAM,UAAU,GAAG,oBAAO,MAAM,oBAAO,QAAQ,SAAS,oBAAO,QAAQ,SAAS,OAAO,YAAY,oBAAO,aAAa,SAAS;CAChI,MAAM,UACJ,qBAAA,UAAA,EAAA,UAAA,CACG,OACC,oBAAC,QAAD;EAAM,WAAW,oBAAO;EAAM,eAAY;YAAQ;CAAW,CAAA,IAC3D,MACJ,oBAAC,QAAD;EAAM,WAAW,oBAAO;EAAU;CAAe,CAAA,CACjD,EAAA,CAAA;CAGJ,IAAI,OAAO,UACT,OAAO,oBAAC,UAAD;EAAQ,MAAK;EAAS,WAAW;EAAS,GAAK;YAAmD;CAAgB,CAAA;CAG3H,OACE,oBAAC,WAAD;EAAW,WAAW;EAAS,GAAK;YACjC;CACQ,CAAA;AAEf"}
package/dist/index14.cjs CHANGED
@@ -3,17 +3,26 @@ const require_pill_module = require("./index13.cjs");
3
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
4
  //#region src/components/pill/Pill.tsx
5
5
  function Pill({ as, tone = "neutral", size = "md", icon, className, children, ...rest }) {
6
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(as ?? "span", {
7
- className: require_cx.cx(require_pill_module.default.pill, require_pill_module.default[`tone-${tone}`], require_pill_module.default[`size-${size}`], className),
6
+ const Component = as ?? "span";
7
+ const classes = require_cx.cx(require_pill_module.default.pill, require_pill_module.default[`tone-${tone}`], require_pill_module.default[`size-${size}`], as === "button" && require_pill_module.default.interactive, className);
8
+ const content = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [icon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9
+ className: require_pill_module.default.icon,
10
+ "aria-hidden": "true",
11
+ children: icon
12
+ }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
13
+ className: require_pill_module.default.content,
14
+ children
15
+ })] });
16
+ if (as === "button") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
17
+ type: "button",
18
+ className: classes,
8
19
  ...rest,
9
- children: [icon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10
- className: require_pill_module.default.icon,
11
- "aria-hidden": "true",
12
- children: icon
13
- }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14
- className: require_pill_module.default.content,
15
- children
16
- })]
20
+ children: content
21
+ });
22
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
23
+ className: classes,
24
+ ...rest,
25
+ children: content
17
26
  });
18
27
  }
19
28
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index14.cjs","names":[],"sources":["../src/components/pill/Pill.tsx"],"sourcesContent":["/**\n * Compact label component for status chips and tags.\n *\n * @remarks\n * Supports tone and size presets, and can render any inline element.\n *\n * @param props.as - Element to render (defaults to `span`).\n * @param props.tone - Visual tone variant.\n * @param props.size - Size preset.\n * @param props.icon - Optional leading icon.\n */\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./pill.module.css\";\n\nexport type PillTone = \"neutral\" | \"success\" | \"warning\" | \"info\" | \"danger\";\nexport type PillSize = \"sm\" | \"md\";\n\ntype PillElement = \"span\" | \"div\" | \"button\";\n\nexport type PillProps = HTMLAttributes<HTMLElement> & {\n /** Optional rendered element; defaults to `span`. */\n as?: PillElement;\n /** Visual tone; adjusts color and border. */\n tone?: PillTone;\n /** Size preset. */\n size?: PillSize;\n /** Leading icon node (not focusable). */\n icon?: ReactNode;\n};\n\nexport function Pill({\n as,\n tone = \"neutral\",\n size = \"md\",\n icon,\n className,\n children,\n ...rest\n}: PillProps) {\n const Component: PillElement = as ?? \"span\";\n const classes = cx(styles.pill, styles[`tone-${tone}`], styles[`size-${size}`], className);\n\n return (\n <Component className={classes} {...rest}>\n {icon ? (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n ) : null}\n <span className={styles.content}>{children}</span>\n </Component>\n );\n}\n"],"mappings":";;;;AA+BA,SAAgB,KAAK,EACnB,IACA,OAAO,WACP,OAAO,MACP,MACA,WACA,UACA,GAAG,QACS;CAIZ,OACE,iBAAA,GAAA,kBAAA,KAAA,CAJ6B,MAAM,QAInC;EAAW,WAHG,WAAA,GAAG,oBAAA,QAAO,MAAM,oBAAA,QAAO,QAAQ,SAAS,oBAAA,QAAO,QAAQ,SAAS,SAGxD;EAAS,GAAI;YAAnC,CACG,OACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;GAAM,WAAW,oBAAA,QAAO;GAAM,eAAY;aACvC;EACG,CAAA,IACJ,MACJ,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;GAAM,WAAW,oBAAA,QAAO;GAAU;EAAe,CAAA,CACxC;;AAEf"}
1
+ {"version":3,"file":"index14.cjs","names":[],"sources":["../src/components/pill/Pill.tsx"],"sourcesContent":["/**\n * Compact label component for status chips and tags.\n *\n * @remarks\n * Supports tone and size presets, and can render any inline element.\n *\n * @param props.as - Element to render (defaults to `span`).\n * @param props.tone - Visual tone variant.\n * @param props.size - Size preset.\n * @param props.icon - Optional leading icon.\n */\nimport type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./pill.module.css\";\n\nexport type PillTone = \"neutral\" | \"success\" | \"warning\" | \"info\" | \"danger\";\nexport type PillSize = \"sm\" | \"md\";\n\ntype PillElement = \"span\" | \"div\" | \"button\";\n\ntype PillBaseProps = {\n /** Visual tone; adjusts color and border. */\n tone?: PillTone;\n /** Size preset. */\n size?: PillSize;\n /** Leading icon node (not focusable). */\n icon?: ReactNode;\n};\n\n/** Static labels are spans/divs; interactive pills use native button props. */\nexport type PillProps = PillBaseProps & (\n | ({ as?: \"span\" | \"div\" } & HTMLAttributes<HTMLElement>)\n | ({ as: \"button\" } & ButtonHTMLAttributes<HTMLButtonElement>)\n);\n\nexport function Pill({\n as,\n tone = \"neutral\",\n size = \"md\",\n icon,\n className,\n children,\n ...rest\n}: PillProps) {\n const Component: PillElement = as ?? \"span\";\n const classes = cx(styles.pill, styles[`tone-${tone}`], styles[`size-${size}`], as === \"button\" && styles.interactive, className);\n const content = (\n <>\n {icon ? (\n <span className={styles.icon} aria-hidden=\"true\">{icon}</span>\n ) : null}\n <span className={styles.content}>{children}</span>\n </>\n );\n\n if (as === \"button\") {\n return <button type=\"button\" className={classes} {...(rest as ButtonHTMLAttributes<HTMLButtonElement>)}>{content}</button>;\n }\n\n return (\n <Component className={classes} {...(rest as HTMLAttributes<HTMLElement>)}>\n {content}\n </Component>\n );\n}\n"],"mappings":";;;;AAmCA,SAAgB,KAAK,EACnB,IACA,OAAO,WACP,OAAO,MACP,MACA,WACA,UACA,GAAG,QACS;CACZ,MAAM,YAAyB,MAAM;CACrC,MAAM,UAAU,WAAA,GAAG,oBAAA,QAAO,MAAM,oBAAA,QAAO,QAAQ,SAAS,oBAAA,QAAO,QAAQ,SAAS,OAAO,YAAY,oBAAA,QAAO,aAAa,SAAS;CAChI,MAAM,UACJ,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA,CACG,OACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EAAM,WAAW,oBAAA,QAAO;EAAM,eAAY;YAAQ;CAAW,CAAA,IAC3D,MACJ,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EAAM,WAAW,oBAAA,QAAO;EAAU;CAAe,CAAA,CACjD,EAAA,CAAA;CAGJ,IAAI,OAAO,UACT,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EAAQ,MAAK;EAAS,WAAW;EAAS,GAAK;YAAmD;CAAgB,CAAA;CAG3H,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAW,WAAW;EAAS,GAAK;YACjC;CACQ,CAAA;AAEf"}
package/dist/index59.js CHANGED
@@ -8,6 +8,9 @@ var chips = "uzi-filter-workspace-module__chips__9idNl";
8
8
  var chip = "uzi-filter-workspace-module__chip__1pp-Q";
9
9
  var popoverRoot = "uzi-filter-workspace-module__popoverRoot__XeZZ8";
10
10
  var panel = "uzi-filter-workspace-module__panel__Z2JD4";
11
+ var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
12
+ var noSearch = "uzi-filter-workspace-module__noSearch__1MGeC";
13
+ var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
11
14
  var filter_workspace_module_default = {
12
15
  bar,
13
16
  leading,
@@ -17,9 +20,12 @@ var filter_workspace_module_default = {
17
20
  chips,
18
21
  chip,
19
22
  popoverRoot,
20
- panel
23
+ panel,
24
+ noLeading,
25
+ noSearch,
26
+ noActions
21
27
  };
22
28
  //#endregion
23
- export { actions, activeFilters, bar, chip, chips, filter_workspace_module_default as default, leading, panel, popoverRoot, search };
29
+ export { actions, activeFilters, bar, chip, chips, filter_workspace_module_default as default, leading, noActions, noLeading, noSearch, panel, popoverRoot, search };
24
30
 
25
31
  //# sourceMappingURL=index59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index59.js","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: grid;\n grid-template-columns: max-content minmax(12rem, 1fr) max-content;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n}\n.leading { flex-wrap: wrap; }\n.search > * { min-width: 0; }\n.search > input { width: 100%; }\n.actions { justify-content: flex-end; flex-wrap: nowrap; }\n.activeFilters { grid-column: 1 / -1; min-width: 0; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 64rem) {\n .bar { grid-template-columns: minmax(0, 1fr) max-content; }\n .leading { grid-column: 1; }\n .actions { flex-wrap: wrap; }\n .search { grid-column: 1; grid-row: 2; }\n .actions { grid-column: 2; grid-row: 2; }\n}\n@media (max-width: 40rem) {\n .bar { grid-template-columns: minmax(0, 1fr); }\n .leading, .search, .actions { grid-column: 1; grid-row: auto; }\n .actions { justify-content: flex-start; flex-wrap: wrap; }\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"index59.js","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: grid;\n grid-template-columns: max-content minmax(12rem, 1fr) max-content;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n}\n.leading { flex-wrap: wrap; }\n.search > * { min-width: 0; flex: 1 1 auto; }\n/* Let search inputs and autocomplete wrappers consume the available column. */\n.search > :is(input, div) { width: 100%; }\n.leading > *, .actions > * { min-width: 0; }\n.search > input { width: 100%; }\n.actions { justify-content: flex-end; flex-wrap: wrap; }\n.activeFilters { grid-column: 1 / -1; min-width: 0; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 64rem) {\n .bar { grid-template-columns: minmax(0, 1fr) max-content; }\n .leading { grid-column: 1; }\n .actions { flex-wrap: wrap; }\n .search { grid-column: 1; grid-row: 2; }\n .actions { grid-column: 2; grid-row: 2; }\n}\n@media (max-width: 40rem) {\n .bar { grid-template-columns: minmax(0, 1fr); }\n .leading, .search, .actions { grid-column: 1; grid-row: auto; }\n .actions { justify-content: flex-start; flex-wrap: wrap; }\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n\n/* A toolbar may omit any slot; unused grid columns must not reserve space. */\n@media (min-width: 64.001rem) {\n .bar.noLeading { grid-template-columns: minmax(0, 1fr) max-content; }\n .bar.noSearch { grid-template-columns: minmax(0, 1fr) max-content; }\n .bar.noLeading.noActions,\n .bar.noSearch.noActions { grid-template-columns: minmax(0, 1fr); }\n}\n@media (min-width: 40.001rem) and (max-width: 64rem) {\n .bar.noLeading .search { grid-column: 1; grid-row: 1; }\n .bar.noLeading .actions { grid-column: 2; grid-row: 1; }\n .bar.noSearch .leading { grid-column: 1; grid-row: 1; }\n .bar.noSearch .actions { grid-column: 2; grid-row: 1; }\n}\n"],"mappings":""}
package/dist/index60.cjs CHANGED
@@ -8,6 +8,9 @@ var chips = "uzi-filter-workspace-module__chips__9idNl";
8
8
  var chip = "uzi-filter-workspace-module__chip__1pp-Q";
9
9
  var popoverRoot = "uzi-filter-workspace-module__popoverRoot__XeZZ8";
10
10
  var panel = "uzi-filter-workspace-module__panel__Z2JD4";
11
+ var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
12
+ var noSearch = "uzi-filter-workspace-module__noSearch__1MGeC";
13
+ var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
11
14
  var filter_workspace_module_default = {
12
15
  bar,
13
16
  leading,
@@ -17,7 +20,10 @@ var filter_workspace_module_default = {
17
20
  chips,
18
21
  chip,
19
22
  popoverRoot,
20
- panel
23
+ panel,
24
+ noLeading,
25
+ noSearch,
26
+ noActions
21
27
  };
22
28
  //#endregion
23
29
  exports.actions = actions;
@@ -27,6 +33,9 @@ exports.chip = chip;
27
33
  exports.chips = chips;
28
34
  exports.default = filter_workspace_module_default;
29
35
  exports.leading = leading;
36
+ exports.noActions = noActions;
37
+ exports.noLeading = noLeading;
38
+ exports.noSearch = noSearch;
30
39
  exports.panel = panel;
31
40
  exports.popoverRoot = popoverRoot;
32
41
  exports.search = search;
@@ -1 +1 @@
1
- {"version":3,"file":"index60.cjs","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: grid;\n grid-template-columns: max-content minmax(12rem, 1fr) max-content;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n}\n.leading { flex-wrap: wrap; }\n.search > * { min-width: 0; }\n.search > input { width: 100%; }\n.actions { justify-content: flex-end; flex-wrap: nowrap; }\n.activeFilters { grid-column: 1 / -1; min-width: 0; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 64rem) {\n .bar { grid-template-columns: minmax(0, 1fr) max-content; }\n .leading { grid-column: 1; }\n .actions { flex-wrap: wrap; }\n .search { grid-column: 1; grid-row: 2; }\n .actions { grid-column: 2; grid-row: 2; }\n}\n@media (max-width: 40rem) {\n .bar { grid-template-columns: minmax(0, 1fr); }\n .leading, .search, .actions { grid-column: 1; grid-row: auto; }\n .actions { justify-content: flex-start; flex-wrap: wrap; }\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"index60.cjs","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: grid;\n grid-template-columns: max-content minmax(12rem, 1fr) max-content;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n}\n.leading { flex-wrap: wrap; }\n.search > * { min-width: 0; flex: 1 1 auto; }\n/* Let search inputs and autocomplete wrappers consume the available column. */\n.search > :is(input, div) { width: 100%; }\n.leading > *, .actions > * { min-width: 0; }\n.search > input { width: 100%; }\n.actions { justify-content: flex-end; flex-wrap: wrap; }\n.activeFilters { grid-column: 1 / -1; min-width: 0; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 64rem) {\n .bar { grid-template-columns: minmax(0, 1fr) max-content; }\n .leading { grid-column: 1; }\n .actions { flex-wrap: wrap; }\n .search { grid-column: 1; grid-row: 2; }\n .actions { grid-column: 2; grid-row: 2; }\n}\n@media (max-width: 40rem) {\n .bar { grid-template-columns: minmax(0, 1fr); }\n .leading, .search, .actions { grid-column: 1; grid-row: auto; }\n .actions { justify-content: flex-start; flex-wrap: wrap; }\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n\n/* A toolbar may omit any slot; unused grid columns must not reserve space. */\n@media (min-width: 64.001rem) {\n .bar.noLeading { grid-template-columns: minmax(0, 1fr) max-content; }\n .bar.noSearch { grid-template-columns: minmax(0, 1fr) max-content; }\n .bar.noLeading.noActions,\n .bar.noSearch.noActions { grid-template-columns: minmax(0, 1fr); }\n}\n@media (min-width: 40.001rem) and (max-width: 64rem) {\n .bar.noLeading .search { grid-column: 1; grid-row: 1; }\n .bar.noLeading .actions { grid-column: 2; grid-row: 1; }\n .bar.noSearch .leading { grid-column: 1; grid-row: 1; }\n .bar.noSearch .actions { grid-column: 2; grid-row: 1; }\n}\n"],"mappings":""}
package/dist/index60.js CHANGED
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/filter-workspace/FilterWorkspace.tsx
8
8
  function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }) {
9
9
  return /* @__PURE__ */ jsxs("div", {
10
- className: cx(filter_workspace_module_default.bar, className),
10
+ className: cx(filter_workspace_module_default.bar, !leading && filter_workspace_module_default.noLeading, !search && filter_workspace_module_default.noSearch, !actions && filter_workspace_module_default.noActions, className),
11
11
  ...rest,
12
12
  children: [
13
13
  leading && /* @__PURE__ */ jsx("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index60.js","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search field expands to fill available space. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,qBAAC,OAAD;EAAK,WAAW,GAAG,gCAAO,KAAK,SAAS;EAAG,GAAI;YAA/C;GACJ,WAAW,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAU;GAAa,CAAA;GACzD,UAAU,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAS;GAAY,CAAA;GACtD,WAAW,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAU;GAAa,CAAA;GACzD;GACA,iBAAiB,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAgB;GAAmB,CAAA;EACzE;;AACP;;AAiBA,SAAgB,YAAY,EAAE,OAAO,UAAU,SAAS,aAAa,aAAa,aAA+B;CAC/G,IAAI,MAAM,WAAW,GAAG,OAAO;CAC/B,OAAO,qBAAC,OAAD;EAAK,WAAW,GAAG,gCAAO,OAAO,SAAS;EAAG,cAAW;YAAxD,CACJ,MAAM,KAAI,SAAQ,qBAAC,UAAD;GAAQ,MAAK;GAC9B,WAAW,gCAAO;GAAM,UAAU,KAAK;GACvC,cAAY,UAAU,KAAK,MAAM;GACjC,eAAe,SAAS,KAAK,EAAE;aAHd,CAIjB,oBAAC,QAAD,EAAA,UAAO,KAAK,MAAY,CAAA,GAAC,oBAAC,QAAD;IAAM,eAAY;cAAO;GAAO,CAAA,CACnD;KALsC,KAAK,EAK3C,CAAC,GACR,WAAW,oBAAC,QAAD;GAAQ,MAAK;GAAK,SAAQ;GAAQ,SAAS;aAAU;EAAmB,CAAA,CACjF;;AACP;;AAcA,SAAgB,cAAc,EAC5B,UAAU,QAAQ,WAAW,cAAc,GAAG,MAAM,cACpD,WAAW,kBACU;CACrB,MAAM,CAAC,cAAc,mBAAmB,MAAM,SA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,gBAAgB;GACtB,QAAQ,KAAK;GACb,QAAQ,SAAS,cAAiC,QAAQ,CAAC,EAAE,MAAM;EACrE;EACA,SAAS,iBAAiB,eAAe,SAAS;EAClD,SAAS,iBAAiB,WAAW,KAAK;EAC1C,aAAa;GACX,SAAS,oBAAoB,eAAe,SAAS;GACrD,SAAS,oBAAoB,WAAW,KAAK;EAC/C;CACF,GAAG,CAAC,QAAQ,OAAO,CAAC;CAEpB,OAAO,qBAAC,OAAD;EAAK,KAAK;EAAS,WAAW,GAAG,gCAAO,aAAa,SAAS;YAA9D,CACL,qBAAC,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,oBAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,GAAG,gCAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
1
+ {"version":3,"file":"index60.js","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search field expands to fill available space. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, !leading && styles.noLeading, !search && styles.noSearch, !actions && styles.noActions, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,qBAAC,OAAD;EAAK,WAAW,GAAG,gCAAO,KAAK,CAAC,WAAW,gCAAO,WAAW,CAAC,UAAU,gCAAO,UAAU,CAAC,WAAW,gCAAO,WAAW,SAAS;EAAG,GAAI;YAAvI;GACJ,WAAW,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAU;GAAa,CAAA;GACzD,UAAU,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAS;GAAY,CAAA;GACtD,WAAW,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAU;GAAa,CAAA;GACzD;GACA,iBAAiB,oBAAC,OAAD;IAAK,WAAW,gCAAO;cAAgB;GAAmB,CAAA;EACzE;;AACP;;AAiBA,SAAgB,YAAY,EAAE,OAAO,UAAU,SAAS,aAAa,aAAa,aAA+B;CAC/G,IAAI,MAAM,WAAW,GAAG,OAAO;CAC/B,OAAO,qBAAC,OAAD;EAAK,WAAW,GAAG,gCAAO,OAAO,SAAS;EAAG,cAAW;YAAxD,CACJ,MAAM,KAAI,SAAQ,qBAAC,UAAD;GAAQ,MAAK;GAC9B,WAAW,gCAAO;GAAM,UAAU,KAAK;GACvC,cAAY,UAAU,KAAK,MAAM;GACjC,eAAe,SAAS,KAAK,EAAE;aAHd,CAIjB,oBAAC,QAAD,EAAA,UAAO,KAAK,MAAY,CAAA,GAAC,oBAAC,QAAD;IAAM,eAAY;cAAO;GAAO,CAAA,CACnD;KALsC,KAAK,EAK3C,CAAC,GACR,WAAW,oBAAC,QAAD;GAAQ,MAAK;GAAK,SAAQ;GAAQ,SAAS;aAAU;EAAmB,CAAA,CACjF;;AACP;;AAcA,SAAgB,cAAc,EAC5B,UAA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AAG,QAAQ,KAAK;EAC7F;EACA,MAAM,SAAS,UAAyB;GACtC,IAAI,MAAM,QAAQ,UAAU;GAC5B,MAAM,gBAAgB;GACtB,QAAQ,KAAK;GACb,QAAQ,SAAS,cAAiC,QAAQ,CAAC,EAAE,MAAM;EACrE;EACA,SAAS,iBAAiB,eAAe,SAAS;EAClD,SAAS,iBAAiB,WAAW,KAAK;EAC1C,aAAa;GACX,SAAS,oBAAoB,eAAe,SAAS;GACrD,SAAS,oBAAoB,WAAW,KAAK;EAC/C;CACF,GAAG,CAAC,QAAQ,OAAO,CAAC;CAEpB,OAAO,qBAAC,OAAD;EAAK,KAAK;EAAS,WAAW,GAAG,gCAAO,aAAa,SAAS;YAA9D,CACL,qBAAC,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,oBAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,GAAG,gCAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
package/dist/index61.cjs CHANGED
@@ -9,7 +9,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
9
9
  //#region src/components/filter-workspace/FilterWorkspace.tsx
10
10
  function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }) {
11
11
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12
- className: require_cx.cx(require_filter_workspace_module.default.bar, className),
12
+ className: require_cx.cx(require_filter_workspace_module.default.bar, !leading && require_filter_workspace_module.default.noLeading, !search && require_filter_workspace_module.default.noSearch, !actions && require_filter_workspace_module.default.noActions, className),
13
13
  ...rest,
14
14
  children: [
15
15
  leading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index61.cjs","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search field expands to fill available space. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAW,WAAA,GAAG,gCAAA,QAAO,KAAK,SAAS;EAAG,GAAI;YAA/C;GACJ,WAAW,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAAO;cAAU;GAAa,CAAA;GACzD,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAAO;cAAS;GAAY,CAAA;GACtD,WAAW,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAAO;cAAU;GAAa,CAAA;GACzD;GACA,iBAAiB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAAO;cAAgB;GAAmB,CAAA;EACzE;;AACP;;AAiBA,SAA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GAAA,kBAAA,KAAA,CAAC,eAAA,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,WAAA,GAAG,gCAAA,QAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
1
+ {"version":3,"file":"index61.cjs","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search field expands to fill available space. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, !leading && styles.noLeading, !search && styles.noSearch, !actions && styles.noActions, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAW,WAAA,GAAG,gCAAA,QAAO,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,CAAC,QAAQ,SAAS,SAAS,MAAM,MAAM,GAAG,QAAQ,KAAK;EAC7F;EACA,MAAM,SAAS,UAAyB;GACtC,IAAI,MAAM,QAAQ,UAAU;GAC5B,MAAM,gBAAgB;GACtB,QAAQ,KAAK;GACb,QAAQ,SAAS,cAAiC,QAAQ,CAAC,EAAE,MAAM;EACrE;EACA,SAAS,iBAAiB,eAAe,SAAS;EAClD,SAAS,iBAAiB,WAAW,KAAK;EAC1C,aAAa;GACX,SAAS,oBAAoB,eAAe,SAAS;GACrD,SAAS,oBAAoB,WAAW,KAAK;EAC/C;CACF,GAAG,CAAC,QAAQ,OAAO,CAAC;CAEpB,OAAO,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,KAAK;EAAS,WAAW,WAAA,GAAG,gCAAA,QAAO,aAAa,SAAS;YAA9D,CACL,iBAAA,GAAA,kBAAA,KAAA,CAAC,eAAA,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,WAAA,GAAG,gCAAA,QAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
package/dist/index83.js CHANGED
@@ -46,9 +46,9 @@ var attachmentCard = "uzi-ai-chat-module__attachmentCard__JdvKJ";
46
46
  var stagedAttachment = "uzi-ai-chat-module__stagedAttachment__5axXj";
47
47
  var stagedFileAttachment = "uzi-ai-chat-module__stagedFileAttachment__hZfVm";
48
48
  var sentAttachment = "uzi-ai-chat-module__sentAttachment__PP-fs";
49
+ var sentImageAttachment = "uzi-ai-chat-module__sentImageAttachment__M9wpx";
49
50
  var imageAttachmentButton = "uzi-ai-chat-module__imageAttachmentButton__PM2cf";
50
51
  var attachmentThumbnail = "uzi-ai-chat-module__attachmentThumbnail__OzmIc";
51
- var sentAttachmentName = "uzi-ai-chat-module__sentAttachmentName__rGevY";
52
52
  var fileAttachment = "uzi-ai-chat-module__fileAttachment__lVB09";
53
53
  var fileAttachmentDetails = "uzi-ai-chat-module__fileAttachmentDetails__NVfrg";
54
54
  var removeAttachment = "uzi-ai-chat-module__removeAttachment__ck6iq";
@@ -105,9 +105,9 @@ var ai_chat_module_default = {
105
105
  stagedAttachment,
106
106
  stagedFileAttachment,
107
107
  sentAttachment,
108
+ sentImageAttachment,
108
109
  imageAttachmentButton,
109
110
  attachmentThumbnail,
110
- sentAttachmentName,
111
111
  fileAttachment,
112
112
  fileAttachmentDetails,
113
113
  removeAttachment,
@@ -116,6 +116,6 @@ var ai_chat_module_default = {
116
116
  attachmentDialogHeader
117
117
  };
118
118
  //#endregion
119
- export { activityBubble, activityDots, approvalActions, assistantMessage, attachmentCard, attachmentDialog, attachmentDialogHeader, attachmentError, attachmentList, attachmentThumbnail, chatToolbar, chatToolbarExtras, closeBtn, composerActions, composerExtras, composerForm, composerIconButton, composerRow, composerSurface, container, data, ai_chat_module_default as default, emptyState, error, errorActions, fileAttachment, fileAttachmentDetails, footer, historyLimit, imageAttachmentButton, input, messageBubble, messageLabel, messageList, newChatButton, reasoning, reasoningSummary, reasoningText, removeAttachment, removeAttachmentSlot, scope, scopeHelp, scopeLabel, sendButton, sentAttachment, sentAttachmentName, sources, sourcesLabel, stagedAttachment, stagedFileAttachment, structuredData, textPart, thread, toolPart, userMessage, viewport, visuallyHidden };
119
+ export { activityBubble, activityDots, approvalActions, assistantMessage, attachmentCard, attachmentDialog, attachmentDialogHeader, attachmentError, attachmentList, attachmentThumbnail, chatToolbar, chatToolbarExtras, closeBtn, composerActions, composerExtras, composerForm, composerIconButton, composerRow, composerSurface, container, data, ai_chat_module_default as default, emptyState, error, errorActions, fileAttachment, fileAttachmentDetails, footer, historyLimit, imageAttachmentButton, input, messageBubble, messageLabel, messageList, newChatButton, reasoning, reasoningSummary, reasoningText, removeAttachment, removeAttachmentSlot, scope, scopeHelp, scopeLabel, sendButton, sentAttachment, sentImageAttachment, sources, sourcesLabel, stagedAttachment, stagedFileAttachment, structuredData, textPart, thread, toolPart, userMessage, viewport, visuallyHidden };
120
120
 
121
121
  //# sourceMappingURL=index83.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index83.js","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.activityBubble {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 0.625rem;\n width: fit-content;\n max-width: 100%;\n padding: 0.75rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--muted);\n color: var(--muted-foreground);\n font-size: 0.8125rem;\n line-height: 1.4;\n animation: uzi-chat-activity-enter 180ms ease-out 120ms both;\n}\n\n.activityDots { display: flex; align-items: center; gap: 0.2rem; }\n.activityDots i {\n display: block;\n width: 0.35rem;\n height: 0.35rem;\n flex: 0 0 auto;\n border-radius: 50%;\n background: currentColor;\n animation: uzi-chat-dot-pulse 1.2s ease-in-out infinite;\n}\n.activityDots i:nth-child(2) { animation-delay: 150ms; }\n.activityDots i:nth-child(3) { animation-delay: 300ms; }\n\n@keyframes uzi-chat-activity-enter {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@keyframes uzi-chat-dot-pulse {\n 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .activityBubble, .activityDots i { animation: none; }\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n margin: 0.75rem 1rem;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList {\n display: flex;\n flex-wrap: nowrap;\n gap: 0.625rem;\n max-width: 100%;\n padding: 0.125rem 0.125rem 0.5rem;\n margin: 0;\n overflow-x: auto;\n list-style: none;\n scrollbar-width: thin;\n}\n.attachmentList li { display: flex; flex: 0 0 auto; min-width: 0; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Shared image tiles and file cards for both the composer and message history. */\n.attachmentCard {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n border: 1px solid var(--border);\n border-radius: 0.75rem;\n background: var(--uzi-surface-1, var(--muted));\n}\n.stagedAttachment {\n width: 5.75rem;\n height: 5.75rem;\n}\n.stagedFileAttachment { width: min(15rem, 75vw); }\n.sentAttachment {\n width: fit-content;\n max-width: min(16rem, 100%);\n}\n.imageAttachmentButton {\n display: block;\n width: 100%;\n min-width: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: zoom-in;\n}\n.stagedAttachment .imageAttachmentButton { height: 100%; }\n.attachmentThumbnail {\n display: block;\n max-width: 100%;\n object-fit: contain;\n}\n.stagedAttachment .attachmentThumbnail { width: 100%; height: 100%; object-fit: cover; }\n.sentAttachment .attachmentThumbnail {\n width: auto;\n min-width: 6rem;\n max-height: 14rem;\n}\n.sentAttachmentName {\n display: block;\n max-width: 100%;\n padding: 0.375rem 0.5rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--muted-foreground);\n font-size: 0.6875rem;\n}\n.fileAttachment {\n display: flex;\n align-items: center;\n gap: 0.625rem;\n min-width: 0;\n min-height: 4rem;\n padding: 0.625rem;\n color: var(--foreground);\n}\n.stagedFileAttachment .fileAttachment { height: 100%; box-sizing: border-box; padding-right: 1.875rem; }\n.fileAttachment svg { flex: 0 0 auto; color: var(--muted-foreground); }\n.fileAttachmentDetails {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n min-width: 0;\n font-size: 0.75rem;\n}\n.fileAttachmentDetails a,\n.fileAttachmentDetails > span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--foreground);\n text-decoration: none;\n}\n.fileAttachmentDetails a:hover { text-decoration: underline; }\n.fileAttachmentDetails small { color: var(--muted-foreground); font-size: 0.6875rem; }\n.removeAttachment {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 1.125rem;\n line-height: 1;\n cursor: pointer;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.removeAttachment:hover { background: var(--muted); }\n.removeAttachmentSlot {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n}\n.removeAttachmentSlot button {\n display: grid;\n place-items: center;\n width: 1.5rem;\n min-width: 1.5rem;\n height: 1.5rem;\n min-height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font-size: 1.125rem;\n line-height: 1;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.imageAttachmentButton:focus-visible, .removeAttachment:focus-visible,\n.fileAttachmentDetails a:focus-visible, .attachmentDialog button:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n.attachmentDialog {\n max-width: min(95vw, 60rem);\n max-height: 90dvh;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n color: var(--foreground);\n box-shadow: 0 16px 60px rgb(0 0 0 / 35%);\n}\n.attachmentDialog::backdrop { background: rgb(0 0 0 / 80%); }\n.attachmentDialogHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding-bottom: 0.5rem;\n font-size: 0.8125rem;\n}\n.attachmentDialogHeader span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.attachmentDialogHeader button {\n flex-shrink: 0;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: var(--muted);\n color: var(--foreground);\n font: inherit;\n font-size: 1.25rem;\n cursor: pointer;\n}\n.attachmentDialog > img {\n display: block;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: calc(90dvh - 5rem);\n margin: auto;\n object-fit: contain;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"index83.js","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.activityBubble {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 0.625rem;\n width: fit-content;\n max-width: 100%;\n padding: 0.375rem 0.5rem;\n color: var(--muted-foreground);\n font-size: 0.8125rem;\n line-height: 1.4;\n animation: uzi-chat-activity-enter 180ms ease-out 120ms both;\n}\n\n.activityDots { display: flex; align-items: center; gap: 0.2rem; }\n.activityDots i {\n display: block;\n width: 0.35rem;\n height: 0.35rem;\n flex: 0 0 auto;\n border-radius: 50%;\n background: currentColor;\n animation: uzi-chat-dot-pulse 1.2s ease-in-out infinite;\n}\n.activityDots i:nth-child(2) { animation-delay: 150ms; }\n.activityDots i:nth-child(3) { animation-delay: 300ms; }\n\n@keyframes uzi-chat-activity-enter {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@keyframes uzi-chat-dot-pulse {\n 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .activityBubble, .activityDots i { animation: none; }\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n align-self: flex-start;\n max-width: min(100%, 42rem);\n margin: 0;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList {\n display: flex;\n flex-wrap: nowrap;\n gap: 0.625rem;\n max-width: 100%;\n padding: 0.125rem 0.125rem 0.5rem;\n margin: 0;\n overflow-x: auto;\n list-style: none;\n scrollbar-width: thin;\n}\n.attachmentList li { display: flex; flex: 0 0 auto; min-width: 0; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Shared image tiles and file cards for both the composer and message history. */\n.attachmentCard {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n border: 1px solid var(--border);\n border-radius: 0.75rem;\n background: var(--uzi-surface-1, var(--muted));\n}\n.stagedAttachment {\n width: 5.75rem;\n height: 5.75rem;\n}\n.stagedFileAttachment { width: min(15rem, 75vw); }\n.sentAttachment {\n width: fit-content;\n max-width: min(20rem, 100%);\n}\n/* Sent images are part of the message, not nested file cards. */\n.sentImageAttachment {\n border: 0;\n background: transparent;\n}\n.imageAttachmentButton {\n display: block;\n width: 100%;\n min-width: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: zoom-in;\n}\n.stagedAttachment .imageAttachmentButton { height: 100%; }\n.attachmentThumbnail {\n display: block;\n max-width: 100%;\n object-fit: contain;\n}\n.stagedAttachment .attachmentThumbnail { width: 100%; height: 100%; object-fit: cover; }\n.sentAttachment .attachmentThumbnail {\n width: auto;\n height: auto;\n min-width: 8rem;\n max-width: 100%;\n max-height: min(26rem, 60dvh);\n}\n.fileAttachment {\n display: flex;\n align-items: center;\n gap: 0.625rem;\n min-width: 0;\n min-height: 4rem;\n padding: 0.625rem;\n color: var(--foreground);\n}\n.stagedFileAttachment .fileAttachment { height: 100%; box-sizing: border-box; padding-right: 1.875rem; }\n.fileAttachment svg { flex: 0 0 auto; color: var(--muted-foreground); }\n.fileAttachmentDetails {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n min-width: 0;\n font-size: 0.75rem;\n}\n.fileAttachmentDetails a,\n.fileAttachmentDetails > span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--foreground);\n text-decoration: none;\n}\n.fileAttachmentDetails a:hover { text-decoration: underline; }\n.fileAttachmentDetails small { color: var(--muted-foreground); font-size: 0.6875rem; }\n.removeAttachment {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 1.125rem;\n line-height: 1;\n cursor: pointer;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.removeAttachment:hover { background: var(--muted); }\n.removeAttachmentSlot {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n}\n.removeAttachmentSlot button {\n display: grid;\n place-items: center;\n width: 1.5rem;\n min-width: 1.5rem;\n height: 1.5rem;\n min-height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font-size: 1.125rem;\n line-height: 1;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.imageAttachmentButton:focus-visible, .removeAttachment:focus-visible,\n.fileAttachmentDetails a:focus-visible, .attachmentDialog button:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n.attachmentDialog {\n max-width: min(95vw, 60rem);\n max-height: 90dvh;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n color: var(--foreground);\n box-shadow: 0 16px 60px rgb(0 0 0 / 35%);\n}\n.attachmentDialog::backdrop { background: rgb(0 0 0 / 80%); }\n.attachmentDialogHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding-bottom: 0.5rem;\n font-size: 0.8125rem;\n}\n.attachmentDialogHeader span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.attachmentDialogHeader button {\n flex-shrink: 0;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: var(--muted);\n color: var(--foreground);\n font: inherit;\n font-size: 1.25rem;\n cursor: pointer;\n}\n.attachmentDialog > img {\n display: block;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: calc(90dvh - 5rem);\n margin: auto;\n object-fit: contain;\n}\n"],"mappings":""}