@usetrip/react-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.js +1112 -0
- package/dist/react-ui.css +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-editor-toolbar{background:#f9fafb;border-bottom:1px solid #e5e7eb;padding:8px 12px;display:flex;gap:4px;align-items:center;flex-wrap:wrap}.custom-editor-toolbar button{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:6px 10px;cursor:pointer;transition:all .2s ease;color:#374151;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;min-width:32px;height:32px}.custom-editor-toolbar button:hover{background:#f3f4f6;border-color:#d1d5db}.custom-editor-toolbar button:active{background:#e5e7eb;transform:scale(.98)}.custom-editor-toolbar button[data-active=true],.custom-editor-toolbar button.rsw-btn--active{background:#3b82f6;color:#fff;border-color:#2563eb}.custom-editor-toolbar button[data-active=true]:hover,.custom-editor-toolbar button.rsw-btn--active:hover{background:#2563eb}.custom-editor-container{background:#fff;border-radius:8px;overflow:hidden}.custom-editor-container .rsw-ce{padding:16px;min-height:120px;font-size:14px;line-height:1.6;color:#1f2937;outline:none}.custom-editor-container .rsw-ce:empty:before{color:#9ca3af;font-style:italic}.custom-editor-container .rsw-ce ul{list-style-type:disc;padding-left:24px;margin:8px 0}.custom-editor-container .rsw-ce ol{list-style-type:decimal;padding-left:24px;margin:8px 0}.custom-editor-container .rsw-ce li{margin:4px 0;padding-left:4px}.custom-editor-container .rsw-ce strong,.custom-editor-container .rsw-ce b{font-weight:600}.custom-editor-container .rsw-ce em,.custom-editor-container .rsw-ce i{font-style:italic}.custom-editor-container .rsw-ce u{text-decoration:underline}.custom-editor-container .rsw-ce s,.custom-editor-container .rsw-ce strike{text-decoration:line-through;opacity:.8}.custom-editor-container:focus-within .custom-editor-toolbar{background:#f3f4f6;border-bottom-color:#d1d5db}.custom-editor-toolbar>hr{border:none;border-left:1px solid #e5e7eb;height:24px;margin:0 8px}.custom-editor-toolbar button svg{width:16px;height:16px}.custom-editor-toolbar button:disabled{opacity:.5;cursor:not-allowed;background:#f9fafb}.custom-editor-toolbar button:disabled:hover{background:#f9fafb;border-color:#e5e7eb;transform:none}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@usetrip/react-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./dist/react-ui.css": {
|
|
15
|
+
"style": "./dist/react-ui.css",
|
|
16
|
+
"default": "./dist/react-ui.css"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build",
|
|
25
|
+
"type-check": "tsc --noEmit",
|
|
26
|
+
"preview": "vite preview"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@radix-ui/react-dialog": ">=1.0.0",
|
|
30
|
+
"@radix-ui/react-label": ">=2.0.0",
|
|
31
|
+
"@radix-ui/react-popover": ">=1.0.0",
|
|
32
|
+
"@radix-ui/react-slot": ">=1.0.0",
|
|
33
|
+
"class-variance-authority": ">=0.7.0",
|
|
34
|
+
"clsx": ">=2.0.0",
|
|
35
|
+
"date-fns": ">=4.0.0",
|
|
36
|
+
"lucide-react": ">=0.400.0",
|
|
37
|
+
"react": ">=19.0.0",
|
|
38
|
+
"react-day-picker": ">=9.0.0",
|
|
39
|
+
"react-dom": ">=19.0.0",
|
|
40
|
+
"react-icons": ">=5.0.0",
|
|
41
|
+
"react-router-dom": ">=7.0.0",
|
|
42
|
+
"react-simple-wysiwyg": ">=3.0.0",
|
|
43
|
+
"tailwind-merge": ">=3.0.0",
|
|
44
|
+
"tailwindcss": ">=4.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
48
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
49
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
50
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
51
|
+
"@tailwindcss/vite": "^4.1.7",
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"@types/react": "^19.1.2",
|
|
54
|
+
"@types/react-dom": "^19.1.2",
|
|
55
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
56
|
+
"class-variance-authority": "^0.7.1",
|
|
57
|
+
"clsx": "^2.1.1",
|
|
58
|
+
"date-fns": "^4.1.0",
|
|
59
|
+
"lucide-react": "^0.511.0",
|
|
60
|
+
"react": "^19.1.0",
|
|
61
|
+
"react-day-picker": "^9.7.0",
|
|
62
|
+
"react-dom": "^19.1.0",
|
|
63
|
+
"react-icons": "^5.5.0",
|
|
64
|
+
"react-router-dom": "^7.12.0",
|
|
65
|
+
"react-simple-wysiwyg": "^3.4.1",
|
|
66
|
+
"tailwind-merge": "^3.3.0",
|
|
67
|
+
"tailwindcss": "^4.1.7",
|
|
68
|
+
"tw-animate-css": "^1.4.0",
|
|
69
|
+
"typescript": "~5.8.3",
|
|
70
|
+
"vite": "^6.3.5",
|
|
71
|
+
"vite-plugin-dts": "^4.5.4"
|
|
72
|
+
}
|
|
73
|
+
}
|