@melv1c/ui-kit 0.0.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/README.md +65 -0
- package/dist/base.css +49 -0
- package/dist/chunk-2ZWQNZEN.cjs +63 -0
- package/dist/chunk-2ZWQNZEN.cjs.map +1 -0
- package/dist/chunk-4H5OSMBC.js +52 -0
- package/dist/chunk-4H5OSMBC.js.map +1 -0
- package/dist/chunk-GQ6Z5A4R.cjs +262 -0
- package/dist/chunk-GQ6Z5A4R.cjs.map +1 -0
- package/dist/chunk-I7WHASOO.cjs +13 -0
- package/dist/chunk-I7WHASOO.cjs.map +1 -0
- package/dist/chunk-PYHBC3IQ.js +17 -0
- package/dist/chunk-PYHBC3IQ.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q4GFV3J3.cjs +19 -0
- package/dist/chunk-Q4GFV3J3.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-QV4CTFLS.cjs +60 -0
- package/dist/chunk-QV4CTFLS.cjs.map +1 -0
- package/dist/chunk-RZJFYAJW.js +60 -0
- package/dist/chunk-RZJFYAJW.js.map +1 -0
- package/dist/chunk-WTLIXI2B.js +225 -0
- package/dist/chunk-WTLIXI2B.js.map +1 -0
- package/dist/chunk-WZ2GOU2J.js +11 -0
- package/dist/chunk-WZ2GOU2J.js.map +1 -0
- package/dist/code-diff-editor-IT2RMVDC.js +73 -0
- package/dist/code-diff-editor-IT2RMVDC.js.map +1 -0
- package/dist/code-diff-editor-J24VGXHL.cjs +75 -0
- package/dist/code-diff-editor-J24VGXHL.cjs.map +1 -0
- package/dist/code-editor-DK64HVFQ.cjs +84 -0
- package/dist/code-editor-DK64HVFQ.cjs.map +1 -0
- package/dist/code-editor-EJIJXZLN.js +82 -0
- package/dist/code-editor-EJIJXZLN.js.map +1 -0
- package/dist/index.cjs +4196 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +623 -0
- package/dist/index.d.ts +623 -0
- package/dist/index.js +3870 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/index.cjs +33 -0
- package/dist/locales/index.cjs.map +1 -0
- package/dist/locales/index.d.cts +43 -0
- package/dist/locales/index.d.ts +43 -0
- package/dist/locales/index.js +4 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/rich-text-editor-JUERRDHQ.js +442 -0
- package/dist/rich-text-editor-JUERRDHQ.js.map +1 -0
- package/dist/rich-text-editor-MOJDWQTI.cjs +451 -0
- package/dist/rich-text-editor-MOJDWQTI.cjs.map +1 -0
- package/dist/themes/claude.css +125 -0
- package/dist/themes/default.css +70 -0
- package/dist/themes/doom64.css +117 -0
- package/dist/themes/t3chat.css +125 -0
- package/dist/themes/twitter.css +127 -0
- package/dist/themes/vercel.css +117 -0
- package/package.json +166 -0
- package/styles.css +120 -0
package/package.json
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@melv1c/ui-kit",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "A collection of reusable UI components built around Tailwind CSS, shadcn components, and other popular libraries.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./base.css": "./dist/base.css",
|
|
16
|
+
"./themes/*.css": "./dist/themes/*.css",
|
|
17
|
+
"./styles.css": "./styles.css",
|
|
18
|
+
"./locales": {
|
|
19
|
+
"types": "./dist/locales/index.d.ts",
|
|
20
|
+
"import": "./dist/locales/index.js",
|
|
21
|
+
"require": "./dist/locales/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"styles.css",
|
|
27
|
+
"tailwind.preset.js"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "storybook dev -p 6006",
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"build:watch": "tsup --watch",
|
|
34
|
+
"clean": "rm -rf dist",
|
|
35
|
+
"lint": "eslint .",
|
|
36
|
+
"lint:fix": "eslint . --fix",
|
|
37
|
+
"format": "prettier --write .",
|
|
38
|
+
"format:check": "prettier --check .",
|
|
39
|
+
"storybook": "storybook dev -p 6006",
|
|
40
|
+
"build-storybook": "storybook build"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@monaco-editor/react": "^4.7.0",
|
|
44
|
+
"@tiptap/extension-link": "^3.0.0",
|
|
45
|
+
"@tiptap/extension-placeholder": "^3.0.0",
|
|
46
|
+
"@tiptap/extension-underline": "^3.0.0",
|
|
47
|
+
"@tiptap/react": "^3.0.0",
|
|
48
|
+
"@tiptap/starter-kit": "^3.0.0",
|
|
49
|
+
"monaco-editor": "^0.55.1",
|
|
50
|
+
"react": "^19.2.0",
|
|
51
|
+
"react-dom": "^19.2.0",
|
|
52
|
+
"tailwindcss": "^4.1.17",
|
|
53
|
+
"tw-animate-css": "^1.4.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"tailwindcss": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"tw-animate-css": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@monaco-editor/react": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"monaco-editor": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"@tiptap/react": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@tiptap/starter-kit": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"@tiptap/extension-underline": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"@tiptap/extension-link": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"@tiptap/extension-placeholder": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"@hookform/resolvers": "^5.2.2",
|
|
86
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
87
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
88
|
+
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
89
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
90
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
91
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
92
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
93
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
94
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
95
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
96
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
97
|
+
"@radix-ui/react-menubar": "^1.1.16",
|
|
98
|
+
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
99
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
100
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
101
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
102
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
103
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
104
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
105
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
106
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
107
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
108
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
109
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
110
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
111
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
112
|
+
"class-variance-authority": "^0.7.1",
|
|
113
|
+
"clsx": "^2.1.1",
|
|
114
|
+
"cmdk": "^1.1.1",
|
|
115
|
+
"date-fns": "^4.1.0",
|
|
116
|
+
"embla-carousel-react": "^8.6.0",
|
|
117
|
+
"input-otp": "^1.4.2",
|
|
118
|
+
"lucide-react": "^0.555.0",
|
|
119
|
+
"next-themes": "^0.4.6",
|
|
120
|
+
"react-day-picker": "^9.13.0",
|
|
121
|
+
"react-hook-form": "^7.69.0",
|
|
122
|
+
"react-resizable-panels": "^3.0.6",
|
|
123
|
+
"recharts": "^2.15.4",
|
|
124
|
+
"sonner": "^2.0.7",
|
|
125
|
+
"tailwind-merge": "^3.4.0",
|
|
126
|
+
"vaul": "^1.1.2",
|
|
127
|
+
"zod": "^4.3.4"
|
|
128
|
+
},
|
|
129
|
+
"devDependencies": {
|
|
130
|
+
"@eslint/js": "^9.28.0",
|
|
131
|
+
"@monaco-editor/react": "^4.7.0",
|
|
132
|
+
"@storybook/addon-a11y": "^10.1.0",
|
|
133
|
+
"@storybook/addon-docs": "^10.1.0",
|
|
134
|
+
"@storybook/react-vite": "^10.1.0",
|
|
135
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
136
|
+
"@tiptap/core": "^3.14.0",
|
|
137
|
+
"@tiptap/extension-link": "^3.14.0",
|
|
138
|
+
"@tiptap/extension-placeholder": "^3.14.0",
|
|
139
|
+
"@tiptap/extension-underline": "^3.14.0",
|
|
140
|
+
"@tiptap/pm": "^3.14.0",
|
|
141
|
+
"@tiptap/react": "^3.14.0",
|
|
142
|
+
"@tiptap/starter-kit": "^3.14.0",
|
|
143
|
+
"@types/node": "^24.10.1",
|
|
144
|
+
"@types/react": "^19.2.5",
|
|
145
|
+
"@types/react-dom": "^19.2.3",
|
|
146
|
+
"ajv": "^8.17.1",
|
|
147
|
+
"eslint": "^9.28.0",
|
|
148
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
149
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
150
|
+
"globals": "^16.2.0",
|
|
151
|
+
"i18next": "^25.7.3",
|
|
152
|
+
"monaco-editor": "^0.55.1",
|
|
153
|
+
"prettier": "^3.5.3",
|
|
154
|
+
"prettier-plugin-tailwindcss": "^0.6.12",
|
|
155
|
+
"react": "^19.2.0",
|
|
156
|
+
"react-dom": "^19.2.0",
|
|
157
|
+
"react-i18next": "^16.5.0",
|
|
158
|
+
"storybook": "^10.1.0",
|
|
159
|
+
"storybook-i18n": "^10.0.0",
|
|
160
|
+
"tailwindcss": "^4.1.17",
|
|
161
|
+
"tsup": "^8.5.1",
|
|
162
|
+
"tw-animate-css": "^1.4.0",
|
|
163
|
+
"typescript": "~5.9.3",
|
|
164
|
+
"typescript-eslint": "^8.33.1"
|
|
165
|
+
}
|
|
166
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
8
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
9
|
+
--radius-lg: var(--radius);
|
|
10
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
11
|
+
--color-background: var(--background);
|
|
12
|
+
--color-foreground: var(--foreground);
|
|
13
|
+
--color-card: var(--card);
|
|
14
|
+
--color-card-foreground: var(--card-foreground);
|
|
15
|
+
--color-popover: var(--popover);
|
|
16
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
17
|
+
--color-primary: var(--primary);
|
|
18
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
19
|
+
--color-secondary: var(--secondary);
|
|
20
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
21
|
+
--color-muted: var(--muted);
|
|
22
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
23
|
+
--color-accent: var(--accent);
|
|
24
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
25
|
+
--color-destructive: var(--destructive);
|
|
26
|
+
--color-border: var(--border);
|
|
27
|
+
--color-input: var(--input);
|
|
28
|
+
--color-ring: var(--ring);
|
|
29
|
+
--color-chart-1: var(--chart-1);
|
|
30
|
+
--color-chart-2: var(--chart-2);
|
|
31
|
+
--color-chart-3: var(--chart-3);
|
|
32
|
+
--color-chart-4: var(--chart-4);
|
|
33
|
+
--color-chart-5: var(--chart-5);
|
|
34
|
+
--color-sidebar: var(--sidebar);
|
|
35
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
36
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
37
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
38
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
39
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
40
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
41
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:root {
|
|
45
|
+
--radius: 0.625rem;
|
|
46
|
+
--background: oklch(1 0 0);
|
|
47
|
+
--foreground: oklch(0.145 0 0);
|
|
48
|
+
--card: oklch(1 0 0);
|
|
49
|
+
--card-foreground: oklch(0.145 0 0);
|
|
50
|
+
--popover: oklch(1 0 0);
|
|
51
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
52
|
+
--primary: oklch(0.205 0 0);
|
|
53
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
54
|
+
--secondary: oklch(0.97 0 0);
|
|
55
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
56
|
+
--muted: oklch(0.97 0 0);
|
|
57
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
58
|
+
--accent: oklch(0.97 0 0);
|
|
59
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
60
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
61
|
+
--border: oklch(0.922 0 0);
|
|
62
|
+
--input: oklch(0.922 0 0);
|
|
63
|
+
--ring: oklch(0.708 0 0);
|
|
64
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
65
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
66
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
67
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
68
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
69
|
+
--sidebar: oklch(0.985 0 0);
|
|
70
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
71
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
72
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
74
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
75
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
76
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dark {
|
|
80
|
+
--background: oklch(0.145 0 0);
|
|
81
|
+
--foreground: oklch(0.985 0 0);
|
|
82
|
+
--card: oklch(0.205 0 0);
|
|
83
|
+
--card-foreground: oklch(0.985 0 0);
|
|
84
|
+
--popover: oklch(0.205 0 0);
|
|
85
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
86
|
+
--primary: oklch(0.922 0 0);
|
|
87
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
88
|
+
--secondary: oklch(0.269 0 0);
|
|
89
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
90
|
+
--muted: oklch(0.269 0 0);
|
|
91
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
92
|
+
--accent: oklch(0.269 0 0);
|
|
93
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
94
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
95
|
+
--border: oklch(1 0 0 / 10%);
|
|
96
|
+
--input: oklch(1 0 0 / 15%);
|
|
97
|
+
--ring: oklch(0.556 0 0);
|
|
98
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
99
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
100
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
101
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
102
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
103
|
+
--sidebar: oklch(0.205 0 0);
|
|
104
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
105
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
106
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
107
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
108
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
109
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
110
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@layer base {
|
|
114
|
+
* {
|
|
115
|
+
@apply border-border outline-ring/50;
|
|
116
|
+
}
|
|
117
|
+
body {
|
|
118
|
+
@apply bg-background text-foreground;
|
|
119
|
+
}
|
|
120
|
+
}
|