@olundot/ui 0.3.0 → 0.4.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/CHANGELOG.md +33 -1
- package/README.md +9 -1
- package/dist/index.d.ts +240 -137
- package/dist/index.js +1654 -1334
- package/dist/tailwind.preset.js +2 -0
- package/dist/tokens.css +59 -23
- package/package.json +2 -2
package/dist/tailwind.preset.js
CHANGED
package/dist/tokens.css
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @olundot/ui — OLUN
|
|
2
|
+
* @olundot/ui/tokens.css — OLUN canonical app entry (소비자 공식 진입점)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* olun-app 등 소비자는 global CSS에서 이 파일만 import하면
|
|
5
|
+
* 토큰 변수 + Tailwind v4 @theme 매핑 + ui alias가 모두 적용된다.
|
|
6
|
+
* (@olundot/tokens/css, @olundot/tokens/tailwind/v4를 개별 import할 필요 없음.)
|
|
7
|
+
*
|
|
8
|
+
* ⚠️ 단, Tailwind @source는 CSS @import로 해결 불가(소비자 측 경로) →
|
|
9
|
+
* 소비자 global CSS에 반드시 추가:
|
|
10
|
+
* @source "../node_modules/@olundot/ui/dist";
|
|
11
|
+
* (INTEGRATION.md "olun-app 최소 셋업" 참조)
|
|
5
12
|
*
|
|
6
13
|
* Usage (consumer global CSS):
|
|
7
|
-
* @
|
|
8
|
-
* @import
|
|
14
|
+
* @layer theme, base, components, utilities;
|
|
15
|
+
* @import "tailwindcss/theme.css" layer(theme);
|
|
16
|
+
* @import "tailwindcss/preflight.css" layer(base);
|
|
17
|
+
* @import "tailwindcss/utilities.css" layer(utilities);
|
|
18
|
+
* @source "../node_modules/@olundot/ui/dist";
|
|
19
|
+
* @import "@olundot/ui/tokens.css";
|
|
9
20
|
*/
|
|
10
21
|
|
|
11
22
|
/* 1. CSS custom properties (light/dark, semantic tokens) */
|
|
@@ -47,27 +58,52 @@
|
|
|
47
58
|
* unconditionally — removing the duplicate avoids cascade conflicts.
|
|
48
59
|
*/
|
|
49
60
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
:
|
|
62
|
-
|
|
61
|
+
@keyframes olun-sheet-fade-in {
|
|
62
|
+
from { opacity: 0; }
|
|
63
|
+
to { opacity: 1; }
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes olun-sheet-fade-out {
|
|
67
|
+
from { opacity: 1; }
|
|
68
|
+
to { opacity: 0; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes olun-sheet-in-from-right {
|
|
72
|
+
from { opacity: 0; transform: translateX(100%); }
|
|
73
|
+
to { opacity: 1; transform: translateX(0); }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes olun-sheet-out-to-right {
|
|
77
|
+
from { opacity: 1; transform: translateX(0); }
|
|
78
|
+
to { opacity: 0; transform: translateX(100%); }
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes olun-sheet-in-from-left {
|
|
82
|
+
from { opacity: 0; transform: translateX(-100%); }
|
|
83
|
+
to { opacity: 1; transform: translateX(0); }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes olun-sheet-out-to-left {
|
|
87
|
+
from { opacity: 1; transform: translateX(0); }
|
|
88
|
+
to { opacity: 0; transform: translateX(-100%); }
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@keyframes olun-sheet-in-from-top {
|
|
92
|
+
from { opacity: 0; transform: translateY(-100%); }
|
|
93
|
+
to { opacity: 1; transform: translateY(0); }
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes olun-sheet-out-to-top {
|
|
97
|
+
from { opacity: 1; transform: translateY(0); }
|
|
98
|
+
to { opacity: 0; transform: translateY(-100%); }
|
|
63
99
|
}
|
|
64
100
|
|
|
65
|
-
|
|
66
|
-
|
|
101
|
+
@keyframes olun-sheet-in-from-bottom {
|
|
102
|
+
from { opacity: 0; transform: translateY(100%); }
|
|
103
|
+
to { opacity: 1; transform: translateY(0); }
|
|
67
104
|
}
|
|
68
105
|
|
|
69
|
-
@
|
|
70
|
-
:
|
|
71
|
-
|
|
72
|
-
}
|
|
106
|
+
@keyframes olun-sheet-out-to-bottom {
|
|
107
|
+
from { opacity: 1; transform: translateY(0); }
|
|
108
|
+
to { opacity: 0; transform: translateY(100%); }
|
|
73
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olundot/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "OLUN. shared React UI components built on OLUN design tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lucide-react": "^1.8.0",
|
|
45
45
|
"radix-ui": "^1.4.3",
|
|
46
46
|
"tailwind-merge": "^3.5.0",
|
|
47
|
-
"@olundot/tokens": "^0.
|
|
47
|
+
"@olundot/tokens": "^0.9.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=18",
|