@stylexjs/shared 0.2.0-beta.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/README.md +81 -0
  2. package/lib/common-types.d.ts +50 -0
  3. package/lib/common-types.js.flow +65 -0
  4. package/lib/convert-to-className.d.ts +16 -0
  5. package/lib/convert-to-className.js +17 -26
  6. package/lib/convert-to-className.js.flow +23 -0
  7. package/lib/generate-css-rule.d.ts +17 -0
  8. package/lib/generate-css-rule.js +8 -47
  9. package/lib/generate-css-rule.js.flow +17 -0
  10. package/lib/hash.d.ts +11 -0
  11. package/lib/hash.js +3 -27
  12. package/lib/hash.js.flow +10 -0
  13. package/lib/index.d.ts +42 -85
  14. package/lib/index.js +19 -27
  15. package/lib/index.js.flow +59 -0
  16. package/lib/messages.d.ts +36 -0
  17. package/lib/messages.js +28 -55
  18. package/lib/messages.js.flow +39 -0
  19. package/lib/physical-rtl/generate-ltr.d.ts +11 -0
  20. package/lib/physical-rtl/generate-ltr.js +18 -46
  21. package/lib/physical-rtl/generate-ltr.js.flow +12 -0
  22. package/lib/physical-rtl/generate-rtl.d.ts +13 -0
  23. package/lib/physical-rtl/generate-rtl.js +18 -50
  24. package/lib/physical-rtl/generate-rtl.js.flow +12 -0
  25. package/lib/preprocess-rules/PreRule.d.ts +52 -0
  26. package/lib/preprocess-rules/PreRule.js +87 -0
  27. package/lib/preprocess-rules/PreRule.js.flow +64 -0
  28. package/lib/preprocess-rules/application-order.d.ts +290 -0
  29. package/lib/preprocess-rules/application-order.js +193 -0
  30. package/lib/preprocess-rules/application-order.js.flow +241 -0
  31. package/lib/preprocess-rules/basic-validation.d.ts +13 -0
  32. package/lib/preprocess-rules/basic-validation.js +83 -0
  33. package/lib/preprocess-rules/basic-validation.js.flow +13 -0
  34. package/lib/preprocess-rules/flatten-raw-style-obj.d.ts +25 -0
  35. package/lib/preprocess-rules/flatten-raw-style-obj.js +120 -0
  36. package/lib/preprocess-rules/flatten-raw-style-obj.js.flow +27 -0
  37. package/lib/preprocess-rules/index.d.ts +18 -0
  38. package/lib/preprocess-rules/index.js +30 -0
  39. package/lib/preprocess-rules/index.js.flow +19 -0
  40. package/lib/preprocess-rules/legacy-expand-shorthands.d.ts +200 -0
  41. package/lib/preprocess-rules/legacy-expand-shorthands.js +136 -0
  42. package/lib/preprocess-rules/legacy-expand-shorthands.js.flow +179 -0
  43. package/lib/preprocess-rules/property-specificity.d.ts +89 -0
  44. package/lib/preprocess-rules/property-specificity.js +107 -0
  45. package/lib/preprocess-rules/property-specificity.js.flow +98 -0
  46. package/lib/properties/CSS Animations.json +445 -0
  47. package/lib/properties/CSS Backgrounds and Borders.json +1085 -0
  48. package/lib/properties/CSS Basic User Interface.json +365 -0
  49. package/lib/properties/CSS Box Alignment.json +245 -0
  50. package/lib/properties/CSS Box Model.json +501 -0
  51. package/lib/properties/CSS Color.json +100 -0
  52. package/lib/properties/CSS Columns.json +185 -0
  53. package/lib/properties/CSS Containment.json +203 -0
  54. package/lib/properties/CSS Counter Styles.json +56 -0
  55. package/lib/properties/CSS Display.json +20 -0
  56. package/lib/properties/CSS Flexible Box Layout.json +167 -0
  57. package/lib/properties/CSS Fonts.json +684 -0
  58. package/lib/properties/CSS Fragmentation.json +110 -0
  59. package/lib/properties/CSS Generated Content.json +38 -0
  60. package/lib/properties/CSS Grid Layout.json +500 -0
  61. package/lib/properties/CSS Images.json +91 -0
  62. package/lib/properties/CSS Inline.json +38 -0
  63. package/lib/properties/CSS Lists and Counters.json +86 -0
  64. package/lib/properties/CSS Logical Properties.json +1086 -0
  65. package/lib/properties/CSS Masking.json +399 -0
  66. package/lib/properties/CSS Miscellaneous.json +38 -0
  67. package/lib/properties/CSS Motion Path.json +132 -0
  68. package/lib/properties/CSS Overflow.json +216 -0
  69. package/lib/properties/CSS Pages.json +83 -0
  70. package/lib/properties/CSS Positioning.json +166 -0
  71. package/lib/properties/CSS Ruby.json +55 -0
  72. package/lib/properties/CSS Scroll Anchoring.json +19 -0
  73. package/lib/properties/CSS Scroll Snap.json +604 -0
  74. package/lib/properties/CSS Scrollbars.json +38 -0
  75. package/lib/properties/CSS Shapes.json +56 -0
  76. package/lib/properties/CSS Speech.json +20 -0
  77. package/lib/properties/CSS Table.json +115 -0
  78. package/lib/properties/CSS Text Decoration.json +312 -0
  79. package/lib/properties/CSS Text.json +415 -0
  80. package/lib/properties/CSS Transforms.json +188 -0
  81. package/lib/properties/CSS Transitions.json +122 -0
  82. package/lib/properties/CSS Variables.json +20 -0
  83. package/lib/properties/CSS View Transitions.json +20 -0
  84. package/lib/properties/CSS Will Change.json +20 -0
  85. package/lib/properties/CSS Writing Modes.json +92 -0
  86. package/lib/properties/Compositing and Blending.json +62 -0
  87. package/lib/properties/Filter Effects.json +38 -0
  88. package/lib/properties/MathML.json +56 -0
  89. package/lib/properties/Microsoft Extensions.json +885 -0
  90. package/lib/properties/Mozilla Extensions.json +607 -0
  91. package/lib/properties/Pointer Events.json +20 -0
  92. package/lib/properties/WebKit Extensions.json +707 -0
  93. package/lib/properties.json +10122 -0
  94. package/lib/stylex-create-theme.d.ts +26 -0
  95. package/lib/stylex-create-theme.js +62 -0
  96. package/lib/stylex-create-theme.js.flow +19 -0
  97. package/lib/stylex-create.d.ts +23 -0
  98. package/lib/stylex-create.js +30 -142
  99. package/lib/stylex-create.js.flow +30 -0
  100. package/lib/stylex-define-vars.d.ts +36 -0
  101. package/lib/stylex-define-vars.js +72 -0
  102. package/lib/stylex-define-vars.js.flow +28 -0
  103. package/lib/stylex-first-that-works.d.ts +13 -0
  104. package/lib/stylex-first-that-works.js +0 -10
  105. package/lib/stylex-first-that-works.js.flow +12 -0
  106. package/lib/stylex-include.d.ts +18 -0
  107. package/lib/stylex-include.js +0 -10
  108. package/lib/stylex-include.js.flow +20 -0
  109. package/lib/stylex-keyframes.d.ts +17 -0
  110. package/lib/stylex-keyframes.js +22 -30
  111. package/lib/stylex-keyframes.js.flow +20 -0
  112. package/lib/transform-value.d.ts +22 -0
  113. package/lib/transform-value.js +9 -23
  114. package/lib/transform-value.js.flow +25 -0
  115. package/lib/types/index.d.ts +205 -0
  116. package/lib/types/index.js +191 -0
  117. package/lib/types/index.js.flow +241 -0
  118. package/lib/utils/Rule.d.ts +58 -0
  119. package/lib/utils/Rule.js +50 -0
  120. package/lib/utils/Rule.js.flow +64 -0
  121. package/lib/utils/dashify.d.ts +11 -0
  122. package/lib/utils/dashify.js +0 -8
  123. package/lib/utils/dashify.js.flow +10 -0
  124. package/lib/utils/default-options.d.ts +11 -0
  125. package/lib/utils/default-options.js +14 -0
  126. package/lib/utils/default-options.js.flow +25 -0
  127. package/lib/utils/file-based-identifier.d.ts +15 -0
  128. package/lib/utils/file-based-identifier.js +14 -0
  129. package/lib/utils/file-based-identifier.js.flow +14 -0
  130. package/lib/utils/genCSSRule.d.ts +15 -0
  131. package/lib/utils/genCSSRule.js +9 -18
  132. package/lib/utils/genCSSRule.js.flow +15 -0
  133. package/lib/utils/normalize-value.d.ts +16 -0
  134. package/lib/utils/normalize-value.js +11 -15
  135. package/lib/utils/normalize-value.js.flow +16 -0
  136. package/lib/utils/normalizers/convert-camel-case-transition-props.d.ts +14 -0
  137. package/lib/utils/normalizers/convert-camel-case-transition-props.js +23 -0
  138. package/lib/utils/normalizers/convert-camel-case-transition-props.js.flow +13 -0
  139. package/lib/utils/normalizers/convert-camel-case-values.d.ts +14 -0
  140. package/lib/utils/normalizers/convert-camel-case-values.js +23 -0
  141. package/lib/utils/normalizers/convert-camel-case-values.js.flow +13 -0
  142. package/lib/utils/normalizers/detect-unclosed-fns.d.ts +17 -0
  143. package/lib/utils/normalizers/detect-unclosed-fns.js +0 -12
  144. package/lib/utils/normalizers/detect-unclosed-fns.js.flow +16 -0
  145. package/lib/utils/normalizers/font-size-px-to-rem.d.ts +19 -0
  146. package/lib/utils/normalizers/font-size-px-to-rem.js +9 -19
  147. package/lib/utils/normalizers/font-size-px-to-rem.js.flow +18 -0
  148. package/lib/utils/normalizers/leading-zero.d.ts +17 -0
  149. package/lib/utils/normalizers/leading-zero.js +0 -12
  150. package/lib/utils/normalizers/leading-zero.js.flow +16 -0
  151. package/lib/utils/normalizers/quotes.d.ts +18 -0
  152. package/lib/utils/normalizers/quotes.js +0 -13
  153. package/lib/utils/normalizers/quotes.js.flow +17 -0
  154. package/lib/utils/normalizers/timings.d.ts +18 -0
  155. package/lib/utils/normalizers/timings.js +0 -14
  156. package/lib/utils/normalizers/timings.js.flow +17 -0
  157. package/lib/utils/normalizers/whitespace.d.ts +19 -0
  158. package/lib/utils/normalizers/whitespace.js +0 -15
  159. package/lib/utils/normalizers/whitespace.js.flow +18 -0
  160. package/lib/utils/normalizers/zero-dimensions.d.ts +19 -0
  161. package/lib/utils/normalizers/zero-dimensions.js +0 -15
  162. package/lib/utils/normalizers/zero-dimensions.js.flow +18 -0
  163. package/lib/utils/object-utils.d.ts +66 -0
  164. package/lib/utils/object-utils.js +21 -13
  165. package/lib/utils/object-utils.js.flow +77 -0
  166. package/lib/utils/property-priorities.d.ts +11 -0
  167. package/lib/utils/property-priorities.js +531 -0
  168. package/lib/utils/property-priorities.js.flow +10 -0
  169. package/lib/utils/split-css-value.d.ts +14 -0
  170. package/lib/utils/split-css-value.js +33 -0
  171. package/lib/utils/split-css-value.js.flow +15 -0
  172. package/lib/validate.d.ts +12 -0
  173. package/lib/validate.js +1 -10
  174. package/lib/validate.js.flow +12 -0
  175. package/package.json +4 -5
  176. package/lib/expand-shorthands.d.ts +0 -5
  177. package/lib/expand-shorthands.js +0 -387
  178. package/lib/stylex-defaultValue.js +0 -397
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PreRuleSet = exports.PreRule = exports.PreIncludedStylesRule = exports.NullPreRule = void 0;
7
+ var _convertToClassName = require("../convert-to-className");
8
+ var _objectUtils = require("../utils/object-utils");
9
+ class NullPreRule {
10
+ compiled(_options) {
11
+ return [null];
12
+ }
13
+ equals(other) {
14
+ return other instanceof NullPreRule;
15
+ }
16
+ }
17
+ exports.NullPreRule = NullPreRule;
18
+ class PreIncludedStylesRule {
19
+ constructor(IncludedStyles) {
20
+ this.includedStyles = IncludedStyles;
21
+ }
22
+ equals(other) {
23
+ return other instanceof PreIncludedStylesRule && this.includedStyles === other.includedStyles;
24
+ }
25
+ compiled(_options) {
26
+ return this.includedStyles;
27
+ }
28
+ }
29
+ exports.PreIncludedStylesRule = PreIncludedStylesRule;
30
+ const stringComparator = (a, b) => {
31
+ if (a === 'default') {
32
+ return -1;
33
+ }
34
+ if (b === 'default') {
35
+ return 1;
36
+ }
37
+ return a.localeCompare(b);
38
+ };
39
+ class PreRule {
40
+ constructor(property, value, pseudos, atRules) {
41
+ this.property = property;
42
+ this.value = value;
43
+ this.pseudos = pseudos ? (0, _objectUtils.arraySort)(pseudos, stringComparator) : [];
44
+ this.atRules = atRules ? (0, _objectUtils.arraySort)(atRules) : [];
45
+ }
46
+ compiled(options) {
47
+ const [_key, className, rule] = (0, _convertToClassName.convertStyleToClassName)([this.property, this.value], this.pseudos ?? [], this.atRules ?? [], options);
48
+ return [[className, rule]];
49
+ }
50
+ equals(other) {
51
+ if (!(other instanceof PreRule)) {
52
+ return false;
53
+ }
54
+ const valuesEqual = Array.isArray(this.value) && Array.isArray(other.value) ? (0, _objectUtils.arrayEquals)(this.value, other.value) : this.value === other.value;
55
+ return this.property === other.property && valuesEqual && (0, _objectUtils.arrayEquals)(this.pseudos, other.pseudos) && (0, _objectUtils.arrayEquals)(this.atRules, other.atRules);
56
+ }
57
+ }
58
+ exports.PreRule = PreRule;
59
+ class PreRuleSet {
60
+ constructor(rules) {
61
+ this.rules = rules;
62
+ }
63
+ static create(rules) {
64
+ const flatRules = rules.flatMap(rule => rule instanceof PreRuleSet ? rule.rules : [rule]);
65
+ if (flatRules.length === 0) {
66
+ return new NullPreRule();
67
+ }
68
+ if (flatRules.length === 1) {
69
+ return flatRules[0];
70
+ }
71
+ return new PreRuleSet(flatRules);
72
+ }
73
+ compiled(options) {
74
+ const styleTuple = this.rules.flatMap(rule => rule.compiled(options)).filter(Boolean);
75
+ return styleTuple.length > 0 ? styleTuple : [null];
76
+ }
77
+ equals(other) {
78
+ if (!(other instanceof PreRuleSet)) {
79
+ return false;
80
+ }
81
+ if (this.rules.length !== other.rules.length) {
82
+ return false;
83
+ }
84
+ return (0, _objectUtils.arrayEquals)(this.rules, other.rules, (a, b) => a.equals(b));
85
+ }
86
+ }
87
+ exports.PreRuleSet = PreRuleSet;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict
8
+ */
9
+
10
+ import type { InjectableStyle, StyleXOptions } from '../common-types';
11
+ import type { IncludedStyles } from '../stylex-include';
12
+
13
+ export type ComputedStyle = null | $ReadOnly<[string, InjectableStyle]>;
14
+
15
+ // The classes in this file are used to represent objects that
16
+ // can be compiled into one or CSS rules.
17
+ //
18
+ // These are thin wrappers around the "values" in Raw Style Objects
19
+ // with all the metadata needed to compile them into CSS.
20
+ export interface IPreRule {
21
+ compiled(
22
+ options: StyleXOptions,
23
+ ): IncludedStyles | $ReadOnlyArray<ComputedStyle>;
24
+ equals(other: IPreRule): boolean;
25
+ }
26
+
27
+ export type AnyPreRule = NullPreRule | PreRule | PreRuleSet;
28
+
29
+ declare export class NullPreRule implements IPreRule {
30
+ compiled(_options: StyleXOptions): [null];
31
+ equals(other: IPreRule): boolean;
32
+ }
33
+
34
+ declare export class PreIncludedStylesRule implements IPreRule {
35
+ +includedStyles: IncludedStyles;
36
+ constructor(IncludedStyles: IncludedStyles): void;
37
+ equals(other: IPreRule): boolean;
38
+ compiled(_options: StyleXOptions): IncludedStyles;
39
+ }
40
+
41
+ declare export class PreRule implements IPreRule {
42
+ +property: string;
43
+ +value: string | number | $ReadOnlyArray<string | number>;
44
+ +pseudos: $ReadOnlyArray<string>;
45
+ +atRules: $ReadOnlyArray<string>;
46
+ constructor(
47
+ property: string,
48
+ value: string | number | $ReadOnlyArray<string | number>,
49
+ pseudos?: ?$ReadOnlyArray<string>,
50
+ atRules?: ?$ReadOnlyArray<string>,
51
+ ): void;
52
+ compiled(options: StyleXOptions): $ReadOnlyArray<[string, InjectableStyle]>;
53
+ equals(other: IPreRule): boolean;
54
+ }
55
+
56
+ declare export class PreRuleSet implements IPreRule {
57
+ +rules: $ReadOnlyArray<PreRule | NullPreRule>;
58
+ constructor(rules: $ReadOnlyArray<PreRule | NullPreRule>): void;
59
+ static create(
60
+ rules: $ReadOnlyArray<PreRule | NullPreRule | PreRuleSet>,
61
+ ): AnyPreRule;
62
+ compiled(options: StyleXOptions): $ReadOnlyArray<ComputedStyle>;
63
+ equals(other: IPreRule): boolean;
64
+ }
@@ -0,0 +1,290 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ *
8
+ */
9
+
10
+ import type { TStyleValue } from '../common-types';
11
+ /**
12
+ * Shorthand properties:
13
+ * - [x] all - Should be banned
14
+ * - [x] animation
15
+ * - [x] background
16
+ * - [x] border
17
+ * - [x] border-block-end
18
+ * - [x] border-block-start
19
+ * - [x] border-bottom
20
+ * - [x] border-color
21
+ * - [x] border-image
22
+ * - [x] border-inline-end
23
+ * - [x] border-inline-start
24
+ * - [x] border-left
25
+ * - [x] border-radius
26
+ * - [x] border-right
27
+ * - [x] border-style
28
+ * - [x] border-top
29
+ * - [x] border-width
30
+ * - [x] column-rule
31
+ * - [x] columns
32
+ * - [x] container
33
+ * - [x] flex
34
+ * - [x] flex-flow
35
+ * - [x] font
36
+ * - [x] gap
37
+ * - [x] grid
38
+ * - [x] grid-area
39
+ * - [x] grid-column
40
+ * - [x] grid-row
41
+ * - [x] grid-template
42
+ * - [x] inset
43
+ * - [x] inset-block
44
+ * - [x] inset-inline
45
+ * - [x] list-style
46
+ * - [x] margin
47
+ * - [x] mask
48
+ * - [x] offset
49
+ * - [x] outline
50
+ * - [x] overflow
51
+ * - [x] padding
52
+ * - [x] place-content
53
+ * - [x] place-items
54
+ * - [x] place-self
55
+ * - [x] scroll-margin
56
+ * - [x] scroll-padding
57
+ * - [x] text-decoration
58
+ * - [x] text-emphasis
59
+ * - [x] transition
60
+ */
61
+
62
+ /**
63
+ * Shorthand properties:
64
+ * - [x] all - Should be banned
65
+ * - [x] animation
66
+ * - [x] background
67
+ * - [x] border
68
+ * - [x] border-block-end
69
+ * - [x] border-block-start
70
+ * - [x] border-bottom
71
+ * - [x] border-color
72
+ * - [x] border-image
73
+ * - [x] border-inline-end
74
+ * - [x] border-inline-start
75
+ * - [x] border-left
76
+ * - [x] border-radius
77
+ * - [x] border-right
78
+ * - [x] border-style
79
+ * - [x] border-top
80
+ * - [x] border-width
81
+ * - [x] column-rule
82
+ * - [x] columns
83
+ * - [x] container
84
+ * - [x] flex
85
+ * - [x] flex-flow
86
+ * - [x] font
87
+ * - [x] gap
88
+ * - [x] grid
89
+ * - [x] grid-area
90
+ * - [x] grid-column
91
+ * - [x] grid-row
92
+ * - [x] grid-template
93
+ * - [x] inset
94
+ * - [x] inset-block
95
+ * - [x] inset-inline
96
+ * - [x] list-style
97
+ * - [x] margin
98
+ * - [x] mask
99
+ * - [x] offset
100
+ * - [x] outline
101
+ * - [x] overflow
102
+ * - [x] padding
103
+ * - [x] place-content
104
+ * - [x] place-items
105
+ * - [x] place-self
106
+ * - [x] scroll-margin
107
+ * - [x] scroll-padding
108
+ * - [x] text-decoration
109
+ * - [x] text-emphasis
110
+ * - [x] transition
111
+ */
112
+
113
+ type TReturn = ReadonlyArray<[string, TStyleValue]>;
114
+ declare const shorthands: {
115
+ all: (_: TStyleValue) => TReturn;
116
+ animation: (value: TStyleValue) => Array<[string, TStyleValue]>;
117
+ animationRange: (value: TStyleValue) => TReturn;
118
+ background: (value: TStyleValue) => TReturn;
119
+ backgroundPosition: (value: TStyleValue) => TReturn;
120
+ border: (rawValue: TStyleValue) => TReturn;
121
+ borderInline: (rawValue: TStyleValue) => TReturn;
122
+ borderBlock: (rawValue: TStyleValue) => TReturn;
123
+ borderTop: (rawValue: TStyleValue) => TReturn;
124
+ borderInlineEnd: (rawValue: TStyleValue) => TReturn;
125
+ borderRight: (rawValue: TStyleValue) => TReturn;
126
+ borderBottom: (rawValue: TStyleValue) => TReturn;
127
+ borderInlineStart: (_rawValue: TStyleValue) => TReturn;
128
+ borderLeft: (_rawValue: TStyleValue) => TReturn;
129
+ borderInlineWidth: (rawValue: TStyleValue) => TReturn;
130
+ borderInlineStyle: (rawValue: TStyleValue) => TReturn;
131
+ borderInlineColor: (rawValue: TStyleValue) => TReturn;
132
+ borderBlockWidth: (rawValue: TStyleValue) => TReturn;
133
+ borderBlockStyle: (rawValue: TStyleValue) => TReturn;
134
+ borderBlockColor: (rawValue: TStyleValue) => TReturn;
135
+ borderColor: (value: TStyleValue) => TReturn;
136
+ borderStyle: (value: TStyleValue) => TReturn;
137
+ borderWidth: (value: TStyleValue) => TReturn;
138
+ borderInlineStartColor: (value: TStyleValue) => TReturn;
139
+ borderInlineEndColor: (value: TStyleValue) => TReturn;
140
+ borderInlineStartStyle: (value: TStyleValue) => TReturn;
141
+ borderInlineEndStyle: (value: TStyleValue) => TReturn;
142
+ borderInlineStartWidth: (value: TStyleValue) => TReturn;
143
+ borderInlineEndWidth: (value: TStyleValue) => TReturn;
144
+ borderLeftColor: (value: TStyleValue) => TReturn;
145
+ borderRightColor: (value: TStyleValue) => TReturn;
146
+ borderLeftStyle: (value: TStyleValue) => TReturn;
147
+ borderRightStyle: (value: TStyleValue) => TReturn;
148
+ borderLeftWidth: (value: TStyleValue) => TReturn;
149
+ borderRightWidth: (value: TStyleValue) => TReturn;
150
+ borderRadius: (value: TStyleValue) => TReturn;
151
+ borderStartStartRadius: (value: TStyleValue) => TReturn;
152
+ borderStartEndRadius: (value: TStyleValue) => TReturn;
153
+ borderEndStartRadius: (value: TStyleValue) => TReturn;
154
+ borderEndEndRadius: (value: TStyleValue) => TReturn;
155
+ borderTopLeftRadius: (value: TStyleValue) => TReturn;
156
+ borderTopRightRadius: (value: TStyleValue) => TReturn;
157
+ borderBottomLeftRadius: (value: TStyleValue) => TReturn;
158
+ borderBottomRightRadius: (value: TStyleValue) => TReturn;
159
+ borderImage: (value: TStyleValue) => TReturn;
160
+ columnRule: (value: TStyleValue) => TReturn;
161
+ columns: (value: TStyleValue) => TReturn;
162
+ container: (value: TStyleValue) => TReturn;
163
+ containIntrinsicSize: (value: TStyleValue) => TReturn;
164
+ flex: (value: TStyleValue) => TReturn;
165
+ flexFlow: (value: TStyleValue) => TReturn;
166
+ font: (value: TStyleValue) => TReturn;
167
+ fontVariant: (value: TStyleValue) => TReturn;
168
+ gap: (value: TStyleValue) => TReturn;
169
+ grid: (value: TStyleValue) => TReturn;
170
+ gridArea: (value: TStyleValue) => TReturn;
171
+ gridRow: (value: TStyleValue) => TReturn;
172
+ gridColumn: (value: TStyleValue) => TReturn;
173
+ gridTemplate: (value: TStyleValue) => TReturn;
174
+ inset: (value: TStyleValue) => TReturn;
175
+ insetInline: (value: TStyleValue) => TReturn;
176
+ insetBlock: (value: TStyleValue) => TReturn;
177
+ insetInlineStart: (value: TStyleValue) => TReturn;
178
+ insetInlineEnd: (value: TStyleValue) => TReturn;
179
+ left: (value: TStyleValue) => TReturn;
180
+ right: (value: TStyleValue) => TReturn;
181
+ listStyle: (value: TStyleValue) => TReturn;
182
+ margin: (value: TStyleValue) => TReturn;
183
+ marginInline: (value: TStyleValue) => TReturn;
184
+ marginBlock: (value: TStyleValue) => TReturn;
185
+ marginInlineStart: (value: TStyleValue) => TReturn;
186
+ marginInlineEnd: (value: TStyleValue) => TReturn;
187
+ marginLeft: (value: TStyleValue) => TReturn;
188
+ marginRight: (value: TStyleValue) => TReturn;
189
+ mask: (value: TStyleValue) => TReturn;
190
+ maskBorder: (value: TStyleValue) => TReturn;
191
+ offset: (value: TStyleValue) => TReturn;
192
+ outline: (value: TStyleValue) => TReturn;
193
+ overflow: (value: TStyleValue) => TReturn;
194
+ padding: (rawValue: TStyleValue) => TReturn;
195
+ paddingInline: (rawValue: TStyleValue) => TReturn;
196
+ paddingBlock: (rawValue: TStyleValue) => TReturn;
197
+ paddingInlineStart: (value: TStyleValue) => TReturn;
198
+ paddingInlineEnd: (value: TStyleValue) => TReturn;
199
+ paddingLeft: (value: TStyleValue) => TReturn;
200
+ paddingRight: (value: TStyleValue) => TReturn;
201
+ placeContent: (value: TStyleValue) => TReturn;
202
+ placeItems: (value: TStyleValue) => TReturn;
203
+ placeSelf: (value: TStyleValue) => TReturn;
204
+ scrollMargin: (value: TStyleValue) => TReturn;
205
+ scrollMarginBlock: (value: TStyleValue) => TReturn;
206
+ scrollMarginInline: (value: TStyleValue) => TReturn;
207
+ scrollMarginInlineStart: (value: TStyleValue) => TReturn;
208
+ scrollMarginInlineEnd: (value: TStyleValue) => TReturn;
209
+ scrollMarginLeft: (value: TStyleValue) => TReturn;
210
+ scrollMarginRight: (value: TStyleValue) => TReturn;
211
+ scrollPadding: (value: TStyleValue) => TReturn;
212
+ scrollPaddingBlock: (value: TStyleValue) => TReturn;
213
+ scrollPaddingInline: (value: TStyleValue) => TReturn;
214
+ scrollPaddingInlineStart: (value: TStyleValue) => TReturn;
215
+ scrollPaddingInlineEnd: (value: TStyleValue) => TReturn;
216
+ scrollPaddingLeft: (value: TStyleValue) => TReturn;
217
+ scrollPaddingRight: (value: TStyleValue) => TReturn;
218
+ scrollSnapType: (value: TStyleValue) => TReturn;
219
+ scrollTimeline: (value: TStyleValue) => TReturn;
220
+ textDecoration: (value: TStyleValue) => TReturn;
221
+ textEmphasis: (value: TStyleValue) => TReturn;
222
+ transition: (value: TStyleValue) => TReturn;
223
+ };
224
+ declare const aliases: {
225
+ borderHorizontal: any;
226
+ borderVertical: any;
227
+ borderBlockStart: any;
228
+ borderEnd: any;
229
+ borderBlockEnd: any;
230
+ borderStart: any;
231
+ blockSize: (val: TStyleValue) => TReturn;
232
+ inlineSize: (val: TStyleValue) => TReturn;
233
+ minBlockSize: (val: TStyleValue) => TReturn;
234
+ minInlineSize: (val: TStyleValue) => TReturn;
235
+ maxBlockSize: (val: TStyleValue) => TReturn;
236
+ maxInlineSize: (val: TStyleValue) => TReturn;
237
+ borderHorizontalWidth: any;
238
+ borderHorizontalStyle: any;
239
+ borderHorizontalColor: any;
240
+ borderVerticalWidth: any;
241
+ borderVerticalStyle: any;
242
+ borderVerticalColor: any;
243
+ borderBlockStartColor: (value: TStyleValue) => TReturn;
244
+ borderBlockEndColor: (value: TStyleValue) => TReturn;
245
+ borderBlockStartStyle: (value: TStyleValue) => TReturn;
246
+ borderBlockEndStyle: (value: TStyleValue) => TReturn;
247
+ borderBlockStartWidth: (value: TStyleValue) => TReturn;
248
+ borderBlockEndWidth: (value: TStyleValue) => TReturn;
249
+ borderStartColor: any;
250
+ borderEndColor: any;
251
+ borderStartStyle: any;
252
+ borderEndStyle: any;
253
+ borderStartWidth: any;
254
+ borderEndWidth: any;
255
+ borderTopStartRadius: (value: TStyleValue) => TReturn;
256
+ borderTopEndRadius: (value: TStyleValue) => TReturn;
257
+ borderBottomStartRadius: (value: TStyleValue) => TReturn;
258
+ borderBottomEndRadius: (value: TStyleValue) => TReturn;
259
+ containIntrinsicBlockSize: (value: TStyleValue) => TReturn;
260
+ containIntrinsicInlineSize: (value: TStyleValue) => TReturn;
261
+ gridGap: any;
262
+ gridRowGap: (value: TStyleValue) => TReturn;
263
+ gridColumnGap: (value: TStyleValue) => TReturn;
264
+ marginBlockStart: (value: TStyleValue) => TReturn;
265
+ marginBlockEnd: (value: TStyleValue) => TReturn;
266
+ marginStart: any;
267
+ marginEnd: any;
268
+ marginHorizontal: any;
269
+ marginVertical: any;
270
+ overflowBlock: (value: TStyleValue) => TReturn;
271
+ overflowInline: (value: TStyleValue) => TReturn;
272
+ paddingBlockStart: (rawValue: TStyleValue) => TReturn;
273
+ paddingBlockEnd: (rawValue: TStyleValue) => TReturn;
274
+ paddingStart: any;
275
+ paddingEnd: any;
276
+ paddingHorizontal: any;
277
+ paddingVertical: any;
278
+ scrollMarginBlockStart: (value: TStyleValue) => TReturn;
279
+ scrollMarginBlockEnd: (value: TStyleValue) => TReturn;
280
+ insetBlockStart: (value: TStyleValue) => TReturn;
281
+ insetBlockEnd: (value: TStyleValue) => TReturn;
282
+ start: any;
283
+ end: any;
284
+ };
285
+ declare const $$EXPORT_DEFAULT_DECLARATION$$: Readonly</**
286
+ * > 239 | ...typeof shorthands,
287
+ * | ^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with complex spreads" is currently not supported.
288
+ **/
289
+ any>;
290
+ export default $$EXPORT_DEFAULT_DECLARATION$$;
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _splitCssValue = _interopRequireDefault(require("../utils/split-css-value"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const shorthands = {
10
+ all: _ => {
11
+ throw new Error('all is not supported');
12
+ },
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 => [['border', rawValue], ...shorthands.borderWidth(null), ...shorthands.borderStyle(null), ...shorthands.borderColor(null)],
18
+ borderInline: rawValue => [['borderInline', rawValue], ...shorthands.borderInlineWidth(null), ...shorthands.borderInlineStyle(null), ...shorthands.borderInlineColor(null)],
19
+ borderBlock: rawValue => [['borderBlock', rawValue], ...shorthands.borderBlockWidth(null), ...shorthands.borderBlockStyle(null), ...shorthands.borderBlockColor(null)],
20
+ borderTop: rawValue => [['borderTop', rawValue], ['borderTopWidth', null], ['borderTopStyle', null], ['borderTopColor', null]],
21
+ borderInlineEnd: rawValue => [['borderInlineEnd', rawValue], ...shorthands.borderInlineEndWidth(null), ...shorthands.borderInlineEndStyle(null), ...shorthands.borderInlineEndColor(null)],
22
+ borderRight: rawValue => [['borderRight', rawValue], ...shorthands.borderRightWidth(null), ...shorthands.borderRightStyle(null), ...shorthands.borderRightColor(null)],
23
+ borderBottom: rawValue => [['borderBottom', rawValue], ['borderBottomWidth', null], ['borderBottomStyle', null], ['borderBottomColor', null]],
24
+ borderInlineStart: _rawValue => [['borderInlineStart', null], ...shorthands.borderInlineStartWidth(null), ...shorthands.borderInlineStartStyle(null), ...shorthands.borderInlineStartColor(null)],
25
+ borderLeft: _rawValue => [['borderLeft', null], ...shorthands.borderLeftWidth(null), ...shorthands.borderLeftStyle(null), ...shorthands.borderLeftColor(null)],
26
+ borderInlineWidth: rawValue => [['borderInlineWidth', rawValue], ['borderInlineStartWidth', null], ['borderLeftWidth', null], ['borderInlineEndWidth', null], ['borderRightWidth', null]],
27
+ borderInlineStyle: rawValue => [['borderInlineStyle', rawValue], ['borderInlineStartStyle', null], ['borderLeftStyle', null], ['borderInlineEndStyle', null], ['borderRightStyle', null]],
28
+ borderInlineColor: rawValue => [['borderInlineColor', rawValue], ['borderInlineStartColor', null], ['borderLeftColor', null], ['borderInlineEndColor', null], ['borderRightColor', null]],
29
+ borderBlockWidth: rawValue => [['borderBlockWidth', rawValue], ['borderTopWidth', null], ['borderBottomWidth', null]],
30
+ borderBlockStyle: rawValue => [['borderBlockStyle', rawValue], ['borderTopStyle', null], ['borderBottomStyle', null]],
31
+ borderBlockColor: rawValue => [['borderBlockColor', rawValue], ['borderTopColor', null], ['borderBottomColor', null]],
32
+ borderColor: value => [['borderColor', value], ...shorthands.borderInlineColor(null), ...shorthands.borderBlockColor(null)],
33
+ borderStyle: value => [['borderStyle', value], ...shorthands.borderInlineStyle(null), ...shorthands.borderBlockStyle(null)],
34
+ borderWidth: value => [['borderWidth', value], ...shorthands.borderInlineWidth(null), ...shorthands.borderBlockWidth(null)],
35
+ borderInlineStartColor: value => [['borderInlineStartColor', value], ['borderLeftColor', null], ['borderRightColor', null]],
36
+ borderInlineEndColor: value => [['borderInlineEndColor', value], ['borderLeftColor', null], ['borderRightColor', null]],
37
+ borderInlineStartStyle: value => [['borderInlineStartStyle', value], ['borderLeftStyle', null], ['borderRightStyle', null]],
38
+ borderInlineEndStyle: value => [['borderInlineEndStyle', value], ['borderLeftStyle', null], ['borderRightStyle', null]],
39
+ borderInlineStartWidth: value => [['borderInlineStartWidth', value], ['borderLeftWidth', null], ['borderRightWidth', null]],
40
+ borderInlineEndWidth: value => [['borderInlineEndWidth', value], ['borderLeftWidth', null], ['borderRightWidth', null]],
41
+ borderLeftColor: value => [['borderLeftColor', value], ['borderInlineStartColor', null], ['borderInlineEndColor', null]],
42
+ borderRightColor: value => [['borderRightColor', value], ['borderInlineStartColor', null], ['borderInlineEndColor', null]],
43
+ borderLeftStyle: value => [['borderLeftStyle', value], ['borderInlineStartStyle', null], ['borderInlineEndStyle', null]],
44
+ borderRightStyle: value => [['borderRightStyle', value], ['borderInlineStartStyle', null], ['borderInlineEndStyle', null]],
45
+ borderLeftWidth: value => [['borderLeftWidth', value], ['borderInlineStartWidth', null], ['borderInlineEndWidth', null]],
46
+ borderRightWidth: value => [['borderRightWidth', value], ['borderInlineStartWidth', null], ['borderInlineEndWidth', null]],
47
+ borderRadius: value => [['borderRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null], ['borderEndStartRadius', null], ['borderEndEndRadius', null], ['borderTopLeftRadius', null], ['borderTopRightRadius', null], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
48
+ borderStartStartRadius: value => [['borderStartStartRadius', value], ['borderTopLeftRadius', null], ['borderTopRightRadius', null]],
49
+ borderStartEndRadius: value => [['borderStartEndRadius', value], ['borderTopLeftRadius', null], ['borderTopRightRadius', null]],
50
+ borderEndStartRadius: value => [['borderEndStartRadius', value], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
51
+ borderEndEndRadius: value => [['borderEndEndRadius', value], ['borderBottomLeftRadius', null], ['borderBottomRightRadius', null]],
52
+ borderTopLeftRadius: value => [['borderTopLeftRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null]],
53
+ borderTopRightRadius: value => [['borderTopRightRadius', value], ['borderStartStartRadius', null], ['borderStartEndRadius', null]],
54
+ borderBottomLeftRadius: value => [['borderBottomLeftRadius', value], ['borderEndStartRadius', null], ['borderEndEndRadius', null]],
55
+ borderBottomRightRadius: value => [['borderBottomRightRadius', value], ['borderEndStartRadius', null], ['borderEndEndRadius', null]],
56
+ borderImage: value => [['borderImage', value], ['borderImageOutset', null], ['borderImageRepeat', null], ['borderImageSlice', null], ['borderImageSource', null], ['borderImageWidth', null]],
57
+ columnRule: value => [['columnRule', value], ['columnRuleColor', null], ['columnRuleStyle', null], ['columnRuleWidth', null]],
58
+ columns: value => [['columns', value], ['columnCount', null], ['columnWidth', null]],
59
+ container: value => [['container', value], ['containerName', null], ['containerType', null]],
60
+ containIntrinsicSize: value => [['containIntrinsicSize', value], ['containIntrinsicWidth', null], ['containIntrinsicHeight', null]],
61
+ flex: value => [['flex', value], ['flexGrow', null], ['flexShrink', null], ['flexBasis', null]],
62
+ flexFlow: value => [['flexFlow', value], ['flexDirection', null], ['flexWrap', null]],
63
+ font: value => [['font', value], ['fontFamily', null], ['fontSize', null], ['fontStretch', null], ['fontStyle', null], ...shorthands.fontVariant(null), ['fontWeight', null], ['lineHeight', null]],
64
+ fontVariant: value => [['fontVariant', value], ['fontVariantAlternates', null], ['fontVariantCaps', null], ['fontVariantEastAsian', null], ['fontVariantEmoji', null], ['fontVariantLigatures', null], ['fontVariantNumeric', null], ['fontVariantPosition', null]],
65
+ gap: value => [['gap', value], ['rowGap', null], ['columnGap', null]],
66
+ grid: value => [['grid', value], ...shorthands.gridTemplate(null), ['gridAutoRows', null], ['gridAutoColumns', null], ['gridAutoFlow', null]],
67
+ gridArea: value => [['gridArea', value], ['gridRow', null], ['gridRowStart', null], ['gridRowEnd', null], ['gridColumn', null], ['gridColumnStart', null], ['gridColumnEnd', null]],
68
+ gridRow: value => [['gridRow', value], ['gridRowStart', null], ['gridRowEnd', null]],
69
+ gridColumn: value => [['gridColumn', value], ['gridColumnStart', null], ['gridColumnEnd', null]],
70
+ gridTemplate: value => [['gridTemplate', value], ['gridTemplateAreas', null], ['gridTemplateColumns', null], ['gridTemplateRows', null]],
71
+ inset: value => [['inset', value], ...shorthands.insetInline(null), ...shorthands.insetBlock(null)],
72
+ insetInline: value => [['insetInline', value], ['insetInlineStart', null], ['insetInlineEnd', null], ['left', null], ['right', null]],
73
+ insetBlock: value => [['insetBlock', value], ['top', null], ['bottom', null]],
74
+ insetInlineStart: value => [['insetInlineStart', value], ['left', null], ['right', null]],
75
+ insetInlineEnd: value => [['insetInlineEnd', value], ['left', null], ['right', null]],
76
+ left: value => [['left', value], ['insetInlineStart', null], ['insetInlineEnd', null]],
77
+ right: value => [['right', value], ['insetInlineStart', null], ['insetInlineEnd', null]],
78
+ listStyle: value => [['listStyle', value], ['listStyleImage', null], ['listStylePosition', null], ['listStyleType', null]],
79
+ margin: value => [['margin', value], ...shorthands.marginInline(null), ...shorthands.marginBlock(null)],
80
+ marginInline: value => [['marginInline', value], ['marginInlineStart', null], ['marginLeft', null], ['marginInlineEnd', null], ['marginRight', null]],
81
+ marginBlock: value => [['marginBlock', value], ['marginTop', null], ['marginBottom', null]],
82
+ marginInlineStart: value => [['marginInlineStart', value], ['marginLeft', null], ['marginRight', null]],
83
+ marginInlineEnd: value => [['marginInlineEnd', value], ['marginLeft', null], ['marginRight', null]],
84
+ marginLeft: value => [['marginLeft', value], ['marginInlineStart', null], ['marginInlineEnd', null]],
85
+ marginRight: value => [['marginRight', value], ['marginInlineStart', null], ['marginInlineEnd', null]],
86
+ mask: value => [['mask', value], ['maskClip', null], ['maskComposite', null], ['maskImage', null], ['maskMode', null], ['maskOrigin', null], ['maskPosition', null], ['maskRepeat', null], ['maskSize', null]],
87
+ maskBorder: value => [['maskBorder', value], ['maskBorderMode', null], ['maskBorderOutset', null], ['maskBorderRepeat', null], ['maskBorderSlice', null], ['maskBorderSource', null], ['maskBorderWidth', null]],
88
+ offset: value => [['offset', value], ['offsetAnchor', null], ['offsetDistance', null], ['offsetPath', null], ['offsetPosition', null], ['offsetRotate', null]],
89
+ outline: value => [['outline', value], ['outlineColor', null], ['outlineOffset', null], ['outlineStyle', null], ['outlineWidth', null]],
90
+ overflow: value => [['overflow', value], ['overflowX', null], ['overflowY', null]],
91
+ padding: rawValue => {
92
+ const values = typeof rawValue === 'number' ? [rawValue] : (0, _splitCssValue.default)(rawValue);
93
+ if (values.length === 1) {
94
+ return [['padding', values[0]], ['paddingStart', null], ['paddingLeft', null], ['paddingEnd', null], ['paddingRight', null], ['paddingTop', null], ['paddingBottom', null]];
95
+ }
96
+ const [top, right = top, bottom = top, left = right] = values;
97
+ return [['paddingTop', top], ['paddingEnd', right], ['paddingBottom', bottom], ['paddingStart', left]];
98
+ },
99
+ paddingInline: rawValue => [['paddingInline', rawValue], ['paddingStart', null], ['paddingLeft', null], ['paddingEnd', null], ['paddingRight', null]],
100
+ paddingBlock: rawValue => [['paddingBlock', rawValue], ['paddingTop', null], ['paddingBottom', null]],
101
+ paddingInlineStart: value => [['paddingInlineStart', value], ['paddingLeft', null], ['paddingRight', null]],
102
+ paddingInlineEnd: value => [['paddingInlineEnd', value], ['paddingLeft', null], ['paddingRight', null]],
103
+ paddingLeft: value => [['paddingLeft', value], ['paddingInlineStart', null], ['paddingInlineEnd', null]],
104
+ paddingRight: value => [['paddingRight', value], ['paddingInlineStart', null], ['paddingInlineEnd', null]],
105
+ placeContent: value => [['placeContent', value], ['alignContent', null], ['justifyContent', null]],
106
+ placeItems: value => [['placeItems', value], ['alignItems', null], ['justifyItems', null]],
107
+ placeSelf: value => [['placeSelf', value], ['alignSelf', null], ['justifySelf', null]],
108
+ scrollMargin: value => [['scrollMargin', value], ...shorthands.scrollMarginBlock(null), ...shorthands.scrollMarginInline(null)],
109
+ scrollMarginBlock: value => [['scrollMarginBlock', value], ['scrollMarginTop', null], ['scrollMarginBottom', null]],
110
+ scrollMarginInline: value => [['scrollMarginInline', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
111
+ scrollMarginInlineStart: value => [['scrollMarginInlineStart', value], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
112
+ scrollMarginInlineEnd: value => [['scrollMarginInlineEnd', value], ['scrollMarginLeft', null], ['scrollMarginRight', null]],
113
+ scrollMarginLeft: value => [['scrollMarginLeft', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null]],
114
+ scrollMarginRight: value => [['scrollMarginRight', value], ['scrollMarginInlineStart', null], ['scrollMarginInlineEnd', null]],
115
+ scrollPadding: value => [['scrollPadding', value], ...shorthands.scrollPaddingBlock(null), ...shorthands.scrollPaddingInline(null)],
116
+ scrollPaddingBlock: value => [['scrollPaddingBlock', value], ['scrollPaddingTop', null], ['scrollPaddingBottom', null]],
117
+ scrollPaddingInline: value => [['scrollPaddingInline', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
118
+ scrollPaddingInlineStart: value => [['scrollPaddingInlineStart', value], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
119
+ scrollPaddingInlineEnd: value => [['scrollPaddingInlineEnd', value], ['scrollPaddingLeft', null], ['scrollPaddingRight', null]],
120
+ scrollPaddingLeft: value => [['scrollPaddingLeft', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null]],
121
+ scrollPaddingRight: value => [['scrollPaddingRight', value], ['scrollPaddingInlineStart', null], ['scrollPaddingInlineEnd', null]],
122
+ scrollSnapType: value => [['scrollSnapType', value], ['scrollSnapTypeX', null], ['scrollSnapTypeY', null]],
123
+ scrollTimeline: value => [['scrollTimeline', value], ['scrollTimelineName', null], ['scrollTimelineAxis', null]],
124
+ textDecoration: value => [['textDecoration', value], ['textDecorationColor', null], ['textDecorationLine', null], ['textDecorationStyle', null], ['textDecorationThickness', null]],
125
+ textEmphasis: value => [['textEmphasis', value], ['textEmphasisColor', null], ['textEmphasisStyle', null]],
126
+ transition: value => [['transition', value], ['transitionBehavior', null], ['transitionDelay', null], ['transitionDuration', null], ['transitionProperty', null], ['transitionTimingFunction', null]]
127
+ };
128
+ const aliases = {
129
+ borderHorizontal: shorthands.borderInline,
130
+ borderVertical: shorthands.borderBlock,
131
+ borderBlockStart: shorthands.borderTop,
132
+ borderEnd: shorthands.borderInlineEnd,
133
+ borderBlockEnd: shorthands.borderBottom,
134
+ borderStart: shorthands.borderInlineStart,
135
+ blockSize: val => [['height', val]],
136
+ inlineSize: val => [['width', val]],
137
+ minBlockSize: val => [['minHeight', val]],
138
+ minInlineSize: val => [['minWidth', val]],
139
+ maxBlockSize: val => [['maxHeight', val]],
140
+ maxInlineSize: val => [['maxWidth', val]],
141
+ borderHorizontalWidth: shorthands.borderInlineWidth,
142
+ borderHorizontalStyle: shorthands.borderInlineStyle,
143
+ borderHorizontalColor: shorthands.borderInlineColor,
144
+ borderVerticalWidth: shorthands.borderBlockWidth,
145
+ borderVerticalStyle: shorthands.borderBlockStyle,
146
+ borderVerticalColor: shorthands.borderBlockColor,
147
+ borderBlockStartColor: value => [['borderTopColor', value]],
148
+ borderBlockEndColor: value => [['borderBottomColor', value]],
149
+ borderBlockStartStyle: value => [['borderTopStyle', value]],
150
+ borderBlockEndStyle: value => [['borderBottomStyle', value]],
151
+ borderBlockStartWidth: value => [['borderTopWidth', value]],
152
+ borderBlockEndWidth: value => [['borderBottomWidth', value]],
153
+ borderStartColor: shorthands.borderInlineStartColor,
154
+ borderEndColor: shorthands.borderInlineEndColor,
155
+ borderStartStyle: shorthands.borderInlineStartStyle,
156
+ borderEndStyle: shorthands.borderInlineEndStyle,
157
+ borderStartWidth: shorthands.borderInlineStartWidth,
158
+ borderEndWidth: shorthands.borderInlineEndWidth,
159
+ borderTopStartRadius: value => [['borderStartStartRadius', value]],
160
+ borderTopEndRadius: value => [['borderStartEndRadius', value]],
161
+ borderBottomStartRadius: value => [['borderEndStartRadius', value]],
162
+ borderBottomEndRadius: value => [['borderEndEndRadius', value]],
163
+ containIntrinsicBlockSize: value => [['containIntrinsicHeight', value]],
164
+ containIntrinsicInlineSize: value => [['containIntrinsicWidth', value]],
165
+ gridGap: shorthands.gap,
166
+ gridRowGap: value => [['rowGap', value]],
167
+ gridColumnGap: value => [['columnGap', value]],
168
+ marginBlockStart: value => [['marginTop', value]],
169
+ marginBlockEnd: value => [['marginBottom', value]],
170
+ marginStart: shorthands.marginInlineStart,
171
+ marginEnd: shorthands.marginInlineEnd,
172
+ marginHorizontal: shorthands.marginInline,
173
+ marginVertical: shorthands.marginBlock,
174
+ overflowBlock: value => [['overflowY', value]],
175
+ overflowInline: value => [['overflowX', value]],
176
+ paddingBlockStart: rawValue => [['paddingTop', rawValue]],
177
+ paddingBlockEnd: rawValue => [['paddingBottom', rawValue]],
178
+ paddingStart: shorthands.paddingInlineStart,
179
+ paddingEnd: shorthands.paddingInlineEnd,
180
+ paddingHorizontal: shorthands.paddingInline,
181
+ paddingVertical: shorthands.paddingBlock,
182
+ scrollMarginBlockStart: value => [['scrollMarginTop', value]],
183
+ scrollMarginBlockEnd: value => [['scrollMarginBottom', value]],
184
+ insetBlockStart: value => [['top', value]],
185
+ insetBlockEnd: value => [['bottom', value]],
186
+ start: shorthands.insetInlineStart,
187
+ end: shorthands.insetInlineEnd
188
+ };
189
+ const expansions = {
190
+ ...shorthands,
191
+ ...aliases
192
+ };
193
+ var _default = exports.default = expansions;