@pandacss/is-valid-prop 0.3.2 → 0.5.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/dist/index.d.mts +4 -0
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +1 -1
package/dist/index.d.mts
ADDED
package/dist/index.js
CHANGED
|
@@ -245,7 +245,6 @@ var allCssProperties = [
|
|
|
245
245
|
"clip",
|
|
246
246
|
"clipPath",
|
|
247
247
|
"color",
|
|
248
|
-
"printColorAdjust",
|
|
249
248
|
"colorScheme",
|
|
250
249
|
"columnCount",
|
|
251
250
|
"columnFill",
|
|
@@ -263,6 +262,9 @@ var allCssProperties = [
|
|
|
263
262
|
"containIntrinsicHeight",
|
|
264
263
|
"containIntrinsicInlineSize",
|
|
265
264
|
"containIntrinsicWidth",
|
|
265
|
+
"container",
|
|
266
|
+
"containerName",
|
|
267
|
+
"containerType",
|
|
266
268
|
"content",
|
|
267
269
|
"contentVisibility",
|
|
268
270
|
"counterIncrement",
|
|
@@ -287,6 +289,7 @@ var allCssProperties = [
|
|
|
287
289
|
"fontKerning",
|
|
288
290
|
"fontLanguageOverride",
|
|
289
291
|
"fontOpticalSizing",
|
|
292
|
+
"fontPalette",
|
|
290
293
|
"fontVariationSettings",
|
|
291
294
|
"fontSize",
|
|
292
295
|
"fontSizeAdjust",
|
|
@@ -298,6 +301,7 @@ var allCssProperties = [
|
|
|
298
301
|
"fontVariantAlternates",
|
|
299
302
|
"fontVariantCaps",
|
|
300
303
|
"fontVariantEastAsian",
|
|
304
|
+
"fontVariantEmoji",
|
|
301
305
|
"fontVariantLigatures",
|
|
302
306
|
"fontVariantNumeric",
|
|
303
307
|
"fontVariantPosition",
|
|
@@ -441,6 +445,7 @@ var allCssProperties = [
|
|
|
441
445
|
"paddingLeft",
|
|
442
446
|
"paddingRight",
|
|
443
447
|
"paddingTop",
|
|
448
|
+
"page",
|
|
444
449
|
"pageBreakAfter",
|
|
445
450
|
"pageBreakBefore",
|
|
446
451
|
"pageBreakInside",
|
|
@@ -452,6 +457,7 @@ var allCssProperties = [
|
|
|
452
457
|
"placeSelf",
|
|
453
458
|
"pointerEvents",
|
|
454
459
|
"position",
|
|
460
|
+
"printColorAdjust",
|
|
455
461
|
"quotes",
|
|
456
462
|
"resize",
|
|
457
463
|
"right",
|
|
@@ -543,6 +549,7 @@ var allCssProperties = [
|
|
|
543
549
|
"unicodeBidi",
|
|
544
550
|
"userSelect",
|
|
545
551
|
"verticalAlign",
|
|
552
|
+
"viewTransitionName",
|
|
546
553
|
"visibility",
|
|
547
554
|
"whiteSpace",
|
|
548
555
|
"widows",
|
|
@@ -565,8 +572,9 @@ function memo(fn) {
|
|
|
565
572
|
return cache[arg];
|
|
566
573
|
};
|
|
567
574
|
}
|
|
575
|
+
var selectorRegex = /&|@/;
|
|
568
576
|
var isCssProperty = memo((prop) => {
|
|
569
|
-
return properties.has(prop) || prop.startsWith("--");
|
|
577
|
+
return properties.has(prop) || prop.startsWith("--") || selectorRegex.test(prop);
|
|
570
578
|
});
|
|
571
579
|
// Annotate the CommonJS export names for ESM import in node:
|
|
572
580
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -220,7 +220,6 @@ var allCssProperties = [
|
|
|
220
220
|
"clip",
|
|
221
221
|
"clipPath",
|
|
222
222
|
"color",
|
|
223
|
-
"printColorAdjust",
|
|
224
223
|
"colorScheme",
|
|
225
224
|
"columnCount",
|
|
226
225
|
"columnFill",
|
|
@@ -238,6 +237,9 @@ var allCssProperties = [
|
|
|
238
237
|
"containIntrinsicHeight",
|
|
239
238
|
"containIntrinsicInlineSize",
|
|
240
239
|
"containIntrinsicWidth",
|
|
240
|
+
"container",
|
|
241
|
+
"containerName",
|
|
242
|
+
"containerType",
|
|
241
243
|
"content",
|
|
242
244
|
"contentVisibility",
|
|
243
245
|
"counterIncrement",
|
|
@@ -262,6 +264,7 @@ var allCssProperties = [
|
|
|
262
264
|
"fontKerning",
|
|
263
265
|
"fontLanguageOverride",
|
|
264
266
|
"fontOpticalSizing",
|
|
267
|
+
"fontPalette",
|
|
265
268
|
"fontVariationSettings",
|
|
266
269
|
"fontSize",
|
|
267
270
|
"fontSizeAdjust",
|
|
@@ -273,6 +276,7 @@ var allCssProperties = [
|
|
|
273
276
|
"fontVariantAlternates",
|
|
274
277
|
"fontVariantCaps",
|
|
275
278
|
"fontVariantEastAsian",
|
|
279
|
+
"fontVariantEmoji",
|
|
276
280
|
"fontVariantLigatures",
|
|
277
281
|
"fontVariantNumeric",
|
|
278
282
|
"fontVariantPosition",
|
|
@@ -416,6 +420,7 @@ var allCssProperties = [
|
|
|
416
420
|
"paddingLeft",
|
|
417
421
|
"paddingRight",
|
|
418
422
|
"paddingTop",
|
|
423
|
+
"page",
|
|
419
424
|
"pageBreakAfter",
|
|
420
425
|
"pageBreakBefore",
|
|
421
426
|
"pageBreakInside",
|
|
@@ -427,6 +432,7 @@ var allCssProperties = [
|
|
|
427
432
|
"placeSelf",
|
|
428
433
|
"pointerEvents",
|
|
429
434
|
"position",
|
|
435
|
+
"printColorAdjust",
|
|
430
436
|
"quotes",
|
|
431
437
|
"resize",
|
|
432
438
|
"right",
|
|
@@ -518,6 +524,7 @@ var allCssProperties = [
|
|
|
518
524
|
"unicodeBidi",
|
|
519
525
|
"userSelect",
|
|
520
526
|
"verticalAlign",
|
|
527
|
+
"viewTransitionName",
|
|
521
528
|
"visibility",
|
|
522
529
|
"whiteSpace",
|
|
523
530
|
"widows",
|
|
@@ -540,8 +547,9 @@ function memo(fn) {
|
|
|
540
547
|
return cache[arg];
|
|
541
548
|
};
|
|
542
549
|
}
|
|
550
|
+
var selectorRegex = /&|@/;
|
|
543
551
|
var isCssProperty = memo((prop) => {
|
|
544
|
-
return properties.has(prop) || prop.startsWith("--");
|
|
552
|
+
return properties.has(prop) || prop.startsWith("--") || selectorRegex.test(prop);
|
|
545
553
|
});
|
|
546
554
|
export {
|
|
547
555
|
allCssProperties,
|