@ndla/preset-panda 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,419 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.semanticTokens = void 0;
7
+ var _dev = require("@pandacss/dev");
8
+ /**
9
+ * Copyright (c) 2024-present, NDLA.
10
+ *
11
+ * This source code is licensed under the GPLv3 license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *
14
+ */
15
+
16
+ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
17
+ spacing: {
18
+ "4xsmall": {
19
+ value: "{spacing.2}"
20
+ },
21
+ "3xsmall": {
22
+ value: "{spacing.3}"
23
+ },
24
+ xxsmall: {
25
+ value: "{spacing.4}"
26
+ },
27
+ xsmall: {
28
+ value: "{spacing.6}"
29
+ },
30
+ small: {
31
+ value: "{spacing.8}"
32
+ },
33
+ medium: {
34
+ value: "{spacing.12}"
35
+ },
36
+ large: {
37
+ value: "{spacing.15}"
38
+ },
39
+ xlarge: {
40
+ value: "{spacing.18}"
41
+ },
42
+ xxlarge: {
43
+ value: "{spacing.24}"
44
+ },
45
+ "3xlarge": {
46
+ value: "{spacing.36}"
47
+ },
48
+ "4xlarge": {
49
+ value: "{spacing.48}"
50
+ },
51
+ surface: {
52
+ "4xsmall": {
53
+ value: "{spacing.50}"
54
+ },
55
+ "3xsmall": {
56
+ value: "{spacing.75}"
57
+ },
58
+ xxsmall: {
59
+ value: "{spacing.100}"
60
+ },
61
+ xsmall: {
62
+ value: "{spacing.150}"
63
+ },
64
+ small: {
65
+ value: "{spacing.200}"
66
+ },
67
+ medium: {
68
+ value: "{spacing.250}"
69
+ },
70
+ large: {
71
+ value: "{spacing.300}"
72
+ },
73
+ xlarge: {
74
+ value: "{spacing.350}"
75
+ },
76
+ xxlarge: {
77
+ value: "{spacing.400}"
78
+ },
79
+ "3xlarge": {
80
+ value: "{spacing.500}"
81
+ },
82
+ "4xlarge": {
83
+ value: "{spacing.550}"
84
+ }
85
+ }
86
+ },
87
+ sizes: {
88
+ "4xsmall": {
89
+ value: "{spacing.2}"
90
+ },
91
+ "3xsmall": {
92
+ value: "{spacing.3}"
93
+ },
94
+ xxsmall: {
95
+ value: "{spacing.4}"
96
+ },
97
+ xsmall: {
98
+ value: "{spacing.6}"
99
+ },
100
+ small: {
101
+ value: "{spacing.8}"
102
+ },
103
+ medium: {
104
+ value: "{spacing.12}"
105
+ },
106
+ large: {
107
+ value: "{spacing.15}"
108
+ },
109
+ xlarge: {
110
+ value: "{spacing.18}"
111
+ },
112
+ xxlarge: {
113
+ value: "{spacing.24}"
114
+ },
115
+ "3xlarge": {
116
+ value: "{spacing.36}"
117
+ },
118
+ "4xlarge": {
119
+ value: "{spacing.48}"
120
+ },
121
+ surface: {
122
+ "4xsmall": {
123
+ value: "{spacing.50}"
124
+ },
125
+ "3xsmall": {
126
+ value: "{spacing.75}"
127
+ },
128
+ xxsmall: {
129
+ value: "{spacing.100}"
130
+ },
131
+ xsmall: {
132
+ value: "{spacing.150}"
133
+ },
134
+ small: {
135
+ value: "{spacing.200}"
136
+ },
137
+ medium: {
138
+ value: "{spacing.250}"
139
+ },
140
+ large: {
141
+ value: "{spacing.300}"
142
+ },
143
+ xlarge: {
144
+ value: "{spacing.350}"
145
+ },
146
+ xxlarge: {
147
+ value: "{spacing.400}"
148
+ },
149
+ "3xlarge": {
150
+ value: "{spacing.500}"
151
+ },
152
+ "4xlarge": {
153
+ value: "{spacing.550}"
154
+ }
155
+ }
156
+ },
157
+ colors: {
158
+ background: {
159
+ default: {
160
+ value: "{colors.white}"
161
+ },
162
+ subtle: {
163
+ value: "{colors.grey.100}"
164
+ },
165
+ strong: {
166
+ value: "{colors.purple.50}"
167
+ }
168
+ },
169
+ text: {
170
+ default: {
171
+ value: "{colors.grey.950}"
172
+ },
173
+ subtle: {
174
+ value: "{colors.grey.700}"
175
+ },
176
+ strong: {
177
+ value: "{colors.primary}"
178
+ },
179
+ action: {
180
+ value: "{colors.purple.800}"
181
+ },
182
+ onAction: {
183
+ value: "{colors.white}"
184
+ },
185
+ link: {
186
+ value: "{colors.purple.900}"
187
+ },
188
+ error: {
189
+ value: "{colors.pink.800}"
190
+ },
191
+ disabled: {
192
+ value: "{colors.grey.400}"
193
+ }
194
+ },
195
+ icon: {
196
+ default: {
197
+ value: "{colors.grey.950}"
198
+ },
199
+ strong: {
200
+ value: "{colors.primary}"
201
+ },
202
+ onAction: {
203
+ value: "{colors.white}"
204
+ }
205
+ },
206
+ surface: {
207
+ brand: {
208
+ 1: {
209
+ DEFAULT: {
210
+ value: "{colors.purple.500}"
211
+ },
212
+ subtle: {
213
+ value: "{colors.purple.100}"
214
+ },
215
+ strong: {
216
+ value: "{colors.purple.950}"
217
+ }
218
+ },
219
+ 2: {
220
+ DEFAULT: {
221
+ value: "{colors.blue.500}"
222
+ },
223
+ subtle: {
224
+ value: "{colors.blue.100}"
225
+ },
226
+ strong: {
227
+ value: "{colors.blue.900}"
228
+ }
229
+ },
230
+ 3: {
231
+ DEFAULT: {
232
+ value: "{colors.green.500}"
233
+ },
234
+ subtle: {
235
+ value: "{colors.green.100}"
236
+ },
237
+ strong: {
238
+ value: "{colors.green.900}"
239
+ }
240
+ },
241
+ 4: {
242
+ DEFAULT: {
243
+ value: "{colors.yellow.500}"
244
+ },
245
+ subtle: {
246
+ value: "{colors.yellow.100}"
247
+ },
248
+ strong: {
249
+ value: "{colors.yellow.1100}"
250
+ }
251
+ },
252
+ 5: {
253
+ DEFAULT: {
254
+ value: "{colors.pink.500}"
255
+ },
256
+ subtle: {
257
+ value: "{colors.pink.100}"
258
+ },
259
+ strong: {
260
+ value: "{colors.pink.900}"
261
+ }
262
+ }
263
+ },
264
+ default: {
265
+ value: "{colors.white}"
266
+ },
267
+ hover: {
268
+ value: "{colors.grey.100}"
269
+ },
270
+ active: {
271
+ value: "{colors.grey.200}"
272
+ },
273
+ selected: {
274
+ value: "{colors.purple.200}"
275
+ },
276
+ disabled: {
277
+ DEFAULT: {
278
+ value: "{colors.grey.200}"
279
+ },
280
+ subtle: {
281
+ value: "{colors.grey.50}"
282
+ },
283
+ strong: {
284
+ value: "{colors.grey.700}"
285
+ }
286
+ },
287
+ infoSubtle: {
288
+ DEFAULT: {
289
+ value: "{colors.grey.100}"
290
+ },
291
+ hover: {
292
+ value: "{colors.grey.200}"
293
+ },
294
+ active: {
295
+ value: "{colors.grey.300}"
296
+ }
297
+ },
298
+ action: {
299
+ DEFAULT: {
300
+ value: "{colors.primary}"
301
+ },
302
+ hover: {
303
+ value: "{colors.purple.900}"
304
+ },
305
+ active: {
306
+ value: "{colors.purple.800}"
307
+ }
308
+ },
309
+ actionSubtle: {
310
+ DEFAULT: {
311
+ value: "{colors.purple.50}"
312
+ },
313
+ hover: {
314
+ DEFAULT: {
315
+ value: "{colors.purple.100}"
316
+ },
317
+ strong: {
318
+ value: "{colors.purple.400}"
319
+ }
320
+ },
321
+ active: {
322
+ value: "{colors.purple.300}"
323
+ }
324
+ },
325
+ success: {
326
+ DEFAULT: {
327
+ value: "{colors.green.800}"
328
+ },
329
+ hover: {
330
+ value: "{colors.green.900}"
331
+ },
332
+ active: {
333
+ value: "{colors.green.950}"
334
+ }
335
+ },
336
+ successSubtle: {
337
+ DEFAULT: {
338
+ value: "{colors.green.100}"
339
+ },
340
+ hover: {
341
+ value: "{colors.green.300}"
342
+ },
343
+ active: {
344
+ value: "{colors.green.500}"
345
+ }
346
+ },
347
+ warning: {
348
+ DEFAULT: {
349
+ value: "{colors.yellow.600}"
350
+ },
351
+ hover: {
352
+ value: "{colors.yellow.800}"
353
+ },
354
+ active: {
355
+ value: "{colors.yellow.1200}"
356
+ }
357
+ },
358
+ warningSubtle: {
359
+ DEFAULT: {
360
+ value: "{colors.yellow.100}"
361
+ },
362
+ hover: {
363
+ value: "{colors.yellow.300}"
364
+ },
365
+ active: {
366
+ value: "{colors.yellow.400}"
367
+ }
368
+ },
369
+ error: {
370
+ DEFAULT: {
371
+ value: "{colors.pink.800}"
372
+ },
373
+ hover: {
374
+ value: "{colors.pink.900}"
375
+ },
376
+ active: {
377
+ value: "{colors.pink.950}"
378
+ }
379
+ },
380
+ errorSubtle: {
381
+ DEFAULT: {
382
+ value: "{colors.pink.100}"
383
+ },
384
+ hover: {
385
+ value: "{colors.pink.300}"
386
+ },
387
+ active: {
388
+ value: "{colors.pink.500}"
389
+ }
390
+ }
391
+ },
392
+ stroke: {
393
+ default: {
394
+ value: "{colors.primary}"
395
+ },
396
+ hover: {
397
+ value: "{colors.purple.800}"
398
+ },
399
+ subtle: {
400
+ value: "{colors.grey.500}"
401
+ },
402
+ success: {
403
+ value: "{colors.green.900}"
404
+ },
405
+ info: {
406
+ value: "{colors.grey.500}"
407
+ },
408
+ warning: {
409
+ value: "{colors.yellow.1200}"
410
+ },
411
+ error: {
412
+ value: "{colors.pink.800}"
413
+ },
414
+ disabled: {
415
+ value: "{colors.grey.300}"
416
+ }
417
+ }
418
+ }
419
+ });
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const spacing: {
9
+ 1: {
10
+ value: string;
11
+ };
12
+ 2: {
13
+ value: string;
14
+ };
15
+ 3: {
16
+ value: string;
17
+ };
18
+ 4: {
19
+ value: string;
20
+ };
21
+ 5: {
22
+ value: string;
23
+ };
24
+ 6: {
25
+ value: string;
26
+ };
27
+ 7: {
28
+ value: string;
29
+ };
30
+ 8: {
31
+ value: string;
32
+ };
33
+ 9: {
34
+ value: string;
35
+ };
36
+ 10: {
37
+ value: string;
38
+ };
39
+ 11: {
40
+ value: string;
41
+ };
42
+ 12: {
43
+ value: string;
44
+ };
45
+ 13: {
46
+ value: string;
47
+ };
48
+ 14: {
49
+ value: string;
50
+ };
51
+ 15: {
52
+ value: string;
53
+ };
54
+ 16: {
55
+ value: string;
56
+ };
57
+ 17: {
58
+ value: string;
59
+ };
60
+ 18: {
61
+ value: string;
62
+ };
63
+ 19: {
64
+ value: string;
65
+ };
66
+ 20: {
67
+ value: string;
68
+ };
69
+ 22: {
70
+ value: string;
71
+ };
72
+ 24: {
73
+ value: string;
74
+ };
75
+ 26: {
76
+ value: string;
77
+ };
78
+ 28: {
79
+ value: string;
80
+ };
81
+ 32: {
82
+ value: string;
83
+ };
84
+ 36: {
85
+ value: string;
86
+ };
87
+ 40: {
88
+ value: string;
89
+ };
90
+ 44: {
91
+ value: string;
92
+ };
93
+ 48: {
94
+ value: string;
95
+ };
96
+ 50: {
97
+ value: string;
98
+ };
99
+ 60: {
100
+ value: string;
101
+ };
102
+ 72: {
103
+ value: string;
104
+ };
105
+ 75: {
106
+ value: string;
107
+ };
108
+ 100: {
109
+ value: string;
110
+ };
111
+ 150: {
112
+ value: string;
113
+ };
114
+ 200: {
115
+ value: string;
116
+ };
117
+ 250: {
118
+ value: string;
119
+ };
120
+ 300: {
121
+ value: string;
122
+ };
123
+ 350: {
124
+ value: string;
125
+ };
126
+ 400: {
127
+ value: string;
128
+ };
129
+ 500: {
130
+ value: string;
131
+ };
132
+ 550: {
133
+ value: string;
134
+ };
135
+ };
package/lib/spacing.js ADDED
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.spacing = void 0;
7
+ var _dev = require("@pandacss/dev");
8
+ /**
9
+ * Copyright (c) 2024-present, NDLA.
10
+ *
11
+ * This source code is licensed under the GPLv3 license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *
14
+ */
15
+
16
+ const spacing = exports.spacing = _dev.defineTokens.spacing({
17
+ 1: {
18
+ value: "2px"
19
+ },
20
+ 2: {
21
+ value: "4px"
22
+ },
23
+ 3: {
24
+ value: "6px"
25
+ },
26
+ 4: {
27
+ value: "8px"
28
+ },
29
+ 5: {
30
+ value: "10px"
31
+ },
32
+ 6: {
33
+ value: "12px"
34
+ },
35
+ 7: {
36
+ value: "14px"
37
+ },
38
+ 8: {
39
+ value: "16px"
40
+ },
41
+ 9: {
42
+ value: "18px"
43
+ },
44
+ 10: {
45
+ value: "20px"
46
+ },
47
+ 11: {
48
+ value: "22px"
49
+ },
50
+ 12: {
51
+ value: "24px"
52
+ },
53
+ 13: {
54
+ value: "26px"
55
+ },
56
+ 14: {
57
+ value: "28px"
58
+ },
59
+ 15: {
60
+ value: "30px"
61
+ },
62
+ 16: {
63
+ value: "32px"
64
+ },
65
+ 17: {
66
+ value: "34px"
67
+ },
68
+ 18: {
69
+ value: "36px"
70
+ },
71
+ 19: {
72
+ value: "38px"
73
+ },
74
+ 20: {
75
+ value: "40px"
76
+ },
77
+ 22: {
78
+ value: "44px"
79
+ },
80
+ 24: {
81
+ value: "48px"
82
+ },
83
+ 26: {
84
+ value: "52px"
85
+ },
86
+ 28: {
87
+ value: "56px"
88
+ },
89
+ 32: {
90
+ value: "64px"
91
+ },
92
+ 36: {
93
+ value: "72px"
94
+ },
95
+ 40: {
96
+ value: "80px"
97
+ },
98
+ 44: {
99
+ value: "88px"
100
+ },
101
+ 48: {
102
+ value: "96px"
103
+ },
104
+ 50: {
105
+ value: "100px"
106
+ },
107
+ 60: {
108
+ value: "120px"
109
+ },
110
+ 72: {
111
+ value: "144px"
112
+ },
113
+ 75: {
114
+ value: "150px"
115
+ },
116
+ 100: {
117
+ value: "200px"
118
+ },
119
+ 150: {
120
+ value: "300px"
121
+ },
122
+ 200: {
123
+ value: "400px"
124
+ },
125
+ 250: {
126
+ value: "500px"
127
+ },
128
+ 300: {
129
+ value: "600px"
130
+ },
131
+ 350: {
132
+ value: "700px"
133
+ },
134
+ 400: {
135
+ value: "800px"
136
+ },
137
+ 500: {
138
+ value: "1000px"
139
+ },
140
+ 550: {
141
+ value: "1100px"
142
+ }
143
+ });