Skip to content

Commit

Permalink
[ci] release (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Feb 4, 2024
1 parent 7dd1ec8 commit 1364072
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .changeset/unlucky-avocados-tap.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/stylex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# astro-stylex

## 0.3.0

### Minor Changes

- [#76](https://github.com/lilnasy/gratelets/pull/76) [`7dd1ec8`](https://github.com/lilnasy/gratelets/commit/7dd1ec8de6bbbf4c307136b5da04b85887a6c1c7) Thanks [@lilnasy](https://github.com/lilnasy)! - **Breaking**: The required `@stylexjs/stylex` version is now 0.5.1.

Updates `@stylexjs/stylex` version to 0.5.1. This version introduces a new API for non-react UI frameworks: `stylex.attrs()`.

Previously, svelte users had to create a wrapper function around `stylex.props()`, which returned the `className` prop intended only for React. The newly introduced `stylex.attrs()` returns the generated classes in the `class` props, allowing it to work across frameworks.

```svelte
<script context="module">
import stylex from "@stylexjs/stylex"
const colorStyles = stylex.create({
red: {
backgroundColor: 'red',
borderColor: 'darkred',
},
green: {
backgroundColor: 'lightgreen',
borderColor: 'darkgreen',
},
});
</script>
<button {...stylex.attrs(colorStyles.red)} />
<button {...stylex.attrs(colorStyles.green)} />
```

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/stylex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-stylex",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"author": "Arsh",
"license": "Public Domain",
Expand Down

0 comments on commit 1364072

Please sign in to comment.