kff-ui-kit 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/README.md +30 -0
- package/dist/index.cjs +6145 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +490 -0
- package/dist/index.d.ts +490 -0
- package/dist/index.js +5977 -0
- package/dist/index.js.map +1 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @kff/ui-kit
|
|
2
|
+
|
|
3
|
+
Внутренняя UI-библиотека КФФ на Tailwind CSS v4 + shadcn/base-ui.
|
|
4
|
+
|
|
5
|
+
## Структура
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
src/
|
|
9
|
+
├── components/
|
|
10
|
+
│ ├── ui/ # примитивы (shadcn/base-ui) — Button, Dialog, Input и т.д.
|
|
11
|
+
│ └── kff/ # компоненты, собранные поверх примитивов — ActionButton, AppSidebar и т.д.
|
|
12
|
+
├── hooks/
|
|
13
|
+
├── lib/ # cn() и утилиты, специфичные для КФФ
|
|
14
|
+
├── styles/
|
|
15
|
+
│ ├── globals.css # токены темы + @import "tailwindcss" (исходник)
|
|
16
|
+
│ └── generated.css # сгенерирован из globals.css Tailwind CLI при сборке, в git не хранится
|
|
17
|
+
└── index.ts # единая точка входа пакета
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Пакет — **один entry point**: и примитивы, и составные компоненты экспортируются из `@kff/ui-kit`.
|
|
21
|
+
|
|
22
|
+
## Использование
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @kff/ui-kit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import { Button, ActionButton } from "@kff/ui-kit";
|
|
30
|
+
```
|