@stylexjs/rollup-plugin 0.2.0-beta.8 → 0.2.0-beta.9

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @stylexjs/rollup-plugin
2
+
3
+ ...
@@ -57,16 +57,15 @@ describe('rollup-plugin-stylex', () => {
57
57
 
58
58
  expect(css).toMatchInlineSnapshot(`
59
59
  "@keyframes x11gtny7-B{0%{opacity:.25;}100%{opacity:1;}}
60
- .x188knyk{margin-block-start:99px}
61
- .x1c4r43l{display:flex}
62
- .x1je5kxa{height:500px}
63
- html:not([dir='rtl']) .x1n8p6zw{margin-left:10px}
64
- html[dir='rtl'] .x1n8p6zw{margin-right:10px}
65
60
  .x1nrqb13{animation-name:x11gtny7-B}
66
- .x1u78jha{width:50%}
61
+ .xntgbld{display:block}
62
+ .x1c4r43l{display:flex}
67
63
  .x1wdx05y{display:inline}
64
+ .x1je5kxa{height:500px}
65
+ .xo3gju4{margin-inline-start:10px}
66
+ .x1h9ru99{margin-top:99px}
68
67
  .x6mlivy{width:100%}
69
- .xntgbld{display:block}
68
+ .x1u78jha{width:50%}
70
69
  .x1kflwvg:hover{background:red}"
71
70
  `);
72
71
 
@@ -97,10 +96,20 @@ describe('rollup-plugin-stylex', () => {
97
96
  foo: {
98
97
  animationName: "x1nrqb13",
99
98
  display: "x1c4r43l",
100
- marginStart: "x1n8p6zw",
101
- marginBlockStart: "x188knyk",
99
+ marginInlineStart: "xo3gju4",
100
+ marginLeft: null,
101
+ marginRight: null,
102
+ marginTop: "x1h9ru99",
102
103
  height: "x1je5kxa",
103
104
  ":hover_background": "x1kflwvg",
105
+ ":hover_backgroundAttachment": null,
106
+ ":hover_backgroundClip": null,
107
+ ":hover_backgroundColor": null,
108
+ ":hover_backgroundImage": null,
109
+ ":hover_backgroundOrigin": null,
110
+ ":hover_backgroundPosition": null,
111
+ ":hover_backgroundRepeat": null,
112
+ ":hover_backgroundSize": null,
104
113
  $$css: true
105
114
  }
106
115
  };
@@ -126,8 +135,8 @@ describe('rollup-plugin-stylex', () => {
126
135
  "import stylex from 'stylex';
127
136
 
128
137
  // otherStyles.js
129
- stylex.inject(".xntgbld{display:block}", 1);
130
- stylex.inject(".x6mlivy{width:100%}", 1);
138
+ stylex.inject(".xntgbld{display:block}", 4);
139
+ stylex.inject(".x6mlivy{width:100%}", 4);
131
140
  var styles$2 = {
132
141
  bar: {
133
142
  "otherStyles__styles.bar": "otherStyles__styles.bar",
@@ -138,9 +147,9 @@ describe('rollup-plugin-stylex', () => {
138
147
  };
139
148
 
140
149
  // npmStyles.js
141
- stylex.inject(".x1wdx05y{display:inline}", 1);
142
- stylex.inject(".x1je5kxa{height:500px}", 1);
143
- stylex.inject(".x1u78jha{width:50%}", 1);
150
+ stylex.inject(".x1wdx05y{display:inline}", 4);
151
+ stylex.inject(".x1je5kxa{height:500px}", 4);
152
+ stylex.inject(".x1u78jha{width:50%}", 4);
144
153
  const styles$1 = {
145
154
  baz: {
146
155
  "npmStyles__styles.baz": "npmStyles__styles.baz",
@@ -153,21 +162,31 @@ describe('rollup-plugin-stylex', () => {
153
162
 
154
163
  // index.js
155
164
  stylex.inject("@keyframes x11gtny7-B{0%{opacity:.25;}100%{opacity:1;}}", 1);
156
- stylex.inject(".x1nrqb13{animation-name:x11gtny7-B}", 1);
157
- stylex.inject(".x1c4r43l{display:flex}", 1);
158
- stylex.inject(".x1n8p6zw{margin-left:10px}", 1, ".x1n8p6zw{margin-right:10px}");
159
- stylex.inject(".x188knyk{margin-block-start:99px}", 1);
160
- stylex.inject(".x1je5kxa{height:500px}", 1);
161
- stylex.inject(".x1kflwvg:hover{background:red}", 8);
165
+ stylex.inject(".x1nrqb13{animation-name:x11gtny7-B}", 4);
166
+ stylex.inject(".x1c4r43l{display:flex}", 4);
167
+ stylex.inject(".xo3gju4{margin-inline-start:10px}", 4);
168
+ stylex.inject(".x1h9ru99{margin-top:99px}", 4);
169
+ stylex.inject(".x1je5kxa{height:500px}", 4);
170
+ stylex.inject(".x1kflwvg:hover{background:red}", 16);
162
171
  var styles = {
163
172
  foo: {
164
173
  "index__styles.foo": "index__styles.foo",
165
174
  animationName: "x1nrqb13",
166
175
  display: "x1c4r43l",
167
- marginStart: "x1n8p6zw",
168
- marginBlockStart: "x188knyk",
176
+ marginInlineStart: "xo3gju4",
177
+ marginLeft: null,
178
+ marginRight: null,
179
+ marginTop: "x1h9ru99",
169
180
  height: "x1je5kxa",
170
181
  ":hover_background": "x1kflwvg",
182
+ ":hover_backgroundAttachment": null,
183
+ ":hover_backgroundClip": null,
184
+ ":hover_backgroundColor": null,
185
+ ":hover_backgroundImage": null,
186
+ ":hover_backgroundOrigin": null,
187
+ ":hover_backgroundPosition": null,
188
+ ":hover_backgroundRepeat": null,
189
+ ":hover_backgroundSize": null,
171
190
  $$css: true
172
191
  }
173
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.2.0-beta.8",
3
+ "version": "0.2.0-beta.9",
4
4
  "description": "Rollup plugin for stylex",
5
5
  "main": "src/index.js",
6
6
  "repository": "https://www.github.com/facebookexternal/stylex",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/core": "^7.16.0",
21
- "@stylexjs/babel-plugin": "0.2.0-beta.8"
21
+ "@stylexjs/babel-plugin": "0.2.0-beta.9"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@babel/preset-env": "^7.16.8",
@@ -26,6 +26,6 @@
26
26
  "@rollup/plugin-commonjs": "^23.0.1",
27
27
  "@rollup/plugin-node-resolve": "^15.0.0",
28
28
  "rollup": "^3.2.3",
29
- "@stylexjs/stylex": "0.2.0-beta.8"
29
+ "@stylexjs/stylex": "0.2.0-beta.9"
30
30
  }
31
31
  }