@exem-ui/core 0.2.0 → 0.3.2-next.20260227091619
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/LICENSE +183 -183
- package/README.en.md +21 -21
- package/README.md +32 -28
- package/dist/{chunk-5FZNP5G5.js → chunk-655YQ5B3.js} +2 -2
- package/dist/{chunk-5FZNP5G5.js.map → chunk-655YQ5B3.js.map} +1 -1
- package/dist/{chunk-HWX4WC5U.js → chunk-76O3K532.js} +50 -50
- package/dist/chunk-76O3K532.js.map +1 -0
- package/dist/{chunk-KI6ZGM2N.mjs → chunk-BARD74A5.mjs} +50 -50
- package/dist/chunk-BARD74A5.mjs.map +1 -0
- package/dist/{chunk-HM4HRGV5.mjs → chunk-FD5A4NCU.mjs} +2 -2
- package/dist/{chunk-HM4HRGV5.mjs.map → chunk-FD5A4NCU.mjs.map} +1 -1
- package/dist/{colorTokens-DZNM_EDj.d.ts → colorTokens-B5cNkSyi.d.mts} +48 -48
- package/dist/{colorTokens-DZNM_EDj.d.mts → colorTokens-B5cNkSyi.d.ts} +48 -48
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +3 -3
- package/dist/tailwindcss/index.d.mts +1 -1
- package/dist/tailwindcss/index.d.ts +1 -1
- package/dist/tailwindcss/index.js +3 -3
- package/dist/tailwindcss/index.mjs +1 -1
- package/dist/tokens/color.d.mts +1 -1
- package/dist/tokens/color.d.ts +1 -1
- package/dist/tokens/color.js +2 -2
- package/dist/tokens/color.mjs +1 -1
- package/dist/tokens/index.d.mts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +3 -3
- package/dist/tokens/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.mjs +2 -2
- package/package.json +3 -3
- package/dist/chunk-HWX4WC5U.js.map +0 -1
- package/dist/chunk-KI6ZGM2N.mjs.map +0 -1
package/LICENSE
CHANGED
|
@@ -2,189 +2,189 @@
|
|
|
2
2
|
Version 2.0, January 2004
|
|
3
3
|
http://www.apache.org/licenses/
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Exem Corporation
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
183
|
|
|
184
184
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
185
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.en.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<h1 align="center">@exem-ui/core</h1>
|
|
3
|
-
<p align="center">Core foundation of the
|
|
3
|
+
<p align="center">Core foundation of the Exem Design System</p>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
## Introduction
|
|
20
20
|
|
|
21
|
-
`@exem-ui/core` is the shared foundation for all
|
|
21
|
+
`@exem-ui/core` is the shared foundation for all Exem Design System packages. It provides CSS variable-based design tokens, utility functions, TypeScript type definitions, and original SVG icons.
|
|
22
22
|
|
|
23
23
|
## Key Features
|
|
24
24
|
|
|
@@ -47,49 +47,49 @@ yarn add @exem-ui/core
|
|
|
47
47
|
### CSS Variables (Global Styles)
|
|
48
48
|
|
|
49
49
|
```ts
|
|
50
|
-
import
|
|
50
|
+
import "@exem-ui/core/css";
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### Utility Functions
|
|
54
54
|
|
|
55
55
|
```ts
|
|
56
|
-
import { cn } from
|
|
56
|
+
import { cn } from "@exem-ui/core/utils";
|
|
57
57
|
|
|
58
|
-
const className = cn(
|
|
58
|
+
const className = cn("px-4 py-2", isActive && "bg-primary text-white");
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### Design Tokens
|
|
62
62
|
|
|
63
63
|
```ts
|
|
64
|
-
import { colorTokens } from
|
|
65
|
-
import { colorTokens as colors } from
|
|
64
|
+
import { colorTokens } from "@exem-ui/core/tokens";
|
|
65
|
+
import { colorTokens as colors } from "@exem-ui/core/tokens/color";
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
### Tailwind CSS Integration
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
|
-
import { exemColors, exemPlugin } from
|
|
71
|
+
import { exemColors, exemPlugin } from "@exem-ui/core/tailwindcss";
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Export Map
|
|
75
75
|
|
|
76
|
-
| Path
|
|
77
|
-
|
|
78
|
-
| `@exem-ui/core`
|
|
79
|
-
| `@exem-ui/core/css`
|
|
80
|
-
| `@exem-ui/core/utils`
|
|
81
|
-
| `@exem-ui/core/icon`
|
|
82
|
-
| `@exem-ui/core/tokens`
|
|
83
|
-
| `@exem-ui/core/tokens/color` | Detailed color tokens
|
|
84
|
-
| `@exem-ui/core/tailwindcss`
|
|
76
|
+
| Path | Description |
|
|
77
|
+
| ---------------------------- | ----------------------------- |
|
|
78
|
+
| `@exem-ui/core` | Main entry (types, constants) |
|
|
79
|
+
| `@exem-ui/core/css` | Global CSS variables |
|
|
80
|
+
| `@exem-ui/core/utils` | `cn()`, utility functions |
|
|
81
|
+
| `@exem-ui/core/icon` | Icon metadata types |
|
|
82
|
+
| `@exem-ui/core/tokens` | Design tokens |
|
|
83
|
+
| `@exem-ui/core/tokens/color` | Detailed color tokens |
|
|
84
|
+
| `@exem-ui/core/tailwindcss` | Tailwind CSS plugin/colors |
|
|
85
85
|
|
|
86
86
|
## Related Packages
|
|
87
87
|
|
|
88
|
-
| Package
|
|
89
|
-
|
|
90
|
-
| [@exem-ui/react](https://www.npmjs.com/package/@exem-ui/react)
|
|
88
|
+
| Package | Description |
|
|
89
|
+
| ---------------------------------------------------------------------------- | ---------------------- |
|
|
90
|
+
| [@exem-ui/react](https://www.npmjs.com/package/@exem-ui/react) | React UI components |
|
|
91
91
|
| [@exem-ui/tailwindcss3](https://www.npmjs.com/package/@exem-ui/tailwindcss3) | Tailwind CSS v3 plugin |
|
|
92
|
-
| [@exem-ui/tailwindcss4](https://www.npmjs.com/package/@exem-ui/tailwindcss4) | Tailwind CSS v4 theme
|
|
92
|
+
| [@exem-ui/tailwindcss4](https://www.npmjs.com/package/@exem-ui/tailwindcss4) | Tailwind CSS v4 theme |
|
|
93
93
|
|
|
94
94
|
## License
|
|
95
95
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<h1 align="center">@exem-ui/core</h1>
|
|
3
|
-
<p align="center">
|
|
3
|
+
<p align="center">Exem 디자인 시스템의 핵심 기반 패키지</p>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
## 소개
|
|
20
20
|
|
|
21
|
-
`@exem-ui/core`는
|
|
21
|
+
`@exem-ui/core`는 Exem 디자인 시스템의 모든 패키지가 공유하는 핵심 기반입니다. CSS 변수 기반 디자인 토큰, 유틸리티 함수, TypeScript 타입 정의, SVG 아이콘 원본을 제공합니다.
|
|
22
22
|
|
|
23
23
|
## 주요 특징
|
|
24
24
|
|
|
@@ -67,18 +67,22 @@ CSS 변수(`global.css`)가 단일 source of truth이며, 생성 스크립트가
|
|
|
67
67
|
|
|
68
68
|
```ts
|
|
69
69
|
// 색상 토큰 — var() 참조
|
|
70
|
-
import { colorTokens } from
|
|
71
|
-
colorTokens.textPrimary
|
|
72
|
-
colorTokens.sky06
|
|
70
|
+
import { colorTokens } from "@exem-ui/core/tokens";
|
|
71
|
+
colorTokens.textPrimary; // → 'var(--color-text-primary)'
|
|
72
|
+
colorTokens.sky06; // → 'var(--color-sky-06)'
|
|
73
73
|
|
|
74
74
|
// 색상 상세 — primitive, semantic refs 포함
|
|
75
|
-
import { colorPrimitives, colorSemanticRefs } from
|
|
76
|
-
colorSemanticRefs[
|
|
75
|
+
import { colorPrimitives, colorSemanticRefs } from "@exem-ui/core/tokens/color";
|
|
76
|
+
colorSemanticRefs["text-primary"]; // → { light: 'gray-10', dark: 'gray-00' }
|
|
77
77
|
|
|
78
78
|
// 기타 토큰
|
|
79
|
-
import {
|
|
80
|
-
radiusTokens
|
|
81
|
-
shadowTokens
|
|
79
|
+
import {
|
|
80
|
+
radiusTokens,
|
|
81
|
+
shadowTokens,
|
|
82
|
+
breakpointTokens,
|
|
83
|
+
} from "@exem-ui/core/tokens";
|
|
84
|
+
radiusTokens.medium; // → '4px'
|
|
85
|
+
shadowTokens.strong; // → '0px 0px 32px 0px rgba(28, 28, 28, 0.32)'
|
|
82
86
|
```
|
|
83
87
|
|
|
84
88
|
### 아이콘 — SVG 원본 + 메타데이터
|
|
@@ -86,51 +90,51 @@ shadowTokens.strong // → '0px 0px 32px 0px rgba(28, 28, 28, 0.32)'
|
|
|
86
90
|
core는 366개 SVG 아이콘 원본과 메타데이터(태그, 카테고리, 별칭)를 관리합니다. `@exem-ui/react`는 이 SVG로부터 React 컴포넌트를 자동 생성합니다.
|
|
87
91
|
|
|
88
92
|
```ts
|
|
89
|
-
import type { IconMeta } from
|
|
93
|
+
import type { IconMeta } from "@exem-ui/core/icon";
|
|
90
94
|
// 아이콘 메타데이터 타입 (tags, categories, aliases)
|
|
91
95
|
```
|
|
92
96
|
|
|
93
97
|
### 유틸리티
|
|
94
98
|
|
|
95
99
|
```ts
|
|
96
|
-
import { cn } from
|
|
100
|
+
import { cn } from "@exem-ui/core/utils";
|
|
97
101
|
// clsx + tailwind-merge 결합
|
|
98
|
-
const className = cn(
|
|
102
|
+
const className = cn("px-4 py-2", isActive && "bg-primary text-white");
|
|
99
103
|
```
|
|
100
104
|
|
|
101
105
|
### CSS 변수
|
|
102
106
|
|
|
103
107
|
```ts
|
|
104
|
-
import
|
|
108
|
+
import "@exem-ui/core/css";
|
|
105
109
|
// 450+ CSS 커스텀 프로퍼티 글로벌 등록
|
|
106
110
|
```
|
|
107
111
|
|
|
108
112
|
### Tailwind CSS 통합
|
|
109
113
|
|
|
110
114
|
```ts
|
|
111
|
-
import { exemColors, exemPlugin } from
|
|
115
|
+
import { exemColors, exemPlugin } from "@exem-ui/core/tailwindcss";
|
|
112
116
|
// tailwindcss3/tailwindcss4 패키지에서 내부적으로 사용
|
|
113
117
|
```
|
|
114
118
|
|
|
115
119
|
## Export Map
|
|
116
120
|
|
|
117
|
-
| 경로
|
|
118
|
-
|
|
119
|
-
| `@exem-ui/core`
|
|
120
|
-
| `@exem-ui/core/css`
|
|
121
|
-
| `@exem-ui/core/utils`
|
|
122
|
-
| `@exem-ui/core/icon`
|
|
123
|
-
| `@exem-ui/core/tokens`
|
|
124
|
-
| `@exem-ui/core/tokens/color` | 색상 토큰 상세 (primitives, semantic refs)
|
|
125
|
-
| `@exem-ui/core/tailwindcss`
|
|
121
|
+
| 경로 | 설명 |
|
|
122
|
+
| ---------------------------- | ---------------------------------------------------- |
|
|
123
|
+
| `@exem-ui/core` | 메인 엔트리 (토큰, 유틸, 타입, Tailwind 프리셋) |
|
|
124
|
+
| `@exem-ui/core/css` | 글로벌 CSS 변수 |
|
|
125
|
+
| `@exem-ui/core/utils` | `cn()`, `cva()` 유틸리티 |
|
|
126
|
+
| `@exem-ui/core/icon` | 아이콘 메타데이터 타입 |
|
|
127
|
+
| `@exem-ui/core/tokens` | 전체 디자인 토큰 (color, radius, shadow, breakpoint) |
|
|
128
|
+
| `@exem-ui/core/tokens/color` | 색상 토큰 상세 (primitives, semantic refs) |
|
|
129
|
+
| `@exem-ui/core/tailwindcss` | Tailwind CSS 플러그인, 색상 매핑 |
|
|
126
130
|
|
|
127
131
|
## 관련 패키지
|
|
128
132
|
|
|
129
|
-
| 패키지
|
|
130
|
-
|
|
131
|
-
| [@exem-ui/react](https://www.npmjs.com/package/@exem-ui/react)
|
|
133
|
+
| 패키지 | 설명 |
|
|
134
|
+
| ---------------------------------------------------------------------------- | ------------------------ |
|
|
135
|
+
| [@exem-ui/react](https://www.npmjs.com/package/@exem-ui/react) | React UI 컴포넌트 |
|
|
132
136
|
| [@exem-ui/tailwindcss3](https://www.npmjs.com/package/@exem-ui/tailwindcss3) | Tailwind CSS v3 플러그인 |
|
|
133
|
-
| [@exem-ui/tailwindcss4](https://www.npmjs.com/package/@exem-ui/tailwindcss4) | Tailwind CSS v4 테마
|
|
137
|
+
| [@exem-ui/tailwindcss4](https://www.npmjs.com/package/@exem-ui/tailwindcss4) | Tailwind CSS v4 테마 |
|
|
134
138
|
|
|
135
139
|
## 라이선스
|
|
136
140
|
|
|
@@ -22,5 +22,5 @@ Object.defineProperty(exports, "cva", {
|
|
|
22
22
|
get: function () { return classVarianceAuthority.cva; }
|
|
23
23
|
});
|
|
24
24
|
exports.cn = cn;
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-655YQ5B3.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-655YQ5B3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/cn.ts"],"names":["extendTailwindMerge","textPreset_default","fontPreset_default","radiusTokens_default","clsx"],"mappings":";;;;;;;;AAKA,IAAM,gBAAgBA,iCAAA,CAAoB;AAAA,EACxC,MAAA,EAAQ;AAAA,IACN,WAAA,EAAa;AAAA,MACX,WAAA,EAAa,MAAA,CAAO,IAAA,CAAKC,mCAAU,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,KAAA,EAAQ,CAAC,CAAA,CAAE,CAAA;AAAA,MAC3D,YAAA,EAAc,MAAA,CAAO,IAAA,CAAKC,mCAAU,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,KAAA,EAAQ,CAAC,CAAA,CAAE,CAAA;AAAA,MAC5D,OAAA,EAAS,MAAA,CAAO,IAAA,CAAKC,qCAAM,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,QAAA,EAAW,CAAC,CAAA,CAAE;AAAA;AACxD;AAEJ,CAAC,CAAA;AAkBM,IAAM,KAAK,CAAA,GAAI,MAAA,KAAiC,aAAA,CAAcC,SAAA,CAAK,MAAM,CAAC","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/utils/cn.ts"],"names":["extendTailwindMerge","textPreset_default","fontPreset_default","radiusTokens_default","clsx"],"mappings":";;;;;;;;AAKA,IAAM,gBAAgBA,iCAAA,CAAoB;AAAA,EACxC,MAAA,EAAQ;AAAA,IACN,WAAA,EAAa;AAAA,MACX,WAAA,EAAa,MAAA,CAAO,IAAA,CAAKC,mCAAU,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,KAAA,EAAQ,CAAC,CAAA,CAAE,CAAA;AAAA,MAC3D,YAAA,EAAc,MAAA,CAAO,IAAA,CAAKC,mCAAU,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,KAAA,EAAQ,CAAC,CAAA,CAAE,CAAA;AAAA,MAC5D,OAAA,EAAS,MAAA,CAAO,IAAA,CAAKC,qCAAM,CAAA,CAAE,IAAI,CAAC,CAAA,KAAM,CAAA,QAAA,EAAW,CAAC,CAAA,CAAE;AAAA;AACxD;AAEJ,CAAC,CAAA;AAkBM,IAAM,KAAK,CAAA,GAAI,MAAA,KAAiC,aAAA,CAAcC,SAAA,CAAK,MAAM,CAAC","file":"chunk-655YQ5B3.js","sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\nimport { radius } from '../generated';\nimport { fontPreset, textPreset } from '../tailwindcss';\n\nconst customTwMerge = extendTailwindMerge({\n extend: {\n classGroups: {\n 'font-size': Object.keys(textPreset).map((k) => `text-${k}`),\n 'font-style': Object.keys(fontPreset).map((k) => `font-${k}`),\n rounded: Object.keys(radius).map((k) => `rounded-${k}`),\n },\n },\n});\n\n/**\n * Tailwind CSS 클래스를 조건부로 병합합니다.\n * Exem UI 커스텀 토큰(rounded, font-size, font-style) 간 충돌을 자동 해소합니다.\n *\n * @param inputs - 병합할 클래스 값 (문자열, 객체, 배열)\n * @returns 병합된 클래스 문자열\n *\n * @example\n * ```ts\n * cn('bg-primary', isActive && 'bg-secondary')\n * // → 'bg-secondary' (isActive가 true일 때)\n *\n * cn('rounded-weak', 'rounded-strong')\n * // → 'rounded-strong' (커스텀 radius 충돌 해소)\n * ```\n */\nexport const cn = (...inputs: ClassValue[]): string => customTwMerge(clsx(inputs));\n"]}
|