From 4a5d3d0621c1b74ad523f62f9d9ddd02604fec16 Mon Sep 17 00:00:00 2001 From: Rogelio Date: Thu, 23 Oct 2025 19:55:47 +0000 Subject: [PATCH] styles-update --- dist/Card/Card.d.ts | 14 +++++++++++++- dist/Card/Card.js | 17 ++++++++-------- dist/ChatInterface/ChatInterface.d.ts | 3 +++ dist/ChatInterface/ChatInterface.js | 28 +++++++++++++++++++++++++++ dist/ChatInterface/index.d.ts | 2 ++ dist/ChatInterface/index.js | 1 + dist/Input/Input.d.ts | 8 ++++++++ dist/Input/Input.js | 8 ++++++++ dist/Input/index.d.ts | 2 ++ dist/Input/index.js | 1 + dist/Message/Message.d.ts | 9 +++++++++ dist/Message/Message.js | 7 +++++++ dist/Message/index.d.ts | 2 ++ dist/Message/index.js | 1 + dist/index.d.ts | 5 +++++ dist/index.js | 3 +++ dist/styles.css | 2 +- src/components/Message/index.ts | 2 +- src/components/index.ts | 4 +++- 19 files changed, 107 insertions(+), 12 deletions(-) create mode 100644 dist/ChatInterface/ChatInterface.d.ts create mode 100644 dist/ChatInterface/ChatInterface.js create mode 100644 dist/ChatInterface/index.d.ts create mode 100644 dist/ChatInterface/index.js create mode 100644 dist/Input/Input.d.ts create mode 100644 dist/Input/Input.js create mode 100644 dist/Input/index.d.ts create mode 100644 dist/Input/index.js create mode 100644 dist/Message/Message.d.ts create mode 100644 dist/Message/Message.js create mode 100644 dist/Message/index.d.ts create mode 100644 dist/Message/index.js diff --git a/dist/Card/Card.d.ts b/dist/Card/Card.d.ts index 3d7abe6..3757078 100644 --- a/dist/Card/Card.d.ts +++ b/dist/Card/Card.d.ts @@ -2,7 +2,19 @@ import React from 'react'; export interface CardProps { children: React.ReactNode; className?: string; - padding?: 'none' | 'sm' | 'md' | 'lg'; + hover?: boolean; } export declare const Card: React.FC; +export declare const CardHeader: React.FC<{ + children: React.ReactNode; + className?: string; +}>; +export declare const CardContent: React.FC<{ + children: React.ReactNode; + className?: string; +}>; +export declare const CardFooter: React.FC<{ + children: React.ReactNode; + className?: string; +}>; export default Card; diff --git a/dist/Card/Card.js b/dist/Card/Card.js index 2f99072..6371946 100644 --- a/dist/Card/Card.js +++ b/dist/Card/Card.js @@ -1,11 +1,12 @@ import { jsx as _jsx } from "react/jsx-runtime"; -export const Card = ({ children, className = '', padding = 'md' }) => { - const paddingClasses = { - none: '', - sm: 'p-3', - md: 'p-6', - lg: 'p-8' - }; - return (_jsx("div", { className: `bg-white rounded-xl shadow-lg border border-gray-200 ${paddingClasses[padding]} ${className}`, children: children })); +export const Card = ({ children, className = '', hover = false }) => { + return (_jsx("div", { className: ` + bg-white rounded-xl border border-gray-200 shadow-sm + ${hover ? 'hover:shadow-md transition-shadow duration-200' : ''} + ${className} + `, children: children })); }; +export const CardHeader = ({ children, className = '' }) => (_jsx("div", { className: `p-6 pb-4 ${className}`, children: children })); +export const CardContent = ({ children, className = '' }) => (_jsx("div", { className: `p-6 pt-0 ${className}`, children: children })); +export const CardFooter = ({ children, className = '' }) => (_jsx("div", { className: `p-6 pt-4 border-t border-gray-100 ${className}`, children: children })); export default Card; diff --git a/dist/ChatInterface/ChatInterface.d.ts b/dist/ChatInterface/ChatInterface.d.ts new file mode 100644 index 0000000..6d17790 --- /dev/null +++ b/dist/ChatInterface/ChatInterface.d.ts @@ -0,0 +1,3 @@ +import React from 'react'; +export declare const ChatInterface: React.FC; +export default ChatInterface; diff --git a/dist/ChatInterface/ChatInterface.js b/dist/ChatInterface/ChatInterface.js new file mode 100644 index 0000000..4bae2ec --- /dev/null +++ b/dist/ChatInterface/ChatInterface.js @@ -0,0 +1,28 @@ +import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; +import { useState } from 'react'; +import Message from '../Message'; +import Input from '../Input'; +import Button from '../Button'; +export const ChatInterface = () => { + const [message, setMessage] = useState(''); + const [messages, setMessages] = useState([ + { id: 1, text: '¡Hola! ¿En qué puedo ayudarte?', isOwn: false, timestamp: '10:00' }, + { id: 2, text: 'Me gustaría información sobre mis inversiones', isOwn: true, timestamp: '10:01' }, + ]); + const sendMessage = () => { + if (message.trim()) { + setMessages([ + ...messages, + { + id: messages.length + 1, + text: message, + isOwn: true, + timestamp: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) + } + ]); + setMessage(''); + } + }; + return (_jsxs("div", { className: "flex flex-col h-full bg-maya-background rounded-lg border border-gray-200", children: [_jsx("div", { className: "bg-white px-4 py-3 border-b border-gray-200 rounded-t-lg", children: _jsxs("div", { className: "flex items-center space-x-3", children: [_jsx("div", { className: "w-3 h-3 bg-maya-primary rounded-full" }), _jsx("h3", { className: "font-semibold text-gray-800", children: "Soporte Banorte" }), _jsx("div", { className: "w-2 h-2 bg-maya-success rounded-full" })] }) }), _jsx("div", { className: "flex-1 p-4 overflow-y-auto", children: messages.map((msg) => (_jsx(Message, { text: msg.text, isOwn: msg.isOwn, timestamp: msg.timestamp }, msg.id))) }), _jsx("div", { className: "bg-white p-4 border-t border-gray-200 rounded-b-lg", children: _jsxs("div", { className: "flex space-x-2", children: [_jsx(Input, { value: message, onChange: (e) => setMessage(e.target.value), placeholder: "Escribe tu mensaje...", className: "flex-1", onKeyPress: (e) => e.key === 'Enter' && sendMessage() }), _jsx(Button, { onClick: sendMessage, variant: "primary", children: "Enviar" })] }) })] })); +}; +export default ChatInterface; diff --git a/dist/ChatInterface/index.d.ts b/dist/ChatInterface/index.d.ts new file mode 100644 index 0000000..afef842 --- /dev/null +++ b/dist/ChatInterface/index.d.ts @@ -0,0 +1,2 @@ +export { default } from './ChatInterface'; +export type { ChatInterface } from './ChatInterface'; diff --git a/dist/ChatInterface/index.js b/dist/ChatInterface/index.js new file mode 100644 index 0000000..0d6cc34 --- /dev/null +++ b/dist/ChatInterface/index.js @@ -0,0 +1 @@ +export { default } from './ChatInterface'; diff --git a/dist/Input/Input.d.ts b/dist/Input/Input.d.ts new file mode 100644 index 0000000..ba4158f --- /dev/null +++ b/dist/Input/Input.d.ts @@ -0,0 +1,8 @@ +import React from 'react'; +export interface InputProps extends React.InputHTMLAttributes { + label?: string; + error?: string; + helperText?: string; +} +export declare const Input: React.ForwardRefExoticComponent>; +export default Input; diff --git a/dist/Input/Input.js b/dist/Input/Input.js new file mode 100644 index 0000000..63309e6 --- /dev/null +++ b/dist/Input/Input.js @@ -0,0 +1,8 @@ +import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; +import React from 'react'; +export const Input = React.forwardRef(({ label, error, helperText, className = '', ...props }, ref) => { + return (_jsxs("div", { className: "space-y-1", children: [label && (_jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: label })), _jsx("input", { ref: ref, className: `w-full px-3 py-2 border rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-maya-primary focus:border-transparent transition-all ${error + ? 'border-red-300 bg-red-50' + : 'border-gray-300 hover:border-gray-400'} ${className}`, ...props }), error && (_jsx("p", { className: "text-sm text-maya-danger", children: error })), helperText && !error && (_jsx("p", { className: "text-sm text-gray-500", children: helperText }))] })); +}); +export default Input; diff --git a/dist/Input/index.d.ts b/dist/Input/index.d.ts new file mode 100644 index 0000000..7e9cf60 --- /dev/null +++ b/dist/Input/index.d.ts @@ -0,0 +1,2 @@ +export { default } from './Input'; +export type { InputProps } from './Input'; diff --git a/dist/Input/index.js b/dist/Input/index.js new file mode 100644 index 0000000..a2e6049 --- /dev/null +++ b/dist/Input/index.js @@ -0,0 +1 @@ +export { default } from './Input'; diff --git a/dist/Message/Message.d.ts b/dist/Message/Message.d.ts new file mode 100644 index 0000000..3d9f7a3 --- /dev/null +++ b/dist/Message/Message.d.ts @@ -0,0 +1,9 @@ +import React from 'react'; +export interface MessageProps { + text: string; + isOwn?: boolean; + timestamp?: string; + status?: 'sent' | 'delivered' | 'read'; +} +export declare const Message: React.FC; +export default Message; diff --git a/dist/Message/Message.js b/dist/Message/Message.js new file mode 100644 index 0000000..3091934 --- /dev/null +++ b/dist/Message/Message.js @@ -0,0 +1,7 @@ +import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; +export const Message = ({ text, isOwn = false, timestamp, status = 'sent' }) => { + return (_jsx("div", { className: `flex ${isOwn ? 'justify-end' : 'justify-start'} mb-4`, children: _jsxs("div", { className: `max-w-xs lg:max-w-md px-4 py-2 rounded-2xl ${isOwn + ? 'bg-maya-primary text-white rounded-br-none' + : 'bg-maya-accent text-gray-800 rounded-bl-none'}`, children: [_jsx("p", { className: "text-sm", children: text }), _jsxs("div", { className: `flex items-center justify-end space-x-1 mt-1 ${isOwn ? 'text-red-100' : 'text-gray-500'}`, children: [_jsx("span", { className: "text-xs", children: timestamp }), isOwn && (_jsx("span", { className: "text-xs", children: status === 'read' ? '✓✓' : status === 'delivered' ? '✓✓' : '✓' }))] })] }) })); +}; +export default Message; diff --git a/dist/Message/index.d.ts b/dist/Message/index.d.ts new file mode 100644 index 0000000..7fe6c93 --- /dev/null +++ b/dist/Message/index.d.ts @@ -0,0 +1,2 @@ +export { default } from './Message'; +export type { MessageProps } from './Message'; diff --git a/dist/Message/index.js b/dist/Message/index.js new file mode 100644 index 0000000..a8132ba --- /dev/null +++ b/dist/Message/index.js @@ -0,0 +1 @@ +export { default } from './Message'; diff --git a/dist/index.d.ts b/dist/index.d.ts index bde3940..d2163d1 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,4 +1,9 @@ export { default as Button } from './Button'; export { default as Card } from './Card'; +export { default as Input } from './Input'; +export { default as Message } from './Message'; +export { default as ChatInterface } from './ChatInterface'; export type { ButtonProps } from './Button'; export type { CardProps } from './Card'; +export type { InputProps } from './Input'; +export type { MessageProps } from './Message'; diff --git a/dist/index.js b/dist/index.js index ad47fb9..e570531 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,6 @@ // src/index.ts export { default as Button } from './Button'; export { default as Card } from './Card'; +export { default as Input } from './Input'; +export { default as Message } from './Message'; +export { default as ChatInterface } from './ChatInterface'; diff --git a/dist/styles.css b/dist/styles.css index eb95fde..ac940f7 100644 --- a/dist/styles.css +++ b/dist/styles.css @@ -1,2 +1,2 @@ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: } -/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.inline-flex{display:inline-flex}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-maya-primary{--tw-border-opacity:1;border-color:rgb(239 41 69/var(--tw-border-opacity,1))}.bg-maya-danger{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-maya-primary{--tw-bg-opacity:1;background-color:rgb(239 41 69/var(--tw-bg-opacity,1))}.bg-maya-secondary{--tw-bg-opacity:1;background-color:rgb(104 77 61/var(--tw-bg-opacity,1))}.bg-maya-success{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-3{padding:.75rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-maya-primary{--tw-text-opacity:1;color:rgb(239 41 69/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline{outline-style:solid}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.hover\:bg-emerald-700:hover{--tw-bg-opacity:1;background-color:rgb(4 120 87/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-emerald-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(16 185 129/var(--tw-ring-opacity,1))}.focus\:ring-gray-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.focus\:ring-red-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(254 202 202/var(--tw-ring-opacity,1))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px} \ No newline at end of file +/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mt-1{margin-top:.25rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.h-2{height:.5rem}.h-3{height:.75rem}.h-full{height:100%}.w-2{width:.5rem}.w-3{width:.75rem}.w-full{width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem*var(--tw-space-x-reverse));margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br-none{border-bottom-right-radius:0}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-maya-primary{--tw-border-opacity:1;border-color:rgb(234 0 42/var(--tw-border-opacity,1))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-maya-accent{--tw-bg-opacity:1;background-color:rgb(199 201 201/var(--tw-bg-opacity,1))}.bg-maya-background{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.bg-maya-danger{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-maya-primary{--tw-bg-opacity:1;background-color:rgb(234 0 42/var(--tw-bg-opacity,1))}.bg-maya-secondary{--tw-bg-opacity:1;background-color:rgb(104 77 61/var(--tw-bg-opacity,1))}.bg-maya-success{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-maya-danger{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-maya-primary{--tw-text-opacity:1;color:rgb(234 0 42/var(--tw-text-opacity,1))}.text-red-100{--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.hover\:border-gray-400:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}.hover\:bg-emerald-700:hover{--tw-bg-opacity:1;background-color:rgb(4 120 87/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-emerald-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(16 185 129/var(--tw-ring-opacity,1))}.focus\:ring-gray-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity,1))}.focus\:ring-maya-primary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(234 0 42/var(--tw-ring-opacity,1))}.focus\:ring-red-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(254 202 202/var(--tw-ring-opacity,1))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}@media (min-width:1024px){.lg\:max-w-md{max-width:28rem}} \ No newline at end of file diff --git a/src/components/Message/index.ts b/src/components/Message/index.ts index 7ef56c7..4ee2be6 100644 --- a/src/components/Message/index.ts +++ b/src/components/Message/index.ts @@ -1,2 +1,2 @@ export { default } from './Message'; -export type { Message } from './Message'; \ No newline at end of file +export type { MessageProps } from './Message'; \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 0a17ea9..f10014e 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -2,8 +2,10 @@ export { default as Button } from './Button'; export { default as Card } from './Card'; export { default as Input } from './Input'; +export { default as Message } from './Message'; +export { default as ChatInterface } from './ChatInterface'; export type { ButtonProps } from './Button'; export type { CardProps } from './Card'; export type { InputProps } from './Input'; - +export type { MessageProps } from './Message'; \ No newline at end of file