@pacer-ui/tokens 1.0.1
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 +21 -0
- package/README.md +106 -0
- package/dist/index.d.mts +741 -0
- package/dist/index.d.ts +741 -0
- package/dist/index.js +460 -0
- package/dist/index.mjs +425 -0
- package/dist/tokens.css +288 -0
- package/dist/tokens.json +365 -0
- package/package.json +35 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
borderRadius: () => borderRadius,
|
|
24
|
+
breakpoints: () => breakpoints,
|
|
25
|
+
colors: () => colors,
|
|
26
|
+
default: () => index_default,
|
|
27
|
+
maxWidth: () => maxWidth,
|
|
28
|
+
motion: () => motion,
|
|
29
|
+
opacity: () => opacity,
|
|
30
|
+
shadows: () => shadows,
|
|
31
|
+
spacing: () => spacing,
|
|
32
|
+
tokens: () => tokens,
|
|
33
|
+
typography: () => typography,
|
|
34
|
+
zIndex: () => zIndex
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
|
+
var colors = {
|
|
38
|
+
// Brand Colors - Pertamina Primary Blue
|
|
39
|
+
brand: {
|
|
40
|
+
50: "#E6F0FE",
|
|
41
|
+
100: "#D9E9FE",
|
|
42
|
+
200: "#B0D1FD",
|
|
43
|
+
300: "#016BF8",
|
|
44
|
+
400: "#0160DF",
|
|
45
|
+
500: "#0156C6",
|
|
46
|
+
600: "#0150BA",
|
|
47
|
+
700: "#014095",
|
|
48
|
+
800: "#003070",
|
|
49
|
+
900: "#002557"
|
|
50
|
+
},
|
|
51
|
+
// Base Colors
|
|
52
|
+
base: {
|
|
53
|
+
black: "#000000",
|
|
54
|
+
white: "#FFFFFF"
|
|
55
|
+
},
|
|
56
|
+
// Slate
|
|
57
|
+
slate: {
|
|
58
|
+
50: "#F8FAFC",
|
|
59
|
+
100: "#F1F5F9",
|
|
60
|
+
200: "#E2E8F0",
|
|
61
|
+
300: "#CBD5E1",
|
|
62
|
+
400: "#94A3B8",
|
|
63
|
+
500: "#64748B",
|
|
64
|
+
600: "#475569",
|
|
65
|
+
700: "#334155",
|
|
66
|
+
800: "#1E293B",
|
|
67
|
+
900: "#0F172A",
|
|
68
|
+
950: "#020617"
|
|
69
|
+
},
|
|
70
|
+
// Red - Error/Destructive
|
|
71
|
+
red: {
|
|
72
|
+
50: "#FEF2F2",
|
|
73
|
+
100: "#FEE2E2",
|
|
74
|
+
200: "#FECACA",
|
|
75
|
+
300: "#FCA5A5",
|
|
76
|
+
400: "#F87171",
|
|
77
|
+
500: "#EF4444",
|
|
78
|
+
600: "#DC2626",
|
|
79
|
+
700: "#B91C1C",
|
|
80
|
+
800: "#991B1B",
|
|
81
|
+
900: "#7F1D1D",
|
|
82
|
+
950: "#450A0A"
|
|
83
|
+
},
|
|
84
|
+
// Green - Success
|
|
85
|
+
green: {
|
|
86
|
+
50: "#F0FDF4",
|
|
87
|
+
100: "#DCFCE7",
|
|
88
|
+
200: "#BBF7D0",
|
|
89
|
+
300: "#86EFAC",
|
|
90
|
+
400: "#4ADE80",
|
|
91
|
+
500: "#22C55E",
|
|
92
|
+
600: "#16A34A",
|
|
93
|
+
700: "#15803D",
|
|
94
|
+
800: "#166534",
|
|
95
|
+
900: "#14532D",
|
|
96
|
+
950: "#052E16"
|
|
97
|
+
},
|
|
98
|
+
// Yellow - Warning
|
|
99
|
+
yellow: {
|
|
100
|
+
50: "#FEFCE8",
|
|
101
|
+
100: "#FEF9C3",
|
|
102
|
+
200: "#FEF08A",
|
|
103
|
+
300: "#FDE047",
|
|
104
|
+
400: "#FACC15",
|
|
105
|
+
500: "#EAB308",
|
|
106
|
+
600: "#CA8A04",
|
|
107
|
+
700: "#A16207",
|
|
108
|
+
800: "#854D0E",
|
|
109
|
+
900: "#713F12",
|
|
110
|
+
950: "#422006"
|
|
111
|
+
},
|
|
112
|
+
// Blue - Info
|
|
113
|
+
blue: {
|
|
114
|
+
50: "#EFF6FF",
|
|
115
|
+
100: "#DBEAFE",
|
|
116
|
+
200: "#BFDBFE",
|
|
117
|
+
300: "#93C5FD",
|
|
118
|
+
400: "#60A5FA",
|
|
119
|
+
500: "#3B82F6",
|
|
120
|
+
600: "#2563EB",
|
|
121
|
+
700: "#1D4ED8",
|
|
122
|
+
800: "#1E40AF",
|
|
123
|
+
900: "#1E3A8A",
|
|
124
|
+
950: "#172554"
|
|
125
|
+
},
|
|
126
|
+
// Gray
|
|
127
|
+
gray: {
|
|
128
|
+
50: "#F9FAFB",
|
|
129
|
+
100: "#F3F4F6",
|
|
130
|
+
200: "#E5E7EB",
|
|
131
|
+
300: "#D1D5DB",
|
|
132
|
+
400: "#9CA3AF",
|
|
133
|
+
500: "#6B7280",
|
|
134
|
+
600: "#4B5563",
|
|
135
|
+
700: "#374151",
|
|
136
|
+
800: "#1F2937",
|
|
137
|
+
900: "#111827",
|
|
138
|
+
950: "#030712"
|
|
139
|
+
},
|
|
140
|
+
// Zinc
|
|
141
|
+
zinc: {
|
|
142
|
+
50: "#FAFAFA",
|
|
143
|
+
100: "#F4F4F5",
|
|
144
|
+
200: "#E4E4E7",
|
|
145
|
+
300: "#D4D4D8",
|
|
146
|
+
400: "#A1A1AA",
|
|
147
|
+
500: "#71717A",
|
|
148
|
+
600: "#52525B",
|
|
149
|
+
700: "#3F3F46",
|
|
150
|
+
800: "#27272A",
|
|
151
|
+
900: "#18181B",
|
|
152
|
+
950: "#09090B"
|
|
153
|
+
},
|
|
154
|
+
// Neutral
|
|
155
|
+
neutral: {
|
|
156
|
+
50: "#FAFAFA",
|
|
157
|
+
100: "#F5F5F5",
|
|
158
|
+
200: "#E5E5E5",
|
|
159
|
+
300: "#D4D4D4",
|
|
160
|
+
400: "#A3A3A3",
|
|
161
|
+
500: "#737373",
|
|
162
|
+
600: "#525252",
|
|
163
|
+
700: "#404040",
|
|
164
|
+
800: "#262626",
|
|
165
|
+
900: "#171717",
|
|
166
|
+
950: "#0A0A0A"
|
|
167
|
+
},
|
|
168
|
+
// Stone
|
|
169
|
+
stone: {
|
|
170
|
+
50: "#FAFAF9",
|
|
171
|
+
100: "#F5F5F4",
|
|
172
|
+
200: "#E7E5E4",
|
|
173
|
+
300: "#D6D3D1",
|
|
174
|
+
400: "#A8A29E",
|
|
175
|
+
500: "#78716C",
|
|
176
|
+
600: "#57534E",
|
|
177
|
+
700: "#44403C",
|
|
178
|
+
800: "#292524",
|
|
179
|
+
900: "#1C1917",
|
|
180
|
+
950: "#0C0A09"
|
|
181
|
+
},
|
|
182
|
+
// Pertamina Official Colors
|
|
183
|
+
pertamina: {
|
|
184
|
+
red: "#ED1B2F",
|
|
185
|
+
blue: "#006CB8",
|
|
186
|
+
green: "#ACC42A"
|
|
187
|
+
},
|
|
188
|
+
// Semantic aliases
|
|
189
|
+
success: {
|
|
190
|
+
50: "#F0FDF4",
|
|
191
|
+
100: "#DCFCE7",
|
|
192
|
+
200: "#BBF7D0",
|
|
193
|
+
300: "#86EFAC",
|
|
194
|
+
400: "#4ADE80",
|
|
195
|
+
500: "#22C55E",
|
|
196
|
+
600: "#16A34A",
|
|
197
|
+
700: "#15803D",
|
|
198
|
+
800: "#166534",
|
|
199
|
+
900: "#14532D"
|
|
200
|
+
},
|
|
201
|
+
warning: {
|
|
202
|
+
50: "#FEFCE8",
|
|
203
|
+
100: "#FEF9C3",
|
|
204
|
+
200: "#FEF08A",
|
|
205
|
+
300: "#FDE047",
|
|
206
|
+
400: "#FACC15",
|
|
207
|
+
500: "#EAB308",
|
|
208
|
+
600: "#CA8A04",
|
|
209
|
+
700: "#A16207",
|
|
210
|
+
800: "#854D0E",
|
|
211
|
+
900: "#713F12"
|
|
212
|
+
},
|
|
213
|
+
error: {
|
|
214
|
+
50: "#FEF2F2",
|
|
215
|
+
100: "#FEE2E2",
|
|
216
|
+
200: "#FECACA",
|
|
217
|
+
300: "#FCA5A5",
|
|
218
|
+
400: "#F87171",
|
|
219
|
+
500: "#EF4444",
|
|
220
|
+
600: "#DC2626",
|
|
221
|
+
700: "#B91C1C",
|
|
222
|
+
800: "#991B1B",
|
|
223
|
+
900: "#7F1D1D"
|
|
224
|
+
},
|
|
225
|
+
info: {
|
|
226
|
+
50: "#EFF6FF",
|
|
227
|
+
100: "#DBEAFE",
|
|
228
|
+
200: "#BFDBFE",
|
|
229
|
+
300: "#93C5FD",
|
|
230
|
+
400: "#60A5FA",
|
|
231
|
+
500: "#3B82F6",
|
|
232
|
+
600: "#2563EB",
|
|
233
|
+
700: "#1D4ED8",
|
|
234
|
+
800: "#1E40AF",
|
|
235
|
+
900: "#1E3A8A"
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
var typography = {
|
|
239
|
+
fontFamily: {
|
|
240
|
+
sans: '"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
241
|
+
serif: '"Inter", Georgia, "Times New Roman", serif',
|
|
242
|
+
mono: '"Manrope", "Fira Code", Consolas, Monaco, monospace'
|
|
243
|
+
},
|
|
244
|
+
fontSize: {
|
|
245
|
+
xs: "0.75rem",
|
|
246
|
+
// 12px
|
|
247
|
+
sm: "0.875rem",
|
|
248
|
+
// 14px
|
|
249
|
+
base: "1rem",
|
|
250
|
+
// 16px
|
|
251
|
+
lg: "1.125rem",
|
|
252
|
+
// 18px
|
|
253
|
+
xl: "1.25rem",
|
|
254
|
+
// 20px
|
|
255
|
+
"2xl": "1.5rem",
|
|
256
|
+
// 24px
|
|
257
|
+
"3xl": "1.875rem",
|
|
258
|
+
// 30px
|
|
259
|
+
"4xl": "2.25rem",
|
|
260
|
+
// 36px
|
|
261
|
+
"5xl": "3rem",
|
|
262
|
+
// 48px
|
|
263
|
+
"6xl": "3.75rem",
|
|
264
|
+
// 60px
|
|
265
|
+
"7xl": "4.5rem",
|
|
266
|
+
// 72px
|
|
267
|
+
"8xl": "6rem",
|
|
268
|
+
// 96px
|
|
269
|
+
"9xl": "8rem"
|
|
270
|
+
// 128px
|
|
271
|
+
},
|
|
272
|
+
fontWeight: {
|
|
273
|
+
thin: "100",
|
|
274
|
+
extralight: "200",
|
|
275
|
+
light: "300",
|
|
276
|
+
normal: "400",
|
|
277
|
+
medium: "500",
|
|
278
|
+
semibold: "600",
|
|
279
|
+
bold: "700",
|
|
280
|
+
extrabold: "800",
|
|
281
|
+
black: "900"
|
|
282
|
+
},
|
|
283
|
+
lineHeight: {
|
|
284
|
+
3: "0.75rem",
|
|
285
|
+
// 12px
|
|
286
|
+
4: "1rem",
|
|
287
|
+
// 16px
|
|
288
|
+
5: "1.25rem",
|
|
289
|
+
// 20px
|
|
290
|
+
6: "1.5rem",
|
|
291
|
+
// 24px
|
|
292
|
+
7: "1.75rem",
|
|
293
|
+
// 28px
|
|
294
|
+
8: "2rem",
|
|
295
|
+
// 32px
|
|
296
|
+
9: "2.25rem",
|
|
297
|
+
// 36px
|
|
298
|
+
10: "2.5rem",
|
|
299
|
+
// 40px
|
|
300
|
+
none: "1",
|
|
301
|
+
tight: "1.25",
|
|
302
|
+
snug: "1.375",
|
|
303
|
+
normal: "1.5",
|
|
304
|
+
relaxed: "1.625",
|
|
305
|
+
loose: "2"
|
|
306
|
+
},
|
|
307
|
+
letterSpacing: {
|
|
308
|
+
tighter: "-0.05em",
|
|
309
|
+
tight: "-0.025em",
|
|
310
|
+
normal: "0em",
|
|
311
|
+
wide: "0.025em",
|
|
312
|
+
wider: "0.05em",
|
|
313
|
+
widest: "0.1em"
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
var spacing = {
|
|
317
|
+
0: "0px",
|
|
318
|
+
px: "1px",
|
|
319
|
+
0.5: "2px",
|
|
320
|
+
1: "4px",
|
|
321
|
+
1.5: "6px",
|
|
322
|
+
2: "8px",
|
|
323
|
+
2.5: "10px",
|
|
324
|
+
3: "12px",
|
|
325
|
+
3.5: "14px",
|
|
326
|
+
4: "16px",
|
|
327
|
+
5: "20px",
|
|
328
|
+
6: "24px",
|
|
329
|
+
7: "28px",
|
|
330
|
+
8: "32px",
|
|
331
|
+
9: "36px",
|
|
332
|
+
10: "40px",
|
|
333
|
+
11: "44px",
|
|
334
|
+
12: "48px",
|
|
335
|
+
14: "56px",
|
|
336
|
+
16: "64px",
|
|
337
|
+
18: "72px",
|
|
338
|
+
20: "80px",
|
|
339
|
+
24: "96px",
|
|
340
|
+
28: "112px",
|
|
341
|
+
32: "128px",
|
|
342
|
+
64: "256px"
|
|
343
|
+
};
|
|
344
|
+
var borderRadius = {
|
|
345
|
+
none: "0px",
|
|
346
|
+
sm: "2px",
|
|
347
|
+
DEFAULT: "4px",
|
|
348
|
+
md: "6px",
|
|
349
|
+
lg: "8px",
|
|
350
|
+
xl: "12px",
|
|
351
|
+
"2xl": "16px",
|
|
352
|
+
"3xl": "24px",
|
|
353
|
+
full: "9999px"
|
|
354
|
+
};
|
|
355
|
+
var opacity = {
|
|
356
|
+
0: "0",
|
|
357
|
+
5: "0.05",
|
|
358
|
+
10: "0.1",
|
|
359
|
+
20: "0.2",
|
|
360
|
+
25: "0.25",
|
|
361
|
+
30: "0.3",
|
|
362
|
+
40: "0.4",
|
|
363
|
+
50: "0.5",
|
|
364
|
+
60: "0.6",
|
|
365
|
+
70: "0.7",
|
|
366
|
+
80: "0.8",
|
|
367
|
+
90: "0.9",
|
|
368
|
+
95: "0.95",
|
|
369
|
+
100: "1"
|
|
370
|
+
};
|
|
371
|
+
var maxWidth = {
|
|
372
|
+
xs: "320px",
|
|
373
|
+
sm: "384px",
|
|
374
|
+
md: "448px",
|
|
375
|
+
lg: "512px",
|
|
376
|
+
xl: "576px",
|
|
377
|
+
"2xl": "672px",
|
|
378
|
+
"3xl": "768px",
|
|
379
|
+
"4xl": "896px",
|
|
380
|
+
"5xl": "1024px",
|
|
381
|
+
"6xl": "1152px",
|
|
382
|
+
"7xl": "1280px",
|
|
383
|
+
"screen-sm": "640px",
|
|
384
|
+
"screen-md": "768px",
|
|
385
|
+
"screen-lg": "1024px",
|
|
386
|
+
"screen-xl": "1280px",
|
|
387
|
+
"screen-2xl": "1536px"
|
|
388
|
+
};
|
|
389
|
+
var shadows = {
|
|
390
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
391
|
+
DEFAULT: "0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10)",
|
|
392
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10)",
|
|
393
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10)",
|
|
394
|
+
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)",
|
|
395
|
+
"2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
396
|
+
inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
397
|
+
none: "0 0 #0000"
|
|
398
|
+
};
|
|
399
|
+
var motion = {
|
|
400
|
+
duration: {
|
|
401
|
+
instant: "0ms",
|
|
402
|
+
fast: "150ms",
|
|
403
|
+
normal: "250ms",
|
|
404
|
+
slow: "350ms",
|
|
405
|
+
slower: "500ms"
|
|
406
|
+
},
|
|
407
|
+
easing: {
|
|
408
|
+
linear: "linear",
|
|
409
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
410
|
+
easeOut: "cubic-bezier(0, 0, 0.2, 1)",
|
|
411
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
412
|
+
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
var breakpoints = {
|
|
416
|
+
sm: "640px",
|
|
417
|
+
md: "768px",
|
|
418
|
+
lg: "1024px",
|
|
419
|
+
xl: "1280px",
|
|
420
|
+
"2xl": "1536px"
|
|
421
|
+
};
|
|
422
|
+
var zIndex = {
|
|
423
|
+
hide: "-1",
|
|
424
|
+
base: "0",
|
|
425
|
+
dropdown: "1000",
|
|
426
|
+
sticky: "1020",
|
|
427
|
+
fixed: "1030",
|
|
428
|
+
modalBackdrop: "1040",
|
|
429
|
+
modal: "1050",
|
|
430
|
+
popover: "1060",
|
|
431
|
+
tooltip: "1070",
|
|
432
|
+
toast: "1080"
|
|
433
|
+
};
|
|
434
|
+
var tokens = {
|
|
435
|
+
colors,
|
|
436
|
+
typography,
|
|
437
|
+
spacing,
|
|
438
|
+
borderRadius,
|
|
439
|
+
opacity,
|
|
440
|
+
maxWidth,
|
|
441
|
+
shadows,
|
|
442
|
+
motion,
|
|
443
|
+
breakpoints,
|
|
444
|
+
zIndex
|
|
445
|
+
};
|
|
446
|
+
var index_default = tokens;
|
|
447
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
448
|
+
0 && (module.exports = {
|
|
449
|
+
borderRadius,
|
|
450
|
+
breakpoints,
|
|
451
|
+
colors,
|
|
452
|
+
maxWidth,
|
|
453
|
+
motion,
|
|
454
|
+
opacity,
|
|
455
|
+
shadows,
|
|
456
|
+
spacing,
|
|
457
|
+
tokens,
|
|
458
|
+
typography,
|
|
459
|
+
zIndex
|
|
460
|
+
});
|