@pubuduth-aplicy/chat-ui 2.1.14 → 2.1.15
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.
- package/package.json +4 -2
- package/postcss.config.mjs +8 -0
- package/src/components/Chat.tsx +1 -2
- package/src/style.css +3 -0
- package/tailwind.config.js +66 -0
- package/tsconfig.app.json +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubuduth-aplicy/chat-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
4
4
|
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"@types/react": "^19.0.10",
|
|
25
25
|
"@types/react-dom": "^19.0.4",
|
|
26
26
|
"@vitejs/plugin-react": "^4.3.4",
|
|
27
|
+
"autoprefixer": "^10.4.20",
|
|
27
28
|
"eslint": "^9.21.0",
|
|
28
29
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
29
30
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
30
31
|
"globals": "^15.15.0",
|
|
31
|
-
"
|
|
32
|
+
"tailwindcss": "^3.4.14",
|
|
33
|
+
"typescript": "^5.7.3",
|
|
32
34
|
"typescript-eslint": "^8.24.1",
|
|
33
35
|
"vite": "^6.2.0"
|
|
34
36
|
}
|
package/src/components/Chat.tsx
CHANGED
|
@@ -3,8 +3,7 @@ import MessageContainer from './messages/MessageContainer';
|
|
|
3
3
|
import { Sidebar } from './sidebar/Sidebar'
|
|
4
4
|
// import MessageContainer from './components/messages/MessageContainer'
|
|
5
5
|
// import useConversation from '../../zustand/useConversation';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import '../style.css'
|
|
8
7
|
|
|
9
8
|
export const Chat = () => {
|
|
10
9
|
const { selectedConversation } = useChatUIStore();
|
package/src/style.css
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
content: [
|
|
4
|
+
'./index.html',
|
|
5
|
+
'./src/**/*.{js,ts,jsx,tsx}',
|
|
6
|
+
'./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}',
|
|
7
|
+
],
|
|
8
|
+
theme: {
|
|
9
|
+
fontFamily: {
|
|
10
|
+
// primary: ['Roboto', 'sans-serif'],
|
|
11
|
+
primary: ['ui-sans-serif', 'system-ui', 'sans-serif', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"],
|
|
12
|
+
secondary: ['Montserrat', 'serif'],
|
|
13
|
+
// secondary: ['Dosis', 'serif'],
|
|
14
|
+
italic: ['Playfair Display', 'sans-serif'],
|
|
15
|
+
},
|
|
16
|
+
extend: {
|
|
17
|
+
colors: {
|
|
18
|
+
primary: '#12BBB5',
|
|
19
|
+
secondary: '#323232',
|
|
20
|
+
background: '#000000',
|
|
21
|
+
textGray:"#656B76",
|
|
22
|
+
bordercolor: '#EBECED',
|
|
23
|
+
graycolor: '#74788d',
|
|
24
|
+
white: '#ffffff',
|
|
25
|
+
textSecondary: '#595959',
|
|
26
|
+
},
|
|
27
|
+
container: {
|
|
28
|
+
center: true,
|
|
29
|
+
padding: {
|
|
30
|
+
DEFAULT: '1rem', // Default padding for all screens
|
|
31
|
+
sm: '1rem', // Padding for 'sm' screen size
|
|
32
|
+
lg: '2rem', // Padding for 'lg' and larger
|
|
33
|
+
},
|
|
34
|
+
screens: {
|
|
35
|
+
'2xl': '2048px',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
fontSize: {
|
|
40
|
+
xs: '.75rem', // 12px
|
|
41
|
+
sm: '.875rem', // 14px
|
|
42
|
+
base: '1rem', // 16px
|
|
43
|
+
lg: '1.125rem', // 18px
|
|
44
|
+
xl: '1.25rem', // 20px
|
|
45
|
+
title: '2rem', //32px
|
|
46
|
+
},
|
|
47
|
+
screens: {
|
|
48
|
+
xl: { max: '2048px' },
|
|
49
|
+
sm: { min: '320px' },
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
fontWeight: {
|
|
53
|
+
thin: '100',
|
|
54
|
+
extralight: '200',
|
|
55
|
+
light: '300',
|
|
56
|
+
normal: '400',
|
|
57
|
+
medium: '500',
|
|
58
|
+
semibold: '600',
|
|
59
|
+
bold: '700',
|
|
60
|
+
extrabold: '800',
|
|
61
|
+
black: '900',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
plugins: [],
|
|
66
|
+
};
|
package/tsconfig.app.json
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"useDefineForClassFields": true,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"resolveJsonModule": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
6
9
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
10
|
"module": "ESNext",
|
|
8
11
|
"skipLibCheck": true,
|