@e-infra/design-system 0.0.6 → 0.0.7
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 +51 -29
- package/dist/index.cjs.js +503 -54
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +507 -58
- package/dist/index.es.js.map +1 -1
- package/dist/setup.css +214 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/layout/content.d.ts +8 -0
- package/dist/types/components/layout/content.d.ts.map +1 -0
- package/dist/types/components/layout/footer.d.ts +3 -0
- package/dist/types/components/layout/footer.d.ts.map +1 -0
- package/dist/types/components/layout/header.d.ts +14 -0
- package/dist/types/components/layout/header.d.ts.map +1 -0
- package/dist/types/components/layout/index.d.ts +4 -0
- package/dist/types/components/layout/index.d.ts.map +1 -0
- package/dist/types/components/typography/index.d.ts +2 -0
- package/dist/types/components/typography/index.d.ts.map +1 -0
- package/dist/types/components/typography/typography.d.ts +16 -0
- package/dist/types/components/typography/typography.d.ts.map +1 -0
- package/dist/types/components/ui/alert.d.ts +1 -1
- package/dist/types/components/ui/alert.d.ts.map +1 -1
- package/dist/types/components/ui/badge.d.ts +1 -1
- package/dist/types/components/ui/badge.d.ts.map +1 -1
- package/dist/types/components/ui/button.d.ts +1 -1
- package/dist/types/components/ui/button.d.ts.map +1 -1
- package/dist/types/components/ui/context-menu.d.ts +1 -1
- package/dist/types/components/ui/context-menu.d.ts.map +1 -1
- package/dist/types/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/types/components/ui/form.d.ts.map +1 -1
- package/dist/types/components/ui/menubar.d.ts +1 -1
- package/dist/types/components/ui/menubar.d.ts.map +1 -1
- package/dist/types/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/types/components/ui/panel.d.ts +9 -0
- package/dist/types/components/ui/panel.d.ts.map +1 -0
- package/dist/types/components/ui/sidebar.d.ts.map +1 -1
- package/dist/types/components/ui/sonner.d.ts.map +1 -1
- package/dist/types/components/ui/stepper.d.ts.map +1 -1
- package/dist/types/components/ui/toggle.d.ts.map +1 -1
- package/package.json +16 -11
- package/dist/style.css +0 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# e-INFRA Design System
|
|
1
|
+
# e-INFRA CZ Design System
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@e-infra/design-system)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
A comprehensive React component library built with shadcn/ui and Tailwind CSS v4, designed for the e-INFRA ecosystem.
|
|
6
|
+
A comprehensive React component library built with shadcn/ui and Tailwind CSS v4, designed for the e-INFRA CZ app ecosystem.
|
|
7
7
|
|
|
8
8
|
## ✨ Features
|
|
9
9
|
|
|
@@ -19,16 +19,16 @@ A comprehensive React component library built with shadcn/ui and Tailwind CSS v4
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# Using npm
|
|
22
|
-
npm install @
|
|
22
|
+
npm install @e-infra/design-system
|
|
23
23
|
|
|
24
24
|
# Using yarn
|
|
25
|
-
yarn add @
|
|
25
|
+
yarn add @e-infra/design-system
|
|
26
26
|
|
|
27
27
|
# Using pnpm
|
|
28
|
-
pnpm add @
|
|
28
|
+
pnpm add @e-infra/design-system
|
|
29
29
|
|
|
30
30
|
# Using bun
|
|
31
|
-
bun add @
|
|
31
|
+
bun add @e-infra/design-system
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Peer Dependencies
|
|
@@ -43,40 +43,36 @@ npm install react react-dom tailwindcss
|
|
|
43
43
|
|
|
44
44
|
### 1. Import Styles
|
|
45
45
|
|
|
46
|
-
**Important:** Import the CSS file in your main application file
|
|
46
|
+
**Important:** Import the CSS file in your main application file **AFTER importing tailwindcss**:
|
|
47
47
|
|
|
48
48
|
```typescript
|
|
49
|
-
import
|
|
49
|
+
import "@e-infra/design-system/setup.css";
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export default {
|
|
59
|
-
content: [
|
|
60
|
-
'./src/**/*.{js,ts,jsx,tsx}',
|
|
61
|
-
'./node_modules/@muni-ics/e-infra-design-system/dist/**/*.{js,ts,jsx,tsx}',
|
|
62
|
-
],
|
|
63
|
-
theme: {
|
|
64
|
-
extend: {},
|
|
65
|
-
},
|
|
66
|
-
plugins: [],
|
|
67
|
-
}
|
|
52
|
+
Example:
|
|
53
|
+
|
|
54
|
+
```css
|
|
55
|
+
@import "tailwindcss";
|
|
56
|
+
|
|
57
|
+
@import "@e-infra/design-system/setup.css";
|
|
68
58
|
```
|
|
69
59
|
|
|
70
|
-
###
|
|
60
|
+
### 2. Use Components
|
|
71
61
|
|
|
72
62
|
```tsx
|
|
73
|
-
import {
|
|
63
|
+
import {
|
|
64
|
+
Button,
|
|
65
|
+
Card,
|
|
66
|
+
CardHeader,
|
|
67
|
+
CardTitle,
|
|
68
|
+
CardContent,
|
|
69
|
+
} from "@muni-ics/e-infra-design-system";
|
|
74
70
|
|
|
75
71
|
function App() {
|
|
76
72
|
return (
|
|
77
73
|
<Card>
|
|
78
74
|
<CardHeader>
|
|
79
|
-
<CardTitle>Welcome to e-INFRA</CardTitle>
|
|
75
|
+
<CardTitle>Welcome to e-INFRA CZ</CardTitle>
|
|
80
76
|
</CardHeader>
|
|
81
77
|
<CardContent>
|
|
82
78
|
<p>Start building with our design system!</p>
|
|
@@ -157,7 +153,7 @@ The design system uses CSS variables for theming. You can customize colors by ov
|
|
|
157
153
|
|
|
158
154
|
For full documentation and live examples, visit:
|
|
159
155
|
|
|
160
|
-
🔗 **[Live Showcase](https://
|
|
156
|
+
🔗 **[Live Showcase](https://design-system.e-infra.cz/)**
|
|
161
157
|
|
|
162
158
|
## 🛠️ Development
|
|
163
159
|
|
|
@@ -181,9 +177,35 @@ bun run lint
|
|
|
181
177
|
bun run type:check
|
|
182
178
|
```
|
|
183
179
|
|
|
180
|
+
For other commands consult `package.json`.
|
|
181
|
+
|
|
182
|
+
## Docker
|
|
183
|
+
|
|
184
|
+
**Be in root of the project directory!**
|
|
185
|
+
|
|
186
|
+
### Using Compose File (build and run)
|
|
187
|
+
|
|
188
|
+
```sh
|
|
189
|
+
docker compose -f ./env/prod/docker-compose.yml up --build
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Build Only Image
|
|
193
|
+
|
|
194
|
+
#### Bun as Package Manager and Runtime
|
|
195
|
+
|
|
196
|
+
```sh
|
|
197
|
+
docker build -t design-system-showcase:latest -f ./env/prod/Dockerfile.bun .
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
#### Bun as Package Manager, Node as Runtime
|
|
201
|
+
|
|
202
|
+
```sh
|
|
203
|
+
docker build -t design-system-showcase:latest -f ./env/prod/Dockerfile .
|
|
204
|
+
```
|
|
205
|
+
|
|
184
206
|
## 📄 License
|
|
185
207
|
|
|
186
|
-
MIT © CERIT-SC
|
|
208
|
+
MIT © [CERIT-SC, Masaryk University](https://cerit-sc.cz)
|
|
187
209
|
|
|
188
210
|
## 👥 Maintainers
|
|
189
211
|
|