From 2c5416a23897eab2d6df14be07751aad12064d7f Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Thu, 14 Nov 2024 18:42:58 +0100 Subject: [PATCH] Add interpolateSize Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/interpolate-size --- packages/eslint-plugin/src/stylex-valid-styles.js | 3 +++ packages/stylex/src/StyleXCSSTypes.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/eslint-plugin/src/stylex-valid-styles.js b/packages/eslint-plugin/src/stylex-valid-styles.js index 91d57d5c..a1bf0f71 100644 --- a/packages/eslint-plugin/src/stylex-valid-styles.js +++ b/packages/eslint-plugin/src/stylex-valid-styles.js @@ -880,6 +880,7 @@ const imeMode = makeUnionRule( const initialLetter = makeUnionRule(makeLiteralRule('normal'), isString); const initialLetterAlign = isString; const inlineSize = width; +const interpolateSize = makeUnionRule('allow-keywords', 'numeric-only'); const isolation = makeUnionRule( makeLiteralRule('auto'), makeLiteralRule('isolate'), @@ -1917,6 +1918,8 @@ const CSSProperties = { blockSize: blockSize, inlineSize: inlineSize, + interpolateSize: interpolateSize, + maxHeight: maxHeight, maxWidth: maxWidth, maxBlockSize: maxBlockSize, diff --git a/packages/stylex/src/StyleXCSSTypes.js b/packages/stylex/src/StyleXCSSTypes.js index 00425c4e..2efbe239 100644 --- a/packages/stylex/src/StyleXCSSTypes.js +++ b/packages/stylex/src/StyleXCSSTypes.js @@ -401,6 +401,7 @@ type imeMode = 'auto' | 'normal' | 'active' | 'inactive' | 'disabled'; type initialLetter = 'normal' | string; type initialLetterAlign = string; type inlineSize = width; +type interpolateSize = 'allow-keywords' | 'numeric-only'; type isolation = 'auto' | 'isolate'; type justifyContent = | 'center' @@ -1243,6 +1244,8 @@ export type CSSProperties = $ReadOnly<{ initialLetterAlign?: all | initialLetterAlign, inlineSize?: all | inlineSize, + interpolateSize: all | interpolateSize, + inset?: all | number | string, insetBlock?: all | number | string, insetBlockEnd?: all | number | string,