@apps-megafy/ui 0.1.22

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 (103) hide show
  1. package/components.json +17 -0
  2. package/dist/components/AttachmentViewer/index.d.ts +7 -0
  3. package/dist/components/AttachmentViewer/index.d.ts.map +1 -0
  4. package/dist/components/AttachmentViewer/index.js +15 -0
  5. package/dist/components/AttachmentViewer/index.js.map +1 -0
  6. package/dist/components/CameraCapture/index.d.ts +7 -0
  7. package/dist/components/CameraCapture/index.d.ts.map +1 -0
  8. package/dist/components/CameraCapture/index.js +153 -0
  9. package/dist/components/CameraCapture/index.js.map +1 -0
  10. package/dist/components/ChatInput/index.d.ts +19 -0
  11. package/dist/components/ChatInput/index.d.ts.map +1 -0
  12. package/dist/components/ChatInput/index.js +124 -0
  13. package/dist/components/ChatInput/index.js.map +1 -0
  14. package/dist/components/ChoiceCardPanel/index.d.ts +11 -0
  15. package/dist/components/ChoiceCardPanel/index.d.ts.map +1 -0
  16. package/dist/components/ChoiceCardPanel/index.js +101 -0
  17. package/dist/components/ChoiceCardPanel/index.js.map +1 -0
  18. package/dist/components/ConfirmationSummaryCard/index.d.ts +7 -0
  19. package/dist/components/ConfirmationSummaryCard/index.d.ts.map +1 -0
  20. package/dist/components/ConfirmationSummaryCard/index.js +7 -0
  21. package/dist/components/ConfirmationSummaryCard/index.js.map +1 -0
  22. package/dist/components/ConsentViewer/index.d.ts +9 -0
  23. package/dist/components/ConsentViewer/index.d.ts.map +1 -0
  24. package/dist/components/ConsentViewer/index.js +8 -0
  25. package/dist/components/ConsentViewer/index.js.map +1 -0
  26. package/dist/components/FrontendWidgetsArea/index.d.ts +17 -0
  27. package/dist/components/FrontendWidgetsArea/index.d.ts.map +1 -0
  28. package/dist/components/FrontendWidgetsArea/index.js +329 -0
  29. package/dist/components/FrontendWidgetsArea/index.js.map +1 -0
  30. package/dist/components/MessageArea/index.d.ts +14 -0
  31. package/dist/components/MessageArea/index.d.ts.map +1 -0
  32. package/dist/components/MessageArea/index.js +17 -0
  33. package/dist/components/MessageArea/index.js.map +1 -0
  34. package/dist/components/MessageBubble/index.d.ts +11 -0
  35. package/dist/components/MessageBubble/index.d.ts.map +1 -0
  36. package/dist/components/MessageBubble/index.js +17 -0
  37. package/dist/components/MessageBubble/index.js.map +1 -0
  38. package/dist/components/ProgressSteps/index.d.ts +23 -0
  39. package/dist/components/ProgressSteps/index.d.ts.map +1 -0
  40. package/dist/components/ProgressSteps/index.js +50 -0
  41. package/dist/components/ProgressSteps/index.js.map +1 -0
  42. package/dist/components/QuestionCardPanel/CardShell.d.ts +14 -0
  43. package/dist/components/QuestionCardPanel/CardShell.d.ts.map +1 -0
  44. package/dist/components/QuestionCardPanel/CardShell.js +8 -0
  45. package/dist/components/QuestionCardPanel/CardShell.js.map +1 -0
  46. package/dist/components/QuestionCardPanel/index.d.ts +11 -0
  47. package/dist/components/QuestionCardPanel/index.d.ts.map +1 -0
  48. package/dist/components/QuestionCardPanel/index.js +17 -0
  49. package/dist/components/QuestionCardPanel/index.js.map +1 -0
  50. package/dist/components/QuickActionButton/index.d.ts +6 -0
  51. package/dist/components/QuickActionButton/index.d.ts.map +1 -0
  52. package/dist/components/QuickActionButton/index.js +7 -0
  53. package/dist/components/QuickActionButton/index.js.map +1 -0
  54. package/dist/components/QuickActionsArea/index.d.ts +8 -0
  55. package/dist/components/QuickActionsArea/index.d.ts.map +1 -0
  56. package/dist/components/QuickActionsArea/index.js +10 -0
  57. package/dist/components/QuickActionsArea/index.js.map +1 -0
  58. package/dist/components/RegenerateMessageButton/index.d.ts +3 -0
  59. package/dist/components/RegenerateMessageButton/index.d.ts.map +1 -0
  60. package/dist/components/RegenerateMessageButton/index.js +7 -0
  61. package/dist/components/RegenerateMessageButton/index.js.map +1 -0
  62. package/dist/components/RichText/index.d.ts +6 -0
  63. package/dist/components/RichText/index.d.ts.map +1 -0
  64. package/dist/components/RichText/index.js +113 -0
  65. package/dist/components/RichText/index.js.map +1 -0
  66. package/dist/components/TimeEstimateCard/index.d.ts +7 -0
  67. package/dist/components/TimeEstimateCard/index.d.ts.map +1 -0
  68. package/dist/components/TimeEstimateCard/index.js +14 -0
  69. package/dist/components/TimeEstimateCard/index.js.map +1 -0
  70. package/dist/components/UploadDocumentButton/index.d.ts +3 -0
  71. package/dist/components/UploadDocumentButton/index.d.ts.map +1 -0
  72. package/dist/components/UploadDocumentButton/index.js +7 -0
  73. package/dist/components/UploadDocumentButton/index.js.map +1 -0
  74. package/dist/components/primitives/Avatar.d.ts +8 -0
  75. package/dist/components/primitives/Avatar.d.ts.map +1 -0
  76. package/dist/components/primitives/Avatar.js +6 -0
  77. package/dist/components/primitives/Avatar.js.map +1 -0
  78. package/dist/components/primitives/Button.d.ts +12 -0
  79. package/dist/components/primitives/Button.d.ts.map +1 -0
  80. package/dist/components/primitives/Button.js +34 -0
  81. package/dist/components/primitives/Button.js.map +1 -0
  82. package/dist/components/primitives/Dialog.d.ts +11 -0
  83. package/dist/components/primitives/Dialog.d.ts.map +1 -0
  84. package/dist/components/primitives/Dialog.js +16 -0
  85. package/dist/components/primitives/Dialog.js.map +1 -0
  86. package/dist/components/primitives/index.d.ts +4 -0
  87. package/dist/components/primitives/index.d.ts.map +1 -0
  88. package/dist/components/primitives/index.js +4 -0
  89. package/dist/components/primitives/index.js.map +1 -0
  90. package/dist/index.d.ts +20 -0
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +20 -0
  93. package/dist/index.js.map +1 -0
  94. package/dist/lib/utils.d.ts +3 -0
  95. package/dist/lib/utils.d.ts.map +1 -0
  96. package/dist/lib/utils.js +6 -0
  97. package/dist/lib/utils.js.map +1 -0
  98. package/dist/types.d.ts +126 -0
  99. package/dist/types.d.ts.map +1 -0
  100. package/dist/types.js +2 -0
  101. package/dist/types.js.map +1 -0
  102. package/package.json +52 -0
  103. package/src/styles.css +107 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../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S,IAAI,0BAA0B,CACxD,YAED,KAAC,eAAe,IAAC,IAAI,EAAE,IAAI,GAAI,IAR1B,IAAI,CAAC,EAAE,CAST,CACN,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CardShellProps {
3
+ label: string;
4
+ description?: string;
5
+ remaining: number;
6
+ total: number;
7
+ allAnswered: boolean;
8
+ disabled?: boolean;
9
+ onSubmit: () => void;
10
+ className?: string;
11
+ children: ReactNode;
12
+ }
13
+ export declare function CardShell({ label, description, remaining, total, allAnswered, disabled, onSubmit, className, children, }: CardShellProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=CardShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardShell.d.ts","sourceRoot":"","sources":["../../../src/components/QuestionCardPanel/CardShell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE,cAAc,+BAwChB"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check, ClipboardList } from "lucide-react";
3
+ import { cn } from "../../lib/utils";
4
+ import { Button } from "../primitives/Button";
5
+ export function CardShell({ label, description, remaining, total, allAnswered, disabled, onSubmit, className, children, }) {
6
+ return (_jsxs("section", { className: cn("w-full max-w-2xl animate-agent-in rounded-[1.25rem] border border-border bg-card/95 p-3 shadow-[0_14px_36px_hsl(var(--foreground)/0.08)] backdrop-blur-xl", className), children: [_jsxs("div", { className: "flex min-w-0 items-start gap-2.5", children: [_jsx("span", { className: "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-xl border border-primary/15 bg-primary/10 text-primary", children: _jsx(ClipboardList, { className: "h-4 w-4" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "text-sm font-semibold text-foreground", children: label }), description && (_jsx("p", { className: "mt-0.5 text-xs leading-5 text-muted-foreground", children: description }))] })] }), _jsx("div", { className: "admission-scrollbar mt-3 max-h-[40vh] overflow-y-auto rounded-xl border border-border bg-background/70 px-3 sm:max-h-[19rem]", children: children }), _jsxs("div", { className: "mt-3 flex items-center justify-between gap-3", children: [_jsx("p", { className: "text-xs text-muted-foreground", children: allAnswered ? "Listo para confirmar." : `Faltan ${remaining} de ${total}` }), _jsxs(Button, { type: "button", disabled: disabled || !allAnswered, onClick: onSubmit, className: "rounded-full", children: [_jsx(Check, { className: "h-4 w-4" }), "Confirmar"] })] })] }));
7
+ }
8
+ //# sourceMappingURL=CardShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardShell.js","sourceRoot":"","sources":["../../../src/components/QuestionCardPanel/CardShell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAc9C,MAAM,UAAU,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,GACO;IACf,OAAO,CACL,mBACE,SAAS,EAAE,EAAE,CACX,2JAA2J,EAC3J,SAAS,CACV,aAED,eAAK,SAAS,EAAC,kCAAkC,aAC/C,eAAM,SAAS,EAAC,yHAAyH,YACvI,KAAC,aAAa,IAAC,SAAS,EAAC,SAAS,GAAG,GAChC,EACP,eAAK,SAAS,EAAC,SAAS,aACtB,YAAG,SAAS,EAAC,uCAAuC,YAAE,KAAK,GAAK,EAC/D,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,gDAAgD,YAAE,WAAW,GAAK,CAChF,IACG,IACF,EAEN,cAAK,SAAS,EAAC,8HAA8H,YAC1I,QAAQ,GACL,EAEN,eAAK,SAAS,EAAC,8CAA8C,aAC3D,YAAG,SAAS,EAAC,+BAA+B,YACzC,WAAW,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,UAAU,SAAS,OAAO,KAAK,EAAE,GACxE,EACJ,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,QAAQ,IAAI,CAAC,WAAW,EAClC,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAC,cAAc,aAExB,KAAC,KAAK,IAAC,SAAS,EAAC,SAAS,GAAG,iBAEtB,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { QuestionCardWidget } from "../../types";
2
+ export interface QuestionCardPanelProps {
3
+ widget: QuestionCardWidget;
4
+ answers: Record<string, string>;
5
+ onAnswer: (fieldId: string, value: string) => void;
6
+ onSubmit: (answers: Record<string, string>) => void;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ }
10
+ export declare function QuestionCardPanel({ widget, answers, onAnswer, onSubmit, disabled, className, }: QuestionCardPanelProps): import("react").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QuestionCardPanel/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,+BAkDxB"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ import { CardShell } from "./CardShell";
4
+ export function QuestionCardPanel({ widget, answers, onAnswer, onSubmit, disabled, className, }) {
5
+ const totalFields = widget.fields.length;
6
+ const answeredCount = Object.keys(answers).length;
7
+ const allAnswered = answeredCount >= totalFields;
8
+ const remaining = totalFields - answeredCount;
9
+ return (_jsx(CardShell, { label: widget.label, description: widget.description, remaining: remaining, total: totalFields, allAnswered: allAnswered, disabled: disabled, onSubmit: () => onSubmit(answers), className: className, children: _jsx("div", { className: "flex flex-col divide-y divide-border/40", children: widget.fields.map((field) => {
10
+ const fieldOptions = field.options ?? ["Sí", "No"];
11
+ const answer = answers[field.fieldId];
12
+ return (_jsxs("div", { className: "flex items-center justify-between gap-3 py-3", children: [_jsx("span", { className: "text-sm text-foreground", children: field.label }), _jsx("div", { className: "flex shrink-0 gap-1.5", children: fieldOptions.map((option) => (_jsx("button", { type: "button", disabled: disabled, onClick: () => onAnswer(field.fieldId, option), "aria-pressed": answer === option, className: cn("flex h-9 min-w-[3rem] items-center justify-center rounded-full border px-3 text-sm font-medium transition-all duration-150", answer === option
13
+ ? "border-primary bg-primary text-primary-foreground"
14
+ : "border-border bg-background text-foreground hover:border-primary/40 hover:text-primary", disabled && "cursor-not-allowed opacity-60"), children: option }, option))) })] }, field.fieldId));
15
+ }) }) }));
16
+ }
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuestionCardPanel/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,MAAM,UAAU,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACc;IACvB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,WAAW,GAAG,aAAa,IAAI,WAAW,CAAC;IACjD,MAAM,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;IAE9C,OAAO,CACL,KAAC,SAAS,IACR,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,EACjC,SAAS,EAAE,SAAS,YAEpB,cAAK,SAAS,EAAC,yCAAyC,YACrD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC3B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACnD,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBACtC,OAAO,CACL,eAAyB,SAAS,EAAC,8CAA8C,aAC/E,eAAM,SAAS,EAAC,yBAAyB,YAAE,KAAK,CAAC,KAAK,GAAQ,EAC9D,cAAK,SAAS,EAAC,uBAAuB,YACnC,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAC5B,iBAEE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,kBAChC,MAAM,KAAK,MAAM,EAC/B,SAAS,EAAE,EAAE,CACX,4HAA4H,EAC5H,MAAM,KAAK,MAAM;oCACf,CAAC,CAAC,mDAAmD;oCACrD,CAAC,CAAC,wFAAwF,EAC5F,QAAQ,IAAI,+BAA+B,CAC5C,YAEA,MAAM,IAbF,MAAM,CAcJ,CACV,CAAC,GACE,KArBE,KAAK,CAAC,OAAO,CAsBjB,CACP,CAAC;YACJ,CAAC,CAAC,GACE,GACI,CACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from "react";
2
+ export interface QuickActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ icon?: ReactNode;
4
+ }
5
+ export declare function QuickActionButton({ icon, children, className, ...props }: QuickActionButtonProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QuickActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK7D,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACrF,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAgBhG"}
@@ -0,0 +1,7 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ import { Button } from "../primitives/Button";
4
+ export function QuickActionButton({ icon, children, className, ...props }) {
5
+ return (_jsxs(Button, { type: "button", variant: "outline", size: "sm", className: cn("h-10 shrink-0 rounded-full border-primary/15 bg-card/90 px-4 text-xs shadow-xs backdrop-blur-sm transition-all duration-300 hover:-translate-y-0.5 hover:border-primary/40 hover:bg-primary/5 hover:shadow-md", className), ...props, children: [icon, children] }));
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickActionButton/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAM9C,MAAM,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAA0B;IAC/F,OAAO,CACL,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,EAAE,CACX,+MAA+M,EAC/M,SAAS,CACV,KACG,KAAK,aAER,IAAI,EACJ,QAAQ,IACF,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { QuickAction } from "../../types";
2
+ export interface QuickActionsAreaProps {
3
+ actions: QuickAction[];
4
+ onAction: (action: QuickAction) => void;
5
+ className?: string;
6
+ }
7
+ export declare function QuickActionsArea({ actions, onAction, className }: QuickActionsAreaProps): import("react").JSX.Element | null;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QuickActionsArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,sCAqBvF"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ import { QuickActionButton } from "../QuickActionButton";
4
+ export function QuickActionsArea({ actions, onAction, className }) {
5
+ if (!actions.length) {
6
+ return null;
7
+ }
8
+ return (_jsx("div", { className: cn("relative z-10 px-4 pb-2 sm:px-6", className), children: _jsx("div", { className: "admission-scrollbar mx-auto flex max-w-4xl gap-2 overflow-x-auto px-0.5 py-2", children: actions.map((action) => (_jsx(QuickActionButton, { icon: action.icon, disabled: action.disabled, onClick: () => onAction(action), children: action.label }, action.id))) }) }));
9
+ }
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickActionsArea/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAQzD,MAAM,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAyB;IACtF,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,iCAAiC,EAAE,SAAS,CAAC,YAC9D,cAAK,SAAS,EAAC,8EAA8E,YAC1F,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,KAAC,iBAAiB,IAEhB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,YAE9B,MAAM,CAAC,KAAK,IALR,MAAM,CAAC,EAAE,CAMI,CACrB,CAAC,GACE,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonHTMLAttributes } from "react";
2
+ export declare function RegenerateMessageButton(props: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RegenerateMessageButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIlD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,+BAOrF"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { RotateCcw } from "lucide-react";
3
+ import { Button } from "../primitives/Button";
4
+ export function RegenerateMessageButton(props) {
5
+ return (_jsxs(Button, { type: "button", variant: "ghost", size: "sm", ...props, children: [_jsx(RotateCcw, { className: "h-4 w-4" }), "Regenerar respuesta"] }));
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RegenerateMessageButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,UAAU,uBAAuB,CAAC,KAA8C;IACpF,OAAO,CACL,MAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,KAAK,KAAK,aACvD,KAAC,SAAS,IAAC,SAAS,EAAC,SAAS,GAAG,2BAE1B,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface RichTextProps {
2
+ content: string;
3
+ className?: string;
4
+ }
5
+ export declare function RichText({ content, className }: RichTextProps): import("react").JSX.Element | null;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RichText/index.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,aAAa,sCAY7D"}
@@ -0,0 +1,113 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ export function RichText({ content, className }) {
4
+ const blocks = parseBlocks(content);
5
+ if (!blocks.length) {
6
+ return null;
7
+ }
8
+ return (_jsx("div", { className: cn("space-y-3 break-words text-sm leading-7", className), children: blocks.map((block, index) => renderBlock(block, index)) }));
9
+ }
10
+ function parseBlocks(content) {
11
+ const lines = content.replace(/\r\n/g, "\n").split("\n");
12
+ const blocks = [];
13
+ let index = 0;
14
+ while (index < lines.length) {
15
+ const line = lines[index] ?? "";
16
+ const trimmed = line.trim();
17
+ if (!trimmed) {
18
+ index += 1;
19
+ continue;
20
+ }
21
+ const heading = /^(#{1,3})\s+(.+)$/.exec(trimmed);
22
+ if (heading) {
23
+ blocks.push({
24
+ type: "heading",
25
+ level: heading[1].length,
26
+ text: heading[2]
27
+ });
28
+ index += 1;
29
+ continue;
30
+ }
31
+ if (/^[-*]\s+/.test(trimmed)) {
32
+ const items = [];
33
+ while (index < lines.length && /^[-*]\s+/.test(lines[index]?.trim() ?? "")) {
34
+ items.push((lines[index] ?? "").trim().replace(/^[-*]\s+/, ""));
35
+ index += 1;
36
+ }
37
+ blocks.push({ type: "list", ordered: false, items });
38
+ continue;
39
+ }
40
+ if (/^\d+\.\s+/.test(trimmed)) {
41
+ const items = [];
42
+ while (index < lines.length && /^\d+\.\s+/.test(lines[index]?.trim() ?? "")) {
43
+ items.push((lines[index] ?? "").trim().replace(/^\d+\.\s+/, ""));
44
+ index += 1;
45
+ }
46
+ blocks.push({ type: "list", ordered: true, items });
47
+ continue;
48
+ }
49
+ const paragraph = [];
50
+ while (index < lines.length) {
51
+ const current = lines[index] ?? "";
52
+ const currentTrimmed = current.trim();
53
+ if (!currentTrimmed ||
54
+ /^(#{1,3})\s+/.test(currentTrimmed) ||
55
+ /^[-*]\s+/.test(currentTrimmed) ||
56
+ /^\d+\.\s+/.test(currentTrimmed)) {
57
+ break;
58
+ }
59
+ paragraph.push(current);
60
+ index += 1;
61
+ }
62
+ blocks.push({ type: "paragraph", lines: paragraph });
63
+ }
64
+ return blocks;
65
+ }
66
+ function renderBlock(block, index) {
67
+ switch (block.type) {
68
+ case "heading": {
69
+ const Heading = `h${block.level}`;
70
+ return (_jsx(Heading, { className: cn("font-semibold tracking-normal text-foreground", block.level === 1 && "text-xl leading-8", block.level === 2 && "text-lg leading-7", block.level === 3 && "text-base leading-7"), children: renderInline(block.text) }, index));
71
+ }
72
+ case "list": {
73
+ const List = block.ordered ? "ol" : "ul";
74
+ return (_jsx(List, { className: cn("space-y-1 pl-5 text-muted-foreground", block.ordered ? "list-decimal" : "list-disc"), children: block.items.map((item, itemIndex) => (_jsx("li", { className: "pl-1", children: renderInline(item) }, `${index}-${itemIndex}`))) }, index));
75
+ }
76
+ case "paragraph":
77
+ return (_jsx("p", { className: "text-muted-foreground", children: block.lines.map((line, lineIndex) => (_jsxs("span", { children: [lineIndex > 0 ? _jsx("br", {}) : null, renderInline(line)] }, `${index}-${lineIndex}`))) }, index));
78
+ }
79
+ }
80
+ function renderInline(text) {
81
+ const nodes = [];
82
+ const pattern = /(\*\*[^*]+\*\*|__[^_]+__|\*[^*]+\*|_[^_]+_|`[^`]+`|\[[^\]]+\]\([^)]+\))/g;
83
+ let cursor = 0;
84
+ let match;
85
+ while ((match = pattern.exec(text)) !== null) {
86
+ if (match.index > cursor) {
87
+ nodes.push(text.slice(cursor, match.index));
88
+ }
89
+ const token = match[0];
90
+ const key = `${match.index}-${token}`;
91
+ if (token.startsWith("**") || token.startsWith("__")) {
92
+ nodes.push(_jsx("strong", { className: "font-semibold text-foreground", children: token.slice(2, -2) }, key));
93
+ }
94
+ else if (token.startsWith("*") || token.startsWith("_")) {
95
+ nodes.push(_jsx("em", { className: "italic text-foreground", children: token.slice(1, -1) }, key));
96
+ }
97
+ else if (token.startsWith("`")) {
98
+ nodes.push(_jsx("code", { className: "rounded-md bg-muted px-1.5 py-0.5 text-[0.92em] text-foreground", children: token.slice(1, -1) }, key));
99
+ }
100
+ else {
101
+ const link = /^\[([^\]]+)\]\(([^)]+)\)$/.exec(token);
102
+ if (link) {
103
+ nodes.push(_jsx("a", { href: link[2], target: "_blank", rel: "noreferrer", className: "font-medium text-primary underline underline-offset-4", children: link[1] }, key));
104
+ }
105
+ }
106
+ cursor = match.index + token.length;
107
+ }
108
+ if (cursor < text.length) {
109
+ nodes.push(text.slice(cursor));
110
+ }
111
+ return nodes;
112
+ }
113
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RichText/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAYrC,MAAM,UAAU,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAiB;IAC5D,MAAM,MAAM,GAAG,WAA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type { PreadmissionTimeEstimate } from '../../types';
2
+ export interface TimeEstimateCardProps {
3
+ estimate: PreadmissionTimeEstimate;
4
+ className?: string;
5
+ }
6
+ export declare function TimeEstimateCard({ estimate, className }: TimeEstimateCardProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TimeEstimateCard/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAG5D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CA6F9E"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckCircle2, Clock3, Hourglass, ListChecks } from 'lucide-react';
3
+ import { cn } from '../../lib/utils';
4
+ export function TimeEstimateCard({ estimate, className }) {
5
+ const progress = clampPercentage(estimate.progressPercentage);
6
+ return (_jsxs("section", { className: cn('mt-4 overflow-hidden rounded-lg border border-primary/20 bg-card/95 shadow-[0_0_0_1px_hsl(var(--primary)/0.04),0_14px_34px_hsl(var(--foreground)/0.08)]', className), children: [_jsx("div", { className: "border-b border-primary/10 bg-primary/[0.04] px-4 py-3", children: _jsxs("div", { className: "flex items-start gap-3", children: [_jsx("span", { className: "mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary", children: _jsx(Clock3, { className: "h-5 w-5" }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [_jsx("h3", { className: "text-sm font-semibold text-foreground", children: estimate.title }), _jsxs("span", { className: "rounded-full border border-primary/15 bg-background/70 px-2 py-0.5 text-[0.7rem] font-medium text-primary", children: [progress, "% listo"] })] }), estimate.description ? (_jsx("p", { className: "mt-1 text-xs leading-5 text-muted-foreground", children: estimate.description })) : null] })] }) }), _jsxs("div", { className: "grid gap-3 p-3 sm:grid-cols-[1fr_1.15fr]", children: [_jsxs("div", { className: "rounded-lg border border-border/80 bg-background/80 p-3", children: [_jsxs("div", { className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: [_jsx(Hourglass, { className: "h-3.5 w-3.5" }), _jsx("span", { children: "Tiempo restante" })] }), _jsx("p", { className: "mt-3 text-2xl font-semibold leading-none text-foreground", children: estimate.estimatedRemainingLabel }), _jsxs("p", { className: "mt-2 text-xs leading-5 text-muted-foreground", children: ["Flujo completo estimado en ", estimate.estimatedTotalLabel, "."] }), _jsx("div", { className: "mt-4 h-2 overflow-hidden rounded-full bg-muted", children: _jsx("span", { className: "block h-full rounded-full bg-primary transition-all duration-700 ease-out", style: { width: `${progress}%` } }) }), _jsxs("div", { className: "mt-3 flex items-center justify-between text-xs text-muted-foreground", children: [_jsxs("span", { children: [estimate.completedSteps, " completados"] }), _jsxs("span", { children: [estimate.pendingSteps, " pendientes"] })] })] }), _jsxs("div", { className: "rounded-lg border border-border/80 bg-background/80 p-3", children: [_jsxs("div", { className: "mb-3 flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: [_jsx(ListChecks, { className: "h-3.5 w-3.5" }), _jsx("span", { children: "Detalle" })] }), _jsx("div", { className: "space-y-2", children: estimate.breakdown.map((item) => {
7
+ const itemProgress = item.total > 0 ? clampPercentage(Math.round((item.completed / item.total) * 100)) : 0;
8
+ return (_jsxs("div", { className: "rounded-md border border-border/70 bg-card/80 p-2.5", children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium text-foreground", children: item.label }), _jsxs("p", { className: "mt-0.5 text-xs text-muted-foreground", children: [item.completed, "/", item.total, " completados"] })] }), _jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-[0.7rem] font-medium text-muted-foreground", children: item.estimatedRemainingLabel })] }), _jsx("div", { className: "mt-2 h-1.5 overflow-hidden rounded-full bg-muted", children: _jsx("span", { className: "block h-full rounded-full bg-primary/80 transition-all duration-700 ease-out", style: { width: `${itemProgress}%` } }) })] }, item.id));
9
+ }) })] })] }), _jsxs("div", { className: "flex items-center gap-2 border-t border-primary/10 bg-primary/[0.035] px-4 py-3 text-xs font-medium text-muted-foreground", children: [_jsx(CheckCircle2, { className: "h-4 w-4 shrink-0 text-primary" }), _jsx("span", { children: "Estimaci\u00F3n orientativa; puede variar seg\u00FAn los documentos que tengas a mano." })] })] }));
10
+ }
11
+ function clampPercentage(value) {
12
+ return Math.max(0, Math.min(value, 100));
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TimeEstimateCard/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG3E,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAOrC,MAAM,UAAU,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAyB;IAC7E,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAE9D,OAAO,CACL,mBACE,SAAS,EAAE,EAAE,CACX,yJAAyJ,EACzJ,SAAS,CACV,aAED,cAAK,SAAS,EAAC,wDAAwD,YACrE,eAAK,SAAS,EAAC,wBAAwB,aACrC,eAAM,SAAS,EAAC,gGAAgG,YAC9G,KAAC,MAAM,IAAC,SAAS,EAAC,SAAS,GAAG,GACzB,EACP,eAAK,SAAS,EAAC,gBAAgB,aAC7B,eAAK,SAAS,EAAC,6CAA6C,aAC1D,aAAI,SAAS,EAAC,uCAAuC,Y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AAC,CAAC,CAAC,CAAC;oCAC3G,OAAO,CACL,eAAmB,SAAS,EAAC,qDAAqD,aAChF,eAAK,SAAS,EAAC,wCAAwC,aACrD,0BACE,YAAG,SAAS,EAAC,qCAAqC,YAAE,IAAI,CAAC,KAAK,GAAK,EACnE,aAAG,SAAS,EAAC,sCAAsC,aAChD,IAAI,CAAC,SAAS,OAAG,IAAI,CAAC,KAAK,oBAC1B,IACA,EACN,eAAM,SAAS,EAAC,4FAA4F,YACzG,IAAI,CAAC,uBAAuB,GACxB,IACH,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,eACE,SAAS,EAAC,8EAA8E,EACxF,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,YAAY,GAAG,EAAE,GACpC,GACE,KAjBE,IAAI,CAAC,EAAE,CAkBX,CACP,CAAC;gCACJ,CAAC,CAAC,GACE,IACF,IACF,EAEN,eAAK,SAAS,EAAC,2HAA2H,aACxI,KAAC,YAAY,IAAC,SAAS,EAAC,+BAA+B,GAAG,EAC1D,oHAAyF,IACrF,IACE,CACX,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonHTMLAttributes } from "react";
2
+ export declare function UploadDocumentButton(props: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UploadDocumentButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIlD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,+BAMlF"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Upload } from "lucide-react";
3
+ import { Button } from "../primitives/Button";
4
+ export function UploadDocumentButton(props) {
5
+ return (_jsx(Button, { type: "button", variant: "ghost", size: "icon", "aria-label": "Subir documento", ...props, children: _jsx(Upload, { className: "h-4 w-4" }) }));
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UploadDocumentButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,UAAU,oBAAoB,CAAC,KAA8C;IACjF,OAAO,CACL,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAY,iBAAiB,KAAK,KAAK,YACtF,KAAC,MAAM,IAAC,SAAS,EAAC,SAAS,GAAG,GACvB,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
3
+ src?: string;
4
+ alt: string;
5
+ fallback?: string;
6
+ }
7
+ export declare function Avatar({ src, alt, fallback, className, ...props }: AvatarProps): import("react").JSX.Element;
8
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAgB9E"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ export function Avatar({ src, alt, fallback, className, ...props }) {
4
+ return (_jsx("div", { className: cn("flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted text-sm font-semibold text-muted-foreground", className), ...props, children: src ? (_jsx("img", { src: src, alt: alt, className: "h-full w-full object-cover" })) : (_jsx("span", { children: fallback ?? alt.slice(0, 2).toUpperCase() })) }));
5
+ }
6
+ //# sourceMappingURL=Avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/primitives/Avatar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAQrC,MAAM,UAAU,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe;IAC7E,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,0JAA0J,EAC1J,SAAS,CACV,KACG,KAAK,YAER,GAAG,CAAC,CAAC,CAAC,CACL,cAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAC,4BAA4B,GAAG,CACnE,CAAC,CAAC,CAAC,CACF,yBAAO,QAAQ,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAQ,CACzD,GACG,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "glow" | null | undefined;
5
+ size?: "default" | "sm" | "icon" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { buttonVariants };
12
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EAwBnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,uFAWlB,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../../lib/utils";
6
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background", {
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
10
+ secondary: "bg-muted text-foreground hover:bg-muted/80",
11
+ outline: "border border-input bg-background hover:bg-muted",
12
+ ghost: "hover:bg-muted hover:text-foreground",
13
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
14
+ glow: "bg-primary text-primary-foreground shadow-glow hover:bg-primary/90"
15
+ },
16
+ size: {
17
+ default: "h-10 px-4 py-2",
18
+ sm: "h-9 px-3",
19
+ icon: "h-10 w-10",
20
+ lg: "h-11 px-5"
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ variant: "default",
25
+ size: "default"
26
+ }
27
+ });
28
+ export const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
29
+ const Comp = asChild ? Slot : "button";
30
+ return (_jsx(Comp, { ref: ref, className: cn(buttonVariants({ variant, size, className })), ...props }));
31
+ });
32
+ Button.displayName = "Button";
33
+ export { buttonVariants };
34
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/primitives/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,cAAc,GAAG,GAAG,CACxB,2RAA2R,EAC3R;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,kEAAkE;YAC3E,SAAS,EAAE,4CAA4C;YACvD,OAAO,EAAE,kDAAkD;YAC3D,KAAK,EAAE,sCAAsC;YAC7C,WAAW,EAAE,oEAAoE;YACjF,IAAI,EAAE,oEAAoE;SAC3E;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,gBAAgB;YACzB,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,EAAE,EAAE,WAAW;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AAQF,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvC,OAAO,CACL,KAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,KACvD,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
2
+ import * as React from "react";
3
+ export declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
7
+ export declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const DialogTitle: React.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
10
+ export declare const DialogDescription: React.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
11
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,MAAM,uCAAuB,CAAC;AAC3C,eAAO,MAAM,aAAa,8GAA0B,CAAC;AACrD,eAAO,MAAM,WAAW,4GAAwB,CAAC;AAEjD,eAAO,MAAM,YAAY,6CAAyB,CAAC;AAEnD,eAAO,MAAM,aAAa,8JAYxB,CAAC;AAGH,eAAO,MAAM,aAAa,8JAqBxB,CAAC;AAGH,eAAO,MAAM,WAAW,6GAAwB,CAAC;AACjD,eAAO,MAAM,iBAAiB,qHAA8B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ import { X } from "lucide-react";
4
+ import * as React from "react";
5
+ import { cn } from "../../lib/utils";
6
+ export const Dialog = DialogPrimitive.Root;
7
+ export const DialogTrigger = DialogPrimitive.Trigger;
8
+ export const DialogClose = DialogPrimitive.Close;
9
+ export const DialogPortal = DialogPrimitive.Portal;
10
+ export const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xl data-[state=open]:animate-agent-in", className), ...props })));
11
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
12
+ export const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { ref: ref, className: cn("fixed left-1/2 top-1/2 z-50 grid max-h-[90dvh] w-[min(1100px,calc(100vw-24px))] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border border-border bg-card p-4 text-card-foreground shadow-glow outline-none data-[state=open]:animate-agent-in sm:p-6", className), ...props, children: [children, _jsxs(DialogPrimitive.Close, { className: "absolute right-3 top-3 rounded-md p-2 text-muted-foreground transition hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: [_jsx(X, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Cerrar" })] })] })] })));
13
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
14
+ export const DialogTitle = DialogPrimitive.Title;
15
+ export const DialogDescription = DialogPrimitive.Description;
16
+ //# sourceMappingURL=Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/primitives/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC;AAC3C,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC;AACrD,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AAEjD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAG3C,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,OAAO,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,yFAAyF,EACzF,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAG3C,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5C,MAAC,YAAY,eACX,KAAC,aAAa,KAAG,EACjB,MAAC,eAAe,CAAC,OAAO,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,6PAA6P,EAC7P,SAAS,CACV,KACG,KAAK,aAER,QAAQ,EACT,MAAC,eAAe,CAAC,KAAK,IAAC,SAAS,EAAC,qLAAqL,aACpN,KAAC,CAAC,IAAC,SAAS,EAAC,SAAS,GAAG,EACzB,eAAM,SAAS,EAAC,SAAS,uBAAc,IACjB,IACA,IACb,CAChB,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC;AAEhE,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./Avatar";
2
+ export * from "./Button";
3
+ export * from "./Dialog";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./Avatar";
2
+ export * from "./Button";
3
+ export * from "./Dialog";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ export * from "./components/AttachmentViewer";
2
+ export * from "./components/ChoiceCardPanel";
3
+ export * from "./components/QuestionCardPanel";
4
+ export * from "./components/CameraCapture";
5
+ export * from "./components/ChatInput";
6
+ export * from "./components/ConfirmationSummaryCard";
7
+ export * from "./components/ConsentViewer";
8
+ export * from "./components/FrontendWidgetsArea";
9
+ export * from "./components/MessageArea";
10
+ export * from "./components/MessageBubble";
11
+ export * from "./components/ProgressSteps";
12
+ export * from "./components/QuickActionsArea";
13
+ export * from "./components/QuickActionButton";
14
+ export * from "./components/RegenerateMessageButton";
15
+ export * from "./components/RichText";
16
+ export * from "./components/UploadDocumentButton";
17
+ export * from "./components/primitives";
18
+ export * from "./lib/utils";
19
+ export * from "./types";
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ export * from "./components/AttachmentViewer";
2
+ export * from "./components/ChoiceCardPanel";
3
+ export * from "./components/QuestionCardPanel";
4
+ export * from "./components/CameraCapture";
5
+ export * from "./components/ChatInput";
6
+ export * from "./components/ConfirmationSummaryCard";
7
+ export * from "./components/ConsentViewer";
8
+ export * from "./components/FrontendWidgetsArea";
9
+ export * from "./components/MessageArea";
10
+ export * from "./components/MessageBubble";
11
+ export * from "./components/ProgressSteps";
12
+ export * from "./components/QuickActionsArea";
13
+ export * from "./components/QuickActionButton";
14
+ export * from "./components/RegenerateMessageButton";
15
+ export * from "./components/RichText";
16
+ export * from "./components/UploadDocumentButton";
17
+ export * from "./components/primitives";
18
+ export * from "./lib/utils";
19
+ export * from "./types";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,6 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ //# sourceMappingURL=utils.js.map