Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support reactive themes up to 4 levels deep #761

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: rebase and update snapshots
nmn committed Oct 31, 2024
commit cce5a8b28d050452a2ab4883e4a5c8a8a693792c
Original file line number Diff line number Diff line change
@@ -12,7 +12,8 @@ exports[`esbuild-plugin-stylex extracts and bundles CSS without inject calls, bu
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined") return require.apply(this, arguments);
if (typeof require !== "undefined")
return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __copyProps = (to, from, except, desc) => {
@@ -105,7 +106,7 @@ exports[`esbuild-plugin-stylex extracts and bundles CSS without inject calls, bu
// __tests__/__fixtures__/index.ts
function App() {
return {
className: "xktrvhi xthc9sq"
className: "xlu94hl xgbg9yd"
};
}
})();
@@ -116,12 +117,12 @@ exports[`esbuild-plugin-stylex extracts and bundles CSS without inject calls, bu
"
@layer priority1, priority2;
@layer priority1{
:root, .xokpgiz{--xx1oc6k:white;--x14p2zvc:pink;--xdr2u03:green;}
:root, .xokpgiz{--x1b96qz0:white;--x1cpylmt:pink;--xr6c0rs:green;}
}
@layer priority2{
.xktrvhi{background-color:var(--xx1oc6k)}
.xiz802d{color:var(--x14p2zvc)}
.xthc9sq{color:var(--xdr2u03)}
.xlu94hl{background-color:var(--x1b96qz0)}
.xfpfjxz{color:var(--x1cpylmt)}
.xgbg9yd{color:var(--xr6c0rs)}
}"
`;

@@ -137,7 +138,8 @@ exports[`esbuild-plugin-stylex preserves stylex.inject calls and does not extrac
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined") return require.apply(this, arguments);
if (typeof require !== "undefined")
return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __copyProps = (to, from, except, desc) => {
2,082 changes: 1,041 additions & 1,041 deletions packages/open-props/__tests__/__snapshots__/open-props-compile-test.js.snap

Large diffs are not rendered by default.