@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.
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // tailwind.preset.ts
2
4
  import corePreset from "@olundot/tokens/tailwind";
3
5
  var preset = {
package/dist/tokens.css CHANGED
@@ -1,11 +1,22 @@
1
1
  /*
2
- * @olundot/ui — OLUN token hub
2
+ * @olundot/ui/tokens.css — OLUN canonical app entry (소비자 공식 진입점)
3
3
  *
4
- * 앱에서는 이 파일만 import하면 토큰 CSS 변수 + Tailwind v4 매핑이 모두 적용됩니다.
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
- * @import 'tailwindcss';
8
- * @import '@olundot/ui/tokens.css';
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
- /* Org-namespaced brand tokens (client-specific)
51
- * 패턴: --org-{slug}-{role}.
52
- *
53
- * tokens.css(token hub)에 정의 → @olundot/ui/tokens.css를 import하는 모든 app에서 자동 적용.
54
- *
55
- * Light-default system: plain :root carries the light value (JBNU Blue).
56
- * Dark is the override on :root[data-theme="dark"] and the OS-prefers media
57
- * block — mirroring the per-mode flip pattern of every other token. Without
58
- * this, a first paint with no data-theme attribute showed the dark Wine color
59
- * on a light background (light-default contract violation).
60
- */
61
- :root {
62
- --org-jbnu-emblem: #004387; /* JBNU Blue — light default */
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
- :root[data-theme="dark"] {
66
- --org-jbnu-emblem: #a6165f; /* JBNU Wine — dark */
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
- @media (prefers-color-scheme: dark) {
70
- :root:not([data-theme="light"]) {
71
- --org-jbnu-emblem: #a6165f; /* JBNU Wine — OS-preferred dark */
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.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.8.0"
47
+ "@olundot/tokens": "^0.9.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=18",