@tamagui/helpers 3.0.0-beta.924.1 → 3.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.
Files changed (50) hide show
  1. package/dist/cjs/composeEventHandlers.native.cjs +1 -5
  2. package/dist/cjs/composeEventHandlers.native.js +1 -5
  3. package/dist/cjs/composeEventHandlers.native.js.map +1 -1
  4. package/dist/cjs/cssStyleProps.cjs +396 -0
  5. package/dist/cjs/cssStyleProps.native.cjs +398 -0
  6. package/dist/cjs/cssStyleProps.native.js +400 -0
  7. package/dist/cjs/cssStyleProps.native.js.map +1 -0
  8. package/dist/cjs/themeClassNames.cjs +19 -13
  9. package/dist/cjs/themeClassNames.native.cjs +37 -14
  10. package/dist/cjs/themeClassNames.native.js +37 -14
  11. package/dist/cjs/themeClassNames.native.js.map +1 -1
  12. package/dist/cjs/validStyleProps.cjs +14 -9
  13. package/dist/cjs/validStyleProps.native.cjs +16 -10
  14. package/dist/cjs/validStyleProps.native.js +16 -10
  15. package/dist/cjs/validStyleProps.native.js.map +1 -1
  16. package/dist/cjs/webOnlyStyleProps.cjs +4 -4
  17. package/dist/cjs/webOnlyStyleProps.native.cjs +4 -4
  18. package/dist/cjs/webOnlyStyleProps.native.js +4 -4
  19. package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
  20. package/dist/esm/composeEventHandlers.native.js +1 -5
  21. package/dist/esm/composeEventHandlers.native.js.map +1 -1
  22. package/dist/esm/cssStyleProps.mjs +373 -0
  23. package/dist/esm/cssStyleProps.mjs.map +1 -0
  24. package/dist/esm/cssStyleProps.native.js +373 -0
  25. package/dist/esm/cssStyleProps.native.js.map +1 -0
  26. package/dist/esm/themeClassNames.mjs +16 -13
  27. package/dist/esm/themeClassNames.mjs.map +1 -1
  28. package/dist/esm/themeClassNames.native.js +34 -14
  29. package/dist/esm/themeClassNames.native.js.map +1 -1
  30. package/dist/esm/validStyleProps.mjs +15 -9
  31. package/dist/esm/validStyleProps.mjs.map +1 -1
  32. package/dist/esm/validStyleProps.native.js +14 -9
  33. package/dist/esm/validStyleProps.native.js.map +1 -1
  34. package/dist/esm/webOnlyStyleProps.mjs +4 -4
  35. package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
  36. package/dist/esm/webOnlyStyleProps.native.js +4 -4
  37. package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
  38. package/package.json +8 -6
  39. package/src/cssStyleProps.ts +373 -0
  40. package/src/themeClassNames.ts +22 -24
  41. package/src/validStyleProps.ts +70 -23
  42. package/src/webOnlyStyleProps.ts +5 -5
  43. package/types/cssStyleProps.d.ts +371 -0
  44. package/types/cssStyleProps.d.ts.map +1 -0
  45. package/types/themeClassNames.d.ts +2 -10
  46. package/types/themeClassNames.d.ts.map +1 -1
  47. package/types/validStyleProps.d.ts +1766 -30
  48. package/types/validStyleProps.d.ts.map +1 -1
  49. package/types/webOnlyStyleProps.d.ts +12 -0
  50. package/types/webOnlyStyleProps.d.ts.map +1 -1
@@ -1,22 +1,27 @@
1
1
  import { isAndroid } from "@tamagui/constants";
2
+ import { cssStyleProps } from "./cssStyleProps.native.js";
3
+ import { nonAnimatableWebTextProps, webOnlyStylePropsView } from "./webOnlyStyleProps.native.js";
2
4
  import { toStylePropsObject } from "./toStylePropsObject.native.js";
3
5
  import { tokenCategories } from "./tokenCategories.native.js";
4
6
 
5
7
  var cssShorthandLonghands = toStylePropsObject("borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset");
6
- var textColors = toStylePropsObject("color textDecorationColor textShadowColor");
8
+ var textColors = toStylePropsObject(toStylePropsObject("color textDecorationColor"), "textShadowColor");
7
9
  var inputColors = toStylePropsObject("placeholderTextColor selectionColor cursorColor selectionHandleColor");
8
- var nonAnimatableViewProps = toStylePropsObject("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
10
+ var nonAnimatableViewProps = toStylePropsObject("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
9
11
  var nonAnimatableFontProps = toStylePropsObject("fontFamily fontStyle fontVariant textTransform");
10
- var nonAnimatableTextOnlyProps = toStylePropsObject("textAlign textDecorationLine textDecorationStyle userSelect writingDirection");
11
- var nonAnimatableUnitlessProps = toStylePropsObject("WebkitLineClamp lineClamp gridTemplateColumns gridTemplateAreas");
12
- var nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, void 0, void 0);
13
- var stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity");
12
+ var nonAnimatableTextOnlyProps = toStylePropsObject(toStylePropsObject("textAlign textDecorationLine textDecorationStyle userSelect"), "writingDirection");
13
+ var nonAnimatableUnitlessProps = toStylePropsObject("WebkitLineClamp lineClamp");
14
+ var webOnlyUnitlessProps = toStylePropsObject("animationIterationCount borderImageOutset borderImageSlice borderImageWidth columnCount flexOrder flexPositive flexNegative order orphans tabSize widows zoom scaleZ");
15
+ var cssGridProps = toStylePropsObject("gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart");
16
+ var enableCSSGrid = process.env.TAMAGUI_CSS_GRID === "1";
17
+ var nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, void 0, enableCSSGrid ? cssGridProps : void 0, void 0, void 0);
18
+ var stylePropsUnitless = toStylePropsObject(void 0, void 0, void 0, enableCSSGrid ? cssGridProps : void 0, "aspectRatio flex flexGrow flexShrink fontWeight opacity zIndex scale scaleX scaleY shadowOpacity");
14
19
  var stylePropsTransform = toStylePropsObject("x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ");
15
- var 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", void 0, "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", void 0);
16
- var stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight"), nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign", void 0);
20
+ var stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight"), nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration verticalAlign", void 0, void 0);
21
+ var 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", void 0, "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", void 0, void 0, void 0);
17
22
  var stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);
18
23
  var stylePropsInput = toStylePropsObject(stylePropsText, inputColors);
19
- var stylePropsAll = stylePropsInput;
24
+ var stylePropsAll = toStylePropsObject(stylePropsInput, cssStyleProps, cssGridProps, webOnlyStylePropsView, nonAnimatableWebTextProps, "font", nonAnimatableUnitlessProps, webOnlyUnitlessProps);
20
25
  var validStyles = stylePropsView;
21
26
 
22
27
  export { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };
@@ -1 +1 @@
1
- {"version":3,"file":"validStyleProps.native.js","names":[],"sources":["esm/validStyleProps.native.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { toStylePropsObject } from \"./toStylePropsObject\";\nimport { tokenCategories } from \"./tokenCategories\";\n\nvar cssShorthandLonghands = toStylePropsObject(\"borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset\");\nvar textColors = toStylePropsObject(\"color textDecorationColor textShadowColor\");\nvar inputColors = toStylePropsObject(\"placeholderTextColor selectionColor cursorColor selectionHandleColor\");\nvar nonAnimatableViewProps = toStylePropsObject(\"alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility\");\nvar nonAnimatableFontProps = toStylePropsObject(\"fontFamily fontStyle fontVariant textTransform\");\nvar nonAnimatableTextOnlyProps = toStylePropsObject(\"textAlign textDecorationLine textDecorationStyle userSelect writingDirection\");\nvar nonAnimatableUnitlessProps = toStylePropsObject(\"WebkitLineClamp lineClamp gridTemplateColumns gridTemplateAreas\");\nvar nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, void 0, void 0);\nvar stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity\");\nvar stylePropsTransform = toStylePropsObject(\"x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ\");\nvar 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\", void 0, \"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\", void 0);\nvar stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, \"fontSize fontWeight letterSpacing lineHeight\"), nonAnimatableTextOnlyProps, textColors, \"textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign\", void 0);\nvar stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);\nvar stylePropsInput = toStylePropsObject(stylePropsText, inputColors);\nvar stylePropsAll = stylePropsInput;\nvar validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };"],"mappings":";;;;;AAIA,IAAI,wBAAwB,mBAAmB,gSAAgS;AAC/U,IAAI,aAAa,mBAAmB,2CAA2C;AAC/E,IAAI,cAAc,mBAAmB,sEAAsE;AAC3G,IAAI,yBAAyB,mBAAmB,+VAA+V;AAC/Y,IAAI,yBAAyB,mBAAmB,gDAAgD;AAChG,IAAI,6BAA6B,mBAAmB,8EAA8E;AAClI,IAAI,6BAA6B,mBAAmB,iEAAiE;AACrH,IAAI,0BAA0B,mBAAmB,wBAAwB,wBAAwB,4BAA4B,4BAA4B,KAAK,GAAG,KAAK,CAAC;AACvK,IAAI,qBAAqB,mBAAmB,4BAA4B,yWAAyW;AACjb,IAAI,sBAAsB,mBAAmB,uFAAuF;AACpI,IAAI,iBAAiB,mBAAmB,wBAAwB,slCAAslC,KAAK,GAAG,6ZAA6Z,qBAAqB,oBAAoB,YAAY,EAAE,kBAAkB,KAAK,IAAI,KAAK,GAAG,+IAA+I,KAAK,CAAC;AAC1yD,IAAI,qBAAqB,mBAAmB,mBAAmB,wBAAwB,8CAA8C,GAAG,4BAA4B,YAAY,kFAAkF,KAAK,CAAC;AACxQ,IAAI,iBAAiB,mBAAmB,gBAAgB,kBAAkB;AAC1E,IAAI,kBAAkB,mBAAmB,gBAAgB,WAAW;AACpE,IAAI,gBAAgB;AACpB,IAAI,cAAc"}
1
+ {"version":3,"file":"validStyleProps.native.js","names":[],"sources":["esm/validStyleProps.native.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { cssStyleProps } from \"./cssStyleProps\";\nimport { nonAnimatableWebTextProps, webOnlyStylePropsView } from \"./webOnlyStyleProps\";\nimport { toStylePropsObject } from \"./toStylePropsObject\";\nimport { tokenCategories } from \"./tokenCategories\";\n\nvar cssShorthandLonghands = toStylePropsObject(\"borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset\");\nvar textColors = toStylePropsObject(toStylePropsObject(\"color textDecorationColor\"), \"textShadowColor\");\nvar inputColors = toStylePropsObject(\"placeholderTextColor selectionColor cursorColor selectionHandleColor\");\nvar nonAnimatableViewProps = toStylePropsObject(\"alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility\");\nvar nonAnimatableFontProps = toStylePropsObject(\"fontFamily fontStyle fontVariant textTransform\");\nvar nonAnimatableTextOnlyProps = toStylePropsObject(toStylePropsObject(\"textAlign textDecorationLine textDecorationStyle userSelect\"), \"writingDirection\");\nvar nonAnimatableUnitlessProps = toStylePropsObject(\"WebkitLineClamp lineClamp\");\nvar webOnlyUnitlessProps = toStylePropsObject(\"animationIterationCount borderImageOutset borderImageSlice borderImageWidth columnCount flexOrder flexPositive flexNegative order orphans tabSize widows zoom scaleZ\");\nvar cssGridProps = toStylePropsObject(\"gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart\");\nvar enableCSSGrid = process.env.TAMAGUI_CSS_GRID === \"1\";\nvar nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, void 0, enableCSSGrid ? cssGridProps : void 0, void 0, void 0);\nvar stylePropsUnitless = toStylePropsObject(void 0, void 0, void 0, enableCSSGrid ? cssGridProps : void 0, \"aspectRatio flex flexGrow flexShrink fontWeight opacity zIndex scale scaleX scaleY shadowOpacity\");\nvar stylePropsTransform = toStylePropsObject(\"x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ\");\nvar stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, \"fontSize fontWeight letterSpacing lineHeight\"), nonAnimatableTextOnlyProps, textColors, \"textShadow textShadowOffset textShadowRadius textDecoration verticalAlign\", void 0, void 0);\nvar 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\", void 0, \"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\", void 0, void 0, void 0);\nvar stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);\nvar stylePropsInput = toStylePropsObject(stylePropsText, inputColors);\nvar stylePropsAll = toStylePropsObject(stylePropsInput, cssStyleProps, cssGridProps, webOnlyStylePropsView, nonAnimatableWebTextProps, \"font\", nonAnimatableUnitlessProps, webOnlyUnitlessProps);\nvar validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };"],"mappings":";;;;;;;AAMA,IAAI,wBAAwB,mBAAmB,gSAAgS;AAC/U,IAAI,aAAa,mBAAmB,mBAAmB,2BAA2B,GAAG,iBAAiB;AACtG,IAAI,cAAc,mBAAmB,sEAAsE;AAC3G,IAAI,yBAAyB,mBAAmB,sOAAsO;AACtR,IAAI,yBAAyB,mBAAmB,gDAAgD;AAChG,IAAI,6BAA6B,mBAAmB,mBAAmB,6DAA6D,GAAG,kBAAkB;AACzJ,IAAI,6BAA6B,mBAAmB,2BAA2B;AAC/E,IAAI,uBAAuB,mBAAmB,sKAAsK;AACpN,IAAI,eAAe,mBAAmB,yIAAyI;AAC/K,IAAI,gBAAgB,QAAQ,IAAI,qBAAqB;AACrD,IAAI,0BAA0B,mBAAmB,wBAAwB,wBAAwB,4BAA4B,KAAK,GAAG,gBAAgB,eAAe,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAC1L,IAAI,qBAAqB,mBAAmB,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,gBAAgB,eAAe,KAAK,GAAG,kGAAkG;AAC7M,IAAI,sBAAsB,mBAAmB,uFAAuF;AACpI,IAAI,qBAAqB,mBAAmB,mBAAmB,wBAAwB,8CAA8C,GAAG,4BAA4B,YAAY,6EAA6E,KAAK,GAAG,KAAK,CAAC;AAC3Q,IAAI,iBAAiB,mBAAmB,wBAAwB,slCAAslC,KAAK,GAAG,6ZAA6Z,qBAAqB,oBAAoB,YAAY,EAAE,kBAAkB,KAAK,IAAI,KAAK,GAAG,+IAA+I,2BAA2B,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACr1D,IAAI,iBAAiB,mBAAmB,gBAAgB,kBAAkB;AAC1E,IAAI,kBAAkB,mBAAmB,gBAAgB,WAAW;AACpE,IAAI,gBAAgB,mBAAmB,iBAAiB,eAAe,cAAc,uBAAuB,2BAA2B,QAAQ,4BAA4B,oBAAoB;AAC/L,IAAI,cAAc"}
@@ -1,9 +1,9 @@
1
1
  import { toStylePropsObject } from "./toStylePropsObject.mjs";
2
2
 
3
- const nonAnimatableWebViewProps = toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
4
- const nonAnimatableWebTextProps = toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
5
- const webOnlyStylePropsView = toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
6
- const webOnlyStylePropsText = toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
3
+ const nonAnimatableWebViewProps = /* @__PURE__ */ toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
4
+ const nonAnimatableWebTextProps = /* @__PURE__ */ toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
5
+ const webOnlyStylePropsView = /* @__PURE__ */ toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
6
+ const webOnlyStylePropsText = /* @__PURE__ */ toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
7
7
 
8
8
  export { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView };
9
9
  //# sourceMappingURL=webOnlyStyleProps.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"webOnlyStyleProps.js","names":["toObj"],"sources":["esm/webOnlyStyleProps.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nconst nonAnimatableWebViewProps = toObj(\n \"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\"\n);\nconst nonAnimatableWebTextProps = toObj(\n \"whiteSpace wordWrap textOverflow WebkitBoxOrient\"\n);\nconst webOnlyStylePropsView = toObj(\n nonAnimatableWebViewProps,\n \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\"\n);\nconst webOnlyStylePropsText = toObj(\n nonAnimatableWebTextProps,\n \"textDecorationDistance WebkitLineClamp\"\n);\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,MAAM,4BAA4BA,mBAChC,uaACF;AACA,MAAM,4BAA4BA,mBAChC,kDACF;AACA,MAAM,wBAAwBA,mBAC5B,2BACA,wbACF;AACA,MAAM,wBAAwBA,mBAC5B,2BACA,wCACF"}
1
+ {"version":3,"file":"webOnlyStyleProps.js","names":[],"sources":["esm/webOnlyStyleProps.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nconst nonAnimatableWebViewProps = /* @__PURE__ */ toObj(\n \"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\"\n);\nconst nonAnimatableWebTextProps = /* @__PURE__ */ toObj(\n \"whiteSpace wordWrap textOverflow WebkitBoxOrient\"\n);\nconst webOnlyStylePropsView = /* @__PURE__ */ toObj(\n nonAnimatableWebViewProps,\n \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\"\n);\nconst webOnlyStylePropsText = /* @__PURE__ */ toObj(\n nonAnimatableWebTextProps,\n \"textDecorationDistance WebkitLineClamp\"\n);\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,MAAM,4BAA4C,mCAChD,giBACF;AACA,MAAM,4BAA4C,mCAChD,kDACF;AACA,MAAM,wBAAwC,mCAC5C,2BACA,wbACF;AACA,MAAM,wBAAwC,mCAC5C,2BACA,wCACF"}
@@ -1,9 +1,9 @@
1
1
  import { toStylePropsObject } from "./toStylePropsObject.native.js";
2
2
 
3
- var nonAnimatableWebViewProps = toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
4
- var nonAnimatableWebTextProps = toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
5
- var webOnlyStylePropsView = toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
6
- var webOnlyStylePropsText = toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
3
+ var nonAnimatableWebViewProps = /* @__PURE__ */ toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
4
+ var nonAnimatableWebTextProps = /* @__PURE__ */ toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
5
+ var webOnlyStylePropsView = /* @__PURE__ */ toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
6
+ var webOnlyStylePropsText = /* @__PURE__ */ toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
7
7
 
8
8
  export { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView };
9
9
  //# sourceMappingURL=webOnlyStyleProps.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webOnlyStyleProps.native.js","names":["toObj"],"sources":["esm/webOnlyStyleProps.native.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nvar nonAnimatableWebViewProps = toObj(\"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\");\nvar nonAnimatableWebTextProps = toObj(\"whiteSpace wordWrap textOverflow WebkitBoxOrient\");\nvar webOnlyStylePropsView = toObj(nonAnimatableWebViewProps, \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\");\nvar webOnlyStylePropsText = toObj(nonAnimatableWebTextProps, \"textDecorationDistance WebkitLineClamp\");\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,IAAI,4BAA4BA,mBAAM,uaAAua;AAC7c,IAAI,4BAA4BA,mBAAM,kDAAkD;AACxF,IAAI,wBAAwBA,mBAAM,2BAA2B,wbAAwb;AACrf,IAAI,wBAAwBA,mBAAM,2BAA2B,wCAAwC"}
1
+ {"version":3,"file":"webOnlyStyleProps.native.js","names":[],"sources":["esm/webOnlyStyleProps.native.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nvar nonAnimatableWebViewProps = /* @__PURE__ */ toObj(\"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\");\nvar nonAnimatableWebTextProps = /* @__PURE__ */ toObj(\"whiteSpace wordWrap textOverflow WebkitBoxOrient\");\nvar webOnlyStylePropsView = /* @__PURE__ */ toObj(nonAnimatableWebViewProps, \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\");\nvar webOnlyStylePropsText = /* @__PURE__ */ toObj(nonAnimatableWebTextProps, \"textDecorationDistance WebkitLineClamp\");\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,IAAI,4BAA4C,mCAAM,giBAAgiB;AACtlB,IAAI,4BAA4C,mCAAM,kDAAkD;AACxG,IAAI,wBAAwC,mCAAM,2BAA2B,wbAAwb;AACrgB,IAAI,wBAAwC,mCAAM,2BAA2B,wCAAwC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/helpers",
3
- "version": "3.0.0-beta.924.1",
3
+ "version": "3.0.1",
4
+ "license": "MIT",
4
5
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
6
  "source": "src/index.ts",
6
7
  "files": [
@@ -44,12 +45,12 @@
44
45
  "clean:build": "tamagui-build clean:build"
45
46
  },
46
47
  "dependencies": {
47
- "@tamagui/constants": "3.0.0-beta.924.1",
48
- "@tamagui/simple-hash": "3.0.0-beta.924.1",
49
- "@tamagui/style-grammar": "3.0.0-beta.924.1"
48
+ "@tamagui/constants": "3.0.1",
49
+ "@tamagui/simple-hash": "3.0.1",
50
+ "@tamagui/style-grammar": "3.0.1"
50
51
  },
51
52
  "devDependencies": {
52
- "@tamagui/build": "3.0.0-beta.924.1",
53
+ "@tamagui/build": "3.0.1",
53
54
  "react": "19.2.3"
54
55
  },
55
56
  "peerDependencies": {
@@ -59,5 +60,6 @@
59
60
  "type": "git",
60
61
  "url": "git+https://github.com/tamagui/tamagui.git",
61
62
  "directory": "code/core/helpers"
62
- }
63
+ },
64
+ "releaseSourceCommit": "c156b7cc55e5a6cc5883ebc8189720850ac32dbd"
63
65
  }
@@ -0,0 +1,373 @@
1
+ // generated from csstype 3.2.3; run node scripts/generate-css-style-props.mjs.
2
+
3
+ export const cssStyleProps = {
4
+ accentColor: true,
5
+ alignmentBaseline: true,
6
+ alignTracks: true,
7
+ all: true,
8
+ anchorName: true,
9
+ anchorScope: true,
10
+ animation: true,
11
+ animationComposition: true,
12
+ animationDelay: true,
13
+ animationDirection: true,
14
+ animationDuration: true,
15
+ animationFillMode: true,
16
+ animationName: true,
17
+ animationPlayState: true,
18
+ animationRange: true,
19
+ animationRangeEnd: true,
20
+ animationRangeStart: true,
21
+ animationTimeline: true,
22
+ animationTimingFunction: true,
23
+ appearance: true,
24
+ backgroundPositionX: true,
25
+ backgroundPositionY: true,
26
+ baselineShift: true,
27
+ borderBlockEnd: true,
28
+ borderBlockStart: true,
29
+ borderCollapse: true,
30
+ borderImageRepeat: true,
31
+ borderImageSource: true,
32
+ borderInlineEnd: true,
33
+ borderInlineStart: true,
34
+ borderSpacing: true,
35
+ boxAlign: true,
36
+ boxDecorationBreak: true,
37
+ boxDirection: true,
38
+ boxFlex: true,
39
+ boxFlexGroup: true,
40
+ boxLines: true,
41
+ boxOrdinalGroup: true,
42
+ boxOrient: true,
43
+ boxPack: true,
44
+ breakAfter: true,
45
+ breakBefore: true,
46
+ breakInside: true,
47
+ captionSide: true,
48
+ caret: true,
49
+ caretShape: true,
50
+ clear: true,
51
+ clip: true,
52
+ clipRule: true,
53
+ colorAdjust: true,
54
+ colorInterpolation: true,
55
+ colorInterpolationFilters: true,
56
+ colorRendering: true,
57
+ colorScheme: true,
58
+ columnFill: true,
59
+ columnRule: true,
60
+ columnRuleColor: true,
61
+ columnRuleStyle: true,
62
+ columnRuleWidth: true,
63
+ columns: true,
64
+ columnSpan: true,
65
+ columnWidth: true,
66
+ container: true,
67
+ containIntrinsicBlockSize: true,
68
+ containIntrinsicHeight: true,
69
+ containIntrinsicInlineSize: true,
70
+ containIntrinsicSize: true,
71
+ containIntrinsicWidth: true,
72
+ contentVisibility: true,
73
+ counterIncrement: true,
74
+ counterReset: true,
75
+ counterSet: true,
76
+ cx: true,
77
+ cy: true,
78
+ d: true,
79
+ dominantBaseline: true,
80
+ emptyCells: true,
81
+ fieldSizing: true,
82
+ fill: true,
83
+ fillOpacity: true,
84
+ fillRule: true,
85
+ flexFlow: true,
86
+ floodColor: true,
87
+ floodOpacity: true,
88
+ fontFeatureSettings: true,
89
+ fontKerning: true,
90
+ fontLanguageOverride: true,
91
+ fontOpticalSizing: true,
92
+ fontPalette: true,
93
+ fontSizeAdjust: true,
94
+ fontSmooth: true,
95
+ fontStretch: true,
96
+ fontSynthesis: true,
97
+ fontSynthesisPosition: true,
98
+ fontSynthesisSmallCaps: true,
99
+ fontSynthesisStyle: true,
100
+ fontSynthesisWeight: true,
101
+ fontVariantAlternates: true,
102
+ fontVariantCaps: true,
103
+ fontVariantEastAsian: true,
104
+ fontVariantEmoji: true,
105
+ fontVariantLigatures: true,
106
+ fontVariantNumeric: true,
107
+ fontVariantPosition: true,
108
+ fontVariationSettings: true,
109
+ fontWidth: true,
110
+ forcedColorAdjust: true,
111
+ glyphOrientationVertical: true,
112
+ grid: true,
113
+ gridArea: true,
114
+ gridAutoColumns: true,
115
+ gridAutoFlow: true,
116
+ gridAutoRows: true,
117
+ gridGap: true,
118
+ gridTemplate: true,
119
+ gridTemplateRows: true,
120
+ hangingPunctuation: true,
121
+ hyphenateCharacter: true,
122
+ hyphenateLimitChars: true,
123
+ hyphens: true,
124
+ imageOrientation: true,
125
+ imageRendering: true,
126
+ imageResolution: true,
127
+ imeMode: true,
128
+ initialLetter: true,
129
+ initialLetterAlign: true,
130
+ insetArea: true,
131
+ interpolateSize: true,
132
+ justifyItems: true,
133
+ justifySelf: true,
134
+ justifyTracks: true,
135
+ KhtmlBoxAlign: true,
136
+ KhtmlBoxDirection: true,
137
+ KhtmlBoxFlex: true,
138
+ KhtmlBoxFlexGroup: true,
139
+ KhtmlBoxLines: true,
140
+ KhtmlBoxOrdinalGroup: true,
141
+ KhtmlBoxOrient: true,
142
+ KhtmlBoxPack: true,
143
+ KhtmlLineBreak: true,
144
+ KhtmlOpacity: true,
145
+ KhtmlUserSelect: true,
146
+ lightingColor: true,
147
+ lineBreak: true,
148
+ lineHeightStep: true,
149
+ listStyle: true,
150
+ listStyleImage: true,
151
+ listStylePosition: true,
152
+ listStyleType: true,
153
+ marginTrim: true,
154
+ marker: true,
155
+ markerEnd: true,
156
+ markerMid: true,
157
+ markerStart: true,
158
+ masonryAutoFlow: true,
159
+ mathDepth: true,
160
+ mathShift: true,
161
+ mathStyle: true,
162
+ maxLines: true,
163
+ motion: true,
164
+ motionDistance: true,
165
+ motionPath: true,
166
+ motionRotation: true,
167
+ OAnimation: true,
168
+ OAnimationDelay: true,
169
+ OAnimationDirection: true,
170
+ OAnimationDuration: true,
171
+ OAnimationFillMode: true,
172
+ OAnimationIterationCount: true,
173
+ OAnimationName: true,
174
+ OAnimationPlayState: true,
175
+ OAnimationTimingFunction: true,
176
+ OBackgroundSize: true,
177
+ objectViewBox: true,
178
+ OBorderImage: true,
179
+ offset: true,
180
+ offsetAnchor: true,
181
+ offsetBlock: true,
182
+ offsetBlockEnd: true,
183
+ offsetBlockStart: true,
184
+ offsetDistance: true,
185
+ offsetInline: true,
186
+ offsetInlineEnd: true,
187
+ offsetInlineStart: true,
188
+ offsetPath: true,
189
+ offsetPosition: true,
190
+ offsetRotate: true,
191
+ offsetRotation: true,
192
+ OObjectFit: true,
193
+ OObjectPosition: true,
194
+ OTabSize: true,
195
+ OTextOverflow: true,
196
+ OTransform: true,
197
+ OTransformOrigin: true,
198
+ OTransition: true,
199
+ OTransitionDelay: true,
200
+ OTransitionDuration: true,
201
+ OTransitionProperty: true,
202
+ OTransitionTimingFunction: true,
203
+ overflowAnchor: true,
204
+ overflowClipBox: true,
205
+ overflowClipMargin: true,
206
+ overlay: true,
207
+ overscrollBehavior: true,
208
+ overscrollBehaviorBlock: true,
209
+ overscrollBehaviorInline: true,
210
+ overscrollBehaviorX: true,
211
+ overscrollBehaviorY: true,
212
+ page: true,
213
+ pageBreakAfter: true,
214
+ pageBreakBefore: true,
215
+ pageBreakInside: true,
216
+ paintOrder: true,
217
+ perspectiveOrigin: true,
218
+ placeContent: true,
219
+ placeItems: true,
220
+ placeSelf: true,
221
+ positionAnchor: true,
222
+ positionArea: true,
223
+ positionTry: true,
224
+ positionTryFallbacks: true,
225
+ positionTryOptions: true,
226
+ positionTryOrder: true,
227
+ positionVisibility: true,
228
+ printColorAdjust: true,
229
+ quotes: true,
230
+ r: true,
231
+ rubyAlign: true,
232
+ rubyMerge: true,
233
+ rubyOverhang: true,
234
+ rubyPosition: true,
235
+ rx: true,
236
+ ry: true,
237
+ scrollbarColor: true,
238
+ scrollbarGutter: true,
239
+ scrollBehavior: true,
240
+ scrollInitialTarget: true,
241
+ scrollMargin: true,
242
+ scrollMarginBlock: true,
243
+ scrollMarginBlockEnd: true,
244
+ scrollMarginBlockStart: true,
245
+ scrollMarginBottom: true,
246
+ scrollMarginInline: true,
247
+ scrollMarginInlineEnd: true,
248
+ scrollMarginInlineStart: true,
249
+ scrollMarginLeft: true,
250
+ scrollMarginRight: true,
251
+ scrollMarginTop: true,
252
+ scrollPadding: true,
253
+ scrollPaddingBlock: true,
254
+ scrollPaddingBlockEnd: true,
255
+ scrollPaddingBlockStart: true,
256
+ scrollPaddingBottom: true,
257
+ scrollPaddingInline: true,
258
+ scrollPaddingInlineEnd: true,
259
+ scrollPaddingInlineStart: true,
260
+ scrollPaddingLeft: true,
261
+ scrollPaddingRight: true,
262
+ scrollPaddingTop: true,
263
+ scrollSnapAlign: true,
264
+ scrollSnapCoordinate: true,
265
+ scrollSnapDestination: true,
266
+ scrollSnapMargin: true,
267
+ scrollSnapMarginBottom: true,
268
+ scrollSnapMarginLeft: true,
269
+ scrollSnapMarginRight: true,
270
+ scrollSnapMarginTop: true,
271
+ scrollSnapPointsX: true,
272
+ scrollSnapPointsY: true,
273
+ scrollSnapStop: true,
274
+ scrollSnapType: true,
275
+ scrollSnapTypeX: true,
276
+ scrollSnapTypeY: true,
277
+ scrollTimeline: true,
278
+ scrollTimelineAxis: true,
279
+ scrollTimelineName: true,
280
+ shapeImageThreshold: true,
281
+ shapeMargin: true,
282
+ shapeOutside: true,
283
+ shapeRendering: true,
284
+ speakAs: true,
285
+ stopColor: true,
286
+ stopOpacity: true,
287
+ stroke: true,
288
+ strokeColor: true,
289
+ strokeDasharray: true,
290
+ strokeDashoffset: true,
291
+ strokeLinecap: true,
292
+ strokeLinejoin: true,
293
+ strokeMiterlimit: true,
294
+ strokeOpacity: true,
295
+ strokeWidth: true,
296
+ tableLayout: true,
297
+ textAlignLast: true,
298
+ textAnchor: true,
299
+ textAutospace: true,
300
+ textBox: true,
301
+ textBoxEdge: true,
302
+ textBoxTrim: true,
303
+ textCombineUpright: true,
304
+ textDecorationSkip: true,
305
+ textDecorationSkipInk: true,
306
+ textDecorationThickness: true,
307
+ textEmphasisColor: true,
308
+ textEmphasisPosition: true,
309
+ textEmphasisStyle: true,
310
+ textIndent: true,
311
+ textJustify: true,
312
+ textOrientation: true,
313
+ textRendering: true,
314
+ textSizeAdjust: true,
315
+ textSpacingTrim: true,
316
+ textUnderlineOffset: true,
317
+ textUnderlinePosition: true,
318
+ textWrapMode: true,
319
+ textWrapStyle: true,
320
+ timelineScope: true,
321
+ transformBox: true,
322
+ translate: true,
323
+ unicodeBidi: true,
324
+ vectorEffect: true,
325
+ viewTimeline: true,
326
+ viewTimelineAxis: true,
327
+ viewTimelineInset: true,
328
+ viewTimelineName: true,
329
+ viewTransitionClass: true,
330
+ viewTransitionName: true,
331
+ whiteSpaceCollapse: true,
332
+ wordBreak: true,
333
+ wordSpacing: true,
334
+ writingMode: true,
335
+ } as const
336
+
337
+ export const cssStylePropsUnitless = {
338
+ animation: true,
339
+ borderImage: true,
340
+ boxFlex: true,
341
+ boxFlexGroup: true,
342
+ boxOrdinalGroup: true,
343
+ columns: true,
344
+ fillOpacity: true,
345
+ floodOpacity: true,
346
+ fontSizeAdjust: true,
347
+ glyphOrientationVertical: true,
348
+ gridArea: true,
349
+ hyphenateLimitChars: true,
350
+ initialLetter: true,
351
+ KhtmlBoxFlex: true,
352
+ KhtmlBoxFlexGroup: true,
353
+ KhtmlBoxOrdinalGroup: true,
354
+ KhtmlOpacity: true,
355
+ lineHeight: true,
356
+ maskBorder: true,
357
+ maskBorderOutset: true,
358
+ maskBorderSlice: true,
359
+ maskBorderWidth: true,
360
+ mathDepth: true,
361
+ maxLines: true,
362
+ OAnimation: true,
363
+ OAnimationIterationCount: true,
364
+ OBorderImage: true,
365
+ OTabSize: true,
366
+ shapeImageThreshold: true,
367
+ stopOpacity: true,
368
+ strokeDasharray: true,
369
+ strokeDashoffset: true,
370
+ strokeMiterlimit: true,
371
+ strokeOpacity: true,
372
+ strokeWidth: true,
373
+ } as const
@@ -1,28 +1,26 @@
1
- const schemePrefix = /^(dark|light)_/
2
-
3
- /**
4
- * The theme classes a `<Theme>` span carries for a resolved theme name.
5
- *
6
- * Every level of a compound name gets its own class so CSS variables inherit
7
- * through the whole chain ("red_surface1" is `t_red t_red_surface1`). The zero
8
- * compiler emits these directly, so this has to be the only implementation:
9
- * a compiled span that spells its classes differently would resolve different
10
- * variables than the runtime does for the same authored tree.
11
- */
12
- export function getThemeClassNames(name: string, isRoot = false): string {
13
- const themeClassName = name.replace(schemePrefix, '')
14
- const fullThemeClassName = name === themeClassName ? '' : ` t_${name}`
15
-
16
- const themeNameParts = themeClassName.split('_')
17
- let themeClasses = `t_${themeClassName}${fullThemeClassName}`
1
+ // read a complete scheme segment so names such as "lightsaber" stay distinct.
2
+ const schemePrefix = /^(light|dark)(?=_|$)/
3
+ export function getThemeScheme(name: string): 'light' | 'dark' | undefined {
4
+ return schemePrefix.exec(name)?.[0] as 'light' | 'dark' | undefined
5
+ }
18
6
 
19
- if (themeNameParts.length > 1) {
20
- const hierarchyClasses: string[] = []
21
- for (let i = 1; i <= themeNameParts.length; i++) {
22
- hierarchyClasses.push(`t_${themeNameParts.slice(0, i).join('_')}`)
7
+ // runtime and zero output share this hierarchy. inherited schemes follow the
8
+ // document class; only authored schemes emit the more specific full-name class.
9
+ export function getThemeClassNames(
10
+ name: string,
11
+ isRoot?: boolean,
12
+ schemeAuthored?: boolean
13
+ ): string {
14
+ const scheme = getThemeScheme(name)
15
+ const relativeName = scheme ? name.slice(scheme.length + 1) : name
16
+ let classes = isRoot ? '' : 't_sub_theme'
17
+ if (relativeName) {
18
+ let prefix = 't'
19
+ for (const part of relativeName.split('_')) {
20
+ prefix += `_${part}`
21
+ classes += ` ${prefix}`
23
22
  }
24
- themeClasses = `${hierarchyClasses.join(' ')}${fullThemeClassName}`
25
23
  }
26
-
27
- return `${isRoot ? '' : 't_sub_theme'} ${themeClasses}`
24
+ if (schemeAuthored && scheme) classes += ` t_${name}`
25
+ return classes
28
26
  }