@12min/ds 0.1.0 → 3.0.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.
- package/README.md +84 -51
- package/dist/Checkbox.styles-DPyXzxFJ.d.mts +90 -0
- package/dist/Checkbox.styles-DPyXzxFJ.d.ts +90 -0
- package/dist/chunk-ZK7NW4WW.mjs +247 -0
- package/dist/chunk-ZK7NW4WW.mjs.map +1 -0
- package/dist/chunk-ZKPOS2PD.mjs +192 -0
- package/dist/chunk-ZKPOS2PD.mjs.map +1 -0
- package/dist/index.native.d.mts +184 -2
- package/dist/index.native.d.ts +184 -2
- package/dist/index.native.js +1160 -62
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +742 -5
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +182 -22
- package/dist/index.web.d.ts +182 -22
- package/dist/index.web.js +1052 -62
- package/dist/index.web.js.map +1 -1
- package/dist/index.web.mjs +644 -4
- package/dist/index.web.mjs.map +1 -1
- package/dist/tailwind/theme.css +300 -38
- package/dist/tokens/index.d.mts +385 -37
- package/dist/tokens/index.d.ts +385 -37
- package/dist/tokens/index.js +242 -33
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +17 -3
- package/package.json +28 -5
- package/dist/chunk-E2C4G6H4.mjs +0 -45
- package/dist/chunk-E2C4G6H4.mjs.map +0 -1
- package/dist/chunk-QIJRSFZB.mjs +0 -41
- package/dist/chunk-QIJRSFZB.mjs.map +0 -1
package/dist/tokens/index.js
CHANGED
|
@@ -20,52 +20,261 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/tokens/index.ts
|
|
21
21
|
var tokens_exports = {};
|
|
22
22
|
__export(tokens_exports, {
|
|
23
|
-
|
|
23
|
+
borderWidth: () => borderWidth,
|
|
24
|
+
colors: () => colors,
|
|
25
|
+
grid: () => grid,
|
|
26
|
+
opacity: () => opacity,
|
|
27
|
+
radius: () => radius,
|
|
28
|
+
shadow: () => shadow,
|
|
29
|
+
spacing: () => spacing,
|
|
30
|
+
typography: () => typography
|
|
24
31
|
});
|
|
25
32
|
module.exports = __toCommonJS(tokens_exports);
|
|
26
33
|
|
|
27
34
|
// src/tokens/colors.ts
|
|
28
35
|
var colors = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
marianBlue: {
|
|
37
|
+
50: "#FAFBFF",
|
|
38
|
+
100: "#F6F8FF",
|
|
39
|
+
200: "#E1E7FF",
|
|
40
|
+
300: "#C3CCF7",
|
|
41
|
+
400: "#94A5F2",
|
|
42
|
+
500: "#697DD6",
|
|
43
|
+
600: "#4357AD",
|
|
44
|
+
700: "#31428B",
|
|
45
|
+
800: "#25326A",
|
|
46
|
+
900: "#131937"
|
|
32
47
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
900: "#121212"
|
|
48
|
+
midnight: {
|
|
49
|
+
50: "#707070",
|
|
50
|
+
100: "#5C5C5C",
|
|
51
|
+
200: "#525252",
|
|
52
|
+
300: "#474747",
|
|
53
|
+
400: "#3D3D3D",
|
|
54
|
+
500: "#333333",
|
|
55
|
+
600: "#292929",
|
|
56
|
+
700: "#161616",
|
|
57
|
+
800: "#141414",
|
|
58
|
+
900: "#0A0A0A"
|
|
45
59
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
gray: {
|
|
61
|
+
15: "#F4F5F8",
|
|
62
|
+
25: "#EDEEF1",
|
|
63
|
+
35: "#DDE0E6",
|
|
64
|
+
50: "#B1B5BE",
|
|
65
|
+
100: "#A6ABB5",
|
|
66
|
+
200: "#9BA0AB",
|
|
67
|
+
300: "#9095A2",
|
|
68
|
+
400: "#858B99",
|
|
69
|
+
500: "#7A8190",
|
|
70
|
+
600: "#6F7685",
|
|
71
|
+
700: "#5E6471",
|
|
72
|
+
800: "#5D636F",
|
|
73
|
+
900: "#545964"
|
|
50
74
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
75
|
+
amber: {
|
|
76
|
+
50: "#FFFBEB",
|
|
77
|
+
100: "#FEF3C7",
|
|
78
|
+
200: "#FDE68A",
|
|
79
|
+
300: "#FCD34D",
|
|
80
|
+
400: "#FBBF24",
|
|
81
|
+
500: "#F59E0B",
|
|
82
|
+
600: "#D97706",
|
|
83
|
+
700: "#B45309",
|
|
84
|
+
800: "#92400E",
|
|
85
|
+
900: "#78350F",
|
|
86
|
+
text: "#BA5C0A"
|
|
55
87
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
88
|
+
yellow: {
|
|
89
|
+
50: "#FFF2D6",
|
|
90
|
+
100: "#FFECC2",
|
|
91
|
+
200: "#FFE5AD",
|
|
92
|
+
300: "#FFDF99",
|
|
93
|
+
400: "#FFD885",
|
|
94
|
+
500: "#FFD270",
|
|
95
|
+
600: "#FFCB5C",
|
|
96
|
+
700: "#FFC140",
|
|
97
|
+
800: "#FFBE33",
|
|
98
|
+
900: "#FFB81F"
|
|
60
99
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
100
|
+
ketchup: {
|
|
101
|
+
50: "#FEF2F2",
|
|
102
|
+
100: "#FEE2E2",
|
|
103
|
+
200: "#FECACA",
|
|
104
|
+
300: "#FCA5A5",
|
|
105
|
+
400: "#F87171",
|
|
106
|
+
500: "#EF4444",
|
|
107
|
+
600: "#DC2626",
|
|
108
|
+
700: "#B91C1C",
|
|
109
|
+
800: "#991B1B",
|
|
110
|
+
900: "#7F1D1D",
|
|
111
|
+
text: "#D91F3C"
|
|
112
|
+
},
|
|
113
|
+
green: {
|
|
114
|
+
50: "#F2FDF4",
|
|
115
|
+
100: "#E5FBE9",
|
|
116
|
+
200: "#C7F4D0",
|
|
117
|
+
300: "#99E5AC",
|
|
118
|
+
400: "#5FCD80",
|
|
119
|
+
500: "#36B260",
|
|
120
|
+
600: "#258F4B",
|
|
121
|
+
700: "#1B6F3B",
|
|
122
|
+
800: "#145430",
|
|
123
|
+
900: "#0E3622",
|
|
124
|
+
text: "#0E8745"
|
|
125
|
+
},
|
|
126
|
+
blue: {
|
|
127
|
+
50: "#EFF6FF",
|
|
128
|
+
100: "#DBEAFE",
|
|
129
|
+
200: "#BFDBFE",
|
|
130
|
+
300: "#93C5FD",
|
|
131
|
+
400: "#60A5FA",
|
|
132
|
+
500: "#3B82F6",
|
|
133
|
+
600: "#2563EB",
|
|
134
|
+
700: "#1D4ED8",
|
|
135
|
+
800: "#1E40AF",
|
|
136
|
+
900: "#1E3A8A",
|
|
137
|
+
text: "#1E40AF"
|
|
138
|
+
},
|
|
139
|
+
// Single brand accent green — the vibrant tone that was previously green/300
|
|
140
|
+
// before the green scale was retuned to muted values in the Figma v2 palette.
|
|
141
|
+
brandGreen: "#6DFFB4",
|
|
142
|
+
overlayBlack: {
|
|
143
|
+
5: "#0000000D",
|
|
144
|
+
8: "#00000014",
|
|
145
|
+
12: "#0000001F",
|
|
146
|
+
16: "#00000029"
|
|
147
|
+
},
|
|
148
|
+
overlayWhite: {
|
|
149
|
+
5: "#FFFFFF0D",
|
|
150
|
+
8: "#FFFFFF14",
|
|
151
|
+
12: "#FFFFFF1F",
|
|
152
|
+
16: "#FFFFFF29"
|
|
153
|
+
},
|
|
154
|
+
white: "#FFFFFF",
|
|
155
|
+
black: "#000000"
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/tokens/typography.ts
|
|
159
|
+
var typography = {
|
|
160
|
+
display1: { fontFamily: "Poppins", fontSize: 32, fontWeight: "700", lineHeight: 40, letterSpacing: -1, textTransform: "none" },
|
|
161
|
+
display2: { fontFamily: "Poppins", fontSize: 32, fontWeight: "700", lineHeight: 40, letterSpacing: -1, textTransform: "none" },
|
|
162
|
+
h1: { fontFamily: "Poppins", fontSize: 24, fontWeight: "700", lineHeight: 32, letterSpacing: -1, textTransform: "none" },
|
|
163
|
+
h2: { fontFamily: "Poppins", fontSize: 20, fontWeight: "700", lineHeight: 28, letterSpacing: 0, textTransform: "none" },
|
|
164
|
+
h3: { fontFamily: "Poppins", fontSize: 16, fontWeight: "600", lineHeight: 24, letterSpacing: 0, textTransform: "none" },
|
|
165
|
+
bodyLarge: { fontFamily: "Inter", fontSize: 16, fontWeight: "500", lineHeight: 24, letterSpacing: 0, textTransform: "none" },
|
|
166
|
+
bodyDefault: { fontFamily: "Inter", fontSize: 14, fontWeight: "500", lineHeight: 20, letterSpacing: 0, textTransform: "none" },
|
|
167
|
+
bodySmall: { fontFamily: "Inter", fontSize: 12, fontWeight: "400", lineHeight: 16, letterSpacing: 0.2, textTransform: "none" },
|
|
168
|
+
labelLarge: { fontFamily: "Inter", fontSize: 16, fontWeight: "600", lineHeight: 20, letterSpacing: 0, textTransform: "none" },
|
|
169
|
+
labelDefault: { fontFamily: "Inter", fontSize: 14, fontWeight: "600", lineHeight: 20, letterSpacing: 0, textTransform: "none" },
|
|
170
|
+
labelSmall: { fontFamily: "Inter", fontSize: 12, fontWeight: "600", lineHeight: 16, letterSpacing: 0.2, textTransform: "none" },
|
|
171
|
+
labelTiny: { fontFamily: "Inter", fontSize: 10, fontWeight: "600", lineHeight: 14, letterSpacing: 0, textTransform: "none" },
|
|
172
|
+
caption: { fontFamily: "Inter", fontSize: 12, fontWeight: "500", lineHeight: 16, letterSpacing: 0.5, textTransform: "none" },
|
|
173
|
+
captionUppercase: { fontFamily: "Inter", fontSize: 12, fontWeight: "500", lineHeight: 16, letterSpacing: 0.5, textTransform: "uppercase" },
|
|
174
|
+
overline: { fontFamily: "Inter", fontSize: 10, fontWeight: "600", lineHeight: 16, letterSpacing: 8, textTransform: "uppercase" },
|
|
175
|
+
buttonLarge: { fontFamily: "Inter", fontSize: 16, fontWeight: "600", lineHeight: 20, letterSpacing: 0, textTransform: "none" },
|
|
176
|
+
buttonDefault: { fontFamily: "Inter", fontSize: 14, fontWeight: "600", lineHeight: 20, letterSpacing: 0, textTransform: "none" },
|
|
177
|
+
buttonSmall: { fontFamily: "Inter", fontSize: 12, fontWeight: "600", lineHeight: 16, letterSpacing: 0, textTransform: "none" }
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
// src/tokens/spacing.ts
|
|
181
|
+
var spacing = {
|
|
182
|
+
unit: 4,
|
|
183
|
+
gap: {
|
|
184
|
+
"0.5": 2,
|
|
185
|
+
"1": 4,
|
|
186
|
+
"2": 8,
|
|
187
|
+
"3": 12,
|
|
188
|
+
"4": 16,
|
|
189
|
+
"5": 20,
|
|
190
|
+
"6": 24,
|
|
191
|
+
"8": 32,
|
|
192
|
+
"10": 40,
|
|
193
|
+
"12": 48,
|
|
194
|
+
"14": 56,
|
|
195
|
+
"16": 64,
|
|
196
|
+
"18": 72,
|
|
197
|
+
"20": 80,
|
|
198
|
+
"22": 88,
|
|
199
|
+
"24": 96
|
|
200
|
+
},
|
|
201
|
+
screen: {
|
|
202
|
+
x: 16,
|
|
203
|
+
y: 24
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// src/tokens/grid.ts
|
|
208
|
+
var grid = {
|
|
209
|
+
// 8px square baseline — line-height/* steps 16/24/32/40 snap; 20 and 28 land on a half-cell
|
|
210
|
+
baseline: 8,
|
|
211
|
+
breakpoints: {
|
|
212
|
+
mobile: 0,
|
|
213
|
+
tablet: 768,
|
|
214
|
+
desktop: 1024
|
|
215
|
+
},
|
|
216
|
+
columns: {
|
|
217
|
+
mobile: 4,
|
|
218
|
+
tablet: 8,
|
|
219
|
+
desktop: 12
|
|
220
|
+
},
|
|
221
|
+
gutter: {
|
|
222
|
+
mobile: 8,
|
|
223
|
+
tablet: 16,
|
|
224
|
+
desktop: 24
|
|
225
|
+
},
|
|
226
|
+
margin: {
|
|
227
|
+
mobile: 20,
|
|
228
|
+
tablet: 24,
|
|
229
|
+
desktop: 32
|
|
65
230
|
}
|
|
66
231
|
};
|
|
232
|
+
|
|
233
|
+
// src/tokens/radius.ts
|
|
234
|
+
var radius = {
|
|
235
|
+
none: 0,
|
|
236
|
+
sm: 8,
|
|
237
|
+
md: 12,
|
|
238
|
+
lg: 16,
|
|
239
|
+
xl: 20,
|
|
240
|
+
"2xl": 24,
|
|
241
|
+
full: 9999,
|
|
242
|
+
button: 16,
|
|
243
|
+
card: 20,
|
|
244
|
+
input: 12,
|
|
245
|
+
chip: 9999,
|
|
246
|
+
badge: 8
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
// src/tokens/borderWidth.ts
|
|
250
|
+
var borderWidth = {
|
|
251
|
+
default: 1,
|
|
252
|
+
strong: 1.5,
|
|
253
|
+
heavy: 2
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// src/tokens/shadow.ts
|
|
257
|
+
var shadow = {
|
|
258
|
+
sm: { offsetX: 0, offsetY: 1, blur: 3, spread: 0, color: "#000000", opacity: { light: 0.08, dark: 0.4 } },
|
|
259
|
+
md: { offsetX: 0, offsetY: 4, blur: 12, spread: 0, color: "#000000", opacity: { light: 0.1, dark: 0.5 } },
|
|
260
|
+
lg: { offsetX: 0, offsetY: 8, blur: 24, spread: -4, color: "#000000", opacity: { light: 0.12, dark: 0.6 } }
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
// src/tokens/opacity.ts
|
|
264
|
+
var opacity = {
|
|
265
|
+
disabled: 0.4,
|
|
266
|
+
hover: 0.08,
|
|
267
|
+
pressed: 0.12
|
|
268
|
+
};
|
|
67
269
|
// Annotate the CommonJS export names for ESM import in node:
|
|
68
270
|
0 && (module.exports = {
|
|
69
|
-
|
|
271
|
+
borderWidth,
|
|
272
|
+
colors,
|
|
273
|
+
grid,
|
|
274
|
+
opacity,
|
|
275
|
+
radius,
|
|
276
|
+
shadow,
|
|
277
|
+
spacing,
|
|
278
|
+
typography
|
|
70
279
|
});
|
|
71
280
|
//# sourceMappingURL=index.js.map
|
package/dist/tokens/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tokens/index.ts","../../src/tokens/colors.ts"],"sourcesContent":["export * from './colors'\n","export const colors = {\n brand: {\n primary: '#FF6B35',\n secondary: '#1A1A2E',\n },\n\n neutral: {\n 0: '#FFFFFF',\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#E5E5E5',\n 300: '#D4D4D4',\n 400: '#A3A3A3',\n 500: '#737373',\n 600: '#525252',\n 700: '#404040',\n 800: '#262626',\n 900: '#121212',\n },\n\n success: {\n light: '#4ADE80',\n default: '#22C55E',\n dark: '#16A34A',\n },\n\n error: {\n light: '#F87171',\n default: '#EF4444',\n dark: '#DC2626',\n },\n\n warning: {\n light: '#FCD34D',\n default: '#F59E0B',\n dark: '#D97706',\n },\n\n info: {\n light: '#60A5FA',\n default: '#3B82F6',\n dark: '#2563EB',\n },\n} as const\n\nexport type Colors = typeof colors\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,SAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EAEA,SAAS;AAAA,IACP,GAAK;AAAA,IACL,IAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EAEA,SAAS;AAAA,IACP,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,OAAO;AAAA,IACL,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,SAAS;AAAA,IACP,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,MAAM;AAAA,IACJ,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/tokens/index.ts","../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/grid.ts","../../src/tokens/radius.ts","../../src/tokens/borderWidth.ts","../../src/tokens/shadow.ts","../../src/tokens/opacity.ts"],"sourcesContent":["export * from './colors'\nexport * from './typography'\nexport * from './spacing'\nexport * from './grid'\nexport * from './radius'\nexport * from './borderWidth'\nexport * from './shadow'\nexport * from './opacity'\n","export const colors = {\n marianBlue: {\n 50: '#FAFBFF',\n 100: '#F6F8FF',\n 200: '#E1E7FF',\n 300: '#C3CCF7',\n 400: '#94A5F2',\n 500: '#697DD6',\n 600: '#4357AD',\n 700: '#31428B',\n 800: '#25326A',\n 900: '#131937',\n },\n\n midnight: {\n 50: '#707070',\n 100: '#5C5C5C',\n 200: '#525252',\n 300: '#474747',\n 400: '#3D3D3D',\n 500: '#333333',\n 600: '#292929',\n 700: '#161616',\n 800: '#141414',\n 900: '#0A0A0A',\n },\n\n gray: {\n 15: '#F4F5F8',\n 25: '#EDEEF1',\n 35: '#DDE0E6',\n 50: '#B1B5BE',\n 100: '#A6ABB5',\n 200: '#9BA0AB',\n 300: '#9095A2',\n 400: '#858B99',\n 500: '#7A8190',\n 600: '#6F7685',\n 700: '#5E6471',\n 800: '#5D636F',\n 900: '#545964',\n },\n\n amber: {\n 50: '#FFFBEB',\n 100: '#FEF3C7',\n 200: '#FDE68A',\n 300: '#FCD34D',\n 400: '#FBBF24',\n 500: '#F59E0B',\n 600: '#D97706',\n 700: '#B45309',\n 800: '#92400E',\n 900: '#78350F',\n text: '#BA5C0A',\n },\n\n yellow: {\n 50: '#FFF2D6',\n 100: '#FFECC2',\n 200: '#FFE5AD',\n 300: '#FFDF99',\n 400: '#FFD885',\n 500: '#FFD270',\n 600: '#FFCB5C',\n 700: '#FFC140',\n 800: '#FFBE33',\n 900: '#FFB81F',\n },\n\n ketchup: {\n 50: '#FEF2F2',\n 100: '#FEE2E2',\n 200: '#FECACA',\n 300: '#FCA5A5',\n 400: '#F87171',\n 500: '#EF4444',\n 600: '#DC2626',\n 700: '#B91C1C',\n 800: '#991B1B',\n 900: '#7F1D1D',\n text: '#D91F3C',\n },\n\n green: {\n 50: '#F2FDF4',\n 100: '#E5FBE9',\n 200: '#C7F4D0',\n 300: '#99E5AC',\n 400: '#5FCD80',\n 500: '#36B260',\n 600: '#258F4B',\n 700: '#1B6F3B',\n 800: '#145430',\n 900: '#0E3622',\n text: '#0E8745',\n },\n\n blue: {\n 50: '#EFF6FF',\n 100: '#DBEAFE',\n 200: '#BFDBFE',\n 300: '#93C5FD',\n 400: '#60A5FA',\n 500: '#3B82F6',\n 600: '#2563EB',\n 700: '#1D4ED8',\n 800: '#1E40AF',\n 900: '#1E3A8A',\n text: '#1E40AF',\n },\n\n // Single brand accent green — the vibrant tone that was previously green/300\n // before the green scale was retuned to muted values in the Figma v2 palette.\n brandGreen: '#6DFFB4',\n\n overlayBlack: {\n 5: '#0000000D',\n 8: '#00000014',\n 12: '#0000001F',\n 16: '#00000029',\n },\n\n overlayWhite: {\n 5: '#FFFFFF0D',\n 8: '#FFFFFF14',\n 12: '#FFFFFF1F',\n 16: '#FFFFFF29',\n },\n\n white: '#FFFFFF',\n black: '#000000',\n} as const\n\nexport type Colors = typeof colors\n","export const typography = {\n display1: { fontFamily: 'Poppins', fontSize: 32, fontWeight: '700', lineHeight: 40, letterSpacing: -1, textTransform: 'none' },\n display2: { fontFamily: 'Poppins', fontSize: 32, fontWeight: '700', lineHeight: 40, letterSpacing: -1, textTransform: 'none' },\n h1: { fontFamily: 'Poppins', fontSize: 24, fontWeight: '700', lineHeight: 32, letterSpacing: -1, textTransform: 'none' },\n h2: { fontFamily: 'Poppins', fontSize: 20, fontWeight: '700', lineHeight: 28, letterSpacing: 0, textTransform: 'none' },\n h3: { fontFamily: 'Poppins', fontSize: 16, fontWeight: '600', lineHeight: 24, letterSpacing: 0, textTransform: 'none' },\n bodyLarge: { fontFamily: 'Inter', fontSize: 16, fontWeight: '500', lineHeight: 24, letterSpacing: 0, textTransform: 'none' },\n bodyDefault: { fontFamily: 'Inter', fontSize: 14, fontWeight: '500', lineHeight: 20, letterSpacing: 0, textTransform: 'none' },\n bodySmall: { fontFamily: 'Inter', fontSize: 12, fontWeight: '400', lineHeight: 16, letterSpacing: 0.2, textTransform: 'none' },\n labelLarge: { fontFamily: 'Inter', fontSize: 16, fontWeight: '600', lineHeight: 20, letterSpacing: 0, textTransform: 'none' },\n labelDefault: { fontFamily: 'Inter', fontSize: 14, fontWeight: '600', lineHeight: 20, letterSpacing: 0, textTransform: 'none' },\n labelSmall: { fontFamily: 'Inter', fontSize: 12, fontWeight: '600', lineHeight: 16, letterSpacing: 0.2, textTransform: 'none' },\n labelTiny: { fontFamily: 'Inter', fontSize: 10, fontWeight: '600', lineHeight: 14, letterSpacing: 0, textTransform: 'none' },\n caption: { fontFamily: 'Inter', fontSize: 12, fontWeight: '500', lineHeight: 16, letterSpacing: 0.5, textTransform: 'none' },\n captionUppercase: { fontFamily: 'Inter', fontSize: 12, fontWeight: '500', lineHeight: 16, letterSpacing: 0.5, textTransform: 'uppercase' },\n overline: { fontFamily: 'Inter', fontSize: 10, fontWeight: '600', lineHeight: 16, letterSpacing: 8, textTransform: 'uppercase' },\n buttonLarge: { fontFamily: 'Inter', fontSize: 16, fontWeight: '600', lineHeight: 20, letterSpacing: 0, textTransform: 'none' },\n buttonDefault: { fontFamily: 'Inter', fontSize: 14, fontWeight: '600', lineHeight: 20, letterSpacing: 0, textTransform: 'none' },\n buttonSmall: { fontFamily: 'Inter', fontSize: 12, fontWeight: '600', lineHeight: 16, letterSpacing: 0, textTransform: 'none' },\n} as const\n\nexport type Typography = typeof typography\n","export const spacing = {\n unit: 4,\n gap: {\n '0.5': 2,\n '1': 4,\n '2': 8,\n '3': 12,\n '4': 16,\n '5': 20,\n '6': 24,\n '8': 32,\n '10': 40,\n '12': 48,\n '14': 56,\n '16': 64,\n '18': 72,\n '20': 80,\n '22': 88,\n '24': 96,\n },\n screen: {\n x: 16,\n y: 24,\n },\n} as const\n\nexport type Spacing = typeof spacing\n","export const grid = {\n // 8px square baseline — line-height/* steps 16/24/32/40 snap; 20 and 28 land on a half-cell\n baseline: 8,\n breakpoints: {\n mobile: 0,\n tablet: 768,\n desktop: 1024,\n },\n columns: {\n mobile: 4,\n tablet: 8,\n desktop: 12,\n },\n gutter: {\n mobile: 8,\n tablet: 16,\n desktop: 24,\n },\n margin: {\n mobile: 20,\n tablet: 24,\n desktop: 32,\n },\n} as const\n\nexport type Grid = typeof grid\n","export const radius = {\n none: 0,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 20,\n '2xl': 24,\n full: 9999,\n\n button: 16,\n card: 20,\n input: 12,\n chip: 9999,\n badge: 8,\n} as const\n\nexport type Radius = typeof radius\n","export const borderWidth = {\n default: 1,\n strong: 1.5,\n heavy: 2,\n} as const\n\nexport type BorderWidth = typeof borderWidth\n","export const shadow = {\n sm: { offsetX: 0, offsetY: 1, blur: 3, spread: 0, color: '#000000', opacity: { light: 0.08, dark: 0.40 } },\n md: { offsetX: 0, offsetY: 4, blur: 12, spread: 0, color: '#000000', opacity: { light: 0.10, dark: 0.50 } },\n lg: { offsetX: 0, offsetY: 8, blur: 24, spread: -4, color: '#000000', opacity: { light: 0.12, dark: 0.60 } },\n} as const\n\nexport type Shadow = typeof shadow\n","export const opacity = {\n disabled: 0.4,\n hover: 0.08,\n pressed: 0.12,\n} as const\n\nexport type Opacity = typeof opacity\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,SAAS;AAAA,EACpB,YAAY;AAAA,IACV,IAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAA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,SAAS,GAAG,MAAM,IAAI,QAAQ,GAAI,OAAO,WAAW,SAAS,EAAE,OAAO,KAAM,MAAM,IAAK,EAAE;AAAA,EAC3G,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,IAAI,QAAQ,IAAI,OAAO,WAAW,SAAS,EAAE,OAAO,MAAM,MAAM,IAAK,EAAE;AAC7G;;;ACJO,IAAM,UAAU;AAAA,EACrB,UAAU;AAAA,EACV,OAAU;AAAA,EACV,SAAU;AACZ;","names":[]}
|
package/dist/tokens/index.mjs
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
borderWidth,
|
|
3
|
+
colors,
|
|
4
|
+
grid,
|
|
5
|
+
opacity,
|
|
6
|
+
radius,
|
|
7
|
+
shadow,
|
|
8
|
+
spacing,
|
|
9
|
+
typography
|
|
10
|
+
} from "../chunk-ZK7NW4WW.mjs";
|
|
4
11
|
export {
|
|
5
|
-
|
|
12
|
+
borderWidth,
|
|
13
|
+
colors,
|
|
14
|
+
grid,
|
|
15
|
+
opacity,
|
|
16
|
+
radius,
|
|
17
|
+
shadow,
|
|
18
|
+
spacing,
|
|
19
|
+
typography
|
|
6
20
|
};
|
|
7
21
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12min/ds",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"packageManager": "pnpm@11.15.1",
|
|
5
|
+
"sideEffects": [
|
|
6
|
+
"dist/tailwind/theme.css"
|
|
7
|
+
],
|
|
5
8
|
"main": "./dist/index.web.js",
|
|
6
9
|
"module": "./dist/index.web.mjs",
|
|
7
10
|
"types": "./dist/index.web.d.ts",
|
|
@@ -36,7 +39,14 @@
|
|
|
36
39
|
"dev": "tsup --watch",
|
|
37
40
|
"typecheck": "tsc --noEmit",
|
|
38
41
|
"lint": "eslint src --ext ts,tsx",
|
|
39
|
-
"prepublishOnly": "pnpm build && pnpm typecheck"
|
|
42
|
+
"prepublishOnly": "pnpm build && pnpm typecheck",
|
|
43
|
+
"prestorybook": "pnpm generate:theme",
|
|
44
|
+
"storybook": "storybook dev -p 6006",
|
|
45
|
+
"prebuild:storybook": "pnpm generate:theme",
|
|
46
|
+
"build:storybook": "storybook build --output-dir storybook-static",
|
|
47
|
+
"test:unit": "vitest run",
|
|
48
|
+
"test:unit:watch": "vitest",
|
|
49
|
+
"test:unit:coverage": "vitest run --coverage"
|
|
40
50
|
},
|
|
41
51
|
"peerDependencies": {
|
|
42
52
|
"react": ">=18",
|
|
@@ -50,12 +60,25 @@
|
|
|
50
60
|
"tailwind-merge": "^3.0.0"
|
|
51
61
|
},
|
|
52
62
|
"devDependencies": {
|
|
63
|
+
"@storybook/addon-a11y": "^8.6.18",
|
|
64
|
+
"@storybook/addon-essentials": "^8",
|
|
65
|
+
"@storybook/addon-themes": "^8.6.18",
|
|
66
|
+
"@storybook/blocks": "^8",
|
|
67
|
+
"@storybook/react": "^8.6.18",
|
|
68
|
+
"@storybook/react-vite": "^8.6.18",
|
|
69
|
+
"@tailwindcss/vite": "^4.2.4",
|
|
53
70
|
"@types/node": "^25.6.0",
|
|
54
71
|
"@types/react": "^19.2.14",
|
|
55
72
|
"@types/react-native": "^0.73.0",
|
|
73
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
74
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
56
75
|
"eslint": "^9.39.4",
|
|
76
|
+
"storybook": "^8.6.18",
|
|
77
|
+
"tailwindcss": "^4.2.4",
|
|
57
78
|
"tsup": "^8.0.0",
|
|
58
79
|
"tsx": "^4.7.0",
|
|
59
|
-
"typescript": "^5.3.0"
|
|
80
|
+
"typescript": "^5.3.0",
|
|
81
|
+
"vite": "^6.4.2",
|
|
82
|
+
"vitest": "^4.1.5"
|
|
60
83
|
}
|
|
61
|
-
}
|
|
84
|
+
}
|
package/dist/chunk-E2C4G6H4.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// src/tokens/colors.ts
|
|
2
|
-
var colors = {
|
|
3
|
-
brand: {
|
|
4
|
-
primary: "#FF6B35",
|
|
5
|
-
secondary: "#1A1A2E"
|
|
6
|
-
},
|
|
7
|
-
neutral: {
|
|
8
|
-
0: "#FFFFFF",
|
|
9
|
-
50: "#FAFAFA",
|
|
10
|
-
100: "#F5F5F5",
|
|
11
|
-
200: "#E5E5E5",
|
|
12
|
-
300: "#D4D4D4",
|
|
13
|
-
400: "#A3A3A3",
|
|
14
|
-
500: "#737373",
|
|
15
|
-
600: "#525252",
|
|
16
|
-
700: "#404040",
|
|
17
|
-
800: "#262626",
|
|
18
|
-
900: "#121212"
|
|
19
|
-
},
|
|
20
|
-
success: {
|
|
21
|
-
light: "#4ADE80",
|
|
22
|
-
default: "#22C55E",
|
|
23
|
-
dark: "#16A34A"
|
|
24
|
-
},
|
|
25
|
-
error: {
|
|
26
|
-
light: "#F87171",
|
|
27
|
-
default: "#EF4444",
|
|
28
|
-
dark: "#DC2626"
|
|
29
|
-
},
|
|
30
|
-
warning: {
|
|
31
|
-
light: "#FCD34D",
|
|
32
|
-
default: "#F59E0B",
|
|
33
|
-
dark: "#D97706"
|
|
34
|
-
},
|
|
35
|
-
info: {
|
|
36
|
-
light: "#60A5FA",
|
|
37
|
-
default: "#3B82F6",
|
|
38
|
-
dark: "#2563EB"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export {
|
|
43
|
-
colors
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=chunk-E2C4G6H4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/tokens/colors.ts"],"sourcesContent":["export const colors = {\n brand: {\n primary: '#FF6B35',\n secondary: '#1A1A2E',\n },\n\n neutral: {\n 0: '#FFFFFF',\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#E5E5E5',\n 300: '#D4D4D4',\n 400: '#A3A3A3',\n 500: '#737373',\n 600: '#525252',\n 700: '#404040',\n 800: '#262626',\n 900: '#121212',\n },\n\n success: {\n light: '#4ADE80',\n default: '#22C55E',\n dark: '#16A34A',\n },\n\n error: {\n light: '#F87171',\n default: '#EF4444',\n dark: '#DC2626',\n },\n\n warning: {\n light: '#FCD34D',\n default: '#F59E0B',\n dark: '#D97706',\n },\n\n info: {\n light: '#60A5FA',\n default: '#3B82F6',\n dark: '#2563EB',\n },\n} as const\n\nexport type Colors = typeof colors\n"],"mappings":";AAAO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,SAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EAEA,SAAS;AAAA,IACP,GAAK;AAAA,IACL,IAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EAEA,SAAS;AAAA,IACP,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,OAAO;AAAA,IACL,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,SAAS;AAAA,IACP,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AAAA,EAEA,MAAM;AAAA,IACJ,OAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAS;AAAA,EACX;AACF;","names":[]}
|
package/dist/chunk-QIJRSFZB.mjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colors
|
|
3
|
-
} from "./chunk-E2C4G6H4.mjs";
|
|
4
|
-
|
|
5
|
-
// src/themes/lightTheme.ts
|
|
6
|
-
var lightTheme = {
|
|
7
|
-
background: colors.neutral[0],
|
|
8
|
-
surface: colors.neutral[100],
|
|
9
|
-
border: colors.neutral[200],
|
|
10
|
-
onBackground: colors.neutral[900],
|
|
11
|
-
onSurface: colors.neutral[800],
|
|
12
|
-
muted: colors.neutral[500],
|
|
13
|
-
primary: colors.brand.primary,
|
|
14
|
-
secondary: colors.brand.secondary,
|
|
15
|
-
success: colors.success.default,
|
|
16
|
-
error: colors.error.default,
|
|
17
|
-
warning: colors.warning.default,
|
|
18
|
-
info: colors.info.default
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
// src/themes/darkTheme.ts
|
|
22
|
-
var darkTheme = {
|
|
23
|
-
background: colors.neutral[900],
|
|
24
|
-
surface: colors.neutral[800],
|
|
25
|
-
border: colors.neutral[700],
|
|
26
|
-
onBackground: colors.neutral[0],
|
|
27
|
-
onSurface: colors.neutral[100],
|
|
28
|
-
muted: colors.neutral[400],
|
|
29
|
-
primary: colors.brand.primary,
|
|
30
|
-
secondary: colors.brand.secondary,
|
|
31
|
-
success: colors.success.light,
|
|
32
|
-
error: colors.error.light,
|
|
33
|
-
warning: colors.warning.light,
|
|
34
|
-
info: colors.info.light
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
lightTheme,
|
|
39
|
-
darkTheme
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=chunk-QIJRSFZB.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/themes/lightTheme.ts","../src/themes/darkTheme.ts"],"sourcesContent":["import { colors } from '../tokens/colors'\nimport type { Theme } from './types'\n\nexport const lightTheme: Theme = {\n background: colors.neutral[0],\n surface: colors.neutral[100],\n border: colors.neutral[200],\n onBackground: colors.neutral[900],\n onSurface: colors.neutral[800],\n muted: colors.neutral[500],\n primary: colors.brand.primary,\n secondary: colors.brand.secondary,\n success: colors.success.default,\n error: colors.error.default,\n warning: colors.warning.default,\n info: colors.info.default,\n}\n","import { colors } from '../tokens/colors'\nimport type { Theme } from './types'\n\nexport const darkTheme: Theme = {\n background: colors.neutral[900],\n surface: colors.neutral[800],\n border: colors.neutral[700],\n onBackground: colors.neutral[0],\n onSurface: colors.neutral[100],\n muted: colors.neutral[400],\n primary: colors.brand.primary,\n secondary: colors.brand.secondary,\n success: colors.success.light,\n error: colors.error.light,\n warning: colors.warning.light,\n info: colors.info.light,\n} as const\n"],"mappings":";;;;;AAGO,IAAM,aAAoB;AAAA,EAC/B,YAAc,OAAO,QAAQ,CAAC;AAAA,EAC9B,SAAc,OAAO,QAAQ,GAAG;AAAA,EAChC,QAAc,OAAO,QAAQ,GAAG;AAAA,EAChC,cAAc,OAAO,QAAQ,GAAG;AAAA,EAChC,WAAc,OAAO,QAAQ,GAAG;AAAA,EAChC,OAAc,OAAO,QAAQ,GAAG;AAAA,EAChC,SAAc,OAAO,MAAM;AAAA,EAC3B,WAAc,OAAO,MAAM;AAAA,EAC3B,SAAc,OAAO,QAAQ;AAAA,EAC7B,OAAc,OAAO,MAAM;AAAA,EAC3B,SAAc,OAAO,QAAQ;AAAA,EAC7B,MAAc,OAAO,KAAK;AAC5B;;;ACbO,IAAM,YAAmB;AAAA,EAC9B,YAAe,OAAO,QAAQ,GAAG;AAAA,EACjC,SAAe,OAAO,QAAQ,GAAG;AAAA,EACjC,QAAe,OAAO,QAAQ,GAAG;AAAA,EACjC,cAAe,OAAO,QAAQ,CAAC;AAAA,EAC/B,WAAe,OAAO,QAAQ,GAAG;AAAA,EACjC,OAAe,OAAO,QAAQ,GAAG;AAAA,EACjC,SAAe,OAAO,MAAM;AAAA,EAC5B,WAAe,OAAO,MAAM;AAAA,EAC5B,SAAe,OAAO,QAAQ;AAAA,EAC9B,OAAe,OAAO,MAAM;AAAA,EAC5B,SAAe,OAAO,QAAQ;AAAA,EAC9B,MAAe,OAAO,KAAK;AAC7B;","names":[]}
|