@pandacss/is-valid-prop 0.0.0-dev-20221121152823

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Segun Adebayo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ declare const allCssProperties: string[];
2
+ declare const isCssProperty: (args: string) => boolean;
3
+
4
+ export { allCssProperties, isCssProperty };
package/dist/index.js ADDED
@@ -0,0 +1,562 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ allCssProperties: () => allCssProperties,
24
+ isCssProperty: () => isCssProperty
25
+ });
26
+ module.exports = __toCommonJS(src_exports);
27
+ function memo(fn) {
28
+ const cache = /* @__PURE__ */ Object.create(null);
29
+ return (arg) => {
30
+ if (cache[arg] === void 0)
31
+ cache[arg] = fn(arg);
32
+ return cache[arg];
33
+ };
34
+ }
35
+ var userGenerated = [];
36
+ var uniq = (arr) => Array.from(new Set(arr));
37
+ var allCssProperties = uniq([
38
+ "msAccelerator",
39
+ "msBlockProgression",
40
+ "msContentZoomChaining",
41
+ "msContentZooming",
42
+ "msContentZoomLimit",
43
+ "msContentZoomLimitMax",
44
+ "msContentZoomLimitMin",
45
+ "msContentZoomSnap",
46
+ "msContentZoomSnapPoints",
47
+ "msContentZoomSnapType",
48
+ "msFilter",
49
+ "msFlowFrom",
50
+ "msFlowInto",
51
+ "msGridColumns",
52
+ "msGridRows",
53
+ "msHighContrastAdjust",
54
+ "msHyphenateLimitChars",
55
+ "msHyphenateLimitLines",
56
+ "msHyphenateLimitZone",
57
+ "msImeAlign",
58
+ "msOverflowStyle",
59
+ "msScrollbar-3dlightColor",
60
+ "msScrollbarArrowColor",
61
+ "msScrollbarBaseColor",
62
+ "msScrollbarDarkshadowColor",
63
+ "msScrollbarFaceColor",
64
+ "msScrollbarHighlightColor",
65
+ "msScrollbarShadowColor",
66
+ "msScrollbarTrackColor",
67
+ "msScrollChaining",
68
+ "msScrollLimit",
69
+ "msScrollLimitXMax",
70
+ "msScrollLimitXMin",
71
+ "msScrollLimitYMax",
72
+ "msScrollLimitYMin",
73
+ "msScrollRails",
74
+ "msScrollSnapPointsX",
75
+ "msScrollSnapPointsY",
76
+ "msScrollSnapType",
77
+ "msScrollSnapX",
78
+ "msScrollSnapY",
79
+ "msScrollTranslation",
80
+ "msTextAutospace",
81
+ "msTouchSelect",
82
+ "msUserSelect",
83
+ "msWrapFlow",
84
+ "msWrapMargin",
85
+ "msWrapThrough",
86
+ "MozAppearance",
87
+ "MozBinding",
88
+ "MozBorderBottomColors",
89
+ "MozBorderLeftColors",
90
+ "MozBorderRightColors",
91
+ "MozBorderTopColors",
92
+ "MozContextProperties",
93
+ "MozFloatEdge",
94
+ "MozForceBrokenImageIcon",
95
+ "MozImageRegion",
96
+ "MozOrient",
97
+ "MozOutlineRadius",
98
+ "MozOutlineRadiusBottomleft",
99
+ "MozOutlineRadiusBottomright",
100
+ "MozOutlineRadiusTopleft",
101
+ "MozOutlineRadiusTopright",
102
+ "MozStackSizing",
103
+ "MozTextBlink",
104
+ "MozUserFocus",
105
+ "MozUserInput",
106
+ "MozUserModify",
107
+ "MozWindowDragging",
108
+ "MozWindowShadow",
109
+ "WebkitAppearance",
110
+ "WebkitBorderBefore",
111
+ "WebkitBorderBeforeColor",
112
+ "WebkitBorderBeforeStyle",
113
+ "WebkitBorderBeforeWidth",
114
+ "WebkitBoxReflect",
115
+ "WebkitLineClamp",
116
+ "WebkitMask",
117
+ "WebkitMaskAttachment",
118
+ "WebkitMaskClip",
119
+ "WebkitMaskComposite",
120
+ "WebkitMaskImage",
121
+ "WebkitMaskOrigin",
122
+ "WebkitMaskPosition",
123
+ "WebkitMaskPositionX",
124
+ "WebkitMaskPositionY",
125
+ "WebkitMaskRepeat",
126
+ "WebkitMaskRepeatX",
127
+ "WebkitMaskRepeatY",
128
+ "WebkitMaskSize",
129
+ "WebkitOverflowScrolling",
130
+ "WebkitTapHighlightColor",
131
+ "WebkitTextFillColor",
132
+ "WebkitTextStroke",
133
+ "WebkitTextStrokeColor",
134
+ "WebkitTextStrokeWidth",
135
+ "WebkitTouchCallout",
136
+ "WebkitUserModify",
137
+ "accentColor",
138
+ "alignContent",
139
+ "alignItems",
140
+ "alignSelf",
141
+ "alignTracks",
142
+ "all",
143
+ "animation",
144
+ "animationDelay",
145
+ "animationDirection",
146
+ "animationDuration",
147
+ "animationFillMode",
148
+ "animationIterationCount",
149
+ "animationName",
150
+ "animationPlayState",
151
+ "animationTimingFunction",
152
+ "animationTimeline",
153
+ "appearance",
154
+ "aspectRatio",
155
+ "azimuth",
156
+ "backdropFilter",
157
+ "backfaceVisibility",
158
+ "background",
159
+ "backgroundAttachment",
160
+ "backgroundBlendMode",
161
+ "backgroundClip",
162
+ "backgroundColor",
163
+ "backgroundImage",
164
+ "backgroundOrigin",
165
+ "backgroundPosition",
166
+ "backgroundPositionX",
167
+ "backgroundPositionY",
168
+ "backgroundRepeat",
169
+ "backgroundSize",
170
+ "blockOverflow",
171
+ "blockSize",
172
+ "border",
173
+ "borderBlock",
174
+ "borderBlockColor",
175
+ "borderBlockStyle",
176
+ "borderBlockWidth",
177
+ "borderBlockEnd",
178
+ "borderBlockEndColor",
179
+ "borderBlockEndStyle",
180
+ "borderBlockEndWidth",
181
+ "borderBlockStart",
182
+ "borderBlockStartColor",
183
+ "borderBlockStartStyle",
184
+ "borderBlockStartWidth",
185
+ "borderBottom",
186
+ "borderBottomColor",
187
+ "borderBottomLeftRadius",
188
+ "borderBottomRightRadius",
189
+ "borderBottomStyle",
190
+ "borderBottomWidth",
191
+ "borderCollapse",
192
+ "borderColor",
193
+ "borderEndEndRadius",
194
+ "borderEndStartRadius",
195
+ "borderImage",
196
+ "borderImageOutset",
197
+ "borderImageRepeat",
198
+ "borderImageSlice",
199
+ "borderImageSource",
200
+ "borderImageWidth",
201
+ "borderInline",
202
+ "borderInlineEnd",
203
+ "borderInlineColor",
204
+ "borderInlineStyle",
205
+ "borderInlineWidth",
206
+ "borderInlineEndColor",
207
+ "borderInlineEndStyle",
208
+ "borderInlineEndWidth",
209
+ "borderInlineStart",
210
+ "borderInlineStartColor",
211
+ "borderInlineStartStyle",
212
+ "borderInlineStartWidth",
213
+ "borderLeft",
214
+ "borderLeftColor",
215
+ "borderLeftStyle",
216
+ "borderLeftWidth",
217
+ "borderRadius",
218
+ "borderRight",
219
+ "borderRightColor",
220
+ "borderRightStyle",
221
+ "borderRightWidth",
222
+ "borderSpacing",
223
+ "borderStartEndRadius",
224
+ "borderStartStartRadius",
225
+ "borderStyle",
226
+ "borderTop",
227
+ "borderTopColor",
228
+ "borderTopLeftRadius",
229
+ "borderTopRightRadius",
230
+ "borderTopStyle",
231
+ "borderTopWidth",
232
+ "borderWidth",
233
+ "bottom",
234
+ "boxAlign",
235
+ "boxDecorationBreak",
236
+ "boxDirection",
237
+ "boxFlex",
238
+ "boxFlexGroup",
239
+ "boxLines",
240
+ "boxOrdinalGroup",
241
+ "boxOrient",
242
+ "boxPack",
243
+ "boxShadow",
244
+ "boxSizing",
245
+ "breakAfter",
246
+ "breakBefore",
247
+ "breakInside",
248
+ "captionSide",
249
+ "caretColor",
250
+ "clear",
251
+ "clip",
252
+ "clipPath",
253
+ "color",
254
+ "printColorAdjust",
255
+ "colorScheme",
256
+ "columnCount",
257
+ "columnFill",
258
+ "columnGap",
259
+ "columnRule",
260
+ "columnRuleColor",
261
+ "columnRuleStyle",
262
+ "columnRuleWidth",
263
+ "columnSpan",
264
+ "columnWidth",
265
+ "columns",
266
+ "contain",
267
+ "content",
268
+ "contentVisibility",
269
+ "counterIncrement",
270
+ "counterReset",
271
+ "counterSet",
272
+ "cursor",
273
+ "direction",
274
+ "display",
275
+ "emptyCells",
276
+ "filter",
277
+ "flex",
278
+ "flexBasis",
279
+ "flexDirection",
280
+ "flexFlow",
281
+ "flexGrow",
282
+ "flexShrink",
283
+ "flexWrap",
284
+ "float",
285
+ "font",
286
+ "fontFamily",
287
+ "fontFeatureSettings",
288
+ "fontKerning",
289
+ "fontLanguageOverride",
290
+ "fontOpticalSizing",
291
+ "fontVariationSettings",
292
+ "fontSize",
293
+ "fontSizeAdjust",
294
+ "fontSmooth",
295
+ "fontStretch",
296
+ "fontStyle",
297
+ "fontSynthesis",
298
+ "fontVariant",
299
+ "fontVariantAlternates",
300
+ "fontVariantCaps",
301
+ "fontVariantEastAsian",
302
+ "fontVariantLigatures",
303
+ "fontVariantNumeric",
304
+ "fontVariantPosition",
305
+ "fontWeight",
306
+ "forcedColorAdjust",
307
+ "gap",
308
+ "grid",
309
+ "gridArea",
310
+ "gridAutoColumns",
311
+ "gridAutoFlow",
312
+ "gridAutoRows",
313
+ "gridColumn",
314
+ "gridColumnEnd",
315
+ "gridColumnGap",
316
+ "gridColumnStart",
317
+ "gridGap",
318
+ "gridRow",
319
+ "gridRowEnd",
320
+ "gridRowGap",
321
+ "gridRowStart",
322
+ "gridTemplate",
323
+ "gridTemplateAreas",
324
+ "gridTemplateColumns",
325
+ "gridTemplateRows",
326
+ "hangingPunctuation",
327
+ "height",
328
+ "hyphenateCharacter",
329
+ "hyphens",
330
+ "imageOrientation",
331
+ "imageRendering",
332
+ "imageResolution",
333
+ "imeMode",
334
+ "initialLetter",
335
+ "initialLetterAlign",
336
+ "inlineSize",
337
+ "inputSecurity",
338
+ "inset",
339
+ "insetBlock",
340
+ "insetBlockEnd",
341
+ "insetBlockStart",
342
+ "insetInline",
343
+ "insetInlineEnd",
344
+ "insetInlineStart",
345
+ "isolation",
346
+ "justifyContent",
347
+ "justifyItems",
348
+ "justifySelf",
349
+ "justifyTracks",
350
+ "left",
351
+ "letterSpacing",
352
+ "lineBreak",
353
+ "lineClamp",
354
+ "lineHeight",
355
+ "lineHeightStep",
356
+ "listStyle",
357
+ "listStyleImage",
358
+ "listStylePosition",
359
+ "listStyleType",
360
+ "margin",
361
+ "marginBlock",
362
+ "marginBlockEnd",
363
+ "marginBlockStart",
364
+ "marginBottom",
365
+ "marginInline",
366
+ "marginInlineEnd",
367
+ "marginInlineStart",
368
+ "marginLeft",
369
+ "marginRight",
370
+ "marginTop",
371
+ "marginTrim",
372
+ "mask",
373
+ "maskBorder",
374
+ "maskBorderMode",
375
+ "maskBorderOutset",
376
+ "maskBorderRepeat",
377
+ "maskBorderSlice",
378
+ "maskBorderSource",
379
+ "maskBorderWidth",
380
+ "maskClip",
381
+ "maskComposite",
382
+ "maskImage",
383
+ "maskMode",
384
+ "maskOrigin",
385
+ "maskPosition",
386
+ "maskRepeat",
387
+ "maskSize",
388
+ "maskType",
389
+ "masonryAutoFlow",
390
+ "mathStyle",
391
+ "maxBlockSize",
392
+ "maxHeight",
393
+ "maxInlineSize",
394
+ "maxLines",
395
+ "maxWidth",
396
+ "minBlockSize",
397
+ "minHeight",
398
+ "minInlineSize",
399
+ "minWidth",
400
+ "mixBlendMode",
401
+ "objectFit",
402
+ "objectPosition",
403
+ "offset",
404
+ "offsetAnchor",
405
+ "offsetDistance",
406
+ "offsetPath",
407
+ "offsetPosition",
408
+ "offsetRotate",
409
+ "opacity",
410
+ "order",
411
+ "orphans",
412
+ "outline",
413
+ "outlineColor",
414
+ "outlineOffset",
415
+ "outlineStyle",
416
+ "outlineWidth",
417
+ "overflow",
418
+ "overflowAnchor",
419
+ "overflowBlock",
420
+ "overflowClipBox",
421
+ "overflowClipMargin",
422
+ "overflowInline",
423
+ "overflowWrap",
424
+ "overflowX",
425
+ "overflowY",
426
+ "overscrollBehavior",
427
+ "overscrollBehaviorBlock",
428
+ "overscrollBehaviorInline",
429
+ "overscrollBehaviorX",
430
+ "overscrollBehaviorY",
431
+ "padding",
432
+ "paddingBlock",
433
+ "paddingBlockEnd",
434
+ "paddingBlockStart",
435
+ "paddingBottom",
436
+ "paddingInline",
437
+ "paddingInlineEnd",
438
+ "paddingInlineStart",
439
+ "paddingLeft",
440
+ "paddingRight",
441
+ "paddingTop",
442
+ "pageBreakAfter",
443
+ "pageBreakBefore",
444
+ "pageBreakInside",
445
+ "paintOrder",
446
+ "perspective",
447
+ "perspectiveOrigin",
448
+ "placeContent",
449
+ "placeItems",
450
+ "placeSelf",
451
+ "pointerEvents",
452
+ "position",
453
+ "quotes",
454
+ "resize",
455
+ "right",
456
+ "rotate",
457
+ "rowGap",
458
+ "rubyAlign",
459
+ "rubyMerge",
460
+ "rubyPosition",
461
+ "scale",
462
+ "scrollbarColor",
463
+ "scrollbarGutter",
464
+ "scrollbarWidth",
465
+ "scrollBehavior",
466
+ "scrollMargin",
467
+ "scrollMarginBlock",
468
+ "scrollMarginBlockStart",
469
+ "scrollMarginBlockEnd",
470
+ "scrollMarginBottom",
471
+ "scrollMarginInline",
472
+ "scrollMarginInlineStart",
473
+ "scrollMarginInlineEnd",
474
+ "scrollMarginLeft",
475
+ "scrollMarginRight",
476
+ "scrollMarginTop",
477
+ "scrollPadding",
478
+ "scrollPaddingBlock",
479
+ "scrollPaddingBlockStart",
480
+ "scrollPaddingBlockEnd",
481
+ "scrollPaddingBottom",
482
+ "scrollPaddingInline",
483
+ "scrollPaddingInlineStart",
484
+ "scrollPaddingInlineEnd",
485
+ "scrollPaddingLeft",
486
+ "scrollPaddingRight",
487
+ "scrollPaddingTop",
488
+ "scrollSnapAlign",
489
+ "scrollSnapCoordinate",
490
+ "scrollSnapDestination",
491
+ "scrollSnapPointsX",
492
+ "scrollSnapPointsY",
493
+ "scrollSnapStop",
494
+ "scrollSnapType",
495
+ "scrollSnapTypeX",
496
+ "scrollSnapTypeY",
497
+ "shapeImageThreshold",
498
+ "shapeMargin",
499
+ "shapeOutside",
500
+ "tabSize",
501
+ "tableLayout",
502
+ "textAlign",
503
+ "textAlignLast",
504
+ "textCombineUpright",
505
+ "textDecoration",
506
+ "textDecorationColor",
507
+ "textDecorationLine",
508
+ "textDecorationSkip",
509
+ "textDecorationSkipInk",
510
+ "textDecorationStyle",
511
+ "textDecorationThickness",
512
+ "textEmphasis",
513
+ "textEmphasisColor",
514
+ "textEmphasisPosition",
515
+ "textEmphasisStyle",
516
+ "textIndent",
517
+ "textJustify",
518
+ "textOrientation",
519
+ "textOverflow",
520
+ "textRendering",
521
+ "textShadow",
522
+ "textSizeAdjust",
523
+ "textTransform",
524
+ "textUnderlineOffset",
525
+ "textUnderlinePosition",
526
+ "top",
527
+ "touchAction",
528
+ "transform",
529
+ "transformBox",
530
+ "transformOrigin",
531
+ "transformStyle",
532
+ "transition",
533
+ "transitionDelay",
534
+ "transitionDuration",
535
+ "transitionProperty",
536
+ "transitionTimingFunction",
537
+ "translate",
538
+ "unicodeBidi",
539
+ "userSelect",
540
+ "verticalAlign",
541
+ "visibility",
542
+ "whiteSpace",
543
+ "widows",
544
+ "width",
545
+ "willChange",
546
+ "wordBreak",
547
+ "wordSpacing",
548
+ "wordWrap",
549
+ "writingMode",
550
+ "zIndex",
551
+ "zoom",
552
+ ...userGenerated
553
+ ]);
554
+ var regex = new RegExp("^(?:" + allCssProperties.join("|") + ")$");
555
+ var isCssProperty = memo((prop) => {
556
+ return regex.test(prop);
557
+ });
558
+ // Annotate the CommonJS export names for ESM import in node:
559
+ 0 && (module.exports = {
560
+ allCssProperties,
561
+ isCssProperty
562
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,536 @@
1
+ // src/index.ts
2
+ function memo(fn) {
3
+ const cache = /* @__PURE__ */ Object.create(null);
4
+ return (arg) => {
5
+ if (cache[arg] === void 0)
6
+ cache[arg] = fn(arg);
7
+ return cache[arg];
8
+ };
9
+ }
10
+ var userGenerated = [];
11
+ var uniq = (arr) => Array.from(new Set(arr));
12
+ var allCssProperties = uniq([
13
+ "msAccelerator",
14
+ "msBlockProgression",
15
+ "msContentZoomChaining",
16
+ "msContentZooming",
17
+ "msContentZoomLimit",
18
+ "msContentZoomLimitMax",
19
+ "msContentZoomLimitMin",
20
+ "msContentZoomSnap",
21
+ "msContentZoomSnapPoints",
22
+ "msContentZoomSnapType",
23
+ "msFilter",
24
+ "msFlowFrom",
25
+ "msFlowInto",
26
+ "msGridColumns",
27
+ "msGridRows",
28
+ "msHighContrastAdjust",
29
+ "msHyphenateLimitChars",
30
+ "msHyphenateLimitLines",
31
+ "msHyphenateLimitZone",
32
+ "msImeAlign",
33
+ "msOverflowStyle",
34
+ "msScrollbar-3dlightColor",
35
+ "msScrollbarArrowColor",
36
+ "msScrollbarBaseColor",
37
+ "msScrollbarDarkshadowColor",
38
+ "msScrollbarFaceColor",
39
+ "msScrollbarHighlightColor",
40
+ "msScrollbarShadowColor",
41
+ "msScrollbarTrackColor",
42
+ "msScrollChaining",
43
+ "msScrollLimit",
44
+ "msScrollLimitXMax",
45
+ "msScrollLimitXMin",
46
+ "msScrollLimitYMax",
47
+ "msScrollLimitYMin",
48
+ "msScrollRails",
49
+ "msScrollSnapPointsX",
50
+ "msScrollSnapPointsY",
51
+ "msScrollSnapType",
52
+ "msScrollSnapX",
53
+ "msScrollSnapY",
54
+ "msScrollTranslation",
55
+ "msTextAutospace",
56
+ "msTouchSelect",
57
+ "msUserSelect",
58
+ "msWrapFlow",
59
+ "msWrapMargin",
60
+ "msWrapThrough",
61
+ "MozAppearance",
62
+ "MozBinding",
63
+ "MozBorderBottomColors",
64
+ "MozBorderLeftColors",
65
+ "MozBorderRightColors",
66
+ "MozBorderTopColors",
67
+ "MozContextProperties",
68
+ "MozFloatEdge",
69
+ "MozForceBrokenImageIcon",
70
+ "MozImageRegion",
71
+ "MozOrient",
72
+ "MozOutlineRadius",
73
+ "MozOutlineRadiusBottomleft",
74
+ "MozOutlineRadiusBottomright",
75
+ "MozOutlineRadiusTopleft",
76
+ "MozOutlineRadiusTopright",
77
+ "MozStackSizing",
78
+ "MozTextBlink",
79
+ "MozUserFocus",
80
+ "MozUserInput",
81
+ "MozUserModify",
82
+ "MozWindowDragging",
83
+ "MozWindowShadow",
84
+ "WebkitAppearance",
85
+ "WebkitBorderBefore",
86
+ "WebkitBorderBeforeColor",
87
+ "WebkitBorderBeforeStyle",
88
+ "WebkitBorderBeforeWidth",
89
+ "WebkitBoxReflect",
90
+ "WebkitLineClamp",
91
+ "WebkitMask",
92
+ "WebkitMaskAttachment",
93
+ "WebkitMaskClip",
94
+ "WebkitMaskComposite",
95
+ "WebkitMaskImage",
96
+ "WebkitMaskOrigin",
97
+ "WebkitMaskPosition",
98
+ "WebkitMaskPositionX",
99
+ "WebkitMaskPositionY",
100
+ "WebkitMaskRepeat",
101
+ "WebkitMaskRepeatX",
102
+ "WebkitMaskRepeatY",
103
+ "WebkitMaskSize",
104
+ "WebkitOverflowScrolling",
105
+ "WebkitTapHighlightColor",
106
+ "WebkitTextFillColor",
107
+ "WebkitTextStroke",
108
+ "WebkitTextStrokeColor",
109
+ "WebkitTextStrokeWidth",
110
+ "WebkitTouchCallout",
111
+ "WebkitUserModify",
112
+ "accentColor",
113
+ "alignContent",
114
+ "alignItems",
115
+ "alignSelf",
116
+ "alignTracks",
117
+ "all",
118
+ "animation",
119
+ "animationDelay",
120
+ "animationDirection",
121
+ "animationDuration",
122
+ "animationFillMode",
123
+ "animationIterationCount",
124
+ "animationName",
125
+ "animationPlayState",
126
+ "animationTimingFunction",
127
+ "animationTimeline",
128
+ "appearance",
129
+ "aspectRatio",
130
+ "azimuth",
131
+ "backdropFilter",
132
+ "backfaceVisibility",
133
+ "background",
134
+ "backgroundAttachment",
135
+ "backgroundBlendMode",
136
+ "backgroundClip",
137
+ "backgroundColor",
138
+ "backgroundImage",
139
+ "backgroundOrigin",
140
+ "backgroundPosition",
141
+ "backgroundPositionX",
142
+ "backgroundPositionY",
143
+ "backgroundRepeat",
144
+ "backgroundSize",
145
+ "blockOverflow",
146
+ "blockSize",
147
+ "border",
148
+ "borderBlock",
149
+ "borderBlockColor",
150
+ "borderBlockStyle",
151
+ "borderBlockWidth",
152
+ "borderBlockEnd",
153
+ "borderBlockEndColor",
154
+ "borderBlockEndStyle",
155
+ "borderBlockEndWidth",
156
+ "borderBlockStart",
157
+ "borderBlockStartColor",
158
+ "borderBlockStartStyle",
159
+ "borderBlockStartWidth",
160
+ "borderBottom",
161
+ "borderBottomColor",
162
+ "borderBottomLeftRadius",
163
+ "borderBottomRightRadius",
164
+ "borderBottomStyle",
165
+ "borderBottomWidth",
166
+ "borderCollapse",
167
+ "borderColor",
168
+ "borderEndEndRadius",
169
+ "borderEndStartRadius",
170
+ "borderImage",
171
+ "borderImageOutset",
172
+ "borderImageRepeat",
173
+ "borderImageSlice",
174
+ "borderImageSource",
175
+ "borderImageWidth",
176
+ "borderInline",
177
+ "borderInlineEnd",
178
+ "borderInlineColor",
179
+ "borderInlineStyle",
180
+ "borderInlineWidth",
181
+ "borderInlineEndColor",
182
+ "borderInlineEndStyle",
183
+ "borderInlineEndWidth",
184
+ "borderInlineStart",
185
+ "borderInlineStartColor",
186
+ "borderInlineStartStyle",
187
+ "borderInlineStartWidth",
188
+ "borderLeft",
189
+ "borderLeftColor",
190
+ "borderLeftStyle",
191
+ "borderLeftWidth",
192
+ "borderRadius",
193
+ "borderRight",
194
+ "borderRightColor",
195
+ "borderRightStyle",
196
+ "borderRightWidth",
197
+ "borderSpacing",
198
+ "borderStartEndRadius",
199
+ "borderStartStartRadius",
200
+ "borderStyle",
201
+ "borderTop",
202
+ "borderTopColor",
203
+ "borderTopLeftRadius",
204
+ "borderTopRightRadius",
205
+ "borderTopStyle",
206
+ "borderTopWidth",
207
+ "borderWidth",
208
+ "bottom",
209
+ "boxAlign",
210
+ "boxDecorationBreak",
211
+ "boxDirection",
212
+ "boxFlex",
213
+ "boxFlexGroup",
214
+ "boxLines",
215
+ "boxOrdinalGroup",
216
+ "boxOrient",
217
+ "boxPack",
218
+ "boxShadow",
219
+ "boxSizing",
220
+ "breakAfter",
221
+ "breakBefore",
222
+ "breakInside",
223
+ "captionSide",
224
+ "caretColor",
225
+ "clear",
226
+ "clip",
227
+ "clipPath",
228
+ "color",
229
+ "printColorAdjust",
230
+ "colorScheme",
231
+ "columnCount",
232
+ "columnFill",
233
+ "columnGap",
234
+ "columnRule",
235
+ "columnRuleColor",
236
+ "columnRuleStyle",
237
+ "columnRuleWidth",
238
+ "columnSpan",
239
+ "columnWidth",
240
+ "columns",
241
+ "contain",
242
+ "content",
243
+ "contentVisibility",
244
+ "counterIncrement",
245
+ "counterReset",
246
+ "counterSet",
247
+ "cursor",
248
+ "direction",
249
+ "display",
250
+ "emptyCells",
251
+ "filter",
252
+ "flex",
253
+ "flexBasis",
254
+ "flexDirection",
255
+ "flexFlow",
256
+ "flexGrow",
257
+ "flexShrink",
258
+ "flexWrap",
259
+ "float",
260
+ "font",
261
+ "fontFamily",
262
+ "fontFeatureSettings",
263
+ "fontKerning",
264
+ "fontLanguageOverride",
265
+ "fontOpticalSizing",
266
+ "fontVariationSettings",
267
+ "fontSize",
268
+ "fontSizeAdjust",
269
+ "fontSmooth",
270
+ "fontStretch",
271
+ "fontStyle",
272
+ "fontSynthesis",
273
+ "fontVariant",
274
+ "fontVariantAlternates",
275
+ "fontVariantCaps",
276
+ "fontVariantEastAsian",
277
+ "fontVariantLigatures",
278
+ "fontVariantNumeric",
279
+ "fontVariantPosition",
280
+ "fontWeight",
281
+ "forcedColorAdjust",
282
+ "gap",
283
+ "grid",
284
+ "gridArea",
285
+ "gridAutoColumns",
286
+ "gridAutoFlow",
287
+ "gridAutoRows",
288
+ "gridColumn",
289
+ "gridColumnEnd",
290
+ "gridColumnGap",
291
+ "gridColumnStart",
292
+ "gridGap",
293
+ "gridRow",
294
+ "gridRowEnd",
295
+ "gridRowGap",
296
+ "gridRowStart",
297
+ "gridTemplate",
298
+ "gridTemplateAreas",
299
+ "gridTemplateColumns",
300
+ "gridTemplateRows",
301
+ "hangingPunctuation",
302
+ "height",
303
+ "hyphenateCharacter",
304
+ "hyphens",
305
+ "imageOrientation",
306
+ "imageRendering",
307
+ "imageResolution",
308
+ "imeMode",
309
+ "initialLetter",
310
+ "initialLetterAlign",
311
+ "inlineSize",
312
+ "inputSecurity",
313
+ "inset",
314
+ "insetBlock",
315
+ "insetBlockEnd",
316
+ "insetBlockStart",
317
+ "insetInline",
318
+ "insetInlineEnd",
319
+ "insetInlineStart",
320
+ "isolation",
321
+ "justifyContent",
322
+ "justifyItems",
323
+ "justifySelf",
324
+ "justifyTracks",
325
+ "left",
326
+ "letterSpacing",
327
+ "lineBreak",
328
+ "lineClamp",
329
+ "lineHeight",
330
+ "lineHeightStep",
331
+ "listStyle",
332
+ "listStyleImage",
333
+ "listStylePosition",
334
+ "listStyleType",
335
+ "margin",
336
+ "marginBlock",
337
+ "marginBlockEnd",
338
+ "marginBlockStart",
339
+ "marginBottom",
340
+ "marginInline",
341
+ "marginInlineEnd",
342
+ "marginInlineStart",
343
+ "marginLeft",
344
+ "marginRight",
345
+ "marginTop",
346
+ "marginTrim",
347
+ "mask",
348
+ "maskBorder",
349
+ "maskBorderMode",
350
+ "maskBorderOutset",
351
+ "maskBorderRepeat",
352
+ "maskBorderSlice",
353
+ "maskBorderSource",
354
+ "maskBorderWidth",
355
+ "maskClip",
356
+ "maskComposite",
357
+ "maskImage",
358
+ "maskMode",
359
+ "maskOrigin",
360
+ "maskPosition",
361
+ "maskRepeat",
362
+ "maskSize",
363
+ "maskType",
364
+ "masonryAutoFlow",
365
+ "mathStyle",
366
+ "maxBlockSize",
367
+ "maxHeight",
368
+ "maxInlineSize",
369
+ "maxLines",
370
+ "maxWidth",
371
+ "minBlockSize",
372
+ "minHeight",
373
+ "minInlineSize",
374
+ "minWidth",
375
+ "mixBlendMode",
376
+ "objectFit",
377
+ "objectPosition",
378
+ "offset",
379
+ "offsetAnchor",
380
+ "offsetDistance",
381
+ "offsetPath",
382
+ "offsetPosition",
383
+ "offsetRotate",
384
+ "opacity",
385
+ "order",
386
+ "orphans",
387
+ "outline",
388
+ "outlineColor",
389
+ "outlineOffset",
390
+ "outlineStyle",
391
+ "outlineWidth",
392
+ "overflow",
393
+ "overflowAnchor",
394
+ "overflowBlock",
395
+ "overflowClipBox",
396
+ "overflowClipMargin",
397
+ "overflowInline",
398
+ "overflowWrap",
399
+ "overflowX",
400
+ "overflowY",
401
+ "overscrollBehavior",
402
+ "overscrollBehaviorBlock",
403
+ "overscrollBehaviorInline",
404
+ "overscrollBehaviorX",
405
+ "overscrollBehaviorY",
406
+ "padding",
407
+ "paddingBlock",
408
+ "paddingBlockEnd",
409
+ "paddingBlockStart",
410
+ "paddingBottom",
411
+ "paddingInline",
412
+ "paddingInlineEnd",
413
+ "paddingInlineStart",
414
+ "paddingLeft",
415
+ "paddingRight",
416
+ "paddingTop",
417
+ "pageBreakAfter",
418
+ "pageBreakBefore",
419
+ "pageBreakInside",
420
+ "paintOrder",
421
+ "perspective",
422
+ "perspectiveOrigin",
423
+ "placeContent",
424
+ "placeItems",
425
+ "placeSelf",
426
+ "pointerEvents",
427
+ "position",
428
+ "quotes",
429
+ "resize",
430
+ "right",
431
+ "rotate",
432
+ "rowGap",
433
+ "rubyAlign",
434
+ "rubyMerge",
435
+ "rubyPosition",
436
+ "scale",
437
+ "scrollbarColor",
438
+ "scrollbarGutter",
439
+ "scrollbarWidth",
440
+ "scrollBehavior",
441
+ "scrollMargin",
442
+ "scrollMarginBlock",
443
+ "scrollMarginBlockStart",
444
+ "scrollMarginBlockEnd",
445
+ "scrollMarginBottom",
446
+ "scrollMarginInline",
447
+ "scrollMarginInlineStart",
448
+ "scrollMarginInlineEnd",
449
+ "scrollMarginLeft",
450
+ "scrollMarginRight",
451
+ "scrollMarginTop",
452
+ "scrollPadding",
453
+ "scrollPaddingBlock",
454
+ "scrollPaddingBlockStart",
455
+ "scrollPaddingBlockEnd",
456
+ "scrollPaddingBottom",
457
+ "scrollPaddingInline",
458
+ "scrollPaddingInlineStart",
459
+ "scrollPaddingInlineEnd",
460
+ "scrollPaddingLeft",
461
+ "scrollPaddingRight",
462
+ "scrollPaddingTop",
463
+ "scrollSnapAlign",
464
+ "scrollSnapCoordinate",
465
+ "scrollSnapDestination",
466
+ "scrollSnapPointsX",
467
+ "scrollSnapPointsY",
468
+ "scrollSnapStop",
469
+ "scrollSnapType",
470
+ "scrollSnapTypeX",
471
+ "scrollSnapTypeY",
472
+ "shapeImageThreshold",
473
+ "shapeMargin",
474
+ "shapeOutside",
475
+ "tabSize",
476
+ "tableLayout",
477
+ "textAlign",
478
+ "textAlignLast",
479
+ "textCombineUpright",
480
+ "textDecoration",
481
+ "textDecorationColor",
482
+ "textDecorationLine",
483
+ "textDecorationSkip",
484
+ "textDecorationSkipInk",
485
+ "textDecorationStyle",
486
+ "textDecorationThickness",
487
+ "textEmphasis",
488
+ "textEmphasisColor",
489
+ "textEmphasisPosition",
490
+ "textEmphasisStyle",
491
+ "textIndent",
492
+ "textJustify",
493
+ "textOrientation",
494
+ "textOverflow",
495
+ "textRendering",
496
+ "textShadow",
497
+ "textSizeAdjust",
498
+ "textTransform",
499
+ "textUnderlineOffset",
500
+ "textUnderlinePosition",
501
+ "top",
502
+ "touchAction",
503
+ "transform",
504
+ "transformBox",
505
+ "transformOrigin",
506
+ "transformStyle",
507
+ "transition",
508
+ "transitionDelay",
509
+ "transitionDuration",
510
+ "transitionProperty",
511
+ "transitionTimingFunction",
512
+ "translate",
513
+ "unicodeBidi",
514
+ "userSelect",
515
+ "verticalAlign",
516
+ "visibility",
517
+ "whiteSpace",
518
+ "widows",
519
+ "width",
520
+ "willChange",
521
+ "wordBreak",
522
+ "wordSpacing",
523
+ "wordWrap",
524
+ "writingMode",
525
+ "zIndex",
526
+ "zoom",
527
+ ...userGenerated
528
+ ]);
529
+ var regex = new RegExp("^(?:" + allCssProperties.join("|") + ")$");
530
+ var isCssProperty = memo((prop) => {
531
+ return regex.test(prop);
532
+ });
533
+ export {
534
+ allCssProperties,
535
+ isCssProperty
536
+ };
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@pandacss/is-valid-prop",
3
+ "version": "0.0.0-dev-20221121152823",
4
+ "description": "Common error messages for css panda",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "author": "Segun Adebayo <joseshegs@gmail.com>",
9
+ "sideEffects": false,
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "devDependencies": {
17
+ "outdent": " ^0.8.0",
18
+ "mdn-data": "^2.0.29",
19
+ "css-in-js-utils": "^3.1.0"
20
+ },
21
+ "scripts": {
22
+ "mdn": "tsx scripts/prepare.ts",
23
+ "build": "tsup src/index.ts --format=esm,cjs --dts",
24
+ "build-fast": "tsup src/index.ts --format=esm,cjs --no-dts",
25
+ "dev": "pnpm build-fast --watch"
26
+ }
27
+ }