Skip to content

Commit

Permalink
Support for StyleX 0.9.3 (#90)
Browse files Browse the repository at this point in the history
* Support for StyleX 0.9.3

Co-authored-by: Niklas Mollenhauer <nikeee@outlook.com>

* demo apps changes

---------

Co-authored-by: Niklas Mollenhauer <nikeee@outlook.com>
  • Loading branch information
HorusGoul and nikeee authored Nov 6, 2024
1 parent d593347 commit 46af3e4
Show file tree
Hide file tree
Showing 15 changed files with 859 additions and 723 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-poets-pets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-stylex": minor
---

Support for StyleX 0.9.3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Vue doesn't require any extra setup steps, but here's an example of how you can
</script>

<template>
<div :class="stylex(styles.root)">
<div v-bind="stylex.attrs(styles.root)">
<slot />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion apps/qwik-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@internal/test-utils": "workspace:^",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"tsx": "^4.6.2",
"vite-plugin-stylex": "workspace:^"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/qwik-demo/src/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Slot, component$ } from "@builder.io/qwik";

const Card = component$(() => {
return (
<div class={stylex(styles.root)} data-testid="card">
<div {...stylex.attrs(styles.root)} data-testid="card">
<Slot />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/react-strict-dom-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@stylexjs/open-props": "^0.3.0",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-strict-dom": "^0.0.3"
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-css-url-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@remix-run/react": "^2.8.1",
"@remix-run/serve": "^2.8.1",
"@stylexjs/open-props": "^0.3.0",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"isbot": "^3.6.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@remix-run/react": "^2.8.1",
"@remix-run/serve": "^2.8.1",
"@stylexjs/open-props": "^0.3.0",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"isbot": "^3.6.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/sveltekit-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "module",
"dependencies": {
"@internal/test-utils": "workspace:*",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"tsx": "^4.6.2",
"vite-plugin-stylex": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/sveltekit-demo/src/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
});
</script>

<div class={stylex(styles.root)} data-testid="card">
<div {...stylex.attrs(styles.root)} data-testid="card">
<slot />
</div>
2 changes: 1 addition & 1 deletion apps/vite-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@stylexjs/open-props": "^0.3.0",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/vue-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@internal/test-utils": "workspace:*",
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"tsx": "^4.6.2",
"vite-plugin-stylex": "workspace:*",
"vue": "^3.3.11"
Expand Down
2 changes: 1 addition & 1 deletion apps/vue-demo/src/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const styles = stylex.create({
</script>

<template>
<div :class="stylex(styles.root)" data-testid="card">
<div v-bind="stylex.attrs(styles.root)" data-testid="card">
<slot />
</div>
</template>
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-plugin-stylex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"@babel/plugin-syntax-flow": "^7.24.7",
"@babel/plugin-syntax-jsx": "^7.24.7",
"@babel/plugin-syntax-typescript": "^7.24.7",
"@stylexjs/babel-plugin": "^0.8.0",
"@stylexjs/babel-plugin": "^0.9.3",
"compare-versions": "^6.1.0"
},
"peerDependencies": {
"@stylexjs/stylex": "^0.8.0",
"@stylexjs/stylex": "^0.9.3",
"vite": "^5.2.7"
},
"peerDependenciesMeta": {
Expand Down
Loading

0 comments on commit 46af3e4

Please sign in to comment.