@stylexjs/shared 0.2.0-beta.20 → 0.2.0-beta.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/lib/convert-to-className.js +6 -6
  2. package/lib/generate-css-rule.js +3 -3
  3. package/lib/hash.js +10 -11
  4. package/lib/index.d.ts +4 -4
  5. package/lib/index.js +12 -21
  6. package/lib/index.js.flow +4 -4
  7. package/lib/messages.d.ts +2 -1
  8. package/lib/messages.js +29 -54
  9. package/lib/messages.js.flow +2 -1
  10. package/lib/physical-rtl/generate-ltr.js +39 -39
  11. package/lib/physical-rtl/generate-rtl.js +57 -57
  12. package/lib/preprocess-rules/PreRule.js +2 -2
  13. package/lib/preprocess-rules/application-order.d.ts +36 -8
  14. package/lib/preprocess-rules/application-order.js +149 -164
  15. package/lib/preprocess-rules/application-order.js.flow +35 -7
  16. package/lib/preprocess-rules/basic-validation.js +6 -6
  17. package/lib/preprocess-rules/flatten-raw-style-obj.js +10 -10
  18. package/lib/preprocess-rules/index.js +6 -6
  19. package/lib/preprocess-rules/legacy-expand-shorthands.d.ts +22 -2
  20. package/lib/preprocess-rules/legacy-expand-shorthands.js +81 -65
  21. package/lib/preprocess-rules/legacy-expand-shorthands.js.flow +22 -2
  22. package/lib/preprocess-rules/property-specificity.d.ts +29 -25
  23. package/lib/preprocess-rules/property-specificity.js +63 -75
  24. package/lib/preprocess-rules/property-specificity.js.flow +28 -24
  25. package/lib/properties/CSS Animations.json +445 -0
  26. package/lib/properties/CSS Backgrounds and Borders.json +1085 -0
  27. package/lib/properties/CSS Basic User Interface.json +365 -0
  28. package/lib/properties/CSS Box Alignment.json +245 -0
  29. package/lib/properties/CSS Box Model.json +501 -0
  30. package/lib/properties/CSS Color.json +100 -0
  31. package/lib/properties/CSS Columns.json +185 -0
  32. package/lib/properties/CSS Containment.json +203 -0
  33. package/lib/properties/CSS Counter Styles.json +56 -0
  34. package/lib/properties/CSS Display.json +20 -0
  35. package/lib/properties/CSS Flexible Box Layout.json +167 -0
  36. package/lib/properties/CSS Fonts.json +684 -0
  37. package/lib/properties/CSS Fragmentation.json +110 -0
  38. package/lib/properties/CSS Generated Content.json +38 -0
  39. package/lib/properties/CSS Grid Layout.json +500 -0
  40. package/lib/properties/CSS Images.json +91 -0
  41. package/lib/properties/CSS Inline.json +38 -0
  42. package/lib/properties/CSS Lists and Counters.json +86 -0
  43. package/lib/properties/CSS Logical Properties.json +1086 -0
  44. package/lib/properties/CSS Masking.json +399 -0
  45. package/lib/properties/CSS Miscellaneous.json +38 -0
  46. package/lib/properties/CSS Motion Path.json +132 -0
  47. package/lib/properties/CSS Overflow.json +216 -0
  48. package/lib/properties/CSS Pages.json +83 -0
  49. package/lib/properties/CSS Positioning.json +166 -0
  50. package/lib/properties/CSS Ruby.json +55 -0
  51. package/lib/properties/CSS Scroll Anchoring.json +19 -0
  52. package/lib/properties/CSS Scroll Snap.json +604 -0
  53. package/lib/properties/CSS Scrollbars.json +38 -0
  54. package/lib/properties/CSS Shapes.json +56 -0
  55. package/lib/properties/CSS Speech.json +20 -0
  56. package/lib/properties/CSS Table.json +115 -0
  57. package/lib/properties/CSS Text Decoration.json +312 -0
  58. package/lib/properties/CSS Text.json +415 -0
  59. package/lib/properties/CSS Transforms.json +188 -0
  60. package/lib/properties/CSS Transitions.json +122 -0
  61. package/lib/properties/CSS Variables.json +20 -0
  62. package/lib/properties/CSS View Transitions.json +20 -0
  63. package/lib/properties/CSS Will Change.json +20 -0
  64. package/lib/properties/CSS Writing Modes.json +92 -0
  65. package/lib/properties/Compositing and Blending.json +62 -0
  66. package/lib/properties/Filter Effects.json +38 -0
  67. package/lib/properties/MathML.json +56 -0
  68. package/lib/properties/Microsoft Extensions.json +885 -0
  69. package/lib/properties/Mozilla Extensions.json +607 -0
  70. package/lib/properties/Pointer Events.json +20 -0
  71. package/lib/properties/WebKit Extensions.json +707 -0
  72. package/lib/properties.json +10122 -0
  73. package/lib/{stylex-override-vars.d.ts → stylex-create-theme.d.ts} +2 -2
  74. package/lib/{stylex-override-vars.js → stylex-create-theme.js} +13 -13
  75. package/lib/{stylex-override-vars.js.flow → stylex-create-theme.js.flow} +1 -1
  76. package/lib/stylex-create.js +1 -1
  77. package/lib/{stylex-create-vars.d.ts → stylex-define-vars.d.ts} +4 -4
  78. package/lib/{stylex-create-vars.js → stylex-define-vars.js} +9 -9
  79. package/lib/{stylex-create-vars.js.flow → stylex-define-vars.js.flow} +4 -4
  80. package/lib/stylex-keyframes.js +6 -6
  81. package/lib/transform-value.js +13 -15
  82. package/lib/types/index.d.ts +1 -4
  83. package/lib/types/index.js +33 -46
  84. package/lib/types/index.js.flow +2 -2
  85. package/lib/utils/dashify.js +1 -1
  86. package/lib/utils/default-options.js +4 -5
  87. package/lib/utils/file-based-identifier.js +1 -1
  88. package/lib/utils/genCSSRule.js +6 -6
  89. package/lib/utils/normalize-value.js +3 -2
  90. package/lib/utils/normalizers/convert-camel-case-transition-props.d.ts +14 -0
  91. package/lib/utils/normalizers/convert-camel-case-transition-props.js +23 -0
  92. package/lib/utils/normalizers/convert-camel-case-transition-props.js.flow +13 -0
  93. package/lib/utils/normalizers/convert-camel-case-values.d.ts +14 -0
  94. package/lib/utils/normalizers/convert-camel-case-values.js +23 -0
  95. package/lib/utils/normalizers/convert-camel-case-values.js.flow +13 -0
  96. package/lib/utils/normalizers/detect-unclosed-fns.js +2 -2
  97. package/lib/utils/normalizers/font-size-px-to-rem.js +4 -4
  98. package/lib/utils/normalizers/leading-zero.js +3 -3
  99. package/lib/utils/normalizers/quotes.js +4 -4
  100. package/lib/utils/normalizers/timings.js +4 -4
  101. package/lib/utils/normalizers/whitespace.js +12 -12
  102. package/lib/utils/normalizers/zero-dimensions.js +8 -8
  103. package/lib/utils/object-utils.d.ts +3 -6
  104. package/lib/utils/object-utils.js +2 -2
  105. package/lib/utils/property-priorities.js +527 -88
  106. package/lib/utils/split-css-value.js +8 -8
  107. package/lib/validate.js +2 -2
  108. package/package.json +2 -2
@@ -8,163 +8,140 @@ var _splitCssValue = _interopRequireDefault(require("../utils/split-css-value"))
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  const shorthands = {
10
10
  all: _ => {
11
- throw new Error("all is not supported");
11
+ throw new Error('all is not supported');
12
12
  },
13
- animation: value => [["animation", value], ["animationName", null], ["animationDuration", null], ["animationTimingFunction", null], ["animationDelay", null], ["animationIterationCount", null], ["animationDirection", null], ["animationFillMode", null], ["animationPlayState", null]],
14
- background: value => [["background", value], ["backgroundAttachment", null], ["backgroundClip", null], ["backgroundColor", null], ["backgroundImage", null], ["backgroundOrigin", null], ["backgroundPosition", null], ["backgroundRepeat", null], ["backgroundSize", null]],
15
- border: rawValue => {
16
- if (typeof rawValue === "number") {
17
- return shorthands.borderWidth(rawValue);
18
- }
19
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
20
- return [...shorthands.borderWidth(width), ...shorthands.borderStyle(style), ...shorthands.borderColor(color)];
13
+ animation: value => [['animation', value], ['animationComposition', null], ['animationName', null], ['animationDuration', null], ['animationTimingFunction', null], ['animationDelay', null], ['animationIterationCount', null], ['animationDirection', null], ['animationFillMode', null], ['animationPlayState', null], ...shorthands.animationRange(null), ['animationTimeline', null]],
14
+ animationRange: value => [['animationRange', value], ['animationRangeEnd', null], ['animationRangeStart', null]],
15
+ background: value => [['background', value], ['backgroundAttachment', null], ['backgroundClip', null], ['backgroundColor', null], ['backgroundImage', null], ['backgroundOrigin', null], ...shorthands.backgroundPosition(null), ['backgroundRepeat', null], ['backgroundSize', null]],
16
+ backgroundPosition: value => [['backgroundPosition', value], ['backgroundPositionX', null], ['backgroundPositionY', null]],
17
+ border: _rawValue => {
18
+ throw new Error('`border` shorthand is not supported. Use `borderWidth`, `borderStyle` and `borderColor` instead.');
21
19
  },
22
- borderInline: rawValue => {
23
- if (typeof rawValue === "number") {
24
- return [["borderInlineWidth", rawValue], ["borderInlineStartWidth", null], ["borderInlineEndWidth", null]];
25
- }
26
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
27
- return [...shorthands.borderInlineWidth(width), ...shorthands.borderInlineStyle(style), ...shorthands.borderInlineColor(color)];
20
+ borderInline: _rawValue => {
21
+ throw new Error('`borderInline` shorthand is not supported. Use `borderInlineWidth`, `borderInlineStyle` and `borderInlineColor` instead.');
28
22
  },
29
- borderBlock: rawValue => {
30
- if (typeof rawValue === "number") {
31
- return [["borderBlockWidth", rawValue], ["borderTopWidth", null], ["borderBottomWidth", null]];
32
- }
33
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
34
- return [...shorthands.borderBlockWidth(width), ...shorthands.borderBlockStyle(style), ...shorthands.borderBlockColor(color)];
23
+ borderBlock: _rawValue => {
24
+ throw new Error('`borderBlock` shorthand is not supported. Use `borderBlockWidth`, `borderBlockStyle` and `borderBlockColor` instead.');
35
25
  },
36
- borderTop: rawValue => {
37
- if (typeof rawValue === "number") {
38
- return [["borderTopWidth", rawValue]];
39
- }
40
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
41
- return [["borderTopWidth", width], ["borderTopStyle", style], ["borderTopColor", color]];
26
+ borderTop: _rawValue => {
27
+ throw new Error(['`borderTop` is not supported.', 'Use `borderTopWidth`, `borderTopStyle` and `borderTopColor`,'].join(' '));
42
28
  },
43
- borderInlineEnd: rawValue => {
44
- if (typeof rawValue === "number") {
45
- return [["borderInlineEndWidth", rawValue]];
46
- }
47
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
48
- return [["borderInlineEndWidth", width], ["borderInlineEndStyle", style], ["borderInlineEndColor", color]];
29
+ borderInlineEnd: _rawValue => {
30
+ throw new Error('`borderInlineEnd` shorthand is not supported. Use `borderInlineEndWidth`, `borderInlineEndStyle` and `borderInlineEndColor` instead.');
49
31
  },
50
32
  borderRight: _rawValue => {
51
- throw new Error(["`borderRight` is not supported.", "You could use `borderRightWidth`, `borderRightStyle` and `borderRightColor`,", "but it is preferable to use `borderInlineEndWidth`, `borderInlineEndStyle` and `borderInlineEndColor`."].join(" "));
33
+ throw new Error('`borderRight` shorthand is not supported. Use `borderRightWidth`, `borderRightStyle` and `borderRightColor` instead.');
52
34
  },
53
- borderBottom: rawValue => {
54
- if (typeof rawValue === "number") {
55
- return [["borderBottomWidth", rawValue]];
56
- }
57
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
58
- return [["borderBottomWidth", width], ["borderBottomStyle", style], ["borderBottomColor", color]];
35
+ borderBottom: _rawValue => {
36
+ throw new Error('`borderBottom` shorthand is not supported. Use `borderBottomWidth`, `borderBottomStyle` and `borderBottomColor` instead.');
59
37
  },
60
- borderInlineStart: rawValue => {
61
- if (typeof rawValue === "number") {
62
- return [["borderInlineStartWidth", rawValue]];
63
- }
64
- const [width, style, color] = (0, _splitCssValue.default)(rawValue);
65
- return [["borderInlineStartWidth", width], ["borderInlineStartStyle", style], ["borderInlineStartColor", color]];
38
+ borderInlineStart: _rawValue => {
39
+ throw new Error('`borderInlineStart` shorthand is not supported. Use `borderInlineStartWidth`, `borderInlineStartStyle` and `borderInlineStartColor` instead.');
66
40
  },
67
41
  borderLeft: _rawValue => {
68
- throw new Error(["`borderLeft` is not supported.", "You could use `borderLeftWidth`, `borderLeftStyle` and `borderLeftColor`,", "but it is preferable to use `borderInlineStartWidth`, `borderInlineStartStyle` and `borderInlineStartColor`."].join(" "));
69
- },
70
- borderInlineWidth: rawValue => [["borderInlineWidth", rawValue], ["borderInlineStartWidth", null], ["borderLeftWidth", null], ["borderInlineEndWidth", null], ["borderRightWidth", null]],
71
- borderInlineStyle: rawValue => [["borderInlineStyle", rawValue], ["borderInlineStartStyle", null], ["borderLeftStyle", null], ["borderInlineEndStyle", null], ["borderRightStyle", null]],
72
- borderInlineColor: rawValue => [["borderInlineColor", rawValue], ["borderInlineStartColor", null], ["borderLeftColor", null], ["borderInlineEndColor", null], ["borderRightColor", null]],
73
- borderBlockWidth: rawValue => [["borderBlockWidth", rawValue], ["borderTopWidth", null], ["borderBottomWidth", null]],
74
- borderBlockStyle: rawValue => [["borderBlockStyle", rawValue], ["borderTopStyle", null], ["borderBottomStyle", null]],
75
- borderBlockColor: rawValue => [["borderBlockColor", rawValue], ["borderTopColor", null], ["borderBottomColor", null]],
76
- borderColor: value => [["borderColor", value], ["borderTopColor", null], ["borderInlineEndColor", null], ["borderRightColor", null], ["borderBottomColor", null], ["borderInlineStartColor", null], ["borderLeftColor", null]],
77
- borderStyle: value => [["borderStyle", value], ["borderTopStyle", null], ["borderInlineEndStyle", null], ["borderRightStyle", null], ["borderBottomStyle", null], ["borderInlineStartStyle", null], ["borderLeftStyle", null]],
78
- borderWidth: value => [["borderWidth", value], ["borderTopWidth", null], ["borderInlineEndWidth", null], ["borderRightWidth", null], ["borderBottomWidth", null], ["borderInlineStartWidth", null], ["borderLeftWidth", null]],
79
- borderInlineStartColor: value => [["borderInlineStartColor", value], ["borderLeftColor", null], ["borderRightColor", null]],
80
- borderInlineEndColor: value => [["borderInlineEndColor", value], ["borderLeftColor", null], ["borderRightColor", null]],
81
- borderInlineStartStyle: value => [["borderInlineStartStyle", value], ["borderLeftStyle", null], ["borderRightStyle", null]],
82
- borderInlineEndStyle: value => [["borderInlineEndStyle", value], ["borderLeftStyle", null], ["borderRightStyle", null]],
83
- borderInlineStartWidth: value => [["borderInlineStartWidth", value], ["borderLeftWidth", null], ["borderRightWidth", null]],
84
- borderInlineEndWidth: value => [["borderInlineEndWidth", value], ["borderLeftWidth", null], ["borderRightWidth", null]],
85
- borderLeftColor: value => [["borderLeftColor", value], ["borderInlineStartColor", null], ["borderInlineEndColor", null]],
86
- borderRightColor: value => [["borderRightColor", value], ["borderInlineStartColor", null], ["borderInlineEndColor", null]],
87
- borderLeftStyle: value => [["borderLeftStyle", value], ["borderInlineStartStyle", null], ["borderInlineEndStyle", null]],
88
- borderRightStyle: value => [["borderRightStyle", value], ["borderInlineStartStyle", null], ["borderInlineEndStyle", null]],
89
- borderLeftWidth: value => [["borderLeftWidth", value], ["borderInlineStartWidth", null], ["borderInlineEndWidth", null]],
90
- borderRightWidth: value => [["borderRightWidth", value], ["borderInlineStartWidth", null], ["borderInlineEndWidth", null]],
91
- borderRadius: value => {
92
- const values = typeof value === "number" ? [value] : (0, _splitCssValue.default)(value);
93
- if (values.length === 1) {
94
- return [["borderRadius", value], ["borderStartStartRadius", null], ["borderStartEndRadius", null], ["borderEndStartRadius", null], ["borderEndEndRadius", null], ["borderTopLeftRadius", null], ["borderTopRightRadius", null], ["borderBottomLeftRadius", null], ["borderBottomRightRadius", null]];
95
- }
96
- const [startStart, startEnd = startStart, endEnd = startStart, endStart = startEnd] = values;
97
- return [["borderStartStartRadius", startStart], ["borderStartEndRadius", startEnd], ["borderEndEndRadius", endEnd], ["borderEndStartRadius", endStart], ["borderTopLeftRadius", null], ["borderTopRightRadius", null], ["borderBottomLeftRadius", null], ["borderBottomRightRadius", null]];
98
- },
99
- borderStartStartRadius: value => [["borderStartStartRadius", value], ["borderTopLeftRadius", null], ["borderTopRightRadius", null]],
100
- borderStartEndRadius: value => [["borderStartEndRadius", value], ["borderTopLeftRadius", null], ["borderTopRightRadius", null]],
101
- borderEndStartRadius: value => [["borderEndStartRadius", value], ["borderBottomLeftRadius", null], ["borderBottomRightRadius", null]],
102
- borderEndEndRadius: value => [["borderEndEndRadius", value], ["borderBottomLeftRadius", null], ["borderBottomRightRadius", null]],
103
- borderTopLeftRadius: value => [["borderTopLeftRadius", value], ["borderStartStartRadius", null], ["borderStartEndRadius", null]],
104
- borderTopRightRadius: value => [["borderTopRightRadius", value], ["borderStartStartRadius", null], ["borderStartEndRadius", null]],
105
- borderBottomLeftRadius: value => [["borderBottomLeftRadius", value], ["borderEndStartRadius", null], ["borderEndEndRadius", null]],
106
- borderBottomRightRadius: value => [["borderBottomRightRadius", value], ["borderEndStartRadius", null], ["borderEndEndRadius", null]],
107
- columnRule: value => [["columnRule", value], ["columnRuleWidth", null], ["columnRuleStyle", null], ["columnRuleColor", null]],
108
- columns: value => [["columns", value], ["columnCount", null], ["columnWidth", null]],
109
- container: value => [["container", value], ["containerName", null], ["containerType", null]],
110
- flex: value => [["flex", value], ["flexGrow", null], ["flexShrink", null], ["flexBasis", null]],
111
- flexFlow: value => [["flexFlow", value], ["flexDirection", null], ["flexWrap", null]],
112
- font: value => [["font", value], ["fontFamily", null], ["fontSize", null], ["fontStretch", null], ["fontStyle", null], ["fontVariant", null], ["fontWeight", null], ["lineHeight", null]],
113
- gap: value => [["gap", value], ["rowGap", null], ["columnGap", null]],
114
- grid: value => [["grid", value], ["gridTemplate", null], ["gridTemplateAreas", null], ["gridTemplateColumns", null], ["gridTemplateRows", null], ["gridAutoRows", null], ["gridAutoColumns", null], ["gridAutoFlow", null]],
115
- gridArea: value => [["gridArea", value], ["gridRow", null], ["gridRowStart", null], ["gridRowEnd", null], ["gridColumn", null], ["gridColumnStart", null], ["gridColumnEnd", null]],
116
- gridRow: value => [["gridRow", value], ["gridRowStart", null], ["gridRowEnd", null]],
117
- gridColumn: value => [["gridColumn", value], ["gridColumnStart", null], ["gridColumnEnd", null]],
118
- gridTemplate: value => [["gridTemplate", value], ["gridTemplateAreas", null], ["gridTemplateColumns", null], ["gridTemplateRows", null]],
119
- inset: value => [["inset", value], ["insetInline", null], ["insetBlock", null], ["insetInlineStart", null], ["insetInlineEnd", null], ["top", null], ["right", null], ["bottom", null], ["left", null]],
120
- insetInline: value => [["insetInline", value], ["insetInlineStart", null], ["insetInlineEnd", null], ["left", null], ["right", null]],
121
- insetBlock: value => [["insetBlock", value], ["top", null], ["bottom", null]],
122
- insetInlineStart: value => [["insetInlineStart", value], ["left", null], ["right", null]],
123
- insetInlineEnd: value => [["insetInlineEnd", value], ["left", null], ["right", null]],
124
- left: value => [["left", value], ["insetInlineStart", null], ["insetInlineEnd", null]],
125
- right: value => [["right", value], ["insetInlineStart", null], ["insetInlineEnd", null]],
126
- listStyle: value => [["listStyle", value], ["listStyleImage", null], ["listStylePosition", null], ["listStyleType", null]],
127
- margin: value => {
128
- const values = typeof value === "number" ? [value] : (0, _splitCssValue.default)(value);
129
- if (values.length === 1) {
130
- return [["margin", values[0]], ["marginInlineStart", null], ["marginLeft", null], ["marginInlineEnd", null], ["marginRight", null], ["marginTop", null], ["marginBottom", null]];
131
- }
132
- const [top, right = top, bottom = top, left = right] = values;
133
- return [["marginTop", top], ["marginInlineEnd", right], ["marginBottom", bottom], ["marginInlineStart", left], ["marginLeft", null], ["marginRight", null]];
42
+ throw new Error(['`borderLeft` is not supported.', 'You could use `borderLeftWidth`, `borderLeftStyle` and `borderLeftColor`,', 'but it is preferable to use `borderInlineStartWidth`, `borderInlineStartStyle` and `borderInlineStartColor`.'].join(' '));
134
43
  },
135
- marginInline: value => [["marginInline", value], ["marginInlineStart", null], ["marginLeft", null], ["marginInlineEnd", null], ["marginRight", null]],
136
- marginBlock: value => [["marginBlock", value], ["marginTop", null], ["marginBottom", null]],
137
- marginInlineStart: value => [["marginInlineStart", value], ["marginLeft", null], ["marginRight", null]],
138
- marginInlineEnd: value => [["marginInlineEnd", value], ["marginLeft", null], ["marginRight", null]],
139
- marginLeft: value => [["marginLeft", value], ["marginInlineStart", null], ["marginInlineEnd", null]],
140
- marginRight: value => [["marginRight", value], ["marginInlineStart", null], ["marginInlineEnd", null]],
141
- mask: value => [["mask", value], ["maskClip", null], ["maskComposite", null], ["maskImage", null], ["maskMode", null], ["maskOrigin", null], ["maskPosition", null], ["maskRepeat", null], ["maskSize", null]],
142
- offset: value => [["offset", value], ["offsetAnchor", null], ["offsetDistance", null], ["offsetPath", null], ["offsetPosition", null], ["offsetRotate", null]],
143
- outline: value => [["outline", value], ["outlineColor", null], ["outlineStyle", null], ["outlineWidth", null]],
144
- overflow: value => [["overflow", value], ["overflowX", null], ["overflowY", null]],
44
+ borderInlineWidth: rawValue => [['borderInlineWidth', rawValue], ['borderInlineStartWidth', null], ['borderLeftWidth', null], ['borderInlineEndWidth', null], ['borderRightWidth', null]],
45
+ borderInlineStyle: rawValue => [['borderInlineStyle', rawValue], ['borderInlineStartStyle', null], ['borderLeftStyle', null], ['borderInlineEndStyle', null], ['borderRightStyle', null]],
46
+ borderInlineColor: rawValue => [['borderInlineColor', rawValue], ['borderInlineStartColor', null], ['borderLeftColor', null], ['borderInlineEndColor', null], ['borderRightColor', null]],
47
+ borderBlockWidth: rawValue => [['borderBlockWidth', rawValue], ['borderTopWidth', null], ['borderBottomWidth', null]],
48
+ borderBlockStyle: rawValue => [['borderBlockStyle', rawValue], ['borderTopStyle', null], ['borderBottomStyle', null]],
49
+ borderBlockColor: rawValue => [['borderBlockColor', rawValue], ['borderTopColor', null], ['borderBottomColor', null]],
50
+ borderColor: value => [['borderColor', value], ...shorthands.borderInlineColor(null), ...shorthands.borderBlockColor(null)],
51
+ borderStyle: value => [['borderStyle', value], ...shorthands.borderInlineStyle(null), ...shorthands.borderBlockStyle(null)],
52
+ borderWidth: value => [['borderWidth', value], ...shorthands.borderInlineWidth(null), ...shorthands.borderBlockWidth(null)],
53
+ borderInlineStartColor: value => [['borderInlineStartColor', value], ['borderLeftColor', null], ['borderRightColor', null]],
54
+ borderInlineEndColor: value => [['borderInlineEndColor', value], ['borderLeftColor', null], ['borderRightColor', null]],
55
+ borderInlineStartStyle: value => [['borderInlineStartStyle', value], ['borderLeftStyle', null], ['borderRightStyle', null]],
56
+ borderInlineEndStyle: value => [['borderInlineEndStyle', value], ['borderLeftStyle', null], ['borderRightStyle', null]],
57
+ borderInlineStartWidth: value => [['borderInlineStartWidth', value], ['borderLeftWidth', null], ['borderRightWidth', null]],
58
+ borderInlineEndWidth: value => [['borderInlineEndWidth', value], ['borderLeftWidth', null], ['borderRightWidth', null]],
59
+ borderLeftColor: value => [['borderLeftColor', value], ['borderInlineStartColor', null], ['borderInlineEndColor', null]],
60
+ borderRightColor: value => [['borderRightColor', value], ['borderInlineStartColor', null], ['borderInlineEndColor', null]],
61
+ borderLeftStyle: value => [['borderLeftStyle', value], ['borderInlineStartStyle', null], ['borderInlineEndStyle', null]],
62
+ borderRightStyle: value => [['borderRightStyle', value], ['borderInlineStartStyle', null], ['borderInlineEndStyle', null]],
63
+ borderLeftWidth: value => [['borderLeftWidth', value], ['borderInlineStartWidth', null], ['borderInlineEndWidth', null]],
64
+ borderRightWidth: value => [['borderRightWidth', value], ['borderInlineStartWidth', null], ['borderInlineEndWidth', null]],
65
+ borderRadius: value => [['borderRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null], ['borderEndStartRadius', null], ['borderEndEndRadius', null], ['borderTopLeftRadius', null], ['borderTopRightRadius', null], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
66
+ borderStartStartRadius: value => [['borderStartStartRadius', value], ['borderTopLeftRadius', null], ['borderTopRightRadius', null]],
67
+ borderStartEndRadius: value => [['borderStartEndRadius', value], ['borderTopLeftRadius', null], ['borderTopRightRadius', null]],
68
+ borderEndStartRadius: value => [['borderEndStartRadius', value], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
69
+ borderEndEndRadius: value => [['borderEndEndRadius', value], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
70
+ borderTopLeftRadius: value => [['borderTopLeftRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null]],
71
+ borderTopRightRadius: value => [['borderTopRightRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null]],
72
+ borderBottomLeftRadius: value => [['borderBottomLeftRadius', value], ['borderEndStartRadius', null], ['borderEndEndRadius', null]],
73
+ borderBottomRightRadius: value => [['borderBottomRightRadius', value], ['borderEndStartRadius', null], ['borderEndEndRadius', null]],
74
+ borderImage: value => [['borderImage', value], ['borderImageOutset', null], ['borderImageRepeat', null], ['borderImageSlice', null], ['borderImageSource', null], ['borderImageWidth', null]],
75
+ columnRule: value => [['columnRule', value], ['columnRuleColor', null], ['columnRuleStyle', null], ['columnRuleWidth', null]],
76
+ columns: value => [['columns', value], ['columnCount', null], ['columnWidth', null]],
77
+ container: value => [['container', value], ['containerName', null], ['containerType', null]],
78
+ containIntrinsicSize: value => [['containIntrinsicSize', value], ['containIntrinsicWidth', null], ['containIntrinsicHeight', null]],
79
+ flex: value => [['flex', value], ['flexGrow', null], ['flexShrink', null], ['flexBasis', null]],
80
+ flexFlow: value => [['flexFlow', value], ['flexDirection', null], ['flexWrap', null]],
81
+ font: value => [['font', value], ['fontFamily', null], ['fontSize', null], ['fontStretch', null], ['fontStyle', null], ...shorthands.fontVariant(null), ['fontWeight', null], ['lineHeight', null]],
82
+ fontVariant: value => [['fontVariant', value], ['fontVariantAlternates', null], ['fontVariantCaps', null], ['fontVariantEastAsian', null], ['fontVariantEmoji', null], ['fontVariantLigatures', null], ['fontVariantNumeric', null], ['fontVariantPosition', null]],
83
+ gap: value => [['gap', value], ['rowGap', null], ['columnGap', null]],
84
+ grid: value => [['grid', value], ...shorthands.gridTemplate(null), ['gridAutoRows', null], ['gridAutoColumns', null], ['gridAutoFlow', null]],
85
+ gridArea: value => [['gridArea', value], ['gridRow', null], ['gridRowStart', null], ['gridRowEnd', null], ['gridColumn', null], ['gridColumnStart', null], ['gridColumnEnd', null]],
86
+ gridRow: value => [['gridRow', value], ['gridRowStart', null], ['gridRowEnd', null]],
87
+ gridColumn: value => [['gridColumn', value], ['gridColumnStart', null], ['gridColumnEnd', null]],
88
+ gridTemplate: value => [['gridTemplate', value], ['gridTemplateAreas', null], ['gridTemplateColumns', null], ['gridTemplateRows', null]],
89
+ inset: value => [['inset', value], ...shorthands.insetInline(null), ...shorthands.insetBlock(null)],
90
+ insetInline: value => [['insetInline', value], ['insetInlineStart', null], ['insetInlineEnd', null], ['left', null], ['right', null]],
91
+ insetBlock: value => [['insetBlock', value], ['top', null], ['bottom', null]],
92
+ insetInlineStart: value => [['insetInlineStart', value], ['left', null], ['right', null]],
93
+ insetInlineEnd: value => [['insetInlineEnd', value], ['left', null], ['right', null]],
94
+ left: value => [['left', value], ['insetInlineStart', null], ['insetInlineEnd', null]],
95
+ right: value => [['right', value], ['insetInlineStart', null], ['insetInlineEnd', null]],
96
+ listStyle: value => [['listStyle', value], ['listStyleImage', null], ['listStylePosition', null], ['listStyleType', null]],
97
+ margin: value => [['margin', value], ...shorthands.marginInline(null), ...shorthands.marginBlock(null)],
98
+ marginInline: value => [['marginInline', value], ['marginInlineStart', null], ['marginLeft', null], ['marginInlineEnd', null], ['marginRight', null]],
99
+ marginBlock: value => [['marginBlock', value], ['marginTop', null], ['marginBottom', null]],
100
+ marginInlineStart: value => [['marginInlineStart', value], ['marginLeft', null], ['marginRight', null]],
101
+ marginInlineEnd: value => [['marginInlineEnd', value], ['marginLeft', null], ['marginRight', null]],
102
+ marginLeft: value => [['marginLeft', value], ['marginInlineStart', null], ['marginInlineEnd', null]],
103
+ marginRight: value => [['marginRight', value], ['marginInlineStart', null], ['marginInlineEnd', null]],
104
+ mask: value => [['mask', value], ['maskClip', null], ['maskComposite', null], ['maskImage', null], ['maskMode', null], ['maskOrigin', null], ['maskPosition', null], ['maskRepeat', null], ['maskSize', null]],
105
+ maskBorder: value => [['maskBorder', value], ['maskBorderMode', null], ['maskBorderOutset', null], ['maskBorderRepeat', null], ['maskBorderSlice', null], ['maskBorderSource', null], ['maskBorderWidth', null]],
106
+ offset: value => [['offset', value], ['offsetAnchor', null], ['offsetDistance', null], ['offsetPath', null], ['offsetPosition', null], ['offsetRotate', null]],
107
+ outline: value => [['outline', value], ['outlineColor', null], ['outlineOffset', null], ['outlineStyle', null], ['outlineWidth', null]],
108
+ overflow: value => [['overflow', value], ['overflowX', null], ['overflowY', null]],
145
109
  padding: rawValue => {
146
- const values = typeof rawValue === "number" ? [rawValue] : (0, _splitCssValue.default)(rawValue);
110
+ const values = typeof rawValue === 'number' ? [rawValue] : (0, _splitCssValue.default)(rawValue);
147
111
  if (values.length === 1) {
148
- return [["padding", values[0]], ["paddingStart", null], ["paddingLeft", null], ["paddingEnd", null], ["paddingRight", null], ["paddingTop", null], ["paddingBottom", null]];
112
+ return [['padding', values[0]], ['paddingStart', null], ['paddingLeft', null], ['paddingEnd', null], ['paddingRight', null], ['paddingTop', null], ['paddingBottom', null]];
149
113
  }
150
114
  const [top, right = top, bottom = top, left = right] = values;
151
- return [["paddingTop", top], ["paddingEnd", right], ["paddingBottom", bottom], ["paddingStart", left]];
115
+ return [['paddingTop', top], ['paddingEnd', right], ['paddingBottom', bottom], ['paddingStart', left]];
152
116
  },
153
- paddingInline: rawValue => [["paddingInline", rawValue], ["paddingStart", null], ["paddingLeft", null], ["paddingEnd", null], ["paddingRight", null]],
154
- paddingBlock: rawValue => [["paddingBlock", rawValue], ["paddingTop", null], ["paddingBottom", null]],
155
- paddingInlineStart: value => [["paddingInlineStart", value], ["paddingLeft", null], ["paddingRight", null]],
156
- paddingInlineEnd: value => [["paddingInlineEnd", value], ["paddingLeft", null], ["paddingRight", null]],
157
- paddingLeft: value => [["paddingLeft", value], ["paddingInlineStart", null], ["paddingInlineEnd", null]],
158
- paddingRight: value => [["paddingRight", value], ["paddingInlineStart", null], ["paddingInlineEnd", null]],
159
- placeContent: value => [["placeContent", value], ["alignContent", null], ["justifyContent", null]],
160
- placeItems: value => [["placeItems", value], ["alignItems", null], ["justifyItems", null]],
161
- placeSelf: value => [["placeSelf", value], ["alignSelf", null], ["justifySelf", null]],
162
- scrollMargin: value => [["scrollMargin", value], ["scrollMarginBottom", null], ["scrollMarginLeft", null], ["scrollMarginStart", null], ["scrollMarginRight", null], ["scrollMarginEnd", null], ["scrollMarginTop", null]],
163
- scrollPadding: value => [["scrollPadding", value], ["scrollPaddingBottom", null], ["scrollPaddingLeft", null], ["scrollPaddingStart", null], ["scrollPaddingRight", null], ["scrollPaddingEnd", null], ["scrollPaddingTop", null]],
164
- scrollTimeline: value => [["scrollTimeline", value], ["scrollTimelineName", null], ["scrollTimelineAxis", null]],
165
- textDecoration: value => [["textDecoration", value], ["textDecorationColor", null], ["textDecorationLine", null], ["textDecorationStyle", null], ["textDecorationThickness", null]],
166
- textEmphasis: value => [["textEmphasis", value], ["textEmphasisColor", null], ["textEmphasisStyle", null]],
167
- transition: value => [["transition", value], ["transitionDelay", null], ["transitionDuration", null], ["transitionProperty", null], ["transitionTimingFunction", null]]
117
+ paddingInline: rawValue => [['paddingInline', rawValue], ['paddingStart', null], ['paddingLeft', null], ['paddingEnd', null], ['paddingRight', null]],
118
+ paddingBlock: rawValue => [['paddingBlock', rawValue], ['paddingTop', null], ['paddingBottom', null]],
119
+ paddingInlineStart: value => [['paddingInlineStart', value], ['paddingLeft', null], ['paddingRight', null]],
120
+ paddingInlineEnd: value => [['paddingInlineEnd', value], ['paddingLeft', null], ['paddingRight', null]],
121
+ paddingLeft: value => [['paddingLeft', value], ['paddingInlineStart', null], ['paddingInlineEnd', null]],
122
+ paddingRight: value => [['paddingRight', value], ['paddingInlineStart', null], ['paddingInlineEnd', null]],
123
+ placeContent: value => [['placeContent', value], ['alignContent', null], ['justifyContent', null]],
124
+ placeItems: value => [['placeItems', value], ['alignItems', null], ['justifyItems', null]],
125
+ placeSelf: value => [['placeSelf', value], ['alignSelf', null], ['justifySelf', null]],
126
+ scrollMargin: value => [['scrollMargin', value], ...shorthands.scrollMarginBlock(null), ...shorthands.scrollMarginInline(null)],
127
+ scrollMarginBlock: value => [['scrollMarginBlock', value], ['scrollMarginTop', null], ['scrollMarginBottom', null]],
128
+ scrollMarginInline: value => [['scrollMarginInline', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
129
+ scrollMarginInlineStart: value => [['scrollMarginInlineStart', value], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
130
+ scrollMarginInlineEnd: value => [['scrollMarginInlineEnd', value], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
131
+ scrollMarginLeft: value => [['scrollMarginLeft', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null]],
132
+ scrollMarginRight: value => [['scrollMarginRight', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null]],
133
+ scrollPadding: value => [['scrollPadding', value], ...shorthands.scrollPaddingBlock(null), ...shorthands.scrollPaddingInline(null)],
134
+ scrollPaddingBlock: value => [['scrollPaddingBlock', value], ['scrollPaddingTop', null], ['scrollPaddingBottom', null]],
135
+ scrollPaddingInline: value => [['scrollPaddingInline', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
136
+ scrollPaddingInlineStart: value => [['scrollPaddingInlineStart', value], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
137
+ scrollPaddingInlineEnd: value => [['scrollPaddingInlineEnd', value], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
138
+ scrollPaddingLeft: value => [['scrollPaddingLeft', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null]],
139
+ scrollPaddingRight: value => [['scrollPaddingRight', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null]],
140
+ scrollSnapType: value => [['scrollSnapType', value], ['scrollSnapTypeX', null], ['scrollSnapTypeY', null]],
141
+ scrollTimeline: value => [['scrollTimeline', value], ['scrollTimelineName', null], ['scrollTimelineAxis', null]],
142
+ textDecoration: value => [['textDecoration', value], ['textDecorationColor', null], ['textDecorationLine', null], ['textDecorationStyle', null], ['textDecorationThickness', null]],
143
+ textEmphasis: value => [['textEmphasis', value], ['textEmphasisColor', null], ['textEmphasisStyle', null]],
144
+ transition: value => [['transition', value], ['transitionBehavior', null], ['transitionDelay', null], ['transitionDuration', null], ['transitionProperty', null], ['transitionTimingFunction', null]]
168
145
  };
169
146
  const aliases = {
170
147
  borderHorizontal: shorthands.borderInline,
@@ -173,48 +150,57 @@ const aliases = {
173
150
  borderEnd: shorthands.borderInlineEnd,
174
151
  borderBlockEnd: shorthands.borderBottom,
175
152
  borderStart: shorthands.borderInlineStart,
176
- blockSize: val => [["height", val]],
177
- inlineSize: val => [["width", val]],
178
- minBlockSize: val => [["minHeight", val]],
179
- minInlineSize: val => [["minWidth", val]],
180
- maxBlockSize: val => [["maxHeight", val]],
181
- maxInlineSize: val => [["maxWidth", val]],
153
+ blockSize: val => [['height', val]],
154
+ inlineSize: val => [['width', val]],
155
+ minBlockSize: val => [['minHeight', val]],
156
+ minInlineSize: val => [['minWidth', val]],
157
+ maxBlockSize: val => [['maxHeight', val]],
158
+ maxInlineSize: val => [['maxWidth', val]],
182
159
  borderHorizontalWidth: shorthands.borderInlineWidth,
183
160
  borderHorizontalStyle: shorthands.borderInlineStyle,
184
161
  borderHorizontalColor: shorthands.borderInlineColor,
185
162
  borderVerticalWidth: shorthands.borderBlockWidth,
186
163
  borderVerticalStyle: shorthands.borderBlockStyle,
187
164
  borderVerticalColor: shorthands.borderBlockColor,
188
- borderBlockStartColor: value => [["borderTopColor", value]],
189
- borderBlockEndColor: value => [["borderBottomColor", value]],
190
- borderBlockStartStyle: value => [["borderTopStyle", value]],
191
- borderBlockEndStyle: value => [["borderBottomStyle", value]],
192
- borderBlockStartWidth: value => [["borderTopWidth", value]],
193
- borderBlockEndWidth: value => [["borderBottomWidth", value]],
165
+ borderBlockStartColor: value => [['borderTopColor', value]],
166
+ borderBlockEndColor: value => [['borderBottomColor', value]],
167
+ borderBlockStartStyle: value => [['borderTopStyle', value]],
168
+ borderBlockEndStyle: value => [['borderBottomStyle', value]],
169
+ borderBlockStartWidth: value => [['borderTopWidth', value]],
170
+ borderBlockEndWidth: value => [['borderBottomWidth', value]],
194
171
  borderStartColor: shorthands.borderInlineStartColor,
195
172
  borderEndColor: shorthands.borderInlineEndColor,
196
173
  borderStartStyle: shorthands.borderInlineStartStyle,
197
174
  borderEndStyle: shorthands.borderInlineEndStyle,
198
175
  borderStartWidth: shorthands.borderInlineStartWidth,
199
176
  borderEndWidth: shorthands.borderInlineEndWidth,
200
- borderTopStartRadius: value => [["borderStartStartRadius", value]],
201
- borderTopEndRadius: value => [["borderStartEndRadius", value]],
202
- borderBottomStartRadius: value => [["borderEndStartRadius", value]],
203
- borderBottomEndRadius: value => [["borderEndEndRadius", value]],
204
- marginBlockStart: value => [["marginTop", value]],
205
- marginBlockEnd: value => [["marginBottom", value]],
177
+ borderTopStartRadius: value => [['borderStartStartRadius', value]],
178
+ borderTopEndRadius: value => [['borderStartEndRadius', value]],
179
+ borderBottomStartRadius: value => [['borderEndStartRadius', value]],
180
+ borderBottomEndRadius: value => [['borderEndEndRadius', value]],
181
+ containIntrinsicBlockSize: value => [['containIntrinsicHeight', value]],
182
+ containIntrinsicInlineSize: value => [['containIntrinsicWidth', value]],
183
+ gridGap: shorthands.gap,
184
+ gridRowGap: value => [['rowGap', value]],
185
+ gridColumnGap: value => [['columnGap', value]],
186
+ marginBlockStart: value => [['marginTop', value]],
187
+ marginBlockEnd: value => [['marginBottom', value]],
206
188
  marginStart: shorthands.marginInlineStart,
207
189
  marginEnd: shorthands.marginInlineEnd,
208
190
  marginHorizontal: shorthands.marginInline,
209
191
  marginVertical: shorthands.marginBlock,
210
- paddingBlockStart: rawValue => [["paddingTop", rawValue]],
211
- paddingBlockEnd: rawValue => [["paddingBottom", rawValue]],
192
+ overflowBlock: value => [['overflowY', value]],
193
+ overflowInline: value => [['overflowX', value]],
194
+ paddingBlockStart: rawValue => [['paddingTop', rawValue]],
195
+ paddingBlockEnd: rawValue => [['paddingBottom', rawValue]],
212
196
  paddingStart: shorthands.paddingInlineStart,
213
197
  paddingEnd: shorthands.paddingInlineEnd,
214
198
  paddingHorizontal: shorthands.paddingInline,
215
199
  paddingVertical: shorthands.paddingBlock,
216
- insetBlockStart: value => [["top", value]],
217
- insetBlockEnd: value => [["bottom", value]],
200
+ scrollMarginBlockStart: value => [['scrollMarginTop', value]],
201
+ scrollMarginBlockEnd: value => [['scrollMarginBottom', value]],
202
+ insetBlockStart: value => [['top', value]],
203
+ insetBlockEnd: value => [['bottom', value]],
218
204
  start: shorthands.insetInlineStart,
219
205
  end: shorthands.insetInlineEnd
220
206
  };
@@ -222,5 +208,4 @@ const expansions = {
222
208
  ...shorthands,
223
209
  ...aliases
224
210
  };
225
- var _default = expansions;
226
- exports.default = _default;
211
+ var _default = exports.default = expansions;
@@ -65,15 +65,17 @@ type TReturn = $ReadOnlyArray<[string, TStyleValue]>;
65
65
  declare const shorthands: {
66
66
  all: (_: TStyleValue) => TReturn,
67
67
  animation: (value: TStyleValue) => Array<[string, TStyleValue]>,
68
+ animationRange: (value: TStyleValue) => TReturn,
68
69
  background: (value: TStyleValue) => TReturn,
69
- border: (rawValue: TStyleValue) => TReturn,
70
- borderInline: (rawValue: TStyleValue) => TReturn,
71
- borderBlock: (rawValue: TStyleValue) => TReturn,
72
- borderTop: (rawValue: TStyleValue) => TReturn,
73
- borderInlineEnd: (rawValue: TStyleValue) => TReturn,
70
+ backgroundPosition: (value: TStyleValue) => TReturn,
71
+ border: (_rawValue: TStyleValue) => TReturn,
72
+ borderInline: (_rawValue: TStyleValue) => TReturn,
73
+ borderBlock: (_rawValue: TStyleValue) => TReturn,
74
+ borderTop: (_rawValue: TStyleValue) => TReturn,
75
+ borderInlineEnd: (_rawValue: TStyleValue) => TReturn,
74
76
  borderRight: (_rawValue: TStyleValue) => TReturn,
75
- borderBottom: (rawValue: TStyleValue) => TReturn,
76
- borderInlineStart: (rawValue: TStyleValue) => TReturn,
77
+ borderBottom: (_rawValue: TStyleValue) => TReturn,
78
+ borderInlineStart: (_rawValue: TStyleValue) => TReturn,
77
79
  borderLeft: (_rawValue: TStyleValue) => TReturn,
78
80
  borderInlineWidth: (rawValue: TStyleValue) => TReturn,
79
81
  borderInlineStyle: (rawValue: TStyleValue) => TReturn,
@@ -105,12 +107,15 @@ declare const shorthands: {
105
107
  borderTopRightRadius: (value: TStyleValue) => TReturn,
106
108
  borderBottomLeftRadius: (value: TStyleValue) => TReturn,
107
109
  borderBottomRightRadius: (value: TStyleValue) => TReturn,
110
+ borderImage: (value: TStyleValue) => TReturn,
108
111
  columnRule: (value: TStyleValue) => TReturn,
109
112
  columns: (value: TStyleValue) => TReturn,
110
113
  container: (value: TStyleValue) => TReturn,
114
+ containIntrinsicSize: (value: TStyleValue) => TReturn,
111
115
  flex: (value: TStyleValue) => TReturn,
112
116
  flexFlow: (value: TStyleValue) => TReturn,
113
117
  font: (value: TStyleValue) => TReturn,
118
+ fontVariant: (value: TStyleValue) => TReturn,
114
119
  gap: (value: TStyleValue) => TReturn,
115
120
  grid: (value: TStyleValue) => TReturn,
116
121
  gridArea: (value: TStyleValue) => TReturn,
@@ -133,6 +138,7 @@ declare const shorthands: {
133
138
  marginLeft: (value: TStyleValue) => TReturn,
134
139
  marginRight: (value: TStyleValue) => TReturn,
135
140
  mask: (value: TStyleValue) => TReturn,
141
+ maskBorder: (value: TStyleValue) => TReturn,
136
142
  offset: (value: TStyleValue) => TReturn,
137
143
  outline: (value: TStyleValue) => TReturn,
138
144
  overflow: (value: TStyleValue) => TReturn,
@@ -147,7 +153,20 @@ declare const shorthands: {
147
153
  placeItems: (value: TStyleValue) => TReturn,
148
154
  placeSelf: (value: TStyleValue) => TReturn,
149
155
  scrollMargin: (value: TStyleValue) => TReturn,
156
+ scrollMarginBlock: (value: TStyleValue) => TReturn,
157
+ scrollMarginInline: (value: TStyleValue) => TReturn,
158
+ scrollMarginInlineStart: (value: TStyleValue) => TReturn,
159
+ scrollMarginInlineEnd: (value: TStyleValue) => TReturn,
160
+ scrollMarginLeft: (value: TStyleValue) => TReturn,
161
+ scrollMarginRight: (value: TStyleValue) => TReturn,
150
162
  scrollPadding: (value: TStyleValue) => TReturn,
163
+ scrollPaddingBlock: (value: TStyleValue) => TReturn,
164
+ scrollPaddingInline: (value: TStyleValue) => TReturn,
165
+ scrollPaddingInlineStart: (value: TStyleValue) => TReturn,
166
+ scrollPaddingInlineEnd: (value: TStyleValue) => TReturn,
167
+ scrollPaddingLeft: (value: TStyleValue) => TReturn,
168
+ scrollPaddingRight: (value: TStyleValue) => TReturn,
169
+ scrollSnapType: (value: TStyleValue) => TReturn,
151
170
  scrollTimeline: (value: TStyleValue) => TReturn,
152
171
  textDecoration: (value: TStyleValue) => TReturn,
153
172
  textEmphasis: (value: TStyleValue) => TReturn,
@@ -189,18 +208,27 @@ declare const aliases: {
189
208
  borderTopEndRadius: (value: TStyleValue) => TReturn,
190
209
  borderBottomStartRadius: (value: TStyleValue) => TReturn,
191
210
  borderBottomEndRadius: (value: TStyleValue) => TReturn,
211
+ containIntrinsicBlockSize: (value: TStyleValue) => TReturn,
212
+ containIntrinsicInlineSize: (value: TStyleValue) => TReturn,
213
+ gridGap: $FlowFixMe,
214
+ gridRowGap: (value: TStyleValue) => TReturn,
215
+ gridColumnGap: (value: TStyleValue) => TReturn,
192
216
  marginBlockStart: (value: TStyleValue) => TReturn,
193
217
  marginBlockEnd: (value: TStyleValue) => TReturn,
194
218
  marginStart: $FlowFixMe,
195
219
  marginEnd: $FlowFixMe,
196
220
  marginHorizontal: $FlowFixMe,
197
221
  marginVertical: $FlowFixMe,
222
+ overflowBlock: (value: TStyleValue) => TReturn,
223
+ overflowInline: (value: TStyleValue) => TReturn,
198
224
  paddingBlockStart: (rawValue: TStyleValue) => TReturn,
199
225
  paddingBlockEnd: (rawValue: TStyleValue) => TReturn,
200
226
  paddingStart: $FlowFixMe,
201
227
  paddingEnd: $FlowFixMe,
202
228
  paddingHorizontal: $FlowFixMe,
203
229
  paddingVertical: $FlowFixMe,
230
+ scrollMarginBlockStart: (value: TStyleValue) => TReturn,
231
+ scrollMarginBlockEnd: (value: TStyleValue) => TReturn,
204
232
  insetBlockStart: (value: TStyleValue) => TReturn,
205
233
  insetBlockEnd: (value: TStyleValue) => TReturn,
206
234
  start: $FlowFixMe,
@@ -17,12 +17,12 @@ function validateNamespace(namespace) {
17
17
  const ns = namespace;
18
18
  for (const key in ns) {
19
19
  const val = ns[key];
20
- if (val === null || typeof val === "string" || typeof val === "number") {
20
+ if (val === null || typeof val === 'string' || typeof val === 'number') {
21
21
  continue;
22
22
  }
23
23
  if (Array.isArray(val)) {
24
24
  for (const v of val) {
25
- if (v === null || typeof v === "string" || typeof v === "number") {
25
+ if (v === null || typeof v === 'string' || typeof v === 'number') {
26
26
  continue;
27
27
  }
28
28
  throw new Error(messages.ILLEGAL_PROP_ARRAY_VALUE);
@@ -36,7 +36,7 @@ function validateNamespace(namespace) {
36
36
  throw new Error(messages.ONLY_TOP_LEVEL_INLCUDES);
37
37
  }
38
38
  if ((0, _objectUtils.isPlainObject)(val)) {
39
- if (key.startsWith("@") || key.startsWith(":")) {
39
+ if (key.startsWith('@') || key.startsWith(':')) {
40
40
  if (conditions.includes(key)) {
41
41
  throw new Error(messages.DUPLICATE_CONDITIONAL);
42
42
  }
@@ -53,18 +53,18 @@ function validateConditionalStyles(val) {
53
53
  let conditions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
54
54
  for (const key in val) {
55
55
  const v = val[key];
56
- if (!(key.startsWith("@") || key.startsWith(":") || key === "default")) {
56
+ if (!(key.startsWith('@') || key.startsWith(':') || key === 'default')) {
57
57
  throw new Error(messages.INVALID_PSEUDO_OR_AT_RULE);
58
58
  }
59
59
  if (conditions.includes(key)) {
60
60
  throw new Error(messages.DUPLICATE_CONDITIONAL);
61
61
  }
62
- if (v === null || typeof v === "string" || typeof v === "number") {
62
+ if (v === null || typeof v === 'string' || typeof v === 'number') {
63
63
  continue;
64
64
  }
65
65
  if (Array.isArray(v)) {
66
66
  for (const vv of v) {
67
- if (vv === null || typeof vv === "string" || typeof vv === "number") {
67
+ if (vv === null || typeof vv === 'string' || typeof vv === 'number') {
68
68
  continue;
69
69
  }
70
70
  throw new Error(messages.ILLEGAL_PROP_VALUE);
@@ -16,11 +16,11 @@ function _flattenRawStyleObject(style, pseudos, atRules, options) {
16
16
  const flattened = [];
17
17
  for (const key in style) {
18
18
  const value = style[key];
19
- if (typeof value === "object" && value instanceof _stylexInclude.IncludedStyles) {
19
+ if (typeof value === 'object' && value instanceof _stylexInclude.IncludedStyles) {
20
20
  flattened.push([key, new _PreRule.PreIncludedStylesRule(value)]);
21
21
  continue;
22
22
  }
23
- if (value === null || typeof value === "string" || typeof value === "number") {
23
+ if (value === null || typeof value === 'string' || typeof value === 'number') {
24
24
  const pairs = (0, _index.default)([key, value], options);
25
25
  for (const [property, value] of pairs) {
26
26
  if (value === null) {
@@ -65,15 +65,15 @@ function _flattenRawStyleObject(style, pseudos, atRules, options) {
65
65
  });
66
66
  continue;
67
67
  }
68
- if (typeof value === "object" && !key.startsWith(":") && !key.startsWith("@")) {
68
+ if (typeof value === 'object' && !key.startsWith(':') && !key.startsWith('@')) {
69
69
  const equivalentPairs = {};
70
70
  for (const condition in value) {
71
71
  const innerValue = value[condition];
72
72
  const pseudosToPassDown = [...pseudos];
73
73
  const atRulesToPassDown = [...atRules];
74
- if (condition.startsWith(":")) {
74
+ if (condition.startsWith(':')) {
75
75
  pseudosToPassDown.push(condition);
76
- } else if (condition.startsWith("@")) {
76
+ } else if (condition.startsWith('@')) {
77
77
  atRulesToPassDown.push(condition);
78
78
  }
79
79
  const pairs = _flattenRawStyleObject({
@@ -81,7 +81,7 @@ function _flattenRawStyleObject(style, pseudos, atRules, options) {
81
81
  }, pseudosToPassDown, atRulesToPassDown, options);
82
82
  for (const [property, preRule] of pairs) {
83
83
  if (preRule instanceof _PreRule.PreIncludedStylesRule) {
84
- throw new Error("stylex.include can only be used at the top-level");
84
+ throw new Error('stylex.include can only be used at the top-level');
85
85
  }
86
86
  if (equivalentPairs[property] == null) {
87
87
  equivalentPairs[property] = {
@@ -101,17 +101,17 @@ function _flattenRawStyleObject(style, pseudos, atRules, options) {
101
101
  flattened.push([property, _PreRule.PreRuleSet.create(rules)]);
102
102
  }
103
103
  }
104
- if (typeof value === "object" && (key.startsWith(":") || key.startsWith("@"))) {
104
+ if (typeof value === 'object' && (key.startsWith(':') || key.startsWith('@'))) {
105
105
  const pseudosToPassDown = [...pseudos];
106
106
  const atRulesToPassDown = [...atRules];
107
- if (key.startsWith(":")) {
107
+ if (key.startsWith(':')) {
108
108
  pseudosToPassDown.push(key);
109
- } else if (key.startsWith("@")) {
109
+ } else if (key.startsWith('@')) {
110
110
  atRulesToPassDown.push(key);
111
111
  }
112
112
  const pairs = _flattenRawStyleObject(value, pseudosToPassDown, atRulesToPassDown, options);
113
113
  for (const [property, preRule] of pairs) {
114
- flattened.push([key + "_" + property, preRule]);
114
+ flattened.push([key + '_' + property, preRule]);
115
115
  }
116
116
  }
117
117
  }