@causw/core 0.0.8 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causw/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Core components and utilities for CAUSW Design System - CAU Software Community Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,13 +21,17 @@
21
21
  "src/styles"
22
22
  ],
23
23
  "dependencies": {
24
+ "@radix-ui/react-toast": "^1.2.15",
25
+ "@radix-ui/react-slot": "^1.2.4",
26
+ "class-variance-authority": "^0.7.1",
24
27
  "clsx": "^2.1.1",
25
28
  "tailwind-merge": "^3.4.0",
26
- "@causw/icons": "0.0.8",
27
- "@causw/tokens": "0.0.9"
29
+ "@causw/icons": "0.0.9",
30
+ "@causw/tokens": "0.0.11"
28
31
  },
29
32
  "peerDependencies": {
30
- "react": ">=18"
33
+ "react": ">=18",
34
+ "react-dom": ">=18"
31
35
  },
32
36
  "repository": {
33
37
  "type": "git",
@@ -1,3 +1,157 @@
1
1
  @import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
2
2
  @import 'tailwindcss';
3
- @config '@causw/tokens/config';
3
+ @config '@causw/tokens/config';
4
+
5
+ * {
6
+ letter-spacing: -0.02rem;
7
+ }
8
+
9
+ @layer utilities {
10
+ /* Caption variants */
11
+ .typo-caption-sm {
12
+ @apply text-2xs font-regular font-sans leading-normal;
13
+ }
14
+
15
+ .typo-caption-sm-point {
16
+ @apply text-2xs font-sans leading-normal font-semibold;
17
+ }
18
+
19
+ .typo-caption-md {
20
+ @apply font-sans text-xs leading-normal font-medium;
21
+ }
22
+
23
+ .typo-caption-md-point {
24
+ @apply font-sans text-xs leading-normal font-semibold;
25
+ }
26
+
27
+ /* Body2 variants */
28
+ .typo-body2-sm {
29
+ @apply font-regular font-sans text-xs leading-normal;
30
+ }
31
+
32
+ .typo-body2-sm-point {
33
+ @apply font-sans text-xs leading-normal font-semibold;
34
+ }
35
+
36
+ .typo-body2-md {
37
+ @apply font-sans text-base leading-normal font-medium;
38
+ }
39
+
40
+ .typo-body2-md-point {
41
+ @apply font-sans text-base leading-normal font-semibold;
42
+ }
43
+
44
+ /* Body variants */
45
+ .typo-body-sm {
46
+ @apply font-regular font-sans text-base leading-tight;
47
+ }
48
+
49
+ .typo-body-sm-point {
50
+ @apply font-sans text-base leading-normal font-bold;
51
+ }
52
+
53
+ .typo-body-md {
54
+ @apply font-sans text-lg leading-normal font-medium;
55
+ }
56
+
57
+ .typo-body-md-point {
58
+ @apply font-sans text-lg leading-normal font-bold;
59
+ }
60
+
61
+ /* Subtitle variants */
62
+ .typo-subtitle-sm {
63
+ @apply font-sans text-lg leading-normal font-medium;
64
+ }
65
+
66
+ .typo-subtitle-sm-point {
67
+ @apply font-sans text-lg leading-normal font-bold;
68
+ }
69
+
70
+ .typo-subtitle-md {
71
+ @apply font-sans text-xl leading-normal font-medium;
72
+ }
73
+
74
+ .typo-subtitle-md-point {
75
+ @apply font-sans text-xl leading-normal font-bold;
76
+ }
77
+
78
+ /* Title variants */
79
+ .typo-title-sm {
80
+ @apply font-sans text-2xl leading-normal font-bold;
81
+ }
82
+
83
+ .typo-title-md {
84
+ @apply font-sans text-5xl leading-normal font-bold;
85
+ }
86
+
87
+ /* Head variants */
88
+ .typo-head-sm {
89
+ @apply font-sans text-4xl leading-normal font-bold;
90
+ }
91
+
92
+ .typo-head-md {
93
+ @apply font-sans text-6xl leading-normal font-bold;
94
+ }
95
+
96
+ /* Fixed size variants */
97
+ .typo-fixed-12 {
98
+ @apply text-2xs font-sans leading-normal font-medium;
99
+ }
100
+
101
+ .typo-fixed-14 {
102
+ @apply font-sans text-xs leading-normal font-medium;
103
+ }
104
+
105
+ .typo-fixed-15 {
106
+ @apply font-sans text-sm leading-normal font-semibold;
107
+ }
108
+
109
+ .typo-fixed-16 {
110
+ @apply font-sans text-base leading-normal font-medium;
111
+ }
112
+
113
+ .typo-fixed-18 {
114
+ @apply font-sans text-lg leading-normal font-medium;
115
+ }
116
+
117
+ .typo-fixed-20 {
118
+ @apply font-sans text-xl leading-normal font-semibold;
119
+ }
120
+
121
+ .typo-fixed-24 {
122
+ @apply font-sans text-3xl leading-normal font-bold;
123
+ }
124
+ }
125
+
126
+ @theme {
127
+ --animate-toast-hide: toast-hide 100ms ease-in forwards;
128
+ --animate-toast-slide-in: toast-slide-in 150ms cubic-bezier(0.16, 1, 0.3, 1);
129
+ --animate-toast-swipe-out: toast-swipe-out 100ms ease-out forwards;
130
+
131
+ @keyframes toast-hide {
132
+ from {
133
+ opacity: 1;
134
+ }
135
+ to {
136
+ opacity: 0;
137
+ }
138
+ }
139
+
140
+ @keyframes toast-slide-in {
141
+ from {
142
+ transform: translateY(100%);
143
+ }
144
+ to {
145
+ transform: translateY(0);
146
+ }
147
+ }
148
+
149
+ @keyframes toast-swipe-out {
150
+ from {
151
+ transform: translateY(var(--radix-toast-swipe-end-y));
152
+ }
153
+ to {
154
+ transform: translateY(100%);
155
+ }
156
+ }
157
+ }