Skip to content

Commit

Permalink
Merge pull request #90 from sannajammeh/changeset-release/master
Browse files Browse the repository at this point in the history
  • Loading branch information
sannajammeh authored Jan 24, 2023
2 parents 3049166 + 891301a commit e02cb3b
Show file tree
Hide file tree
Showing 16 changed files with 131 additions and 110 deletions.
37 changes: 0 additions & 37 deletions .changeset/cool-lizards-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/famous-houses-grab.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/healthy-ducks-stare.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/itchy-ties-perform.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/red-brooms-carry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-bulldogs-nail.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/swift-moons-search.md

This file was deleted.

7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# beta-docs

## 2.0.12

### Patch Changes

- Updated dependencies [[`785bcaaa`](https://github.com/sannajammeh/tw-classed/commit/785bcaaada76f9b19edce4b1724d7850dcb4fbd6), [`fc48bf56`](https://github.com/sannajammeh/tw-classed/commit/fc48bf56799b41b6fcb5bffb01e7911e9f3a9693), [`0f5f46fa`](https://github.com/sannajammeh/tw-classed/commit/0f5f46fa6ce9f5eb78115c5a04fd9bc06f64c847), [`d392ab1c`](https://github.com/sannajammeh/tw-classed/commit/d392ab1cfb74cd45d86637f0fcc19c6de2cdb2e6), [`b183d8ab`](https://github.com/sannajammeh/tw-classed/commit/b183d8ab03ea864c65927226bb6dc9ada250c250), [`81a77612`](https://github.com/sannajammeh/tw-classed/commit/81a77612d73058a515fcc6ed5ee548c89a0b8cb6)]:
- @tw-classed/react@1.4.0

## 2.0.12-canary.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "2.0.12-canary.5",
"version": "2.0.12",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
41 changes: 41 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @tw-classed/core

## 1.4.0

### Minor Changes

- [#82](https://github.com/sannajammeh/tw-classed/pull/82) [`0f5f46fa`](https://github.com/sannajammeh/tw-classed/commit/0f5f46fa6ce9f5eb78115c5a04fd9bc06f64c847) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Adds support for `deriveClassed` & `makeStrict`. Updated core internal typing for compatibility.

### Patch Changes

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`785bcaaa`](https://github.com/sannajammeh/tw-classed/commit/785bcaaada76f9b19edce4b1724d7850dcb4fbd6) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Adds support for compoundVariants to be inherit via the composition API.

Example:

```tsx
const Button = classed.button({
base: "bg-blue-500 text-white",
variants: {
size: {
sm: "px-2 py-1 text-sm",
md: "px-4 py-2 text-base",
},
color: {
red: "bg-red-500",
green: "bg-green-500",
},
},
compoundVariants: [
{
size: "sm",
color: "green"
class: "super-special-class-modifyer"
},
],
});

const GreenButton = classed(Button, {
defaultVariants: {
color: "green", // This now triggers the compoundVariant
},
});
```

## 1.4.0-canary.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tw-classed/core",
"version": "1.4.0-canary.5",
"version": "1.4.0",
"description": "A Stitches & Styled-Components inspired library to create reusable Tailwind react components",
"sideEffects": false,
"main": "dist/index.cjs",
Expand Down
60 changes: 60 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# @tw-classed/react

## 1.4.0

### Minor Changes

- [#82](https://github.com/sannajammeh/tw-classed/pull/82) [`0f5f46fa`](https://github.com/sannajammeh/tw-classed/commit/0f5f46fa6ce9f5eb78115c5a04fd9bc06f64c847) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Adds support for `deriveClassed` & `makeStrict`. Updated core internal typing for compatibility.

### Patch Changes

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`785bcaaa`](https://github.com/sannajammeh/tw-classed/commit/785bcaaada76f9b19edce4b1724d7850dcb4fbd6) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Adds support for compoundVariants to be inherit via the composition API.

Example:

```tsx
const Button = classed.button({
base: "bg-blue-500 text-white",
variants: {
size: {
sm: "px-2 py-1 text-sm",
md: "px-4 py-2 text-base",
},
color: {
red: "bg-red-500",
green: "bg-green-500",
},
},
compoundVariants: [
{
size: "sm",
color: "green"
class: "super-special-class-modifyer"
},
],
});

const GreenButton = classed(Button, {
defaultVariants: {
color: "green", // This now triggers the compoundVariant
},
});
```

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`fc48bf56`](https://github.com/sannajammeh/tw-classed/commit/fc48bf56799b41b6fcb5bffb01e7911e9f3a9693) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Sets target to es2018 in tsconfig to allow bundling to newer syntax

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`d392ab1c`](https://github.com/sannajammeh/tw-classed/commit/d392ab1cfb74cd45d86637f0fcc19c6de2cdb2e6) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Export Classed Proxy type due to TS error on pnpm

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`b183d8ab`](https://github.com/sannajammeh/tw-classed/commit/b183d8ab03ea864c65927226bb6dc9ada250c250) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Reverse insert order of first element composition to allow overriding of defaultVariants & other variant properties when re-classing

- [#89](https://github.com/sannajammeh/tw-classed/pull/89) [`81a77612`](https://github.com/sannajammeh/tw-classed/commit/81a77612d73058a515fcc6ed5ee548c89a0b8cb6) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Fixes As prop usage inside a derived component's render method by implicitly requiring `As` generic.

**NOTE:** Use only when manually setting `as` inside derive's render method. Otherwise, let the compiler infer the `As` generic.

```tsx
deriveClassed<Comp, Props, "div">((props, ref) => (
<BaseComp as="div" {...props} ref={ref} />
));
```

- Updated dependencies [[`785bcaaa`](https://github.com/sannajammeh/tw-classed/commit/785bcaaada76f9b19edce4b1724d7850dcb4fbd6), [`0f5f46fa`](https://github.com/sannajammeh/tw-classed/commit/0f5f46fa6ce9f5eb78115c5a04fd9bc06f64c847)]:
- @tw-classed/core@1.4.0

## 1.4.0-canary.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tw-classed/react",
"version": "1.4.0-canary.6",
"version": "1.4.0",
"description": "A Stitches & Styled-Components inspired library to create reusable Tailwind React components",
"sideEffects": false,
"main": "dist/index.cjs",
Expand Down
19 changes: 19 additions & 0 deletions packages/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @tw-classed/solid

## 1.4.0

### Patch Changes

- [#70](https://github.com/sannajammeh/tw-classed/pull/70) [`a5763359`](https://github.com/sannajammeh/tw-classed/commit/a576335954e8269ef3a03fdd06790eeb9b777e71) Thanks [@sannajammeh](https://github.com/sannajammeh)! - Add Solid.js library

`@tw-classed/solid` is a library that allows you to create classed components in `Solid.js`. It has **1-1 API parity** with `@tw-classed/react`, but with Solid specific internals. Follow the [React guide](/docs) to learn more about the API.

```tsx
import { classed } from "@tw-classed/solid";

const Button = classed.button("bg-blue-500 text-white p-2 rounded");

() => <Button>Click me</Button>;
```

- Updated dependencies [[`785bcaaa`](https://github.com/sannajammeh/tw-classed/commit/785bcaaada76f9b19edce4b1724d7850dcb4fbd6), [`0f5f46fa`](https://github.com/sannajammeh/tw-classed/commit/0f5f46fa6ce9f5eb78115c5a04fd9bc06f64c847)]:
- @tw-classed/core@1.4.0

## 1.4.0-canary.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tw-classed/solid",
"version": "1.4.0-canary.5",
"version": "1.4.0",
"description": "A Stitches & Styled-Components inspired library to create reusable Tailwind Solid components",
"sideEffects": false,
"exports": {
Expand Down

1 comment on commit e02cb3b

@vercel
Copy link

@vercel vercel bot commented on e02cb3b Jan 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tw-classed – ./

tw-classed-git-master-sannajammeh.vercel.app
tw-classed-sannajammeh.vercel.app
tw-classed.vercel.app

Please sign in to comment.