@stylexjs/shared 0.2.0-beta.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/README.md +3 -3
  2. package/lib/common-types.d.ts +49 -0
  3. package/lib/common-types.js.flow +64 -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 +6 -17
  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 +21 -29
  15. package/lib/index.js.flow +57 -3
  16. package/lib/messages.d.ts +41 -0
  17. package/lib/messages.js +33 -53
  18. package/lib/messages.js.flow +44 -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 +60 -133
  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 +0 -9
  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 +90 -123
  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 +46 -74
  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 +67 -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 -146
  99. package/lib/stylex-create.js.flow +30 -0
  100. package/lib/stylex-define-vars.d.ts +29 -0
  101. package/lib/stylex-define-vars.js +73 -0
  102. package/lib/stylex-define-vars.js.flow +26 -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 +2 -12
  108. package/lib/stylex-include.js.flow +20 -0
  109. package/lib/stylex-keyframes.d.ts +17 -0
  110. package/lib/stylex-keyframes.js +6 -26
  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 +0 -21
  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 +13 -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 +8 -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 +2 -14
  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 +516 -101
  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 +0 -14
  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 -330
  178. package/lib/namespace-transforms/__tests__/preflatten.test.js +0 -120
  179. package/lib/namespace-transforms/preflatten.js +0 -89
  180. package/lib/preprocess-rules/expand-shorthands.js +0 -156
  181. package/lib/preprocess-rules/null-out-longhand.js +0 -310
  182. package/lib/preprocess-rules/react-native-web.js +0 -142
  183. 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$$;