@tomny-dev/uzi 0.19.0 → 0.20.0

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,cAAc,CAAC,EAAE,MA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AAS,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/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":""}
package/dist/index84.cjs 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,
@@ -161,7 +161,7 @@ exports.scopeHelp = scopeHelp;
161
161
  exports.scopeLabel = scopeLabel;
162
162
  exports.sendButton = sendButton;
163
163
  exports.sentAttachment = sentAttachment;
164
- exports.sentAttachmentName = sentAttachmentName;
164
+ exports.sentImageAttachment = sentImageAttachment;
165
165
  exports.sources = sources;
166
166
  exports.sourcesLabel = sourcesLabel;
167
167
  exports.stagedAttachment = stagedAttachment;
@@ -1 +1 @@
1
- {"version":3,"file":"index84.cjs","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":"index84.cjs","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":""}
package/dist/index84.js CHANGED
@@ -38,7 +38,8 @@ function AIChatAttachmentPreview({ name, size, imageUrl, href, staged, onRemove,
38
38
  className: [
39
39
  ai_chat_module_default.attachmentCard,
40
40
  staged ? ai_chat_module_default.stagedAttachment : ai_chat_module_default.sentAttachment,
41
- staged && !safePreviewUrl ? ai_chat_module_default.stagedFileAttachment : ""
41
+ staged && !safePreviewUrl ? ai_chat_module_default.stagedFileAttachment : "",
42
+ safePreviewUrl && !staged ? ai_chat_module_default.sentImageAttachment : ""
42
43
  ].filter(Boolean).join(" "),
43
44
  children: [
44
45
  safePreviewUrl ? /* @__PURE__ */ jsx("button", {
@@ -81,11 +82,6 @@ function AIChatAttachmentPreview({ name, size, imageUrl, href, staged, onRemove,
81
82
  }), size !== void 0 && /* @__PURE__ */ jsx("small", { children: formatAttachmentSize(size) })]
82
83
  })]
83
84
  }),
84
- safePreviewUrl && !staged && /* @__PURE__ */ jsx("span", {
85
- className: ai_chat_module_default.sentAttachmentName,
86
- title: name,
87
- children: name
88
- }),
89
85
  removeControl && /* @__PURE__ */ jsx("span", {
90
86
  className: ai_chat_module_default.removeAttachmentSlot,
91
87
  children: removeControl
@@ -565,7 +561,10 @@ function AIChatView({ messages, status = "ready", activityLabel = "Working on yo
565
561
  const hasAnswer = assistantParts.some((part) => part.type === "text" && Boolean(asString(part.text)?.trim()));
566
562
  const showActivity = isBusy && (!hasAnswer || Boolean(activeTool));
567
563
  const toolName = asString(activeTool?.toolName) ?? lastPartType.replace(/^tool-/, "");
568
- const currentActivityLabel = activeTool?.state === "approval-requested" ? "Waiting for approval…" : activeTool ? toolActivityLabels?.[toolName] ?? "Using a tool…" : activityLabel;
564
+ const toolState = asString(activeTool?.state);
565
+ const approval = activeTool?.approval;
566
+ const approved = isRecord(approval) && approval.approved === true;
567
+ const currentActivityLabel = toolState === "approval-requested" ? "Waiting for approval…" : toolState === "approval-responded" && !approved ? "Processing approval response…" : activeTool ? (toolState && (toolState !== "approval-responded" || approved) ? toolActivityLabels?.[`${toolName}:${toolState}`] : void 0) ?? toolActivityLabels?.[toolName] ?? "Using a tool…" : activityLabel;
569
568
  const limit = messageLimit != null && Number.isFinite(messageLimit) ? Math.max(1, Math.floor(messageLimit)) : null;
570
569
  const historyFull = limit !== null && messages.filter((message) => message.role === "user").length >= limit;
571
570
  const MessageRenderer = components?.MessageRenderer ?? DefaultMessageRenderer;
@@ -654,7 +653,27 @@ function AIChatView({ messages, status = "ready", activityLabel = "Working on yo
654
653
  /* @__PURE__ */ jsx("i", {})
655
654
  ]
656
655
  }), /* @__PURE__ */ jsx("span", { children: currentActivityLabel })]
657
- })
656
+ }),
657
+ error && (onRetry && onNewChat ? /* @__PURE__ */ jsx(ErrorRenderer, {
658
+ error,
659
+ onRetry,
660
+ onClear: onNewChat
661
+ }) : /* @__PURE__ */ jsxs("div", {
662
+ className: ai_chat_module_default.error,
663
+ role: "alert",
664
+ children: [/* @__PURE__ */ jsx("p", { children: error.message }), (onRetry || onNewChat) && /* @__PURE__ */ jsxs("div", {
665
+ className: ai_chat_module_default.errorActions,
666
+ children: [onRetry && /* @__PURE__ */ jsx("button", {
667
+ type: "button",
668
+ onClick: onRetry,
669
+ children: "Retry response"
670
+ }), onNewChat && /* @__PURE__ */ jsx("button", {
671
+ type: "button",
672
+ onClick: onNewChat,
673
+ children: "Start new chat"
674
+ })]
675
+ })]
676
+ }))
658
677
  ]
659
678
  })
660
679
  }),
@@ -671,26 +690,6 @@ function AIChatView({ messages, status = "ready", activityLabel = "Working on yo
671
690
  className: ai_chat_module_default.attachmentError,
672
691
  children: attachmentError
673
692
  }),
674
- error && (onRetry && onNewChat ? /* @__PURE__ */ jsx(ErrorRenderer, {
675
- error,
676
- onRetry,
677
- onClear: onNewChat
678
- }) : /* @__PURE__ */ jsxs("div", {
679
- className: ai_chat_module_default.error,
680
- role: "alert",
681
- children: [/* @__PURE__ */ jsx("p", { children: error.message }), (onRetry || onNewChat) && /* @__PURE__ */ jsxs("div", {
682
- className: ai_chat_module_default.errorActions,
683
- children: [onRetry && /* @__PURE__ */ jsx("button", {
684
- type: "button",
685
- onClick: onRetry,
686
- children: "Retry response"
687
- }), onNewChat && /* @__PURE__ */ jsx("button", {
688
- type: "button",
689
- onClick: onNewChat,
690
- children: "Start new chat"
691
- })]
692
- })]
693
- })),
694
693
  historyFull && !error && !isBusy && onNewChat && /* @__PURE__ */ jsxs("div", {
695
694
  className: ai_chat_module_default.historyLimit,
696
695
  children: [/* @__PURE__ */ jsxs("span", { children: [