@pandacss/config 0.0.0-dev-20230614113002 → 0.0.0-dev-20230614152938

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.
@@ -1,3 +1,4 @@
1
+ import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
1
2
  import * as _pandacss_types from '@pandacss/types';
2
3
 
3
4
  declare const preset: {
@@ -92,23 +93,380 @@ declare const preset: {
92
93
  };
93
94
  utilities: _pandacss_types.UtilityConfig;
94
95
  patterns: {
95
- box: _pandacss_types.PatternConfig;
96
- flex: _pandacss_types.PatternConfig;
97
- stack: _pandacss_types.PatternConfig;
98
- vstack: _pandacss_types.PatternConfig;
99
- hstack: _pandacss_types.PatternConfig;
100
- spacer: _pandacss_types.PatternConfig;
101
- square: _pandacss_types.PatternConfig;
102
- circle: _pandacss_types.PatternConfig;
103
- center: _pandacss_types.PatternConfig;
104
- absoluteCenter: _pandacss_types.PatternConfig;
105
- aspectRatio: _pandacss_types.PatternConfig;
106
- grid: _pandacss_types.PatternConfig;
107
- gridItem: _pandacss_types.PatternConfig;
108
- wrap: _pandacss_types.PatternConfig;
109
- container: _pandacss_types.PatternConfig;
110
- divider: _pandacss_types.PatternConfig;
111
- float: _pandacss_types.PatternConfig;
96
+ box: {
97
+ properties: {};
98
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>;
99
+ };
100
+ flex: {
101
+ properties: {
102
+ align: {
103
+ type: "property";
104
+ value: "alignItems";
105
+ };
106
+ justify: {
107
+ type: "property";
108
+ value: "justifyContent";
109
+ };
110
+ direction: {
111
+ type: "property";
112
+ value: "flexDirection";
113
+ };
114
+ wrap: {
115
+ type: "property";
116
+ value: "flexWrap";
117
+ };
118
+ basis: {
119
+ type: "property";
120
+ value: "flexBasis";
121
+ };
122
+ grow: {
123
+ type: "property";
124
+ value: "flexGrow";
125
+ };
126
+ shrink: {
127
+ type: "property";
128
+ value: "flexShrink";
129
+ };
130
+ };
131
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
132
+ display: "flex";
133
+ flexDirection: any;
134
+ alignItems: any;
135
+ justifyContent: any;
136
+ flexWrap: any;
137
+ flexBasis: any;
138
+ flexGrow: any;
139
+ flexShrink: any;
140
+ };
141
+ };
142
+ stack: {
143
+ properties: {
144
+ align: {
145
+ type: "property";
146
+ value: "alignItems";
147
+ };
148
+ justify: {
149
+ type: "property";
150
+ value: "justifyContent";
151
+ };
152
+ direction: {
153
+ type: "property";
154
+ value: "flexDirection";
155
+ };
156
+ gap: {
157
+ type: "property";
158
+ value: "gap";
159
+ };
160
+ };
161
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
162
+ display: "flex";
163
+ flexDirection: any;
164
+ alignItems: any;
165
+ justifyContent: any;
166
+ gap: any;
167
+ };
168
+ };
169
+ vstack: {
170
+ jsx: string;
171
+ properties: {
172
+ justify: {
173
+ type: "property";
174
+ value: "justifyContent";
175
+ };
176
+ gap: {
177
+ type: "property";
178
+ value: "gap";
179
+ };
180
+ };
181
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
182
+ display: "flex";
183
+ alignItems: "center";
184
+ justifyContent: any;
185
+ gap: any;
186
+ flexDirection: "column";
187
+ };
188
+ };
189
+ hstack: {
190
+ jsx: string;
191
+ properties: {
192
+ justify: {
193
+ type: "property";
194
+ value: "justifyContent";
195
+ };
196
+ gap: {
197
+ type: "property";
198
+ value: "gap";
199
+ };
200
+ };
201
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
202
+ display: "flex";
203
+ alignItems: "center";
204
+ justifyContent: any;
205
+ gap: any;
206
+ flexDirection: "row";
207
+ };
208
+ };
209
+ spacer: {
210
+ properties: {
211
+ size: {
212
+ type: "token";
213
+ value: "spacing";
214
+ };
215
+ };
216
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
217
+ alignSelf: "stretch";
218
+ justifySelf: "stretch";
219
+ flex: any;
220
+ };
221
+ };
222
+ square: {
223
+ properties: {
224
+ size: {
225
+ type: "property";
226
+ value: "width";
227
+ };
228
+ };
229
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
230
+ display: "flex";
231
+ alignItems: "center";
232
+ justifyContent: "center";
233
+ flex: "0 0 auto";
234
+ width: any;
235
+ height: any;
236
+ };
237
+ };
238
+ circle: {
239
+ properties: {
240
+ size: {
241
+ type: "property";
242
+ value: "width";
243
+ };
244
+ };
245
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
246
+ display: "flex";
247
+ alignItems: "center";
248
+ justifyContent: "center";
249
+ flex: "0 0 auto";
250
+ width: any;
251
+ height: any;
252
+ borderRadius: "9999px";
253
+ };
254
+ };
255
+ center: {
256
+ properties: {
257
+ inline: {
258
+ type: "boolean";
259
+ };
260
+ };
261
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
262
+ display: "flex" | "inline-flex";
263
+ alignItems: "center";
264
+ justifyContent: "center";
265
+ };
266
+ };
267
+ linkBox: {
268
+ properties: {};
269
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
270
+ position: "relative";
271
+ '& :where(a, abbr)': {
272
+ position: "relative";
273
+ zIndex: "1";
274
+ };
275
+ };
276
+ };
277
+ linkOverlay: {
278
+ jsxElement: string;
279
+ properties: {};
280
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
281
+ position: "static";
282
+ _before: any;
283
+ };
284
+ };
285
+ aspectRatio: {
286
+ properties: {
287
+ ratio: {
288
+ type: "number";
289
+ };
290
+ };
291
+ blocklist: "aspectRatio"[];
292
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
293
+ aspectRatio: any;
294
+ overflow: "hidden";
295
+ display: "flex";
296
+ justifyContent: "center";
297
+ alignItems: "center";
298
+ '&>img, &>video': {
299
+ width: "100%";
300
+ height: "100%";
301
+ objectFit: "cover";
302
+ };
303
+ };
304
+ };
305
+ grid: {
306
+ properties: {
307
+ gap: {
308
+ type: "property";
309
+ value: "gap";
310
+ };
311
+ columnGap: {
312
+ type: "property";
313
+ value: "gap";
314
+ };
315
+ rowGap: {
316
+ type: "property";
317
+ value: "gap";
318
+ };
319
+ columns: {
320
+ type: "number";
321
+ };
322
+ minChildWidth: {
323
+ type: "token";
324
+ value: "sizes";
325
+ property: "width";
326
+ };
327
+ };
328
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
329
+ display: "grid";
330
+ gridTemplateColumns: any;
331
+ gap: any;
332
+ columnGap: any;
333
+ rowGap: any;
334
+ };
335
+ };
336
+ gridItem: {
337
+ properties: {
338
+ colSpan: {
339
+ type: "number";
340
+ };
341
+ rowSpan: {
342
+ type: "number";
343
+ };
344
+ colStart: {
345
+ type: "number";
346
+ };
347
+ rowStart: {
348
+ type: "number";
349
+ };
350
+ colEnd: {
351
+ type: "number";
352
+ };
353
+ rowEnd: {
354
+ type: "number";
355
+ };
356
+ };
357
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
358
+ gridColumn: any;
359
+ gridRow: any;
360
+ gridColumnEnd: any;
361
+ gridRowEnd: any;
362
+ };
363
+ };
364
+ wrap: {
365
+ properties: {
366
+ gap: {
367
+ type: "property";
368
+ value: "gap";
369
+ };
370
+ rowGap: {
371
+ type: "property";
372
+ value: "gap";
373
+ };
374
+ columnGap: {
375
+ type: "property";
376
+ value: "gap";
377
+ };
378
+ align: {
379
+ type: "property";
380
+ value: "alignItems";
381
+ };
382
+ justify: {
383
+ type: "property";
384
+ value: "justifyContent";
385
+ };
386
+ };
387
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
388
+ display: "flex";
389
+ flexWrap: "wrap";
390
+ alignItems: any;
391
+ justifyContent: any;
392
+ gap: any;
393
+ columnGap: any;
394
+ rowGap: any;
395
+ };
396
+ };
397
+ container: {
398
+ properties: {};
399
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
400
+ position: "relative";
401
+ maxWidth: "8xl";
402
+ mx: string;
403
+ px: {
404
+ base: string;
405
+ md: string;
406
+ lg: string;
407
+ };
408
+ };
409
+ };
410
+ divider: {
411
+ properties: {
412
+ orientation: {
413
+ type: "enum";
414
+ value: string[];
415
+ };
416
+ thickness: {
417
+ type: "token";
418
+ value: "sizes";
419
+ property: "borderWidth";
420
+ };
421
+ color: {
422
+ type: "token";
423
+ value: "colors";
424
+ property: "borderColor";
425
+ };
426
+ };
427
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
428
+ '--thickness': any;
429
+ width: any;
430
+ height: any;
431
+ borderInlineStartWidth: any;
432
+ borderInlineEndWidth: any;
433
+ borderColor: any;
434
+ };
435
+ };
436
+ float: {
437
+ properties: {
438
+ offsetX: {
439
+ type: "token";
440
+ value: "spacing";
441
+ property: "left";
442
+ };
443
+ offsetY: {
444
+ type: "token";
445
+ value: "spacing";
446
+ property: "top";
447
+ };
448
+ offset: {
449
+ type: "token";
450
+ value: "spacing";
451
+ property: "top";
452
+ };
453
+ placement: {
454
+ type: "enum";
455
+ value: string[];
456
+ };
457
+ };
458
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>, { map }: _pandacss_types.PatternHelpers): {
459
+ display: "inline-flex";
460
+ justifyContent: "center";
461
+ alignItems: "center";
462
+ position: "absolute";
463
+ insetBlockStart: any;
464
+ insetBlockEnd: any;
465
+ insetInlineStart: any;
466
+ insetInlineEnd: any;
467
+ translate: any;
468
+ };
469
+ };
112
470
  };
113
471
  };
114
472
 
@@ -2094,26 +2094,6 @@ var square = definePattern({
2094
2094
  };
2095
2095
  }
2096
2096
  });
2097
- var absoluteCenter = definePattern({
2098
- properties: {
2099
- axis: { type: "enum", value: ["x", "y", "both"] }
2100
- },
2101
- transform(props, { map }) {
2102
- const { axis = "both", ...rest } = props;
2103
- return {
2104
- position: "absolute",
2105
- insetBlockStart: map(axis, (v) => v === "x" ? "auto" : "50%"),
2106
- insetInlineStart: map(axis, (v) => v === "y" ? "auto" : "50%"),
2107
- transform: map(
2108
- axis,
2109
- (v) => v === "both" ? "translate(-50%, -50%)" : v === "x" ? "translateX(-50%)" : "translateY(-50%)"
2110
- ),
2111
- maxWidth: "100%",
2112
- maxHeight: "100%",
2113
- ...rest
2114
- };
2115
- }
2116
- });
2117
2097
  var grid = definePattern({
2118
2098
  properties: {
2119
2099
  gap: { type: "property", value: "gap" },
@@ -2244,6 +2224,38 @@ var divider = definePattern({
2244
2224
  };
2245
2225
  }
2246
2226
  });
2227
+ var linkBox = definePattern({
2228
+ properties: {},
2229
+ transform(props) {
2230
+ return {
2231
+ position: "relative",
2232
+ "& :where(a, abbr)": {
2233
+ position: "relative",
2234
+ zIndex: "1"
2235
+ },
2236
+ ...props
2237
+ };
2238
+ }
2239
+ });
2240
+ var linkOverlay = definePattern({
2241
+ jsxElement: "a",
2242
+ properties: {},
2243
+ transform(props) {
2244
+ return {
2245
+ position: "static",
2246
+ _before: {
2247
+ content: '""',
2248
+ display: "block",
2249
+ position: "absolute",
2250
+ cursor: "inherit",
2251
+ inset: "0",
2252
+ zIndex: "0",
2253
+ ...props["_before"]
2254
+ },
2255
+ ...props
2256
+ };
2257
+ }
2258
+ });
2247
2259
  var float = definePattern({
2248
2260
  properties: {
2249
2261
  offsetX: { type: "token", value: "spacing", property: "left" },
@@ -2311,7 +2323,8 @@ var patterns = {
2311
2323
  square,
2312
2324
  circle,
2313
2325
  center,
2314
- absoluteCenter,
2326
+ linkBox,
2327
+ linkOverlay,
2315
2328
  aspectRatio,
2316
2329
  grid,
2317
2330
  gridItem,
@@ -2067,26 +2067,6 @@ var square = definePattern({
2067
2067
  };
2068
2068
  }
2069
2069
  });
2070
- var absoluteCenter = definePattern({
2071
- properties: {
2072
- axis: { type: "enum", value: ["x", "y", "both"] }
2073
- },
2074
- transform(props, { map }) {
2075
- const { axis = "both", ...rest } = props;
2076
- return {
2077
- position: "absolute",
2078
- insetBlockStart: map(axis, (v) => v === "x" ? "auto" : "50%"),
2079
- insetInlineStart: map(axis, (v) => v === "y" ? "auto" : "50%"),
2080
- transform: map(
2081
- axis,
2082
- (v) => v === "both" ? "translate(-50%, -50%)" : v === "x" ? "translateX(-50%)" : "translateY(-50%)"
2083
- ),
2084
- maxWidth: "100%",
2085
- maxHeight: "100%",
2086
- ...rest
2087
- };
2088
- }
2089
- });
2090
2070
  var grid = definePattern({
2091
2071
  properties: {
2092
2072
  gap: { type: "property", value: "gap" },
@@ -2217,6 +2197,38 @@ var divider = definePattern({
2217
2197
  };
2218
2198
  }
2219
2199
  });
2200
+ var linkBox = definePattern({
2201
+ properties: {},
2202
+ transform(props) {
2203
+ return {
2204
+ position: "relative",
2205
+ "& :where(a, abbr)": {
2206
+ position: "relative",
2207
+ zIndex: "1"
2208
+ },
2209
+ ...props
2210
+ };
2211
+ }
2212
+ });
2213
+ var linkOverlay = definePattern({
2214
+ jsxElement: "a",
2215
+ properties: {},
2216
+ transform(props) {
2217
+ return {
2218
+ position: "static",
2219
+ _before: {
2220
+ content: '""',
2221
+ display: "block",
2222
+ position: "absolute",
2223
+ cursor: "inherit",
2224
+ inset: "0",
2225
+ zIndex: "0",
2226
+ ...props["_before"]
2227
+ },
2228
+ ...props
2229
+ };
2230
+ }
2231
+ });
2220
2232
  var float = definePattern({
2221
2233
  properties: {
2222
2234
  offsetX: { type: "token", value: "spacing", property: "left" },
@@ -2284,7 +2296,8 @@ var patterns = {
2284
2296
  square,
2285
2297
  circle,
2286
2298
  center,
2287
- absoluteCenter,
2299
+ linkBox,
2300
+ linkOverlay,
2288
2301
  aspectRatio,
2289
2302
  grid,
2290
2303
  gridItem,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/preset-base",
3
- "version": "0.0.0-dev-20230614113002",
3
+ "version": "0.0.0-dev-20230614152938",
4
4
  "description": "The base preset for Panda CSS that contains the conditions and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/preset-panda",
3
- "version": "0.0.0-dev-20230614113002",
3
+ "version": "0.0.0-dev-20230614152938",
4
4
  "description": "The preset for PandaCSS that contains the default theme",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "0.0.0-dev-20230614113002",
3
+ "version": "0.0.0-dev-20230614152938",
4
4
  "description": "Find and load panda config",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -23,11 +23,11 @@
23
23
  "jiti": "^1.18.2",
24
24
  "merge-anything": "^5.1.7",
25
25
  "tsconfck": "^2.1.1",
26
- "@pandacss/error": "0.0.0-dev-20230614113002",
27
- "@pandacss/logger": "0.0.0-dev-20230614113002",
28
- "@pandacss/preset-base": "0.0.0-dev-20230614113002",
29
- "@pandacss/preset-panda": "0.0.0-dev-20230614113002",
30
- "@pandacss/types": "0.0.0-dev-20230614113002"
26
+ "@pandacss/error": "0.0.0-dev-20230614152938",
27
+ "@pandacss/logger": "0.0.0-dev-20230614152938",
28
+ "@pandacss/preset-base": "0.0.0-dev-20230614152938",
29
+ "@pandacss/preset-panda": "0.0.0-dev-20230614152938",
30
+ "@pandacss/types": "0.0.0-dev-20230614152938"
31
31
  },
32
32
  "devDependencies": {
33
33
  "pkg-types": "1.0.3"