@expcat/tigercat-core 0.2.0 → 0.2.27
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 +40 -0
- package/dist/index.cjs +482 -0
- package/dist/index.d.cts +670 -2
- package/dist/index.d.ts +670 -2
- package/dist/index.js +406 -0
- package/package.json +5 -1
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @expcat/tigercat-core
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@expcat/tigercat-core)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
Core utilities and shared types for [Tigercat](https://github.com/expcats/Tigercat) UI library.
|
|
7
|
+
|
|
8
|
+
> ⚠️ **Internal Package** - This package is used internally by `@expcat/tigercat-vue` and `@expcat/tigercat-react`. You typically don't need to install it directly.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pnpm add @expcat/tigercat-core
|
|
14
|
+
# or
|
|
15
|
+
npm install @expcat/tigercat-core
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Exports
|
|
19
|
+
|
|
20
|
+
| Module | Description |
|
|
21
|
+
| ------------------- | ------------------------------------------------------------------------------- |
|
|
22
|
+
| **Utils** | `classNames`, `coerceClassValue`, `copyText`, animation helpers, a11y utilities |
|
|
23
|
+
| **Types** | Shared TypeScript types for all components (Button, Input, Modal, Table, etc.) |
|
|
24
|
+
| **Theme** | CSS variables (`THEME_CSS_VARS`), color utilities, component theme configs |
|
|
25
|
+
| **Tailwind Plugin** | `tigercatPlugin` - Tailwind CSS plugin for theme integration |
|
|
26
|
+
|
|
27
|
+
## Tailwind Plugin
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
// tailwind.config.js
|
|
31
|
+
import { tigercatPlugin } from '@expcat/tigercat-core'
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
plugins: [tigercatPlugin]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
[MIT](https://opensource.org/licenses/MIT)
|