added apps
This commit is contained in:
21
node_modules/sonner/LICENSE.md
generated
vendored
Normal file
21
node_modules/sonner/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Emil Kowalski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
33
node_modules/sonner/README.md
generated
vendored
Normal file
33
node_modules/sonner/README.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
https://github.com/vallezw/sonner/assets/50796600/59b95cb7-9068-4f3e-8469-0b35d9de5cf0
|
||||
|
||||
[Sonner](https://sonner.emilkowal.ski/) is an opinionated toast component for React. You can read more about why and how it was built [here](https://emilkowal.ski/ui/building-a-toast-component).
|
||||
|
||||
## Usage
|
||||
|
||||
To start using the library, install it in your project:
|
||||
|
||||
```bash
|
||||
npm install sonner
|
||||
```
|
||||
|
||||
Add `<Toaster />` to your app, it will be the place where all your toasts will be rendered.
|
||||
After that you can use `toast()` from anywhere in your app.
|
||||
|
||||
```jsx
|
||||
import { Toaster, toast } from 'sonner';
|
||||
|
||||
// ...
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div>
|
||||
<Toaster />
|
||||
<button onClick={() => toast('My first toast')}>Give me a toast</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
Find the full API reference in the [documentation](https://sonner.emilkowal.ski/getting-started).
|
||||
66
node_modules/sonner/package.json
generated
vendored
Normal file
66
node_modules/sonner/package.json
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"name": "sonner",
|
||||
"version": "2.0.3",
|
||||
"description": "An opinionated toast component for React.",
|
||||
"exports": {
|
||||
".": {
|
||||
"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"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"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 .",
|
||||
"test": "playwright test"
|
||||
},
|
||||
"keywords": [
|
||||
"react",
|
||||
"notifications",
|
||||
"toast",
|
||||
"snackbar",
|
||||
"message"
|
||||
],
|
||||
"author": "Emil Kowalski <e@emilkowal.ski>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://sonner.emilkowal.ski/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/emilkowalski/sonner.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/emilkowalski/sonner/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@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",
|
||||
"turbo": "1.6",
|
||||
"typescript": "^4.8.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
||||
"react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
||||
},
|
||||
"packageManager": "pnpm@8.12.1"
|
||||
}
|
||||
Reference in New Issue
Block a user