@sykoramaros/marosh-components 0.1.0 → 0.1.2
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 +76 -0
- package/dist/cli/index.cjs +7854 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -3
- package/src/App.css +42 -0
- package/src/App.tsx +42 -0
- package/src/components/CustomButton.tsx +32 -0
- package/src/components/Footer.tsx +59 -0
- package/src/components/MainNav.tsx +81 -0
- package/src/components/ui/button.tsx +62 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/navigation-menu.tsx +168 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +726 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/tooltip.tsx +59 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/index.css +122 -0
- package/src/index.ts +17 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +10 -0
package/README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
+
update na knihovnu nahravajici kompoennty do projektu
|
|
2
|
+
|
|
3
|
+
@sykoramaros/marosh-components/
|
|
4
|
+
├── src/
|
|
5
|
+
│ ├── components/
|
|
6
|
+
│ │ ├── CustomButton.tsx
|
|
7
|
+
│ │ ├── MainNav.tsx
|
|
8
|
+
│ │ └── Footer.tsx
|
|
9
|
+
│ ├── lib/
|
|
10
|
+
│ │ └── utils.ts
|
|
11
|
+
│ └── index.ts
|
|
12
|
+
├── cli/
|
|
13
|
+
│ └── index.ts # Nový CLI nástroj
|
|
14
|
+
├── scripts/
|
|
15
|
+
│ └── templates/ # Šablony komponent
|
|
16
|
+
├── package.json
|
|
17
|
+
└── tsconfig.json
|
|
18
|
+
|
|
19
|
+
✅ Instalovat knihovnu klasicky:
|
|
20
|
+
bun add @sykoramaros/marosh-components
|
|
21
|
+
|
|
22
|
+
✅ Importovat přímo:
|
|
23
|
+
import { CustomButton } from '@sykoramaros/marosh-components'
|
|
24
|
+
|
|
25
|
+
✅ NEBO zkopírovat komponenty:
|
|
26
|
+
bunx marosh add
|
|
27
|
+
|
|
28
|
+
✅ Upravovat lokálně zkopírované komponenty
|
|
29
|
+
|
|
30
|
+
✅ Aktualizovat z knihovny:
|
|
31
|
+
bunx marosh update
|
|
32
|
+
|
|
33
|
+
# Zkontroluj že package.json má správnou verzi
|
|
34
|
+
|
|
35
|
+
# Zvyš verzi pokud už jsi publikoval 0.1.0
|
|
36
|
+
|
|
37
|
+
# nebo minor/major
|
|
38
|
+
|
|
39
|
+
git add .
|
|
40
|
+
git commit
|
|
41
|
+
|
|
42
|
+
# Zvyš verzi
|
|
43
|
+
|
|
44
|
+
npm version patch
|
|
45
|
+
|
|
46
|
+
# Publikuj
|
|
47
|
+
|
|
48
|
+
bunx npm login
|
|
49
|
+
npm publish --access public
|
|
50
|
+
|
|
51
|
+
# Build
|
|
52
|
+
|
|
53
|
+
bun run build
|
|
54
|
+
|
|
55
|
+
# V novém projektu
|
|
56
|
+
|
|
57
|
+
cd /cesta/k/jinemu/projektu
|
|
58
|
+
|
|
59
|
+
# Instalace
|
|
60
|
+
|
|
61
|
+
bun add @sykoramaros/marosh-components
|
|
62
|
+
|
|
63
|
+
# Test CLI
|
|
64
|
+
|
|
65
|
+
bunx marosh list
|
|
66
|
+
|
|
67
|
+
# Přidání komponent
|
|
68
|
+
|
|
69
|
+
bunx marosh add
|
|
70
|
+
|
|
71
|
+
// Můžeš importovat buď z knihovny
|
|
72
|
+
import { CustomButton } from '@sykoramaros/marosh-components'
|
|
73
|
+
|
|
74
|
+
// NEBO z lokálních zkopírovaných souborů (upravitelné!)
|
|
75
|
+
import { CustomButton } from '@/components/basicComponents/CustomButton'
|
|
76
|
+
|
|
1
77
|
# React + TypeScript + Vite
|
|
2
78
|
|
|
3
79
|
# Build
|