@stylexjs/shared 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common-types.d.ts +8 -11
- package/lib/common-types.js.flow +9 -14
- package/lib/convert-to-className.js +4 -3
- package/lib/index.d.ts +0 -5
- package/lib/index.js +1 -4
- package/lib/index.js.flow +0 -5
- package/lib/messages.d.ts +0 -1
- package/lib/messages.js +1 -2
- package/lib/messages.js.flow +0 -1
- package/lib/preprocess-rules/PreRule.d.ts +1 -10
- package/lib/preprocess-rules/PreRule.js +1 -13
- package/lib/preprocess-rules/PreRule.js.flow +1 -11
- package/lib/preprocess-rules/basic-validation.js +0 -10
- package/lib/preprocess-rules/flatten-raw-style-obj.d.ts +2 -6
- package/lib/preprocess-rules/flatten-raw-style-obj.js +0 -8
- package/lib/preprocess-rules/flatten-raw-style-obj.js.flow +3 -6
- package/lib/stylex-create.js +13 -18
- package/lib/utils/default-options.js +1 -0
- package/lib/utils/media-query-transform.d.ts +16 -0
- package/lib/utils/media-query-transform.js +53 -0
- package/lib/utils/media-query-transform.js.flow +20 -0
- package/lib/utils/object-utils.d.ts +1 -2
- package/lib/utils/object-utils.js +0 -3
- package/lib/utils/object-utils.js.flow +1 -3
- package/package.json +2 -2
- package/lib/properties/CSS Animations.json +0 -445
- package/lib/properties/CSS Backgrounds and Borders.json +0 -1085
- package/lib/properties/CSS Basic User Interface.json +0 -365
- package/lib/properties/CSS Box Alignment.json +0 -245
- package/lib/properties/CSS Box Model.json +0 -501
- package/lib/properties/CSS Color.json +0 -100
- package/lib/properties/CSS Columns.json +0 -185
- package/lib/properties/CSS Containment.json +0 -203
- package/lib/properties/CSS Counter Styles.json +0 -56
- package/lib/properties/CSS Display.json +0 -20
- package/lib/properties/CSS Flexible Box Layout.json +0 -167
- package/lib/properties/CSS Fonts.json +0 -684
- package/lib/properties/CSS Fragmentation.json +0 -110
- package/lib/properties/CSS Generated Content.json +0 -38
- package/lib/properties/CSS Grid Layout.json +0 -500
- package/lib/properties/CSS Images.json +0 -91
- package/lib/properties/CSS Inline.json +0 -38
- package/lib/properties/CSS Lists and Counters.json +0 -86
- package/lib/properties/CSS Logical Properties.json +0 -1086
- package/lib/properties/CSS Masking.json +0 -399
- package/lib/properties/CSS Miscellaneous.json +0 -38
- package/lib/properties/CSS Motion Path.json +0 -132
- package/lib/properties/CSS Overflow.json +0 -216
- package/lib/properties/CSS Pages.json +0 -83
- package/lib/properties/CSS Positioning.json +0 -166
- package/lib/properties/CSS Ruby.json +0 -55
- package/lib/properties/CSS Scroll Anchoring.json +0 -19
- package/lib/properties/CSS Scroll Snap.json +0 -604
- package/lib/properties/CSS Scrollbars.json +0 -38
- package/lib/properties/CSS Shapes.json +0 -56
- package/lib/properties/CSS Speech.json +0 -20
- package/lib/properties/CSS Table.json +0 -115
- package/lib/properties/CSS Text Decoration.json +0 -312
- package/lib/properties/CSS Text.json +0 -415
- package/lib/properties/CSS Transforms.json +0 -188
- package/lib/properties/CSS Transitions.json +0 -122
- package/lib/properties/CSS Variables.json +0 -20
- package/lib/properties/CSS View Transitions.json +0 -20
- package/lib/properties/CSS Will Change.json +0 -20
- package/lib/properties/CSS Writing Modes.json +0 -92
- package/lib/properties/Compositing and Blending.json +0 -62
- package/lib/properties/Filter Effects.json +0 -38
- package/lib/properties/MathML.json +0 -56
- package/lib/properties/Microsoft Extensions.json +0 -885
- package/lib/properties/Mozilla Extensions.json +0 -607
- package/lib/properties/Pointer Events.json +0 -20
- package/lib/properties/WebKit Extensions.json +0 -707
- package/lib/properties.json +0 -10122
- package/lib/utils/normalizers/convert-camel-case-transition-props.d.ts +0 -14
- package/lib/utils/normalizers/convert-camel-case-transition-props.js +0 -23
- package/lib/utils/normalizers/convert-camel-case-transition-props.js.flow +0 -13
@@ -1,14 +0,0 @@
|
|
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
|
-
declare function convertCamelCasedTransitionProps(
|
11
|
-
ast: PostCSSValueAST,
|
12
|
-
key: string,
|
13
|
-
): PostCSSValueAST;
|
14
|
-
export default convertCamelCasedTransitionProps;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = convertCamelCasedTransitionProps;
|
7
|
-
var _dashify = _interopRequireDefault(require("../dashify"));
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
|
-
function convertCamelCasedTransitionProps(ast, key) {
|
10
|
-
if (key !== 'transitionProperty') {
|
11
|
-
return ast;
|
12
|
-
}
|
13
|
-
const nodes = ast.nodes;
|
14
|
-
if (!nodes) {
|
15
|
-
return ast;
|
16
|
-
}
|
17
|
-
nodes.forEach(node => {
|
18
|
-
if (node.type === 'word' && !node.value.startsWith('--')) {
|
19
|
-
node.value = (0, _dashify.default)(node.value);
|
20
|
-
}
|
21
|
-
});
|
22
|
-
return ast;
|
23
|
-
}
|
@@ -1,13 +0,0 @@
|
|
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
|
-
declare export default function convertCamelCasedTransitionProps(
|
11
|
-
ast: PostCSSValueAST,
|
12
|
-
key: string,
|
13
|
-
): PostCSSValueAST;
|