kaleido-ui 0.1.2 → 0.1.3
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/dist/css/kaleido-ui.css +238 -72
- package/dist/native/index.cjs +8 -2
- package/dist/native/index.d.cts +7 -2
- package/dist/native/index.d.ts +7 -2
- package/dist/native/index.js +8 -2
- package/dist/tokens/index.cjs +85 -2
- package/dist/tokens/index.d.cts +124 -3
- package/dist/tokens/index.d.ts +124 -3
- package/dist/tokens/index.js +82 -2
- package/dist/web/index.cjs +112 -103
- package/dist/web/index.d.cts +16 -12
- package/dist/web/index.d.ts +16 -12
- package/dist/web/index.js +110 -101
- package/package.json +6 -10
- package/dist/tailwind/index.cjs +0 -225
- package/dist/tailwind/index.d.cts +0 -162
- package/dist/tailwind/index.d.ts +0 -162
- package/dist/tailwind/index.js +0 -202
- package/tailwind/index.d.ts +0 -1
- package/tailwind/index.js +0 -1
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KaleidoSwap Color Tokens
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for all color constants across web and native.
|
|
5
|
+
*/
|
|
6
|
+
declare const lightSemanticColors: {
|
|
7
|
+
readonly background: "#ffffff";
|
|
8
|
+
readonly foreground: "#0a0a0a";
|
|
9
|
+
readonly card: "#ffffff";
|
|
10
|
+
readonly cardFg: "#0a0a0a";
|
|
11
|
+
readonly popover: "#ffffff";
|
|
12
|
+
readonly popoverFg: "#0a0a0a";
|
|
13
|
+
readonly primary: "#171717";
|
|
14
|
+
readonly primaryFg: "#fafafa";
|
|
15
|
+
readonly secondary: "#f5f5f5";
|
|
16
|
+
readonly secondaryFg: "#171717";
|
|
17
|
+
readonly muted: "#f5f5f5";
|
|
18
|
+
readonly mutedFg: "#737373";
|
|
19
|
+
readonly accent: "#f5f5f5";
|
|
20
|
+
readonly accentFg: "#171717";
|
|
21
|
+
readonly destructive: "#e7000b";
|
|
22
|
+
readonly border: "#e5e5e5";
|
|
23
|
+
readonly input: "#e5e5e5";
|
|
24
|
+
readonly ring: "#a1a1a1";
|
|
25
|
+
readonly chart1: "#2BEE79";
|
|
26
|
+
readonly chart2: "#F6C343";
|
|
27
|
+
readonly chart3: "#F7931A";
|
|
28
|
+
readonly chart4: "#7C3AED";
|
|
29
|
+
readonly chart5: "#DD352E";
|
|
30
|
+
};
|
|
1
31
|
declare const colors: {
|
|
2
32
|
readonly textPrimary: "#ffffff";
|
|
3
33
|
readonly textSecondary: "rgba(255, 255, 255, 0.55)";
|
|
@@ -80,15 +110,20 @@ declare const fontWeight: {
|
|
|
80
110
|
* KaleidoSwap Border Radius Tokens
|
|
81
111
|
*/
|
|
82
112
|
declare const radius: {
|
|
113
|
+
readonly none: "0px";
|
|
114
|
+
readonly xs: "2px";
|
|
83
115
|
readonly sm: "4px";
|
|
84
116
|
readonly md: "6px";
|
|
85
117
|
readonly lg: "8px";
|
|
86
118
|
readonly xl: "12px";
|
|
119
|
+
readonly '2xl': "16px";
|
|
120
|
+
readonly '3xl': "24px";
|
|
121
|
+
readonly '4xl': "32px";
|
|
122
|
+
readonly full: "9999px";
|
|
87
123
|
readonly card: "16px";
|
|
88
124
|
readonly panel: "24px";
|
|
89
|
-
readonly pill: "9999px";
|
|
90
125
|
readonly nav: "32px";
|
|
91
|
-
readonly
|
|
126
|
+
readonly pill: "9999px";
|
|
92
127
|
};
|
|
93
128
|
|
|
94
129
|
/**
|
|
@@ -110,4 +145,90 @@ declare const transition: {
|
|
|
110
145
|
readonly slow: "300ms ease-out";
|
|
111
146
|
};
|
|
112
147
|
|
|
113
|
-
|
|
148
|
+
/**
|
|
149
|
+
* KaleidoSwap Animation Tokens
|
|
150
|
+
*/
|
|
151
|
+
declare const keyframes: {
|
|
152
|
+
readonly 'accordion-down': {
|
|
153
|
+
readonly from: {
|
|
154
|
+
readonly height: "0";
|
|
155
|
+
};
|
|
156
|
+
readonly to: {
|
|
157
|
+
readonly height: "var(--radix-accordion-content-height)";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly 'accordion-up': {
|
|
161
|
+
readonly from: {
|
|
162
|
+
readonly height: "var(--radix-accordion-content-height)";
|
|
163
|
+
};
|
|
164
|
+
readonly to: {
|
|
165
|
+
readonly height: "0";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly 'fade-in': {
|
|
169
|
+
readonly from: {
|
|
170
|
+
readonly opacity: "0";
|
|
171
|
+
};
|
|
172
|
+
readonly to: {
|
|
173
|
+
readonly opacity: "1";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly 'slide-up': {
|
|
177
|
+
readonly from: {
|
|
178
|
+
readonly opacity: "0";
|
|
179
|
+
readonly transform: "translateY(10px)";
|
|
180
|
+
};
|
|
181
|
+
readonly to: {
|
|
182
|
+
readonly opacity: "1";
|
|
183
|
+
readonly transform: "translateY(0)";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly 'slide-in-from-bottom': {
|
|
187
|
+
readonly from: {
|
|
188
|
+
readonly opacity: "0";
|
|
189
|
+
readonly transform: "translateY(20px)";
|
|
190
|
+
};
|
|
191
|
+
readonly to: {
|
|
192
|
+
readonly opacity: "1";
|
|
193
|
+
readonly transform: "translateY(0)";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly shimmer: {
|
|
197
|
+
readonly '0%': {
|
|
198
|
+
readonly backgroundPosition: "-200% 0";
|
|
199
|
+
};
|
|
200
|
+
readonly '100%': {
|
|
201
|
+
readonly backgroundPosition: "200% 0";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly 'stagger-up': {
|
|
205
|
+
readonly '0%': {
|
|
206
|
+
readonly opacity: "0";
|
|
207
|
+
readonly transform: "translateY(15px)";
|
|
208
|
+
};
|
|
209
|
+
readonly '100%': {
|
|
210
|
+
readonly opacity: "1";
|
|
211
|
+
readonly transform: "translateY(0)";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly 'bounce-slight': {
|
|
215
|
+
readonly '0%, 100%': {
|
|
216
|
+
readonly transform: "translateY(-5%)";
|
|
217
|
+
};
|
|
218
|
+
readonly '50%': {
|
|
219
|
+
readonly transform: "translateY(0)";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
declare const animation: {
|
|
224
|
+
readonly 'accordion-down': "accordion-down 0.2s ease-out";
|
|
225
|
+
readonly 'accordion-up': "accordion-up 0.2s ease-out";
|
|
226
|
+
readonly 'fade-in': "fade-in 0.3s ease-out";
|
|
227
|
+
readonly 'slide-up': "slide-up 0.3s ease-out";
|
|
228
|
+
readonly 'slide-in-from-bottom': "slide-in-from-bottom 0.4s ease-out";
|
|
229
|
+
readonly 'stagger-up': "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards";
|
|
230
|
+
readonly shimmer: "shimmer 2s linear infinite";
|
|
231
|
+
readonly 'bounce-slight': "bounce-slight 2s infinite";
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export { animation, colors, fontFamily, fontWeight, keyframes, lightSemanticColors, radius, shadow, transition, typeScale };
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
// src/tokens/colors.ts
|
|
2
|
+
var lightSemanticColors = {
|
|
3
|
+
background: "#ffffff",
|
|
4
|
+
foreground: "#0a0a0a",
|
|
5
|
+
card: "#ffffff",
|
|
6
|
+
cardFg: "#0a0a0a",
|
|
7
|
+
popover: "#ffffff",
|
|
8
|
+
popoverFg: "#0a0a0a",
|
|
9
|
+
primary: "#171717",
|
|
10
|
+
primaryFg: "#fafafa",
|
|
11
|
+
secondary: "#f5f5f5",
|
|
12
|
+
secondaryFg: "#171717",
|
|
13
|
+
muted: "#f5f5f5",
|
|
14
|
+
mutedFg: "#737373",
|
|
15
|
+
accent: "#f5f5f5",
|
|
16
|
+
accentFg: "#171717",
|
|
17
|
+
destructive: "#e7000b",
|
|
18
|
+
border: "#e5e5e5",
|
|
19
|
+
input: "#e5e5e5",
|
|
20
|
+
ring: "#a1a1a1",
|
|
21
|
+
chart1: "#2BEE79",
|
|
22
|
+
chart2: "#F6C343",
|
|
23
|
+
chart3: "#F7931A",
|
|
24
|
+
chart4: "#7C3AED",
|
|
25
|
+
chart5: "#DD352E"
|
|
26
|
+
};
|
|
2
27
|
var darkSemanticColors = {
|
|
3
28
|
background: "hsl(158 58% 7%)",
|
|
4
29
|
foreground: "#ffffff",
|
|
@@ -77,15 +102,21 @@ var fontWeight = {
|
|
|
77
102
|
|
|
78
103
|
// src/tokens/radius.ts
|
|
79
104
|
var radius = {
|
|
105
|
+
none: "0px",
|
|
106
|
+
xs: "2px",
|
|
80
107
|
sm: "4px",
|
|
81
108
|
md: "6px",
|
|
82
109
|
lg: "8px",
|
|
83
110
|
xl: "12px",
|
|
111
|
+
"2xl": "16px",
|
|
112
|
+
"3xl": "24px",
|
|
113
|
+
"4xl": "32px",
|
|
114
|
+
full: "9999px",
|
|
115
|
+
// Semantic aliases
|
|
84
116
|
card: "16px",
|
|
85
117
|
panel: "24px",
|
|
86
|
-
pill: "9999px",
|
|
87
118
|
nav: "32px",
|
|
88
|
-
|
|
119
|
+
pill: "9999px"
|
|
89
120
|
};
|
|
90
121
|
|
|
91
122
|
// src/tokens/shadows.ts
|
|
@@ -102,10 +133,59 @@ var transition = {
|
|
|
102
133
|
default: "200ms ease-out",
|
|
103
134
|
slow: "300ms ease-out"
|
|
104
135
|
};
|
|
136
|
+
|
|
137
|
+
// src/tokens/animations.ts
|
|
138
|
+
var keyframes = {
|
|
139
|
+
"accordion-down": {
|
|
140
|
+
from: { height: "0" },
|
|
141
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
142
|
+
},
|
|
143
|
+
"accordion-up": {
|
|
144
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
145
|
+
to: { height: "0" }
|
|
146
|
+
},
|
|
147
|
+
"fade-in": {
|
|
148
|
+
from: { opacity: "0" },
|
|
149
|
+
to: { opacity: "1" }
|
|
150
|
+
},
|
|
151
|
+
"slide-up": {
|
|
152
|
+
from: { opacity: "0", transform: "translateY(10px)" },
|
|
153
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
154
|
+
},
|
|
155
|
+
"slide-in-from-bottom": {
|
|
156
|
+
from: { opacity: "0", transform: "translateY(20px)" },
|
|
157
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
158
|
+
},
|
|
159
|
+
shimmer: {
|
|
160
|
+
"0%": { backgroundPosition: "-200% 0" },
|
|
161
|
+
"100%": { backgroundPosition: "200% 0" }
|
|
162
|
+
},
|
|
163
|
+
"stagger-up": {
|
|
164
|
+
"0%": { opacity: "0", transform: "translateY(15px)" },
|
|
165
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
166
|
+
},
|
|
167
|
+
"bounce-slight": {
|
|
168
|
+
"0%, 100%": { transform: "translateY(-5%)" },
|
|
169
|
+
"50%": { transform: "translateY(0)" }
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var animation = {
|
|
173
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
174
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
175
|
+
"fade-in": "fade-in 0.3s ease-out",
|
|
176
|
+
"slide-up": "slide-up 0.3s ease-out",
|
|
177
|
+
"slide-in-from-bottom": "slide-in-from-bottom 0.4s ease-out",
|
|
178
|
+
"stagger-up": "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards",
|
|
179
|
+
shimmer: "shimmer 2s linear infinite",
|
|
180
|
+
"bounce-slight": "bounce-slight 2s infinite"
|
|
181
|
+
};
|
|
105
182
|
export {
|
|
183
|
+
animation,
|
|
106
184
|
colors,
|
|
107
185
|
fontFamily,
|
|
108
186
|
fontWeight,
|
|
187
|
+
keyframes,
|
|
188
|
+
lightSemanticColors,
|
|
109
189
|
radius,
|
|
110
190
|
shadow,
|
|
111
191
|
transition,
|