@lets-events/react 2.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/.eslintrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@lets-events/eslint-config"
3
+ }
@@ -0,0 +1,18 @@
1
+
2
+ > @lets-events/react@2.0.0 build
3
+ > tsup src/index.tsx --format esm,cjs --dts --external react
4
+
5
+ CLI Building entry: src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.4.0
8
+ CLI Target: es6
9
+ ESM Build start
10
+ CJS Build start
11
+ CJS dist\index.js 6.18 KB
12
+ CJS ⚡️ Build success in 43ms
13
+ ESM dist\index.mjs 5.27 KB
14
+ ESM ⚡️ Build success in 44ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 1906ms
17
+ DTS dist\index.d.mts 8.25 KB
18
+ DTS dist\index.d.ts 8.25 KB
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @lets-events/react
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - adding packages ds
@@ -0,0 +1,325 @@
1
+ import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
2
+ import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
3
+ import { ComponentProps, ElementType } from 'react';
4
+
5
+ declare const Text: _stitches_react_types_styled_component.StyledComponent<"p", {
6
+ size?: "xs" | "sm" | "md" | "lg" | "2xl" | "4xl" | "full" | undefined;
7
+ }, {}, _stitches_react_types_css_util.CSS<{}, {
8
+ colors: {
9
+ brand50: string;
10
+ brand100: string;
11
+ brand200: string;
12
+ brand300: string;
13
+ brand400: string;
14
+ brand500: string;
15
+ brand600: string;
16
+ brand700: string;
17
+ brand800: string;
18
+ brand900: string;
19
+ brand950: string;
20
+ blue50: string;
21
+ blue100: string;
22
+ blue200: string;
23
+ blue300: string;
24
+ blue400: string;
25
+ blue500: string;
26
+ blue600: string;
27
+ blue700: string;
28
+ blue800: string;
29
+ blue900: string;
30
+ blue950: string;
31
+ red50: string;
32
+ red100: string;
33
+ red200: string;
34
+ red300: string;
35
+ red400: string;
36
+ red500: string;
37
+ red600: string;
38
+ red700: string;
39
+ red800: string;
40
+ red900: string;
41
+ red950: string;
42
+ purple50: string;
43
+ purple100: string;
44
+ purple200: string;
45
+ purple300: string;
46
+ purple400: string;
47
+ purple500: string;
48
+ purple600: string;
49
+ purple700: string;
50
+ purple800: string;
51
+ purple900: string;
52
+ purple950: string;
53
+ yellow50: string;
54
+ yellow100: string;
55
+ yellow200: string;
56
+ yellow300: string;
57
+ yellow400: string;
58
+ yellow500: string;
59
+ yellow600: string;
60
+ yellow700: string;
61
+ yellow800: string;
62
+ yellow900: string;
63
+ yellow950: string;
64
+ dark50: string;
65
+ dark100: string;
66
+ dark200: string;
67
+ dark300: string;
68
+ dark400: string;
69
+ dark500: string;
70
+ dark600: string;
71
+ dark700: string;
72
+ dark800: string;
73
+ dark900: string;
74
+ dark950: string;
75
+ neutral50: string;
76
+ neutral100: string;
77
+ neutral200: string;
78
+ neutral300: string;
79
+ neutral400: string;
80
+ neutral500: string;
81
+ neutral600: string;
82
+ neutral700: string;
83
+ neutral800: string;
84
+ neutral900: string;
85
+ neutral950: string;
86
+ green50: string;
87
+ green100: string;
88
+ green200: string;
89
+ green300: string;
90
+ green400: string;
91
+ green500: string;
92
+ green600: string;
93
+ green700: string;
94
+ green800: string;
95
+ green900: string;
96
+ green950: string;
97
+ grey50: string;
98
+ grey100: string;
99
+ grey200: string;
100
+ grey300: string;
101
+ grey400: string;
102
+ grey500: string;
103
+ grey600: string;
104
+ grey700: string;
105
+ grey800: string;
106
+ grey900: string;
107
+ grey950: string;
108
+ };
109
+ fontSizes: {
110
+ 2: string;
111
+ 4: string;
112
+ 6: string;
113
+ 8: string;
114
+ 10: string;
115
+ 12: string;
116
+ 13: string;
117
+ 14: string;
118
+ 16: string;
119
+ 18: string;
120
+ 20: string;
121
+ 22: string;
122
+ 24: string;
123
+ 32: string;
124
+ 36: string;
125
+ 40: string;
126
+ 48: string;
127
+ 56: string;
128
+ 64: string;
129
+ 72: string;
130
+ 80: string;
131
+ xs: string;
132
+ sm: string;
133
+ md: string;
134
+ lg: string;
135
+ '2xl': string;
136
+ '3xl': string;
137
+ '4xl': string;
138
+ full: string;
139
+ };
140
+ fonts: {
141
+ default: string;
142
+ };
143
+ fontWeights: {
144
+ regular: string;
145
+ medium: string;
146
+ semibold: string;
147
+ bold: string;
148
+ };
149
+ lineHeights: {
150
+ smaller: string;
151
+ shorter: string;
152
+ short: string;
153
+ base: string;
154
+ tall: string;
155
+ };
156
+ radii: {
157
+ px: string;
158
+ xs: string;
159
+ sm: string;
160
+ md: string;
161
+ lg: string;
162
+ '2xl': string;
163
+ '3xl': string;
164
+ '4xl': string;
165
+ full: string;
166
+ };
167
+ space: {
168
+ 2: string;
169
+ 4: string;
170
+ 6: string;
171
+ 8: string;
172
+ 10: string;
173
+ 12: string;
174
+ 13: string;
175
+ 14: string;
176
+ 16: string;
177
+ 18: string;
178
+ 20: string;
179
+ 22: string;
180
+ 24: string;
181
+ 32: string;
182
+ 36: string;
183
+ 40: string;
184
+ 48: string;
185
+ 56: string;
186
+ 64: string;
187
+ 72: string;
188
+ 80: string;
189
+ full: string;
190
+ };
191
+ }, {
192
+ height: "space";
193
+ width: "space";
194
+ gap: "space";
195
+ gridGap: "space";
196
+ columnGap: "space";
197
+ gridColumnGap: "space";
198
+ rowGap: "space";
199
+ gridRowGap: "space";
200
+ inset: "space";
201
+ insetBlock: "space";
202
+ insetBlockEnd: "space";
203
+ insetBlockStart: "space";
204
+ insetInline: "space";
205
+ insetInlineEnd: "space";
206
+ insetInlineStart: "space";
207
+ margin: "space";
208
+ marginTop: "space";
209
+ marginRight: "space";
210
+ marginBottom: "space";
211
+ marginLeft: "space";
212
+ marginBlock: "space";
213
+ marginBlockEnd: "space";
214
+ marginBlockStart: "space";
215
+ marginInline: "space";
216
+ marginInlineEnd: "space";
217
+ marginInlineStart: "space";
218
+ padding: "space";
219
+ paddingTop: "space";
220
+ paddingRight: "space";
221
+ paddingBottom: "space";
222
+ paddingLeft: "space";
223
+ paddingBlock: "space";
224
+ paddingBlockEnd: "space";
225
+ paddingBlockStart: "space";
226
+ paddingInline: "space";
227
+ paddingInlineEnd: "space";
228
+ paddingInlineStart: "space";
229
+ scrollMargin: "space";
230
+ scrollMarginTop: "space";
231
+ scrollMarginRight: "space";
232
+ scrollMarginBottom: "space";
233
+ scrollMarginLeft: "space";
234
+ scrollMarginBlock: "space";
235
+ scrollMarginBlockEnd: "space";
236
+ scrollMarginBlockStart: "space";
237
+ scrollMarginInline: "space";
238
+ scrollMarginInlineEnd: "space";
239
+ scrollMarginInlineStart: "space";
240
+ scrollPadding: "space";
241
+ scrollPaddingTop: "space";
242
+ scrollPaddingRight: "space";
243
+ scrollPaddingBottom: "space";
244
+ scrollPaddingLeft: "space";
245
+ scrollPaddingBlock: "space";
246
+ scrollPaddingBlockEnd: "space";
247
+ scrollPaddingBlockStart: "space";
248
+ scrollPaddingInline: "space";
249
+ scrollPaddingInlineEnd: "space";
250
+ scrollPaddingInlineStart: "space";
251
+ top: "space";
252
+ right: "space";
253
+ bottom: "space";
254
+ left: "space";
255
+ fontSize: "fontSizes";
256
+ background: "colors";
257
+ backgroundColor: "colors";
258
+ backgroundImage: "colors";
259
+ borderImage: "colors";
260
+ border: "colors";
261
+ borderBlock: "colors";
262
+ borderBlockEnd: "colors";
263
+ borderBlockStart: "colors";
264
+ borderBottom: "colors";
265
+ borderBottomColor: "colors";
266
+ borderColor: "colors";
267
+ borderInline: "colors";
268
+ borderInlineEnd: "colors";
269
+ borderInlineStart: "colors";
270
+ borderLeft: "colors";
271
+ borderLeftColor: "colors";
272
+ borderRight: "colors";
273
+ borderRightColor: "colors";
274
+ borderTop: "colors";
275
+ borderTopColor: "colors";
276
+ caretColor: "colors";
277
+ color: "colors";
278
+ columnRuleColor: "colors";
279
+ outline: "colors";
280
+ outlineColor: "colors";
281
+ fill: "colors";
282
+ stroke: "colors";
283
+ textDecorationColor: "colors";
284
+ fontFamily: "fonts";
285
+ fontWeight: "fontWeights";
286
+ lineHeight: "lineHeights";
287
+ letterSpacing: "letterSpacings";
288
+ blockSize: "sizes";
289
+ minBlockSize: "sizes";
290
+ maxBlockSize: "sizes";
291
+ inlineSize: "sizes";
292
+ minInlineSize: "sizes";
293
+ maxInlineSize: "sizes";
294
+ minWidth: "sizes";
295
+ maxWidth: "sizes";
296
+ minHeight: "sizes";
297
+ maxHeight: "sizes";
298
+ flexBasis: "sizes";
299
+ gridTemplateColumns: "sizes";
300
+ gridTemplateRows: "sizes";
301
+ borderWidth: "borderWidths";
302
+ borderTopWidth: "borderWidths";
303
+ borderLeftWidth: "borderWidths";
304
+ borderRightWidth: "borderWidths";
305
+ borderBottomWidth: "borderWidths";
306
+ borderStyle: "borderStyles";
307
+ borderTopStyle: "borderStyles";
308
+ borderLeftStyle: "borderStyles";
309
+ borderRightStyle: "borderStyles";
310
+ borderBottomStyle: "borderStyles";
311
+ borderRadius: "radii";
312
+ borderTopLeftRadius: "radii";
313
+ borderTopRightRadius: "radii";
314
+ borderBottomRightRadius: "radii";
315
+ borderBottomLeftRadius: "radii";
316
+ boxShadow: "shadows";
317
+ textShadow: "shadows";
318
+ transition: "transitions";
319
+ zIndex: "zIndices";
320
+ }, {}>>;
321
+ interface TextProps extends ComponentProps<typeof Text> {
322
+ as?: ElementType;
323
+ }
324
+
325
+ export { Text, type TextProps };
@@ -0,0 +1,325 @@
1
+ import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
2
+ import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
3
+ import { ComponentProps, ElementType } from 'react';
4
+
5
+ declare const Text: _stitches_react_types_styled_component.StyledComponent<"p", {
6
+ size?: "xs" | "sm" | "md" | "lg" | "2xl" | "4xl" | "full" | undefined;
7
+ }, {}, _stitches_react_types_css_util.CSS<{}, {
8
+ colors: {
9
+ brand50: string;
10
+ brand100: string;
11
+ brand200: string;
12
+ brand300: string;
13
+ brand400: string;
14
+ brand500: string;
15
+ brand600: string;
16
+ brand700: string;
17
+ brand800: string;
18
+ brand900: string;
19
+ brand950: string;
20
+ blue50: string;
21
+ blue100: string;
22
+ blue200: string;
23
+ blue300: string;
24
+ blue400: string;
25
+ blue500: string;
26
+ blue600: string;
27
+ blue700: string;
28
+ blue800: string;
29
+ blue900: string;
30
+ blue950: string;
31
+ red50: string;
32
+ red100: string;
33
+ red200: string;
34
+ red300: string;
35
+ red400: string;
36
+ red500: string;
37
+ red600: string;
38
+ red700: string;
39
+ red800: string;
40
+ red900: string;
41
+ red950: string;
42
+ purple50: string;
43
+ purple100: string;
44
+ purple200: string;
45
+ purple300: string;
46
+ purple400: string;
47
+ purple500: string;
48
+ purple600: string;
49
+ purple700: string;
50
+ purple800: string;
51
+ purple900: string;
52
+ purple950: string;
53
+ yellow50: string;
54
+ yellow100: string;
55
+ yellow200: string;
56
+ yellow300: string;
57
+ yellow400: string;
58
+ yellow500: string;
59
+ yellow600: string;
60
+ yellow700: string;
61
+ yellow800: string;
62
+ yellow900: string;
63
+ yellow950: string;
64
+ dark50: string;
65
+ dark100: string;
66
+ dark200: string;
67
+ dark300: string;
68
+ dark400: string;
69
+ dark500: string;
70
+ dark600: string;
71
+ dark700: string;
72
+ dark800: string;
73
+ dark900: string;
74
+ dark950: string;
75
+ neutral50: string;
76
+ neutral100: string;
77
+ neutral200: string;
78
+ neutral300: string;
79
+ neutral400: string;
80
+ neutral500: string;
81
+ neutral600: string;
82
+ neutral700: string;
83
+ neutral800: string;
84
+ neutral900: string;
85
+ neutral950: string;
86
+ green50: string;
87
+ green100: string;
88
+ green200: string;
89
+ green300: string;
90
+ green400: string;
91
+ green500: string;
92
+ green600: string;
93
+ green700: string;
94
+ green800: string;
95
+ green900: string;
96
+ green950: string;
97
+ grey50: string;
98
+ grey100: string;
99
+ grey200: string;
100
+ grey300: string;
101
+ grey400: string;
102
+ grey500: string;
103
+ grey600: string;
104
+ grey700: string;
105
+ grey800: string;
106
+ grey900: string;
107
+ grey950: string;
108
+ };
109
+ fontSizes: {
110
+ 2: string;
111
+ 4: string;
112
+ 6: string;
113
+ 8: string;
114
+ 10: string;
115
+ 12: string;
116
+ 13: string;
117
+ 14: string;
118
+ 16: string;
119
+ 18: string;
120
+ 20: string;
121
+ 22: string;
122
+ 24: string;
123
+ 32: string;
124
+ 36: string;
125
+ 40: string;
126
+ 48: string;
127
+ 56: string;
128
+ 64: string;
129
+ 72: string;
130
+ 80: string;
131
+ xs: string;
132
+ sm: string;
133
+ md: string;
134
+ lg: string;
135
+ '2xl': string;
136
+ '3xl': string;
137
+ '4xl': string;
138
+ full: string;
139
+ };
140
+ fonts: {
141
+ default: string;
142
+ };
143
+ fontWeights: {
144
+ regular: string;
145
+ medium: string;
146
+ semibold: string;
147
+ bold: string;
148
+ };
149
+ lineHeights: {
150
+ smaller: string;
151
+ shorter: string;
152
+ short: string;
153
+ base: string;
154
+ tall: string;
155
+ };
156
+ radii: {
157
+ px: string;
158
+ xs: string;
159
+ sm: string;
160
+ md: string;
161
+ lg: string;
162
+ '2xl': string;
163
+ '3xl': string;
164
+ '4xl': string;
165
+ full: string;
166
+ };
167
+ space: {
168
+ 2: string;
169
+ 4: string;
170
+ 6: string;
171
+ 8: string;
172
+ 10: string;
173
+ 12: string;
174
+ 13: string;
175
+ 14: string;
176
+ 16: string;
177
+ 18: string;
178
+ 20: string;
179
+ 22: string;
180
+ 24: string;
181
+ 32: string;
182
+ 36: string;
183
+ 40: string;
184
+ 48: string;
185
+ 56: string;
186
+ 64: string;
187
+ 72: string;
188
+ 80: string;
189
+ full: string;
190
+ };
191
+ }, {
192
+ height: "space";
193
+ width: "space";
194
+ gap: "space";
195
+ gridGap: "space";
196
+ columnGap: "space";
197
+ gridColumnGap: "space";
198
+ rowGap: "space";
199
+ gridRowGap: "space";
200
+ inset: "space";
201
+ insetBlock: "space";
202
+ insetBlockEnd: "space";
203
+ insetBlockStart: "space";
204
+ insetInline: "space";
205
+ insetInlineEnd: "space";
206
+ insetInlineStart: "space";
207
+ margin: "space";
208
+ marginTop: "space";
209
+ marginRight: "space";
210
+ marginBottom: "space";
211
+ marginLeft: "space";
212
+ marginBlock: "space";
213
+ marginBlockEnd: "space";
214
+ marginBlockStart: "space";
215
+ marginInline: "space";
216
+ marginInlineEnd: "space";
217
+ marginInlineStart: "space";
218
+ padding: "space";
219
+ paddingTop: "space";
220
+ paddingRight: "space";
221
+ paddingBottom: "space";
222
+ paddingLeft: "space";
223
+ paddingBlock: "space";
224
+ paddingBlockEnd: "space";
225
+ paddingBlockStart: "space";
226
+ paddingInline: "space";
227
+ paddingInlineEnd: "space";
228
+ paddingInlineStart: "space";
229
+ scrollMargin: "space";
230
+ scrollMarginTop: "space";
231
+ scrollMarginRight: "space";
232
+ scrollMarginBottom: "space";
233
+ scrollMarginLeft: "space";
234
+ scrollMarginBlock: "space";
235
+ scrollMarginBlockEnd: "space";
236
+ scrollMarginBlockStart: "space";
237
+ scrollMarginInline: "space";
238
+ scrollMarginInlineEnd: "space";
239
+ scrollMarginInlineStart: "space";
240
+ scrollPadding: "space";
241
+ scrollPaddingTop: "space";
242
+ scrollPaddingRight: "space";
243
+ scrollPaddingBottom: "space";
244
+ scrollPaddingLeft: "space";
245
+ scrollPaddingBlock: "space";
246
+ scrollPaddingBlockEnd: "space";
247
+ scrollPaddingBlockStart: "space";
248
+ scrollPaddingInline: "space";
249
+ scrollPaddingInlineEnd: "space";
250
+ scrollPaddingInlineStart: "space";
251
+ top: "space";
252
+ right: "space";
253
+ bottom: "space";
254
+ left: "space";
255
+ fontSize: "fontSizes";
256
+ background: "colors";
257
+ backgroundColor: "colors";
258
+ backgroundImage: "colors";
259
+ borderImage: "colors";
260
+ border: "colors";
261
+ borderBlock: "colors";
262
+ borderBlockEnd: "colors";
263
+ borderBlockStart: "colors";
264
+ borderBottom: "colors";
265
+ borderBottomColor: "colors";
266
+ borderColor: "colors";
267
+ borderInline: "colors";
268
+ borderInlineEnd: "colors";
269
+ borderInlineStart: "colors";
270
+ borderLeft: "colors";
271
+ borderLeftColor: "colors";
272
+ borderRight: "colors";
273
+ borderRightColor: "colors";
274
+ borderTop: "colors";
275
+ borderTopColor: "colors";
276
+ caretColor: "colors";
277
+ color: "colors";
278
+ columnRuleColor: "colors";
279
+ outline: "colors";
280
+ outlineColor: "colors";
281
+ fill: "colors";
282
+ stroke: "colors";
283
+ textDecorationColor: "colors";
284
+ fontFamily: "fonts";
285
+ fontWeight: "fontWeights";
286
+ lineHeight: "lineHeights";
287
+ letterSpacing: "letterSpacings";
288
+ blockSize: "sizes";
289
+ minBlockSize: "sizes";
290
+ maxBlockSize: "sizes";
291
+ inlineSize: "sizes";
292
+ minInlineSize: "sizes";
293
+ maxInlineSize: "sizes";
294
+ minWidth: "sizes";
295
+ maxWidth: "sizes";
296
+ minHeight: "sizes";
297
+ maxHeight: "sizes";
298
+ flexBasis: "sizes";
299
+ gridTemplateColumns: "sizes";
300
+ gridTemplateRows: "sizes";
301
+ borderWidth: "borderWidths";
302
+ borderTopWidth: "borderWidths";
303
+ borderLeftWidth: "borderWidths";
304
+ borderRightWidth: "borderWidths";
305
+ borderBottomWidth: "borderWidths";
306
+ borderStyle: "borderStyles";
307
+ borderTopStyle: "borderStyles";
308
+ borderLeftStyle: "borderStyles";
309
+ borderRightStyle: "borderStyles";
310
+ borderBottomStyle: "borderStyles";
311
+ borderRadius: "radii";
312
+ borderTopLeftRadius: "radii";
313
+ borderTopRightRadius: "radii";
314
+ borderBottomRightRadius: "radii";
315
+ borderBottomLeftRadius: "radii";
316
+ boxShadow: "shadows";
317
+ textShadow: "shadows";
318
+ transition: "transitions";
319
+ zIndex: "zIndices";
320
+ }, {}>>;
321
+ interface TextProps extends ComponentProps<typeof Text> {
322
+ as?: ElementType;
323
+ }
324
+
325
+ export { Text, type TextProps };
package/dist/index.js ADDED
@@ -0,0 +1,285 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __export = (target, all) => {
24
+ for (var name in all)
25
+ __defProp(target, name, { get: all[name], enumerable: true });
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") {
29
+ for (let key of __getOwnPropNames(from))
30
+ if (!__hasOwnProp.call(to, key) && key !== except)
31
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
+ }
33
+ return to;
34
+ };
35
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
+
37
+ // src/index.tsx
38
+ var index_exports = {};
39
+ __export(index_exports, {
40
+ Text: () => Text
41
+ });
42
+ module.exports = __toCommonJS(index_exports);
43
+
44
+ // ../tokens/dist/index.mjs
45
+ var colors = {
46
+ brand50: "#DBE8FF",
47
+ brand100: "#BDD5FF",
48
+ brand200: "#7AABFF",
49
+ brand300: "#3881FF",
50
+ brand400: "#005AF5",
51
+ brand500: "#004ED2",
52
+ brand600: "#0042B2",
53
+ brand700: "#00348F",
54
+ brand800: "#00276B",
55
+ brand900: "#001A47",
56
+ brand950: "#000D24",
57
+ blue50: "#E5F1FF",
58
+ blue100: "#CCE4FF",
59
+ blue200: "#9AC9FF",
60
+ blue300: "#66ADFF",
61
+ blue400: "#3392FF",
62
+ blue500: "#0278FE",
63
+ blue600: "#005FCD",
64
+ blue700: "#004799",
65
+ blue800: "#013066",
66
+ blue900: "#001834",
67
+ blue950: "#000C1A",
68
+ red50: "#FCEEEF",
69
+ red100: "#F9DCDF",
70
+ red200: "#F3BEC3",
71
+ red300: "#ED9CA2",
72
+ red400: "#E77982",
73
+ red500: "#E15662",
74
+ red600: "#DB3644",
75
+ red700: "#AD1F2B",
76
+ red800: "#75151D",
77
+ red900: "#380A0E",
78
+ red950: "#1E0507",
79
+ purple50: "#F3EFFB",
80
+ purple100: "#E6DEF7",
81
+ purple200: "#D1C2F0",
82
+ purple300: "#B9A1E8",
83
+ purple400: "#A080E0",
84
+ purple500: "#8961D8",
85
+ purple600: "#6431C8",
86
+ purple700: "#4B2597",
87
+ purple800: "#331966",
88
+ purple900: "#180C31",
89
+ purple950: "#0C0619",
90
+ yellow50: "#FFF9E6",
91
+ yellow100: "#FFF3CD",
92
+ yellow200: "#FFE69C",
93
+ yellow300: "#FFDA6A",
94
+ yellow400: "#FFCD39",
95
+ yellow500: "#FFC107",
96
+ yellow600: "#CC9A06",
97
+ yellow700: "#997404",
98
+ yellow800: "#664D03",
99
+ yellow900: "#332701",
100
+ yellow950: "#191300",
101
+ dark50: "#FFFFFF",
102
+ dark100: "#F4F4F4",
103
+ dark200: "#EAEBF0",
104
+ dark300: "#C2C3C7",
105
+ dark400: "#A9ABB1",
106
+ dark500: "#808289",
107
+ dark600: "#4C4F54",
108
+ dark700: "#34363B",
109
+ dark800: "#1E2023",
110
+ dark900: "#040507",
111
+ dark950: "#030303",
112
+ neutral50: "#FFFFFF",
113
+ neutral100: "#F4F4F4",
114
+ neutral200: "#EAEBF0",
115
+ neutral300: "#C2C3C7",
116
+ neutral400: "#A9ABB1",
117
+ neutral500: "#808289",
118
+ neutral600: "#4C4F54",
119
+ neutral700: "#34363B",
120
+ neutral800: "#1E2023",
121
+ neutral900: "#040507",
122
+ neutral950: "#030303",
123
+ green50: "#E6F9EA",
124
+ green100: "#CDF4D5",
125
+ green200: "#9BE8AC",
126
+ green300: "#6CD783",
127
+ green400: "#5BCA72",
128
+ green500: "#26A743",
129
+ green600: "#1E8535",
130
+ green700: "#176427",
131
+ green800: "#0F421A",
132
+ green900: "#08210D",
133
+ green950: "#041107",
134
+ grey50: "#F4F8FB",
135
+ grey100: "#E6EEF4",
136
+ grey200: "#DBE7F0",
137
+ grey300: "#BCCEDD",
138
+ grey400: "#9FB6C7",
139
+ grey500: "#849DAE",
140
+ grey600: "#698496",
141
+ grey700: "#516A7A",
142
+ grey800: "#394F61",
143
+ grey900: "#233543",
144
+ grey950: "#101B23"
145
+ };
146
+ var fonts = {
147
+ default: '"Work Sans", sans-serif'
148
+ };
149
+ var fontSizes = {
150
+ 2: "0.125rem",
151
+ 4: "0.25rem",
152
+ 6: "0.375rem",
153
+ 8: "0.5rem",
154
+ 10: "0.625rem",
155
+ 12: "0.75rem",
156
+ 13: "0.8125rem",
157
+ 14: "0.875rem",
158
+ 16: "1rem",
159
+ 18: "1.125rem",
160
+ 20: "1.25rem",
161
+ 22: "1.375rem",
162
+ 24: "1.5rem",
163
+ 32: "2rem",
164
+ 36: "2.25rem",
165
+ 40: "2.5rem",
166
+ 48: "3rem",
167
+ 56: "3.5rem",
168
+ 64: "4rem",
169
+ 72: "4.5rem",
170
+ 80: "5rem",
171
+ xs: "0.375rem",
172
+ sm: "0.5rem",
173
+ md: "0.75rem",
174
+ lg: "1rem",
175
+ "2xl": "1.5rem",
176
+ "3xl": "2rem",
177
+ "4xl": "2.5rem",
178
+ full: "62.4375rem"
179
+ };
180
+ var fontWeights = {
181
+ regular: "400",
182
+ medium: "500",
183
+ semibold: "600",
184
+ bold: "700"
185
+ };
186
+ var lineHeights = {
187
+ smaller: "112.5%",
188
+ // 4px
189
+ shorter: "125%",
190
+ // 8px
191
+ short: "137.5%",
192
+ // 12px
193
+ base: "150%",
194
+ // 16px
195
+ tall: "175%"
196
+ // 24px
197
+ };
198
+ var radii = {
199
+ px: "1px",
200
+ xs: "6px",
201
+ sm: "8px",
202
+ md: "12px",
203
+ lg: "16px",
204
+ "2xl": "24px",
205
+ "3xl": "32px",
206
+ "4xl": "40px",
207
+ full: "99999px"
208
+ };
209
+ var space = {
210
+ 2: "0.125rem",
211
+ 4: "0.25rem",
212
+ 6: "0.375rem",
213
+ 8: "0.5rem",
214
+ 10: "0.625rem",
215
+ 12: "0.75rem",
216
+ 13: "0.8125rem",
217
+ 14: "0.875rem",
218
+ 16: "1rem",
219
+ 18: "1.125rem",
220
+ 20: "1.25rem",
221
+ 22: "1.375rem",
222
+ 24: "1.5rem",
223
+ 32: "2rem",
224
+ 36: "2.25rem",
225
+ 40: "2.5rem",
226
+ 48: "3rem",
227
+ 56: "3.5rem",
228
+ 64: "4rem",
229
+ 72: "4.5rem",
230
+ 80: "5rem",
231
+ full: "62.4375rem"
232
+ };
233
+
234
+ // src/styles/index.ts
235
+ var import_react = require("@stitches/react");
236
+ var {
237
+ styled,
238
+ css,
239
+ globalCss,
240
+ keyframes,
241
+ getCssText,
242
+ theme,
243
+ createTheme,
244
+ config
245
+ } = (0, import_react.createStitches)({
246
+ themeMap: __spreadProps(__spreadValues({}, import_react.defaultThemeMap), {
247
+ height: "space",
248
+ width: "space"
249
+ }),
250
+ theme: {
251
+ colors,
252
+ fontSizes,
253
+ fonts,
254
+ fontWeights,
255
+ lineHeights,
256
+ radii,
257
+ space
258
+ }
259
+ });
260
+
261
+ // src/components/Text.tsx
262
+ var Text = styled("p", {
263
+ fontFamily: "$default",
264
+ lineHeight: "$base",
265
+ margin: 0,
266
+ color: "$gray100",
267
+ variants: {
268
+ size: {
269
+ xs: { fontSize: "$xs" },
270
+ sm: { fontSize: "$sm" },
271
+ md: { fontSize: "$md" },
272
+ lg: { fontSize: "$lg" },
273
+ "2xl": { fontSize: "$2xl" },
274
+ "4xl": { fontSize: "$4xl" },
275
+ full: { fontSize: "$full" }
276
+ }
277
+ },
278
+ defaultVariants: {
279
+ size: "md"
280
+ }
281
+ });
282
+ // Annotate the CommonJS export names for ESM import in node:
283
+ 0 && (module.exports = {
284
+ Text
285
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,261 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+
21
+ // ../tokens/dist/index.mjs
22
+ var colors = {
23
+ brand50: "#DBE8FF",
24
+ brand100: "#BDD5FF",
25
+ brand200: "#7AABFF",
26
+ brand300: "#3881FF",
27
+ brand400: "#005AF5",
28
+ brand500: "#004ED2",
29
+ brand600: "#0042B2",
30
+ brand700: "#00348F",
31
+ brand800: "#00276B",
32
+ brand900: "#001A47",
33
+ brand950: "#000D24",
34
+ blue50: "#E5F1FF",
35
+ blue100: "#CCE4FF",
36
+ blue200: "#9AC9FF",
37
+ blue300: "#66ADFF",
38
+ blue400: "#3392FF",
39
+ blue500: "#0278FE",
40
+ blue600: "#005FCD",
41
+ blue700: "#004799",
42
+ blue800: "#013066",
43
+ blue900: "#001834",
44
+ blue950: "#000C1A",
45
+ red50: "#FCEEEF",
46
+ red100: "#F9DCDF",
47
+ red200: "#F3BEC3",
48
+ red300: "#ED9CA2",
49
+ red400: "#E77982",
50
+ red500: "#E15662",
51
+ red600: "#DB3644",
52
+ red700: "#AD1F2B",
53
+ red800: "#75151D",
54
+ red900: "#380A0E",
55
+ red950: "#1E0507",
56
+ purple50: "#F3EFFB",
57
+ purple100: "#E6DEF7",
58
+ purple200: "#D1C2F0",
59
+ purple300: "#B9A1E8",
60
+ purple400: "#A080E0",
61
+ purple500: "#8961D8",
62
+ purple600: "#6431C8",
63
+ purple700: "#4B2597",
64
+ purple800: "#331966",
65
+ purple900: "#180C31",
66
+ purple950: "#0C0619",
67
+ yellow50: "#FFF9E6",
68
+ yellow100: "#FFF3CD",
69
+ yellow200: "#FFE69C",
70
+ yellow300: "#FFDA6A",
71
+ yellow400: "#FFCD39",
72
+ yellow500: "#FFC107",
73
+ yellow600: "#CC9A06",
74
+ yellow700: "#997404",
75
+ yellow800: "#664D03",
76
+ yellow900: "#332701",
77
+ yellow950: "#191300",
78
+ dark50: "#FFFFFF",
79
+ dark100: "#F4F4F4",
80
+ dark200: "#EAEBF0",
81
+ dark300: "#C2C3C7",
82
+ dark400: "#A9ABB1",
83
+ dark500: "#808289",
84
+ dark600: "#4C4F54",
85
+ dark700: "#34363B",
86
+ dark800: "#1E2023",
87
+ dark900: "#040507",
88
+ dark950: "#030303",
89
+ neutral50: "#FFFFFF",
90
+ neutral100: "#F4F4F4",
91
+ neutral200: "#EAEBF0",
92
+ neutral300: "#C2C3C7",
93
+ neutral400: "#A9ABB1",
94
+ neutral500: "#808289",
95
+ neutral600: "#4C4F54",
96
+ neutral700: "#34363B",
97
+ neutral800: "#1E2023",
98
+ neutral900: "#040507",
99
+ neutral950: "#030303",
100
+ green50: "#E6F9EA",
101
+ green100: "#CDF4D5",
102
+ green200: "#9BE8AC",
103
+ green300: "#6CD783",
104
+ green400: "#5BCA72",
105
+ green500: "#26A743",
106
+ green600: "#1E8535",
107
+ green700: "#176427",
108
+ green800: "#0F421A",
109
+ green900: "#08210D",
110
+ green950: "#041107",
111
+ grey50: "#F4F8FB",
112
+ grey100: "#E6EEF4",
113
+ grey200: "#DBE7F0",
114
+ grey300: "#BCCEDD",
115
+ grey400: "#9FB6C7",
116
+ grey500: "#849DAE",
117
+ grey600: "#698496",
118
+ grey700: "#516A7A",
119
+ grey800: "#394F61",
120
+ grey900: "#233543",
121
+ grey950: "#101B23"
122
+ };
123
+ var fonts = {
124
+ default: '"Work Sans", sans-serif'
125
+ };
126
+ var fontSizes = {
127
+ 2: "0.125rem",
128
+ 4: "0.25rem",
129
+ 6: "0.375rem",
130
+ 8: "0.5rem",
131
+ 10: "0.625rem",
132
+ 12: "0.75rem",
133
+ 13: "0.8125rem",
134
+ 14: "0.875rem",
135
+ 16: "1rem",
136
+ 18: "1.125rem",
137
+ 20: "1.25rem",
138
+ 22: "1.375rem",
139
+ 24: "1.5rem",
140
+ 32: "2rem",
141
+ 36: "2.25rem",
142
+ 40: "2.5rem",
143
+ 48: "3rem",
144
+ 56: "3.5rem",
145
+ 64: "4rem",
146
+ 72: "4.5rem",
147
+ 80: "5rem",
148
+ xs: "0.375rem",
149
+ sm: "0.5rem",
150
+ md: "0.75rem",
151
+ lg: "1rem",
152
+ "2xl": "1.5rem",
153
+ "3xl": "2rem",
154
+ "4xl": "2.5rem",
155
+ full: "62.4375rem"
156
+ };
157
+ var fontWeights = {
158
+ regular: "400",
159
+ medium: "500",
160
+ semibold: "600",
161
+ bold: "700"
162
+ };
163
+ var lineHeights = {
164
+ smaller: "112.5%",
165
+ // 4px
166
+ shorter: "125%",
167
+ // 8px
168
+ short: "137.5%",
169
+ // 12px
170
+ base: "150%",
171
+ // 16px
172
+ tall: "175%"
173
+ // 24px
174
+ };
175
+ var radii = {
176
+ px: "1px",
177
+ xs: "6px",
178
+ sm: "8px",
179
+ md: "12px",
180
+ lg: "16px",
181
+ "2xl": "24px",
182
+ "3xl": "32px",
183
+ "4xl": "40px",
184
+ full: "99999px"
185
+ };
186
+ var space = {
187
+ 2: "0.125rem",
188
+ 4: "0.25rem",
189
+ 6: "0.375rem",
190
+ 8: "0.5rem",
191
+ 10: "0.625rem",
192
+ 12: "0.75rem",
193
+ 13: "0.8125rem",
194
+ 14: "0.875rem",
195
+ 16: "1rem",
196
+ 18: "1.125rem",
197
+ 20: "1.25rem",
198
+ 22: "1.375rem",
199
+ 24: "1.5rem",
200
+ 32: "2rem",
201
+ 36: "2.25rem",
202
+ 40: "2.5rem",
203
+ 48: "3rem",
204
+ 56: "3.5rem",
205
+ 64: "4rem",
206
+ 72: "4.5rem",
207
+ 80: "5rem",
208
+ full: "62.4375rem"
209
+ };
210
+
211
+ // src/styles/index.ts
212
+ import { createStitches, defaultThemeMap } from "@stitches/react";
213
+ var {
214
+ styled,
215
+ css,
216
+ globalCss,
217
+ keyframes,
218
+ getCssText,
219
+ theme,
220
+ createTheme,
221
+ config
222
+ } = createStitches({
223
+ themeMap: __spreadProps(__spreadValues({}, defaultThemeMap), {
224
+ height: "space",
225
+ width: "space"
226
+ }),
227
+ theme: {
228
+ colors,
229
+ fontSizes,
230
+ fonts,
231
+ fontWeights,
232
+ lineHeights,
233
+ radii,
234
+ space
235
+ }
236
+ });
237
+
238
+ // src/components/Text.tsx
239
+ var Text = styled("p", {
240
+ fontFamily: "$default",
241
+ lineHeight: "$base",
242
+ margin: 0,
243
+ color: "$gray100",
244
+ variants: {
245
+ size: {
246
+ xs: { fontSize: "$xs" },
247
+ sm: { fontSize: "$sm" },
248
+ md: { fontSize: "$md" },
249
+ lg: { fontSize: "$lg" },
250
+ "2xl": { fontSize: "$2xl" },
251
+ "4xl": { fontSize: "$4xl" },
252
+ full: { fontSize: "$full" }
253
+ }
254
+ },
255
+ defaultVariants: {
256
+ size: "md"
257
+ }
258
+ });
259
+ export {
260
+ Text
261
+ };
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@lets-events/react",
3
+ "version": "2.0.0",
4
+ "description": "",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup src/index.tsx --format esm,cjs --dts --external react",
10
+ "dev": "tsup src/index.tsx --format esm,cjs --dts --external react --watch",
11
+ "lint": "eslint src/**/*.ts --fix"
12
+ },
13
+ "keywords": [],
14
+ "author": "",
15
+ "license": "MIT",
16
+ "type": "commonjs",
17
+ "devDependencies": {
18
+ "@lets-events/eslint-config": "*",
19
+ "@lets-events/tokens": "*",
20
+ "@lets-events/ts-config": "*",
21
+ "@types/react": "^19.0.10",
22
+ "@types/react-dom": "^19.0.4",
23
+ "react": "^19.0.0",
24
+ "tsup": "^8.4.0",
25
+ "typescript": "^5.8.2"
26
+ },
27
+ "dependencies": {
28
+ "@stitches/react": "^1.2.8"
29
+ }
30
+ }
@@ -0,0 +1,29 @@
1
+ import { ComponentProps, ElementType } from 'react'
2
+ import { styled } from '../styles'
3
+
4
+ export const Text = styled('p', {
5
+ fontFamily: '$default',
6
+ lineHeight: '$base',
7
+ margin: 0,
8
+ color: '$gray100',
9
+
10
+ variants: {
11
+ size: {
12
+ xs: { fontSize: '$xs' },
13
+ sm: { fontSize: '$sm' },
14
+ md: { fontSize: '$md' },
15
+ lg: { fontSize: '$lg' },
16
+ '2xl': { fontSize: '$2xl' },
17
+ '4xl': { fontSize: '$4xl' },
18
+ full: { fontSize: '$full' },
19
+ },
20
+ },
21
+
22
+ defaultVariants: {
23
+ size: 'md',
24
+ },
25
+ })
26
+
27
+ export interface TextProps extends ComponentProps<typeof Text> {
28
+ as?: ElementType
29
+ }
package/src/index.tsx ADDED
@@ -0,0 +1 @@
1
+ export * from './components/Text'
@@ -0,0 +1,36 @@
1
+ import {
2
+ colors,
3
+ fontSizes,
4
+ fontWeights,
5
+ fonts,
6
+ lineHeights,
7
+ radii,
8
+ space,
9
+ } from '@lets-events/tokens'
10
+ import { createStitches, defaultThemeMap } from '@stitches/react'
11
+
12
+ export const {
13
+ styled,
14
+ css,
15
+ globalCss,
16
+ keyframes,
17
+ getCssText,
18
+ theme,
19
+ createTheme,
20
+ config,
21
+ } = createStitches({
22
+ themeMap: {
23
+ ...defaultThemeMap,
24
+ height: 'space',
25
+ width: 'space',
26
+ },
27
+ theme: {
28
+ colors,
29
+ fontSizes,
30
+ fonts,
31
+ fontWeights,
32
+ lineHeights,
33
+ radii,
34
+ space,
35
+ },
36
+ })
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "@lets-events/ts-config/react.json",
3
+ "include": ["src"]
4
+ }