@shapesos/clay 0.4.1 → 0.5.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/dist/chat.cjs +201 -85
- package/dist/chat.cjs.map +1 -1
- package/dist/chat.d.cts +6 -1
- package/dist/chat.d.ts +6 -1
- package/dist/chat.js +8 -4
- package/dist/chunk-DRBRT57F.js +1 -0
- package/dist/chunk-DRBRT57F.js.map +1 -0
- package/dist/chunk-JC2RQL5O.js +76 -0
- package/dist/chunk-JC2RQL5O.js.map +1 -0
- package/dist/{chunk-6HNZQ2BF.js → chunk-JF3P66JF.js} +2 -1
- package/dist/chunk-JF3P66JF.js.map +1 -0
- package/dist/chunk-K2Q5MQWJ.js +17 -0
- package/dist/chunk-K2Q5MQWJ.js.map +1 -0
- package/dist/chunk-MLCRDVQ2.js +89 -0
- package/dist/chunk-MLCRDVQ2.js.map +1 -0
- package/dist/chunk-OLJIJYB5.js +46 -0
- package/dist/chunk-OLJIJYB5.js.map +1 -0
- package/dist/chunk-SMTOVZ3O.js +19 -0
- package/dist/chunk-SMTOVZ3O.js.map +1 -0
- package/dist/{chunk-EPS4LOOW.js → chunk-SYMZU32H.js} +143 -63
- package/dist/chunk-SYMZU32H.js.map +1 -0
- package/dist/{chunk-A6DKIFWS.js → chunk-WQ2QTUYA.js} +9 -1
- package/dist/chunk-WQ2QTUYA.js.map +1 -0
- package/dist/chunk-WZHNMC6P.js +77 -0
- package/dist/chunk-WZHNMC6P.js.map +1 -0
- package/dist/icon.cjs +31 -16
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +6 -2
- package/dist/icon.d.ts +6 -2
- package/dist/icon.js +5 -3
- package/dist/index.cjs +299 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -20
- package/dist/index.d.ts +5 -20
- package/dist/index.js +32 -74
- package/dist/index.js.map +1 -1
- package/dist/keyboard-shortcut.cjs +238 -0
- package/dist/keyboard-shortcut.cjs.map +1 -0
- package/dist/keyboard-shortcut.d.cts +19 -0
- package/dist/keyboard-shortcut.d.ts +19 -0
- package/dist/keyboard-shortcut.js +14 -0
- package/dist/keyboard-shortcut.js.map +1 -0
- package/dist/text-area.cjs +497 -0
- package/dist/text-area.cjs.map +1 -0
- package/dist/text-area.d.cts +18 -0
- package/dist/text-area.d.ts +18 -0
- package/dist/text-area.js +11 -0
- package/dist/text-area.js.map +1 -0
- package/dist/tokens.cjs +9 -0
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.d.cts +2 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +2 -2
- package/dist/utils.cjs +60 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +7 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +13 -0
- package/dist/utils.js.map +1 -0
- package/package.json +17 -1
- package/dist/chunk-6HNZQ2BF.js.map +0 -1
- package/dist/chunk-A6DKIFWS.js.map +0 -1
- package/dist/chunk-AEXYOY5H.js +0 -115
- package/dist/chunk-AEXYOY5H.js.map +0 -1
- package/dist/chunk-EPS4LOOW.js.map +0 -1
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/text-area/index.ts
|
|
31
|
+
var text_area_exports = {};
|
|
32
|
+
__export(text_area_exports, {
|
|
33
|
+
TextArea: () => TextArea
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(text_area_exports);
|
|
36
|
+
|
|
37
|
+
// src/components/text-area/text-area.tsx
|
|
38
|
+
var import_react = require("react");
|
|
39
|
+
|
|
40
|
+
// src/utils/merge-refs.ts
|
|
41
|
+
function mergeRefs(...refs) {
|
|
42
|
+
return (node) => {
|
|
43
|
+
for (const ref of refs) {
|
|
44
|
+
if (typeof ref === "function") {
|
|
45
|
+
ref(node);
|
|
46
|
+
} else if (ref) {
|
|
47
|
+
ref.current = node;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/components/text-area/text-area-styles.ts
|
|
54
|
+
var import_styled_components = __toESM(require("styled-components"), 1);
|
|
55
|
+
|
|
56
|
+
// src/tokens/colors.ts
|
|
57
|
+
var colors = {
|
|
58
|
+
// White
|
|
59
|
+
white: "#FFFFFF",
|
|
60
|
+
"white-alpha-85": "rgba(255, 255, 255, 0.85)",
|
|
61
|
+
"white-alpha-40": "rgba(255, 255, 255, 0.40)",
|
|
62
|
+
// Brown
|
|
63
|
+
"brown-10": "#FAF9F8",
|
|
64
|
+
"brown-20": "#F5F3F0",
|
|
65
|
+
"brown-30": "#EEEBE5",
|
|
66
|
+
"brown-40": "#E6E2DA",
|
|
67
|
+
"brown-50": "#CFCBC4",
|
|
68
|
+
"brown-60": "#A19E99",
|
|
69
|
+
"brown-70": "#73716D",
|
|
70
|
+
"brown-80": "#5C5A57",
|
|
71
|
+
"brown-90": "#2E2D2C",
|
|
72
|
+
"brown-100": "#171716",
|
|
73
|
+
"brown-alpha-12": "rgba(23, 23, 22, 0.12)",
|
|
74
|
+
"brown-alpha-20": "rgba(23, 23, 22, 0.20)",
|
|
75
|
+
"brown-alpha-55": "rgba(23, 23, 22, 0.55)",
|
|
76
|
+
"brown-alpha-70": "rgba(23, 23, 22, 0.70)",
|
|
77
|
+
"brown-alpha-80": "rgba(23, 23, 22, 0.80)",
|
|
78
|
+
"brown-alpha-90": "rgba(23, 23, 22, 0.90)",
|
|
79
|
+
// Fuchsia
|
|
80
|
+
"fuchsia-50": "#FAF5FF",
|
|
81
|
+
"fuchsia-300": "#F0ABFC",
|
|
82
|
+
"fuchsia-500": "#D946EF",
|
|
83
|
+
"fuchsia-600": "#C026D3",
|
|
84
|
+
"fuchsia-800": "#86198F",
|
|
85
|
+
// Pink
|
|
86
|
+
"pink-50": "#FDF2F8",
|
|
87
|
+
"pink-400": "#F472B6",
|
|
88
|
+
"pink-600": "#DB2777",
|
|
89
|
+
"pink-800": "#9D174D",
|
|
90
|
+
// Violet
|
|
91
|
+
"violet-50": "#F5F3FF",
|
|
92
|
+
"violet-400": "#A78BFA",
|
|
93
|
+
"violet-600": "#7C3AED",
|
|
94
|
+
"violet-800": "#5B21B6",
|
|
95
|
+
// Indigo
|
|
96
|
+
"indigo-50": "#EEF2FF",
|
|
97
|
+
"indigo-400": "#818CF8",
|
|
98
|
+
"indigo-500": "#6366F1",
|
|
99
|
+
"indigo-600": "#4F46E5",
|
|
100
|
+
"indigo-800": "#3730A3",
|
|
101
|
+
// Cyan
|
|
102
|
+
"cyan-50": "#E7FEFF",
|
|
103
|
+
"cyan-300": "#67E8F9",
|
|
104
|
+
"cyan-600": "#0891B2",
|
|
105
|
+
"cyan-900": "#164E63",
|
|
106
|
+
// Teal
|
|
107
|
+
"teal-50": "#EBFDF9",
|
|
108
|
+
"teal-300": "#5EEAD4",
|
|
109
|
+
"teal-600": "#0D9488",
|
|
110
|
+
// Rose
|
|
111
|
+
"rose-400": "#FB7185",
|
|
112
|
+
// Purple
|
|
113
|
+
"purple-400": "#C084FC",
|
|
114
|
+
// Blue
|
|
115
|
+
"blue-50": "#EFF6FF",
|
|
116
|
+
"blue-100": "#DBEAFE",
|
|
117
|
+
"blue-300": "#93C5FD",
|
|
118
|
+
"blue-400": "#60A5FA",
|
|
119
|
+
"blue-600": "#2563EB",
|
|
120
|
+
"blue-800": "#1E40AF",
|
|
121
|
+
// Sky
|
|
122
|
+
"sky-300": "#7DD3FC",
|
|
123
|
+
// Green
|
|
124
|
+
"green-50": "#ECF9F0",
|
|
125
|
+
"green-100": "#D4F1D9",
|
|
126
|
+
"green-400": "#3DC269",
|
|
127
|
+
"green-700": "#277C43",
|
|
128
|
+
"green-800": "#1C5930",
|
|
129
|
+
// Orange
|
|
130
|
+
"orange-50": "#FFF7ED",
|
|
131
|
+
"orange-100": "#FFEDD5",
|
|
132
|
+
"orange-200": "#FED7AA",
|
|
133
|
+
"orange-500": "#F97316",
|
|
134
|
+
"orange-600": "#EA580C",
|
|
135
|
+
// Red
|
|
136
|
+
"red-50": "#FEF2F2",
|
|
137
|
+
"red-100": "#FEE2E2",
|
|
138
|
+
"red-200": "#FECACA",
|
|
139
|
+
"red-400": "#F7776C",
|
|
140
|
+
"red-500": "#EF4444",
|
|
141
|
+
"red-600": "#DC2626"
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// src/tokens/typography.ts
|
|
145
|
+
var fontFamilies = {
|
|
146
|
+
GEIST: "Geist",
|
|
147
|
+
CRIMSON_PRO: "Crimson Pro"
|
|
148
|
+
};
|
|
149
|
+
var typographyTypes = {
|
|
150
|
+
// Geist Label Caption (12px)
|
|
151
|
+
GEIST_LABEL_CAPTION_REGULAR: "GEIST_LABEL_CAPTION_REGULAR",
|
|
152
|
+
GEIST_LABEL_CAPTION_MEDIUM: "GEIST_LABEL_CAPTION_MEDIUM",
|
|
153
|
+
GEIST_LABEL_CAPTION_SEMI_BOLD: "GEIST_LABEL_CAPTION_SEMI_BOLD",
|
|
154
|
+
// Geist Body Extra Small (14px)
|
|
155
|
+
GEIST_BODY_XS_REGULAR: "GEIST_BODY_XS_REGULAR",
|
|
156
|
+
GEIST_BODY_XS_MEDIUM: "GEIST_BODY_XS_MEDIUM",
|
|
157
|
+
GEIST_BODY_XS_BOLD: "GEIST_BODY_XS_BOLD",
|
|
158
|
+
// Geist Body Small (16px)
|
|
159
|
+
GEIST_BODY_S_REGULAR: "GEIST_BODY_S_REGULAR",
|
|
160
|
+
GEIST_BODY_S_MEDIUM: "GEIST_BODY_S_MEDIUM",
|
|
161
|
+
GEIST_BODY_S_SEMI_BOLD: "GEIST_BODY_S_SEMI_BOLD",
|
|
162
|
+
GEIST_BODY_S_BOLD: "GEIST_BODY_S_BOLD",
|
|
163
|
+
// Geist Body Medium (18px)
|
|
164
|
+
GEIST_BODY_M_LIGHT: "GEIST_BODY_M_LIGHT",
|
|
165
|
+
GEIST_BODY_M_REGULAR: "GEIST_BODY_M_REGULAR",
|
|
166
|
+
GEIST_BODY_M_MEDIUM: "GEIST_BODY_M_MEDIUM",
|
|
167
|
+
GEIST_BODY_M_SEMI_BOLD: "GEIST_BODY_M_SEMI_BOLD",
|
|
168
|
+
// Geist Body Large (20px)
|
|
169
|
+
GEIST_BODY_L_REGULAR: "GEIST_BODY_L_REGULAR",
|
|
170
|
+
GEIST_BODY_L_MEDIUM: "GEIST_BODY_L_MEDIUM",
|
|
171
|
+
GEIST_BODY_L_SEMI_BOLD: "GEIST_BODY_L_SEMI_BOLD",
|
|
172
|
+
GEIST_BODY_L_BOLD: "GEIST_BODY_L_BOLD",
|
|
173
|
+
// Geist Heading Small (24px)
|
|
174
|
+
GEIST_HEADING_S_REGULAR: "GEIST_HEADING_S_REGULAR",
|
|
175
|
+
GEIST_HEADING_S_MEDIUM: "GEIST_HEADING_S_MEDIUM",
|
|
176
|
+
GEIST_HEADING_S_BOLD: "GEIST_HEADING_S_BOLD",
|
|
177
|
+
// Geist Heading Medium (28px)
|
|
178
|
+
GEIST_HEADING_M_BOLD: "GEIST_HEADING_M_BOLD",
|
|
179
|
+
// Geist Heading Large (32px)
|
|
180
|
+
GEIST_HEADING_L_REGULAR: "GEIST_HEADING_L_REGULAR",
|
|
181
|
+
GEIST_HEADING_L_MEDIUM: "GEIST_HEADING_L_MEDIUM",
|
|
182
|
+
GEIST_HEADING_L_SEMI_BOLD: "GEIST_HEADING_L_SEMI_BOLD",
|
|
183
|
+
GEIST_HEADING_L_BOLD: "GEIST_HEADING_L_BOLD",
|
|
184
|
+
// Geist Display Large (36px)
|
|
185
|
+
GEIST_DISPLAY_L_MEDIUM: "GEIST_DISPLAY_L_MEDIUM",
|
|
186
|
+
// Crimson Pro Body Small (16px)
|
|
187
|
+
CRIMSON_PRO_BODY_S_LIGHT: "CRIMSON_PRO_BODY_S_LIGHT",
|
|
188
|
+
// Crimson Pro Body Medium (18px)
|
|
189
|
+
CRIMSON_PRO_BODY_M_LIGHT: "CRIMSON_PRO_BODY_M_LIGHT",
|
|
190
|
+
// Crimson Pro Heading Medium (24px)
|
|
191
|
+
CRIMSON_PRO_HEADING_M_MEDIUM: "CRIMSON_PRO_HEADING_M_MEDIUM",
|
|
192
|
+
// Crimson Pro Display Extra Large (46px)
|
|
193
|
+
CRIMSON_PRO_DISPLAY_XL_REGULAR: "CRIMSON_PRO_DISPLAY_XL_REGULAR"
|
|
194
|
+
};
|
|
195
|
+
var typographyStyles = {
|
|
196
|
+
// Geist Label Caption (12px)
|
|
197
|
+
[typographyTypes.GEIST_LABEL_CAPTION_REGULAR]: {
|
|
198
|
+
fontFamily: fontFamilies.GEIST,
|
|
199
|
+
fontSize: 12,
|
|
200
|
+
fontWeight: 400,
|
|
201
|
+
lineHeight: 16
|
|
202
|
+
},
|
|
203
|
+
[typographyTypes.GEIST_LABEL_CAPTION_MEDIUM]: {
|
|
204
|
+
fontFamily: fontFamilies.GEIST,
|
|
205
|
+
fontSize: 12,
|
|
206
|
+
fontWeight: 500,
|
|
207
|
+
lineHeight: 16
|
|
208
|
+
},
|
|
209
|
+
[typographyTypes.GEIST_LABEL_CAPTION_SEMI_BOLD]: {
|
|
210
|
+
fontFamily: fontFamilies.GEIST,
|
|
211
|
+
fontSize: 12,
|
|
212
|
+
fontWeight: 600,
|
|
213
|
+
lineHeight: 16
|
|
214
|
+
},
|
|
215
|
+
// Geist Body Extra Small (14px)
|
|
216
|
+
[typographyTypes.GEIST_BODY_XS_REGULAR]: {
|
|
217
|
+
fontFamily: fontFamilies.GEIST,
|
|
218
|
+
fontSize: 14,
|
|
219
|
+
fontWeight: 400,
|
|
220
|
+
lineHeight: 20
|
|
221
|
+
},
|
|
222
|
+
[typographyTypes.GEIST_BODY_XS_MEDIUM]: {
|
|
223
|
+
fontFamily: fontFamilies.GEIST,
|
|
224
|
+
fontSize: 14,
|
|
225
|
+
fontWeight: 500,
|
|
226
|
+
lineHeight: 20
|
|
227
|
+
},
|
|
228
|
+
[typographyTypes.GEIST_BODY_XS_BOLD]: {
|
|
229
|
+
fontFamily: fontFamilies.GEIST,
|
|
230
|
+
fontSize: 14,
|
|
231
|
+
fontWeight: 600,
|
|
232
|
+
lineHeight: 20
|
|
233
|
+
},
|
|
234
|
+
// Geist Body Small (16px)
|
|
235
|
+
[typographyTypes.GEIST_BODY_S_REGULAR]: {
|
|
236
|
+
fontFamily: fontFamilies.GEIST,
|
|
237
|
+
fontSize: 16,
|
|
238
|
+
fontWeight: 400,
|
|
239
|
+
lineHeight: 24,
|
|
240
|
+
letterSpacing: -0.08
|
|
241
|
+
},
|
|
242
|
+
[typographyTypes.GEIST_BODY_S_MEDIUM]: {
|
|
243
|
+
fontFamily: fontFamilies.GEIST,
|
|
244
|
+
fontSize: 16,
|
|
245
|
+
fontWeight: 500,
|
|
246
|
+
lineHeight: 24,
|
|
247
|
+
letterSpacing: -0.08
|
|
248
|
+
},
|
|
249
|
+
[typographyTypes.GEIST_BODY_S_SEMI_BOLD]: {
|
|
250
|
+
fontFamily: fontFamilies.GEIST,
|
|
251
|
+
fontSize: 16,
|
|
252
|
+
fontWeight: 600,
|
|
253
|
+
lineHeight: 24,
|
|
254
|
+
letterSpacing: -0.08
|
|
255
|
+
},
|
|
256
|
+
[typographyTypes.GEIST_BODY_S_BOLD]: {
|
|
257
|
+
fontFamily: fontFamilies.GEIST,
|
|
258
|
+
fontSize: 16,
|
|
259
|
+
fontWeight: 700,
|
|
260
|
+
lineHeight: 24,
|
|
261
|
+
letterSpacing: -0.08
|
|
262
|
+
},
|
|
263
|
+
// Geist Body Medium (18px)
|
|
264
|
+
[typographyTypes.GEIST_BODY_M_LIGHT]: {
|
|
265
|
+
fontFamily: fontFamilies.GEIST,
|
|
266
|
+
fontSize: 18,
|
|
267
|
+
fontWeight: 300,
|
|
268
|
+
lineHeight: 28,
|
|
269
|
+
letterSpacing: -0.09
|
|
270
|
+
},
|
|
271
|
+
[typographyTypes.GEIST_BODY_M_REGULAR]: {
|
|
272
|
+
fontFamily: fontFamilies.GEIST,
|
|
273
|
+
fontSize: 18,
|
|
274
|
+
fontWeight: 400,
|
|
275
|
+
lineHeight: 28,
|
|
276
|
+
letterSpacing: -0.09
|
|
277
|
+
},
|
|
278
|
+
[typographyTypes.GEIST_BODY_M_MEDIUM]: {
|
|
279
|
+
fontFamily: fontFamilies.GEIST,
|
|
280
|
+
fontSize: 18,
|
|
281
|
+
fontWeight: 500,
|
|
282
|
+
lineHeight: 28,
|
|
283
|
+
letterSpacing: -0.09
|
|
284
|
+
},
|
|
285
|
+
[typographyTypes.GEIST_BODY_M_SEMI_BOLD]: {
|
|
286
|
+
fontFamily: fontFamilies.GEIST,
|
|
287
|
+
fontSize: 18,
|
|
288
|
+
fontWeight: 600,
|
|
289
|
+
lineHeight: 28,
|
|
290
|
+
letterSpacing: -0.09
|
|
291
|
+
},
|
|
292
|
+
// Geist Body Large (20px)
|
|
293
|
+
[typographyTypes.GEIST_BODY_L_REGULAR]: {
|
|
294
|
+
fontFamily: fontFamilies.GEIST,
|
|
295
|
+
fontSize: 20,
|
|
296
|
+
fontWeight: 400,
|
|
297
|
+
lineHeight: 30,
|
|
298
|
+
letterSpacing: -0.2
|
|
299
|
+
},
|
|
300
|
+
[typographyTypes.GEIST_BODY_L_MEDIUM]: {
|
|
301
|
+
fontFamily: fontFamilies.GEIST,
|
|
302
|
+
fontSize: 20,
|
|
303
|
+
fontWeight: 500,
|
|
304
|
+
lineHeight: 30,
|
|
305
|
+
letterSpacing: -0.2
|
|
306
|
+
},
|
|
307
|
+
[typographyTypes.GEIST_BODY_L_SEMI_BOLD]: {
|
|
308
|
+
fontFamily: fontFamilies.GEIST,
|
|
309
|
+
fontSize: 20,
|
|
310
|
+
fontWeight: 600,
|
|
311
|
+
lineHeight: 30,
|
|
312
|
+
letterSpacing: -0.2
|
|
313
|
+
},
|
|
314
|
+
[typographyTypes.GEIST_BODY_L_BOLD]: {
|
|
315
|
+
fontFamily: fontFamilies.GEIST,
|
|
316
|
+
fontSize: 20,
|
|
317
|
+
fontWeight: 700,
|
|
318
|
+
lineHeight: 30,
|
|
319
|
+
letterSpacing: -0.2
|
|
320
|
+
},
|
|
321
|
+
// Geist Heading Small (24px)
|
|
322
|
+
[typographyTypes.GEIST_HEADING_S_REGULAR]: {
|
|
323
|
+
fontFamily: fontFamilies.GEIST,
|
|
324
|
+
fontSize: 24,
|
|
325
|
+
fontWeight: 400,
|
|
326
|
+
lineHeight: 32,
|
|
327
|
+
letterSpacing: -0.48
|
|
328
|
+
},
|
|
329
|
+
[typographyTypes.GEIST_HEADING_S_MEDIUM]: {
|
|
330
|
+
fontFamily: fontFamilies.GEIST,
|
|
331
|
+
fontSize: 24,
|
|
332
|
+
fontWeight: 500,
|
|
333
|
+
lineHeight: 32,
|
|
334
|
+
letterSpacing: -0.48
|
|
335
|
+
},
|
|
336
|
+
[typographyTypes.GEIST_HEADING_S_BOLD]: {
|
|
337
|
+
fontFamily: fontFamilies.GEIST,
|
|
338
|
+
fontSize: 24,
|
|
339
|
+
fontWeight: 700,
|
|
340
|
+
lineHeight: 32,
|
|
341
|
+
letterSpacing: -0.48
|
|
342
|
+
},
|
|
343
|
+
// Geist Heading Medium (28px)
|
|
344
|
+
[typographyTypes.GEIST_HEADING_M_BOLD]: {
|
|
345
|
+
fontFamily: fontFamilies.GEIST,
|
|
346
|
+
fontSize: 28,
|
|
347
|
+
fontWeight: 700,
|
|
348
|
+
lineHeight: 36,
|
|
349
|
+
letterSpacing: -0.6
|
|
350
|
+
},
|
|
351
|
+
// Geist Heading Large (32px)
|
|
352
|
+
[typographyTypes.GEIST_HEADING_L_REGULAR]: {
|
|
353
|
+
fontFamily: fontFamilies.GEIST,
|
|
354
|
+
fontSize: 32,
|
|
355
|
+
fontWeight: 400,
|
|
356
|
+
lineHeight: 40,
|
|
357
|
+
letterSpacing: -0.64
|
|
358
|
+
},
|
|
359
|
+
[typographyTypes.GEIST_HEADING_L_MEDIUM]: {
|
|
360
|
+
fontFamily: fontFamilies.GEIST,
|
|
361
|
+
fontSize: 32,
|
|
362
|
+
fontWeight: 500,
|
|
363
|
+
lineHeight: 40,
|
|
364
|
+
letterSpacing: -0.64
|
|
365
|
+
},
|
|
366
|
+
[typographyTypes.GEIST_HEADING_L_SEMI_BOLD]: {
|
|
367
|
+
fontFamily: fontFamilies.GEIST,
|
|
368
|
+
fontSize: 32,
|
|
369
|
+
fontWeight: 600,
|
|
370
|
+
lineHeight: 40,
|
|
371
|
+
letterSpacing: -0.64
|
|
372
|
+
},
|
|
373
|
+
[typographyTypes.GEIST_HEADING_L_BOLD]: {
|
|
374
|
+
fontFamily: fontFamilies.GEIST,
|
|
375
|
+
fontSize: 32,
|
|
376
|
+
fontWeight: 700,
|
|
377
|
+
lineHeight: 40,
|
|
378
|
+
letterSpacing: -0.64
|
|
379
|
+
},
|
|
380
|
+
// Geist Display Large (36px)
|
|
381
|
+
[typographyTypes.GEIST_DISPLAY_L_MEDIUM]: {
|
|
382
|
+
fontFamily: fontFamilies.GEIST,
|
|
383
|
+
fontSize: 36,
|
|
384
|
+
fontWeight: 500,
|
|
385
|
+
lineHeight: 44,
|
|
386
|
+
letterSpacing: -0.72
|
|
387
|
+
},
|
|
388
|
+
// Crimson Pro Body Small (16px)
|
|
389
|
+
[typographyTypes.CRIMSON_PRO_BODY_S_LIGHT]: {
|
|
390
|
+
fontFamily: fontFamilies.CRIMSON_PRO,
|
|
391
|
+
fontSize: 16,
|
|
392
|
+
fontWeight: 300,
|
|
393
|
+
lineHeight: 20,
|
|
394
|
+
letterSpacing: -0.32,
|
|
395
|
+
fontStyle: "italic"
|
|
396
|
+
},
|
|
397
|
+
// Crimson Pro Body Medium (18px)
|
|
398
|
+
[typographyTypes.CRIMSON_PRO_BODY_M_LIGHT]: {
|
|
399
|
+
fontFamily: fontFamilies.CRIMSON_PRO,
|
|
400
|
+
fontSize: 18,
|
|
401
|
+
fontWeight: 300,
|
|
402
|
+
lineHeight: 28,
|
|
403
|
+
letterSpacing: 0,
|
|
404
|
+
fontStyle: "italic"
|
|
405
|
+
},
|
|
406
|
+
// Crimson Pro Heading Medium (24px)
|
|
407
|
+
[typographyTypes.CRIMSON_PRO_HEADING_M_MEDIUM]: {
|
|
408
|
+
fontFamily: fontFamilies.CRIMSON_PRO,
|
|
409
|
+
fontSize: 24,
|
|
410
|
+
fontWeight: 400,
|
|
411
|
+
lineHeight: 32,
|
|
412
|
+
letterSpacing: -0.48,
|
|
413
|
+
fontStyle: "italic"
|
|
414
|
+
},
|
|
415
|
+
// Crimson Pro Display Extra Large (46px)
|
|
416
|
+
[typographyTypes.CRIMSON_PRO_DISPLAY_XL_REGULAR]: {
|
|
417
|
+
fontFamily: fontFamilies.CRIMSON_PRO,
|
|
418
|
+
fontSize: 46,
|
|
419
|
+
fontWeight: 400,
|
|
420
|
+
lineHeight: 54,
|
|
421
|
+
letterSpacing: -1.38,
|
|
422
|
+
fontStyle: "italic"
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
function typographyMixin(type) {
|
|
426
|
+
const style = typographyStyles[type];
|
|
427
|
+
return [
|
|
428
|
+
`font-family: "${style.fontFamily}", sans-serif`,
|
|
429
|
+
`font-size: ${style.fontSize}px`,
|
|
430
|
+
`font-weight: ${style.fontWeight}`,
|
|
431
|
+
`line-height: ${style.lineHeight}px`,
|
|
432
|
+
`letter-spacing: ${style.letterSpacing != null ? `${style.letterSpacing}px` : "inherit"}`,
|
|
433
|
+
`font-style: ${style.fontStyle ?? "normal"}`
|
|
434
|
+
].join(";\n ");
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// src/components/text-area/text-area-styles.ts
|
|
438
|
+
var StyledTextArea = import_styled_components.default.textarea`
|
|
439
|
+
${typographyMixin(typographyTypes.GEIST_BODY_S_REGULAR)};
|
|
440
|
+
color: ${colors["brown-100"]};
|
|
441
|
+
border: none;
|
|
442
|
+
outline: none;
|
|
443
|
+
resize: none;
|
|
444
|
+
width: 100%;
|
|
445
|
+
background: transparent;
|
|
446
|
+
vertical-align: bottom;
|
|
447
|
+
max-height: ${({ $maxHeight }) => $maxHeight ? `${$maxHeight}px` : "none"};
|
|
448
|
+
overflow-y: ${({ $maxHeight }) => $maxHeight ? "auto" : "hidden"};
|
|
449
|
+
|
|
450
|
+
&::placeholder {
|
|
451
|
+
color: ${colors["brown-50"]};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&:disabled {
|
|
455
|
+
opacity: 0.5;
|
|
456
|
+
cursor: not-allowed;
|
|
457
|
+
}
|
|
458
|
+
`;
|
|
459
|
+
|
|
460
|
+
// src/components/text-area/text-area.tsx
|
|
461
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
462
|
+
var TextArea = (0, import_react.forwardRef)(function TextArea2({ value, onChange, placeholder, maxHeight, rows = 1, autoFocus, onKeyDown, disabled, className }, externalRef) {
|
|
463
|
+
const internalRef = (0, import_react.useRef)(null);
|
|
464
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
465
|
+
const el = internalRef.current;
|
|
466
|
+
if (el) {
|
|
467
|
+
el.style.height = "auto";
|
|
468
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
469
|
+
}
|
|
470
|
+
}, [value]);
|
|
471
|
+
const handleChange = (0, import_react.useCallback)(
|
|
472
|
+
(e) => {
|
|
473
|
+
onChange(e.target.value);
|
|
474
|
+
},
|
|
475
|
+
[onChange]
|
|
476
|
+
);
|
|
477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
478
|
+
StyledTextArea,
|
|
479
|
+
{
|
|
480
|
+
ref: mergeRefs(internalRef, externalRef),
|
|
481
|
+
value,
|
|
482
|
+
onChange: handleChange,
|
|
483
|
+
placeholder,
|
|
484
|
+
$maxHeight: maxHeight,
|
|
485
|
+
rows,
|
|
486
|
+
autoFocus,
|
|
487
|
+
onKeyDown,
|
|
488
|
+
disabled,
|
|
489
|
+
className
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
});
|
|
493
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
494
|
+
0 && (module.exports = {
|
|
495
|
+
TextArea
|
|
496
|
+
});
|
|
497
|
+
//# sourceMappingURL=text-area.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/text-area/index.ts","../src/components/text-area/text-area.tsx","../src/utils/merge-refs.ts","../src/components/text-area/text-area-styles.ts","../src/tokens/colors.ts","../src/tokens/typography.ts"],"sourcesContent":["export { TextArea } from \"./text-area\";\nexport type { TextAreaProps } from \"./types\";\n","import { forwardRef, useCallback, useLayoutEffect, useRef, type ChangeEvent } from \"react\";\n\nimport { mergeRefs } from \"@/utils/merge-refs\";\nimport { StyledTextArea } from \"./text-area-styles\";\nimport type { TextAreaProps } from \"./types\";\n\nexport const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(function TextArea(\n { value, onChange, placeholder, maxHeight, rows = 1, autoFocus, onKeyDown, disabled, className },\n externalRef\n) {\n const internalRef = useRef<HTMLTextAreaElement>(null);\n\n // Auto-resize: recalculates height whenever value changes so the textarea\n // grows/shrinks to fit its content (also restores correct height when the\n // component re-mounts or becomes visible again after being hidden).\n useLayoutEffect(() => {\n const el = internalRef.current;\n if (el) {\n el.style.height = \"auto\";\n el.style.height = `${el.scrollHeight}px`;\n }\n }, [value]);\n\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLTextAreaElement>) => {\n onChange(e.target.value);\n },\n [onChange]\n );\n\n return (\n <StyledTextArea\n ref={mergeRefs(internalRef, externalRef)}\n value={value}\n onChange={handleChange}\n placeholder={placeholder}\n $maxHeight={maxHeight}\n rows={rows}\n autoFocus={autoFocus}\n onKeyDown={onKeyDown}\n disabled={disabled}\n className={className}\n />\n );\n});\n","import type { Ref } from \"react\";\n\nexport function mergeRefs<T>(...refs: (Ref<T> | undefined)[]): (node: T | null) => void {\n return (node) => {\n for (const ref of refs) {\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n (ref as React.MutableRefObject<T | null>).current = node;\n }\n }\n };\n}\n","import styled from \"styled-components\";\n\nimport { colors } from \"../../tokens/colors\";\nimport { typographyMixin, typographyTypes } from \"../../tokens/typography\";\n\nexport const StyledTextArea = styled.textarea<{ $maxHeight?: number }>`\n ${typographyMixin(typographyTypes.GEIST_BODY_S_REGULAR)};\n color: ${colors[\"brown-100\"]};\n border: none;\n outline: none;\n resize: none;\n width: 100%;\n background: transparent;\n vertical-align: bottom;\n max-height: ${({ $maxHeight }) => ($maxHeight ? `${$maxHeight}px` : \"none\")};\n overflow-y: ${({ $maxHeight }) => ($maxHeight ? \"auto\" : \"hidden\")};\n\n &::placeholder {\n color: ${colors[\"brown-50\"]};\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n`;\n","export const colors = {\n // White\n white: \"#FFFFFF\",\n \"white-alpha-85\": \"rgba(255, 255, 255, 0.85)\",\n \"white-alpha-40\": \"rgba(255, 255, 255, 0.40)\",\n\n // Brown\n \"brown-10\": \"#FAF9F8\",\n \"brown-20\": \"#F5F3F0\",\n \"brown-30\": \"#EEEBE5\",\n \"brown-40\": \"#E6E2DA\",\n \"brown-50\": \"#CFCBC4\",\n \"brown-60\": \"#A19E99\",\n \"brown-70\": \"#73716D\",\n \"brown-80\": \"#5C5A57\",\n \"brown-90\": \"#2E2D2C\",\n \"brown-100\": \"#171716\",\n \"brown-alpha-12\": \"rgba(23, 23, 22, 0.12)\",\n \"brown-alpha-20\": \"rgba(23, 23, 22, 0.20)\",\n \"brown-alpha-55\": \"rgba(23, 23, 22, 0.55)\",\n \"brown-alpha-70\": \"rgba(23, 23, 22, 0.70)\",\n \"brown-alpha-80\": \"rgba(23, 23, 22, 0.80)\",\n \"brown-alpha-90\": \"rgba(23, 23, 22, 0.90)\",\n\n // Fuchsia\n \"fuchsia-50\": \"#FAF5FF\",\n \"fuchsia-300\": \"#F0ABFC\",\n \"fuchsia-500\": \"#D946EF\",\n \"fuchsia-600\": \"#C026D3\",\n \"fuchsia-800\": \"#86198F\",\n\n // Pink\n \"pink-50\": \"#FDF2F8\",\n \"pink-400\": \"#F472B6\",\n \"pink-600\": \"#DB2777\",\n \"pink-800\": \"#9D174D\",\n\n // Violet\n \"violet-50\": \"#F5F3FF\",\n \"violet-400\": \"#A78BFA\",\n \"violet-600\": \"#7C3AED\",\n \"violet-800\": \"#5B21B6\",\n\n // Indigo\n \"indigo-50\": \"#EEF2FF\",\n \"indigo-400\": \"#818CF8\",\n \"indigo-500\": \"#6366F1\",\n \"indigo-600\": \"#4F46E5\",\n \"indigo-800\": \"#3730A3\",\n\n // Cyan\n \"cyan-50\": \"#E7FEFF\",\n \"cyan-300\": \"#67E8F9\",\n \"cyan-600\": \"#0891B2\",\n \"cyan-900\": \"#164E63\",\n\n // Teal\n \"teal-50\": \"#EBFDF9\",\n \"teal-300\": \"#5EEAD4\",\n \"teal-600\": \"#0D9488\",\n\n // Rose\n \"rose-400\": \"#FB7185\",\n\n // Purple\n \"purple-400\": \"#C084FC\",\n\n // Blue\n \"blue-50\": \"#EFF6FF\",\n \"blue-100\": \"#DBEAFE\",\n \"blue-300\": \"#93C5FD\",\n \"blue-400\": \"#60A5FA\",\n \"blue-600\": \"#2563EB\",\n \"blue-800\": \"#1E40AF\",\n\n // Sky\n \"sky-300\": \"#7DD3FC\",\n\n // Green\n \"green-50\": \"#ECF9F0\",\n \"green-100\": \"#D4F1D9\",\n \"green-400\": \"#3DC269\",\n \"green-700\": \"#277C43\",\n \"green-800\": \"#1C5930\",\n\n // Orange\n \"orange-50\": \"#FFF7ED\",\n \"orange-100\": \"#FFEDD5\",\n \"orange-200\": \"#FED7AA\",\n \"orange-500\": \"#F97316\",\n \"orange-600\": \"#EA580C\",\n\n // Red\n \"red-50\": \"#FEF2F2\",\n \"red-100\": \"#FEE2E2\",\n \"red-200\": \"#FECACA\",\n \"red-400\": \"#F7776C\",\n \"red-500\": \"#EF4444\",\n \"red-600\": \"#DC2626\",\n} as const;\n\nexport type ColorToken = keyof typeof colors;\n","export const fontFamilies = {\n GEIST: \"Geist\",\n CRIMSON_PRO: \"Crimson Pro\",\n} as const;\n\nexport const typographyTypes = {\n // Geist Label Caption (12px)\n GEIST_LABEL_CAPTION_REGULAR: \"GEIST_LABEL_CAPTION_REGULAR\",\n GEIST_LABEL_CAPTION_MEDIUM: \"GEIST_LABEL_CAPTION_MEDIUM\",\n GEIST_LABEL_CAPTION_SEMI_BOLD: \"GEIST_LABEL_CAPTION_SEMI_BOLD\",\n\n // Geist Body Extra Small (14px)\n GEIST_BODY_XS_REGULAR: \"GEIST_BODY_XS_REGULAR\",\n GEIST_BODY_XS_MEDIUM: \"GEIST_BODY_XS_MEDIUM\",\n GEIST_BODY_XS_BOLD: \"GEIST_BODY_XS_BOLD\",\n\n // Geist Body Small (16px)\n GEIST_BODY_S_REGULAR: \"GEIST_BODY_S_REGULAR\",\n GEIST_BODY_S_MEDIUM: \"GEIST_BODY_S_MEDIUM\",\n GEIST_BODY_S_SEMI_BOLD: \"GEIST_BODY_S_SEMI_BOLD\",\n GEIST_BODY_S_BOLD: \"GEIST_BODY_S_BOLD\",\n\n // Geist Body Medium (18px)\n GEIST_BODY_M_LIGHT: \"GEIST_BODY_M_LIGHT\",\n GEIST_BODY_M_REGULAR: \"GEIST_BODY_M_REGULAR\",\n GEIST_BODY_M_MEDIUM: \"GEIST_BODY_M_MEDIUM\",\n GEIST_BODY_M_SEMI_BOLD: \"GEIST_BODY_M_SEMI_BOLD\",\n\n // Geist Body Large (20px)\n GEIST_BODY_L_REGULAR: \"GEIST_BODY_L_REGULAR\",\n GEIST_BODY_L_MEDIUM: \"GEIST_BODY_L_MEDIUM\",\n GEIST_BODY_L_SEMI_BOLD: \"GEIST_BODY_L_SEMI_BOLD\",\n GEIST_BODY_L_BOLD: \"GEIST_BODY_L_BOLD\",\n\n // Geist Heading Small (24px)\n GEIST_HEADING_S_REGULAR: \"GEIST_HEADING_S_REGULAR\",\n GEIST_HEADING_S_MEDIUM: \"GEIST_HEADING_S_MEDIUM\",\n GEIST_HEADING_S_BOLD: \"GEIST_HEADING_S_BOLD\",\n\n // Geist Heading Medium (28px)\n GEIST_HEADING_M_BOLD: \"GEIST_HEADING_M_BOLD\",\n\n // Geist Heading Large (32px)\n GEIST_HEADING_L_REGULAR: \"GEIST_HEADING_L_REGULAR\",\n GEIST_HEADING_L_MEDIUM: \"GEIST_HEADING_L_MEDIUM\",\n GEIST_HEADING_L_SEMI_BOLD: \"GEIST_HEADING_L_SEMI_BOLD\",\n GEIST_HEADING_L_BOLD: \"GEIST_HEADING_L_BOLD\",\n\n // Geist Display Large (36px)\n GEIST_DISPLAY_L_MEDIUM: \"GEIST_DISPLAY_L_MEDIUM\",\n\n // Crimson Pro Body Small (16px)\n CRIMSON_PRO_BODY_S_LIGHT: \"CRIMSON_PRO_BODY_S_LIGHT\",\n\n // Crimson Pro Body Medium (18px)\n CRIMSON_PRO_BODY_M_LIGHT: \"CRIMSON_PRO_BODY_M_LIGHT\",\n\n // Crimson Pro Heading Medium (24px)\n CRIMSON_PRO_HEADING_M_MEDIUM: \"CRIMSON_PRO_HEADING_M_MEDIUM\",\n\n // Crimson Pro Display Extra Large (46px)\n CRIMSON_PRO_DISPLAY_XL_REGULAR: \"CRIMSON_PRO_DISPLAY_XL_REGULAR\",\n} as const;\n\nexport type TypographyType = (typeof typographyTypes)[keyof typeof typographyTypes];\n\nexport interface TypographyStyle {\n fontFamily: string;\n fontSize: number;\n fontWeight: number;\n lineHeight: number;\n letterSpacing?: number;\n fontStyle?: string;\n}\n\nexport const typographyStyles: Record<TypographyType, TypographyStyle> = {\n // Geist Label Caption (12px)\n [typographyTypes.GEIST_LABEL_CAPTION_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 16,\n },\n [typographyTypes.GEIST_LABEL_CAPTION_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 16,\n },\n [typographyTypes.GEIST_LABEL_CAPTION_SEMI_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 12,\n fontWeight: 600,\n lineHeight: 16,\n },\n\n // Geist Body Extra Small (14px)\n [typographyTypes.GEIST_BODY_XS_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 20,\n },\n [typographyTypes.GEIST_BODY_XS_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 20,\n },\n [typographyTypes.GEIST_BODY_XS_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 14,\n fontWeight: 600,\n lineHeight: 20,\n },\n\n // Geist Body Small (16px)\n [typographyTypes.GEIST_BODY_S_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 24,\n letterSpacing: -0.08,\n },\n [typographyTypes.GEIST_BODY_S_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 24,\n letterSpacing: -0.08,\n },\n [typographyTypes.GEIST_BODY_S_SEMI_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 16,\n fontWeight: 600,\n lineHeight: 24,\n letterSpacing: -0.08,\n },\n [typographyTypes.GEIST_BODY_S_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 24,\n letterSpacing: -0.08,\n },\n\n // Geist Body Medium (18px)\n [typographyTypes.GEIST_BODY_M_LIGHT]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 18,\n fontWeight: 300,\n lineHeight: 28,\n letterSpacing: -0.09,\n },\n [typographyTypes.GEIST_BODY_M_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 28,\n letterSpacing: -0.09,\n },\n [typographyTypes.GEIST_BODY_M_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 28,\n letterSpacing: -0.09,\n },\n [typographyTypes.GEIST_BODY_M_SEMI_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 18,\n fontWeight: 600,\n lineHeight: 28,\n letterSpacing: -0.09,\n },\n\n // Geist Body Large (20px)\n [typographyTypes.GEIST_BODY_L_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 30,\n letterSpacing: -0.2,\n },\n [typographyTypes.GEIST_BODY_L_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 30,\n letterSpacing: -0.2,\n },\n [typographyTypes.GEIST_BODY_L_SEMI_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 20,\n fontWeight: 600,\n lineHeight: 30,\n letterSpacing: -0.2,\n },\n [typographyTypes.GEIST_BODY_L_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 30,\n letterSpacing: -0.2,\n },\n\n // Geist Heading Small (24px)\n [typographyTypes.GEIST_HEADING_S_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 32,\n letterSpacing: -0.48,\n },\n [typographyTypes.GEIST_HEADING_S_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 32,\n letterSpacing: -0.48,\n },\n [typographyTypes.GEIST_HEADING_S_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 32,\n letterSpacing: -0.48,\n },\n\n // Geist Heading Medium (28px)\n [typographyTypes.GEIST_HEADING_M_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 28,\n fontWeight: 700,\n lineHeight: 36,\n letterSpacing: -0.6,\n },\n\n // Geist Heading Large (32px)\n [typographyTypes.GEIST_HEADING_L_REGULAR]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 32,\n fontWeight: 400,\n lineHeight: 40,\n letterSpacing: -0.64,\n },\n [typographyTypes.GEIST_HEADING_L_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 32,\n fontWeight: 500,\n lineHeight: 40,\n letterSpacing: -0.64,\n },\n [typographyTypes.GEIST_HEADING_L_SEMI_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 32,\n fontWeight: 600,\n lineHeight: 40,\n letterSpacing: -0.64,\n },\n [typographyTypes.GEIST_HEADING_L_BOLD]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 32,\n fontWeight: 700,\n lineHeight: 40,\n letterSpacing: -0.64,\n },\n\n // Geist Display Large (36px)\n [typographyTypes.GEIST_DISPLAY_L_MEDIUM]: {\n fontFamily: fontFamilies.GEIST,\n fontSize: 36,\n fontWeight: 500,\n lineHeight: 44,\n letterSpacing: -0.72,\n },\n\n // Crimson Pro Body Small (16px)\n [typographyTypes.CRIMSON_PRO_BODY_S_LIGHT]: {\n fontFamily: fontFamilies.CRIMSON_PRO,\n fontSize: 16,\n fontWeight: 300,\n lineHeight: 20,\n letterSpacing: -0.32,\n fontStyle: \"italic\",\n },\n\n // Crimson Pro Body Medium (18px)\n [typographyTypes.CRIMSON_PRO_BODY_M_LIGHT]: {\n fontFamily: fontFamilies.CRIMSON_PRO,\n fontSize: 18,\n fontWeight: 300,\n lineHeight: 28,\n letterSpacing: 0,\n fontStyle: \"italic\",\n },\n\n // Crimson Pro Heading Medium (24px)\n [typographyTypes.CRIMSON_PRO_HEADING_M_MEDIUM]: {\n fontFamily: fontFamilies.CRIMSON_PRO,\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 32,\n letterSpacing: -0.48,\n fontStyle: \"italic\",\n },\n\n // Crimson Pro Display Extra Large (46px)\n [typographyTypes.CRIMSON_PRO_DISPLAY_XL_REGULAR]: {\n fontFamily: fontFamilies.CRIMSON_PRO,\n fontSize: 46,\n fontWeight: 400,\n lineHeight: 54,\n letterSpacing: -1.38,\n fontStyle: \"italic\",\n },\n};\n\nexport function typographyMixin(type: TypographyType): string {\n const style = typographyStyles[type];\n return [\n `font-family: \"${style.fontFamily}\", sans-serif`,\n `font-size: ${style.fontSize}px`,\n `font-weight: ${style.fontWeight}`,\n `line-height: ${style.lineHeight}px`,\n `letter-spacing: ${style.letterSpacing != null ? `${style.letterSpacing}px` : \"inherit\"}`,\n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|
+
import { KeyboardEventHandler } from 'react';
|
|
3
|
+
|
|
4
|
+
interface TextAreaProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
rows?: number;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
|
|
18
|
+
export { TextArea, type TextAreaProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { KeyboardEventHandler } from 'react';
|
|
3
|
+
|
|
4
|
+
interface TextAreaProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
rows?: number;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
|
|
18
|
+
export { TextArea, type TextAreaProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/tokens.cjs
CHANGED
|
@@ -33,6 +33,7 @@ var colors = {
|
|
|
33
33
|
// White
|
|
34
34
|
white: "#FFFFFF",
|
|
35
35
|
"white-alpha-85": "rgba(255, 255, 255, 0.85)",
|
|
36
|
+
"white-alpha-40": "rgba(255, 255, 255, 0.40)",
|
|
36
37
|
// Brown
|
|
37
38
|
"brown-10": "#FAF9F8",
|
|
38
39
|
"brown-20": "#F5F3F0",
|
|
@@ -133,6 +134,7 @@ var typographyTypes = {
|
|
|
133
134
|
GEIST_BODY_S_REGULAR: "GEIST_BODY_S_REGULAR",
|
|
134
135
|
GEIST_BODY_S_MEDIUM: "GEIST_BODY_S_MEDIUM",
|
|
135
136
|
GEIST_BODY_S_SEMI_BOLD: "GEIST_BODY_S_SEMI_BOLD",
|
|
137
|
+
GEIST_BODY_S_BOLD: "GEIST_BODY_S_BOLD",
|
|
136
138
|
// Geist Body Medium (18px)
|
|
137
139
|
GEIST_BODY_M_LIGHT: "GEIST_BODY_M_LIGHT",
|
|
138
140
|
GEIST_BODY_M_REGULAR: "GEIST_BODY_M_REGULAR",
|
|
@@ -226,6 +228,13 @@ var typographyStyles = {
|
|
|
226
228
|
lineHeight: 24,
|
|
227
229
|
letterSpacing: -0.08
|
|
228
230
|
},
|
|
231
|
+
[typographyTypes.GEIST_BODY_S_BOLD]: {
|
|
232
|
+
fontFamily: fontFamilies.GEIST,
|
|
233
|
+
fontSize: 16,
|
|
234
|
+
fontWeight: 700,
|
|
235
|
+
lineHeight: 24,
|
|
236
|
+
letterSpacing: -0.08
|
|
237
|
+
},
|
|
229
238
|
// Geist Body Medium (18px)
|
|
230
239
|
[typographyTypes.GEIST_BODY_M_LIGHT]: {
|
|
231
240
|
fontFamily: fontFamilies.GEIST,
|