{"version":3,"file":"validStyleProps.js","names":[],"sources":["esm/validStyleProps.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { cssStyleProps, cssStylePropsUnitless } from \"./cssStyleProps\";\nimport { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from \"./webOnlyStyleProps\";\nimport { toStylePropsObject } from \"./toStylePropsObject\";\nimport { tokenCategories } from \"./tokenCategories\";\n\nconst cssShorthandLonghands = toStylePropsObject(\"borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset\");\nconst cssTextColors = toStylePropsObject(\"color textDecorationColor\");\nconst textColors = toStylePropsObject(cssTextColors, \"textShadowColor\");\nconst inputColors = toStylePropsObject(\"placeholderTextColor selectionColor cursorColor selectionHandleColor\");\nconst nonAnimatableViewProps = toStylePropsObject(\"alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility\");\nconst nonAnimatableFontProps = toStylePropsObject(\"fontFamily fontStyle fontVariant textTransform\");\nconst cssTextAlignmentProps = toStylePropsObject(\"textAlign textDecorationLine textDecorationStyle userSelect\");\nconst nonAnimatableTextOnlyProps = toStylePropsObject(cssTextAlignmentProps, \"writingDirection\");\nconst nonAnimatableUnitlessProps = toStylePropsObject(\"WebkitLineClamp lineClamp\");\nconst webOnlyUnitlessProps = toStylePropsObject(\"animationIterationCount borderImageOutset borderImageSlice borderImageWidth columnCount flexOrder flexPositive flexNegative order orphans tabSize widows zoom scaleZ\");\nconst cssGridProps = toStylePropsObject(\"gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart\");\nconst nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, cssGridProps, nonAnimatableWebViewProps, nonAnimatableWebTextProps);\nconst stylePropsUnitless = toStylePropsObject(cssStylePropsUnitless, nonAnimatableUnitlessProps, webOnlyUnitlessProps, cssGridProps, \"aspectRatio flex flexGrow flexShrink fontWeight opacity zIndex scale scaleX scaleY shadowOpacity\");\nconst stylePropsTransform = toStylePropsObject(\"x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ\");\nconst stylePropsFont = toStylePropsObject(nonAnimatableFontProps, \"fontSize fontWeight letterSpacing lineHeight\");\nconst stylePropsTextOnly = toStylePropsObject(stylePropsFont, nonAnimatableTextOnlyProps, textColors, \"textShadow textShadowOffset textShadowRadius textDecoration verticalAlign\", \"font\", webOnlyStylePropsText);\nconst stylePropsView = toStylePropsObject(nonAnimatableViewProps, \"borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth transform transformOrigin borderEndWidth borderStartWidth bottom end flexBasis gap columnGap rowGap left margin marginBlock marginBlockEnd marginBlockStart marginInline marginInlineStart marginInlineEnd marginBottom marginEnd marginHorizontal marginLeft marginRight marginStart marginTop marginVertical padding paddingBottom paddingInline paddingBlock paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor\", \"caretColor\", \"borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius\", stylePropsTransform, stylePropsUnitless, isAndroid ? { elevationAndroid: true } : void 0, \"boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth\", \"fill stroke strokeWidth\", webOnlyStylePropsView, cssStyleProps, toStylePropsObject(stylePropsFont, cssTextColors, cssTextAlignmentProps, nonAnimatableWebTextProps, \"textShadow textDecoration verticalAlign font\"));\nconst stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);\nconst stylePropsInput = toStylePropsObject(stylePropsText, inputColors);\nconst stylePropsAll = toStylePropsObject(stylePropsInput, cssStyleProps, cssGridProps, webOnlyStylePropsView, nonAnimatableWebTextProps, \"font\", nonAnimatableUnitlessProps, webOnlyUnitlessProps);\nconst validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };"],"mappings":";;;;;;;AAMA,MAAM,wBAAwB,mBAAmB,gSAAgS;AACjV,MAAM,gBAAgB,mBAAmB,2BAA2B;AACpE,MAAM,aAAa,mBAAmB,eAAe,iBAAiB;AACtE,MAAM,cAAc,mBAAmB,sEAAsE;AAC7G,MAAM,yBAAyB,mBAAmB,sOAAsO;AACxR,MAAM,yBAAyB,mBAAmB,gDAAgD;AAClG,MAAM,wBAAwB,mBAAmB,6DAA6D;AAC9G,MAAM,6BAA6B,mBAAmB,uBAAuB,kBAAkB;AAC/F,MAAM,6BAA6B,mBAAmB,2BAA2B;AACjF,MAAM,uBAAuB,mBAAmB,sKAAsK;AACtN,MAAM,eAAe,mBAAmB,yIAAyI;AACjL,MAAM,0BAA0B,mBAAmB,wBAAwB,wBAAwB,4BAA4B,4BAA4B,cAAc,2BAA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