@contractspec/lib.ui-kit-core 3.0.0 → 3.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/README.md +33 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @contractspec/lib.ui-kit-core
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
**Core UI primitives and utilities.**
|
|
6
|
+
|
|
7
|
+
Provides the foundational `cn()` utility for merging Tailwind CSS classes, built on `clsx` and `tailwind-merge`. Used as the base layer for all ContractSpec UI packages.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun add @contractspec/lib.ui-kit-core
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Exports
|
|
16
|
+
|
|
17
|
+
- `.` -- Re-exports `./utils`
|
|
18
|
+
- `./utils` -- `cn()` class merging utility
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
24
|
+
|
|
25
|
+
function Button({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) {
|
|
26
|
+
return (
|
|
27
|
+
<button
|
|
28
|
+
className={cn("rounded-md bg-blue-600 px-4 py-2 text-white", className)}
|
|
29
|
+
{...props}
|
|
30
|
+
/>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.ui-kit-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Core UI primitives and utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"tailwindcss-animate": "^1.0.7"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@contractspec/tool.typescript": "3.
|
|
40
|
+
"@contractspec/tool.typescript": "3.1.0",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"@contractspec/tool.bun": "3.
|
|
42
|
+
"@contractspec/tool.bun": "3.1.0"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|