Skip to content

Commit

Permalink
sonner v2.0 (#558)
Browse files Browse the repository at this point in the history
* refactor: remove unstyled prop (#557)

* fix: allow toats to grow properly (#559)

* chore: rename data-theme to data-sonner-theme (#560)

* fix: toast removal in strict mode (#563)

* refactor: maintain default styles when custom (#564)

* fix: check for promise properly (#565)

* chore: horizontal swiping improvements (#566)

* medium font weight

* chore: improve rich colors (#567)

* chore: improve base colors (#568)

* improve colors

* improve base colors

* chore: remove lift interaction, decrease default gap (#569)

* v2.0.0-beta.1

* chore: update toast lifetime (#570)

* build: use bunchee (#561)

* fix: failing tests (#572)

* Fix tests

* fix tests

* fix: unstyled prop not being applied to all elements (#573)

* Improve unstyled prop

* Cleanup

* fix: inability to remove a toast that has just been created (#574)

* Prevent batching

* Cleanup

* hero cleanup

* fix: close button background is transparent (#575)

* chore: bring back lift on hover (#576)

* v2.0.0-beta.2

* chore: remove deprecated props (#577)

* feat: drag damping (#578)

* dampen darg

* Adjust swipe threshold

* typo

* Enhance Promise to support ExternalToast propertiesfeat: Promise enhancement to allow ExternalToast props (#547)

* fix: make promises work with new Error (#579)

* wip

* Add test for error classin promises

* chore: Hide the close button when toastType is loading (#516)

#514 #476

* fix close button aria labels (#490)

Co-authored-by: Emil Kowalski <[email protected]>

* fix: error promise test (#580)

* v2.0.0-beta.3

---------

Co-authored-by: Jiachi Liu <[email protected]>
Co-authored-by: Diego Traid <[email protected]>
Co-authored-by: 알노리 <[email protected]>
Co-authored-by: Miro Rauhala <[email protected]>
  • Loading branch information
5 people authored Feb 18, 2025
1 parent 2c345fa commit d66388d
Show file tree
Hide file tree
Showing 13 changed files with 1,165 additions and 981 deletions.
21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"name": "sonner",
"version": "1.7.4",
"version": "2.0.0-beta.3",
"description": "An opinionated toast component for React.",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"default": "./dist/index.js"
},
"./dist/styles.css": "./dist/styles.css"
},
Expand All @@ -16,8 +22,9 @@
"dist"
],
"scripts": {
"build": "tsup src/index.tsx && cp src/styles.css dist/styles.css",
"dev": "tsup src/index.tsx --watch",
"dev": "bunchee --watch",
"build": "bunchee && cp src/styles.css dist/styles.css",
"type-check": "tsc --noEmit",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
Expand All @@ -44,10 +51,10 @@
"@playwright/test": "^1.49.1",
"@types/node": "^18.11.13",
"@types/react": "^18.0.26",
"bunchee": "^6.3.3",
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsup": "^6.4.0",
"turbo": "1.6",
"typescript": "^4.8.4"
},
Expand Down
Loading

0 comments on commit d66388d

Please sign in to comment.