@tomny-dev/uzi 0.19.0 → 0.20.0-pr.133.460.1.b643269

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/components/ai-chat/AIChat.d.ts +2 -25
  2. package/dist/components/ai-chat/AIChat.d.ts.map +1 -1
  3. package/dist/components/ai-chat/AIChatParts.d.ts +32 -0
  4. package/dist/components/ai-chat/AIChatParts.d.ts.map +1 -0
  5. package/dist/components/ai-chat/activityLabel.d.ts +20 -0
  6. package/dist/components/ai-chat/activityLabel.d.ts.map +1 -0
  7. package/dist/components/ai-chat/activityLabel.test.d.ts +2 -0
  8. package/dist/components/ai-chat/activityLabel.test.d.ts.map +1 -0
  9. package/dist/components/pill/Pill.d.ts +8 -5
  10. package/dist/components/pill/Pill.d.ts.map +1 -1
  11. package/dist/components/pill/Pill.test.d.ts +2 -0
  12. package/dist/components/pill/Pill.test.d.ts.map +1 -0
  13. package/dist/index.cjs +6 -5
  14. package/dist/index.js +4 -3
  15. package/dist/index12.js +4 -2
  16. package/dist/index12.js.map +1 -1
  17. package/dist/index13.cjs +4 -1
  18. package/dist/index13.cjs.map +1 -1
  19. package/dist/index13.js +20 -11
  20. package/dist/index13.js.map +1 -1
  21. package/dist/index14.cjs +19 -10
  22. package/dist/index14.cjs.map +1 -1
  23. package/dist/index83.js +3 -3
  24. package/dist/index83.js.map +1 -1
  25. package/dist/index84.cjs +3 -3
  26. package/dist/index84.cjs.map +1 -1
  27. package/dist/index84.js +5 -559
  28. package/dist/index84.js.map +1 -1
  29. package/dist/index85.cjs +8 -559
  30. package/dist/index85.cjs.map +1 -1
  31. package/dist/index85.js +11 -34
  32. package/dist/index85.js.map +1 -1
  33. package/dist/index86.cjs +11 -49
  34. package/dist/index86.cjs.map +1 -1
  35. package/dist/index86.js +539 -227
  36. package/dist/index86.js.map +1 -1
  37. package/dist/index87.cjs +541 -226
  38. package/dist/index87.cjs.map +1 -1
  39. package/dist/index87.js +33 -15
  40. package/dist/index87.js.map +1 -1
  41. package/dist/index88.cjs +48 -21
  42. package/dist/index88.cjs.map +1 -1
  43. package/dist/index88.js +250 -29
  44. package/dist/index88.js.map +1 -1
  45. package/dist/index89.cjs +250 -30
  46. package/dist/index89.cjs.map +1 -1
  47. package/dist/index89.js +19 -0
  48. package/dist/index89.js.map +1 -0
  49. package/dist/index90.cjs +25 -0
  50. package/dist/index90.cjs.map +1 -0
  51. package/dist/index90.js +36 -0
  52. package/dist/index90.js.map +1 -0
  53. package/dist/index91.cjs +37 -0
  54. package/dist/index91.cjs.map +1 -0
  55. package/dist/style.css +38 -17
  56. package/package.json +1 -1
@@ -159,30 +159,6 @@ export interface AIChatErrorRendererProps {
159
159
  readonly onRetry: () => void;
160
160
  readonly onClear: () => void;
161
161
  }
162
- /** Shared attachment surface for built-in Uzi chat and custom SDK runtimes. */
163
- export interface AIChatAttachmentPreviewProps {
164
- readonly name: string;
165
- readonly size?: number;
166
- /** HTTP(S), safe bitmap data URI, or a local object URL when staged. */
167
- readonly imageUrl?: string;
168
- /** Optional HTTP(S) link for non-image files. */
169
- readonly href?: string;
170
- /** Compact composer chip rather than a history attachment. */
171
- readonly staged?: boolean;
172
- readonly onRemove?: () => void;
173
- /** Pass an SDK-owned remove button here when removal must be done by a primitive. */
174
- readonly removeControl?: ReactNode;
175
- }
176
- /** The same attachment surface is used for staged files and sent message parts. */
177
- export declare function AIChatAttachmentPreview({ name, size, imageUrl, href, staged, onRemove, removeControl }: AIChatAttachmentPreviewProps): import("react/jsx-runtime").JSX.Element;
178
- /** Reusable role-aware message surface for domain renderers. */
179
- export interface AIChatMessageBubbleProps {
180
- readonly role: 'user' | 'assistant';
181
- readonly label?: string;
182
- readonly children: ReactNode;
183
- readonly className?: string;
184
- }
185
- export declare function AIChatMessageBubble({ role, label, children, className }: AIChatMessageBubbleProps): import("react/jsx-runtime").JSX.Element;
186
162
  export declare function AIChat({ api, scope, scopeLabel, fetch: requestFetch, headers, credentials, prepareSendMessagesRequest, sessionKey, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, toolbarActions, showNewChatInToolbar, newChatRequestKey, attachments, activityLabel, toolActivityLabels, history, sendAutomaticallyWhen, onClose, className, style, }: AIChatProps): import("react/jsx-runtime").JSX.Element;
187
163
  /**
188
164
  * Controlled chat presentation for apps with their own AI SDK/assistant-ui
@@ -190,5 +166,6 @@ export declare function AIChat({ api, scope, scopeLabel, fetch: requestFetch, he
190
166
  * are the only way messages/actions leave the view.
191
167
  */
192
168
  export declare function AIChatView({ messages, status, activityLabel, toolActivityLabels, error, draft, onDraftChange, onSend, onStop, onRetry, onNewChat, showNewChatInToolbar, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, attachments, onSelectAttachments, onRemoveAttachment, attachmentAccept, attachmentError, onToolApproval, toolbarActions, header, composerLeading, composerTrailing, composer, emptyState, className, style, }: AIChatViewProps): import("react/jsx-runtime").JSX.Element;
193
- export {};
169
+ export { AIChatAttachmentPreview, AIChatMessageBubble } from './AIChatParts';
170
+ export type { AIChatAttachmentPreviewProps, AIChatMessageBubbleProps } from './AIChatParts';
194
171
  //# sourceMappingURL=AIChat.d.ts.map
@@ -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,MAA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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,2CAwNjB;AAED,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC7E,YAAY,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { AIChatComponents, AIChatErrorRendererProps, AIChatMessageRendererProps, AIChatToolApprovalHandler } from './AIChat';
3
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
4
+ export declare function asString(value: unknown): string | undefined;
5
+ /** Shared attachment surface for built-in Uzi chat and custom SDK runtimes. */
6
+ export interface AIChatAttachmentPreviewProps {
7
+ readonly name: string;
8
+ readonly size?: number;
9
+ /** HTTP(S), safe bitmap data URI, or a local object URL when staged. */
10
+ readonly imageUrl?: string;
11
+ /** Optional HTTP(S) link for non-image files. */
12
+ readonly href?: string;
13
+ /** Compact composer chip rather than a history attachment. */
14
+ readonly staged?: boolean;
15
+ readonly onRemove?: () => void;
16
+ /** Pass an SDK-owned remove button here when removal must be done by a primitive. */
17
+ readonly removeControl?: ReactNode;
18
+ }
19
+ /** The same attachment surface is used for staged files and sent message parts. */
20
+ export declare function AIChatAttachmentPreview({ name, size, imageUrl, href, staged, onRemove, removeControl }: AIChatAttachmentPreviewProps): import("react/jsx-runtime").JSX.Element;
21
+ /** Reusable role-aware message surface for domain renderers. */
22
+ export interface AIChatMessageBubbleProps {
23
+ readonly role: 'user' | 'assistant';
24
+ readonly label?: string;
25
+ readonly children: ReactNode;
26
+ readonly className?: string;
27
+ }
28
+ export declare function AIChatMessageBubble({ role, label, children, className }: AIChatMessageBubbleProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function DefaultMessageRenderer({ message, renderMessagePart }: AIChatMessageRendererProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function DefaultErrorRenderer({ error, onRetry, onClear }: AIChatErrorRendererProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function renderPart(part: Record<string, unknown>, index: number, components: AIChatComponents | undefined, onToolApproval?: AIChatToolApprovalHandler, pendingApprovalId?: string | null): ReactNode;
32
+ //# sourceMappingURL=AIChatParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChatParts.d.ts","sourceRoot":"","sources":["../../../src/components/ai-chat/AIChatParts.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EACV,gBAAgB,EAEhB,wBAAwB,EACxB,0BAA0B,EAI1B,yBAAyB,EAE1B,MAAM,UAAU,CAAC;AAElB,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE3D;AAmBD,+EAA+E;AAC/E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QA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AAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAChC,SAAS,CAsFX"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Pure state→label resolution for the inline assistant activity indicator.
3
+ * The approval special cases are handled exactly once: a requested approval
4
+ * always shows the waiting label, and a denied response never shows the
5
+ * application-supplied state label.
6
+ */
7
+ export interface ChatActivityLabel {
8
+ /** Name of the in-flight tool part; undefined while no tool is running. */
9
+ readonly toolName?: string;
10
+ /** State of the in-flight tool part (`input-available`, `approval-requested`, `approval-responded`, …). */
11
+ readonly toolState?: string;
12
+ /** True when the pending approval response was an approval. */
13
+ readonly approved?: boolean;
14
+ /** Application-owned labels keyed by tool name and by `tool:state`. */
15
+ readonly toolActivityLabels?: Readonly<Record<string, string>>;
16
+ /** Fallback label used while no tool is running. */
17
+ readonly activityLabel: string;
18
+ }
19
+ export declare function resolveChatActivityLabel({ toolName, toolState, approved, toolActivityLabels, activityLabel, }: ChatActivityLabel): string;
20
+ //# sourceMappingURL=activityLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activityLabel.d.ts","sourceRoot":"","sources":["../../../src/components/ai-chat/activityLabel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,oDAAoD;IACpD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAMD,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,SAAS,EACT,QAAgB,EAChB,kBAAkB,EAClB,aAAa,GACd,EAAE,iBAAiB,GAAG,MAAM,CAW5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=activityLabel.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activityLabel.test.d.ts","sourceRoot":"","sources":["../../../src/components/ai-chat/activityLabel.test.ts"],"names":[],"mappings":""}
@@ -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,S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K,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/index.cjs CHANGED
@@ -42,13 +42,14 @@ const require_DataTable = require("./index77.cjs");
42
42
  const require_SettingsPage = require("./index79.cjs");
43
43
  const require_ErrorPage = require("./index81.cjs");
44
44
  const require_EmptyStatePage = require("./index83.cjs");
45
- const require_AIChat = require("./index85.cjs");
46
- const require_AIChatDock = require("./index87.cjs");
47
- const require_FloatingActionStack = require("./index89.cjs");
45
+ const require_AIChatParts = require("./index85.cjs");
46
+ const require_AIChat = require("./index87.cjs");
47
+ const require_AIChatDock = require("./index89.cjs");
48
+ const require_FloatingActionStack = require("./index91.cjs");
48
49
  exports.AIChat = require_AIChat.AIChat;
49
- exports.AIChatAttachmentPreview = require_AIChat.AIChatAttachmentPreview;
50
+ exports.AIChatAttachmentPreview = require_AIChatParts.AIChatAttachmentPreview;
50
51
  exports.AIChatDock = require_AIChatDock.AIChatDock;
51
- exports.AIChatMessageBubble = require_AIChat.AIChatMessageBubble;
52
+ exports.AIChatMessageBubble = require_AIChatParts.AIChatMessageBubble;
52
53
  exports.AIChatView = require_AIChat.AIChatView;
53
54
  exports.Alert = require_Alert.Alert;
54
55
  exports.AppShell = require_AppShell.AppShell;
package/dist/index.js CHANGED
@@ -41,7 +41,8 @@ import { DataTable } from "./index76.js";
41
41
  import { SettingsPage } from "./index78.js";
42
42
  import { ErrorPage, MaintenancePage, NotFoundPage } from "./index80.js";
43
43
  import { EmptyStatePage } from "./index82.js";
44
- import { AIChat, AIChatAttachmentPreview, AIChatMessageBubble, AIChatView } from "./index84.js";
45
- import { AIChatDock } from "./index86.js";
46
- import { FloatingActionButton, FloatingActionStack } from "./index88.js";
44
+ import { AIChatAttachmentPreview, AIChatMessageBubble } from "./index84.js";
45
+ import { AIChat, AIChatView } from "./index86.js";
46
+ import { AIChatDock } from "./index88.js";
47
+ import { FloatingActionButton, FloatingActionStack } from "./index90.js";
47
48
  export { AIChat, AIChatAttachmentPreview, AIChatDock, AIChatMessageBubble, AIChatView, Alert, AppShell, AuthCard, AuthField, AuthForm, AuthModeSwitch, AuthPage, Avatar, AvatarFallback, AvatarImage, Button, Card, Checkbox, DataTable, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStatePage, ErrorPage, FilterBar, FilterChips, FilterPopover, FloatingActionButton, FloatingActionStack, ForgotPasswordPage, Inline, Input, Label, MaintenancePage, Modal, ModalOverlay, MultiSelect, NotFoundPage, PageContainer, PageHeader, Pill, Progress, SearchAutocomplete, SectionHeader, SegmentedToggle, Select, SettingsPage, SidebarNav, SignInPage, SignUpPage, Skeleton, Stack, Stat, StatGroup, Surface, ThemeProvider, ThemeToggleButton, ToastProvider, Toolbar, ToolbarGroup, TopBar, cx, useTheme, useToast };
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;