nitro-web 0.0.178 → 0.0.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -711,10 +711,17 @@ export function Styleguide({ className, elements, children, currencies }: Styleg
711
711
  <h2 class="h3">Modals & Notifications</h2>
712
712
  <div class="flex flex-wrap gap-x-6 gap-y-4 mb-6">
713
713
  <Button color="primary" onClick={() => setShowModal1(true)}>Modal (default)</Button>
714
- <Button color="danger" onClick={() => setStore({ message: { text: 'Error.', type: 'error' }}) }>Notification error</Button>
715
- <Button color="warning" onClick={() => setStore({ message: { text: 'Warning.', type: 'warning' }}) }>Notification warning</Button>{/*eslint-disable-line*/}
716
- <Button color="info" onClick={() => setStore({ message: { text: 'Info.', type: 'info' }}) }>Notification info</Button>
717
- <Button color="success" onClick={() => setStore({ message: 'Success.' })}>Notification success</Button>
714
+ <Button color="danger" onClick={() => setStore((s) => ({ ...s, message: { text: 'Error.', type: 'error' }}))}>
715
+ Notification error
716
+ </Button>
717
+ <Button color="warning" onClick={() => setStore((s) => ({ ...s, message: { text: 'Warning.', type: 'warning' }})) }>
718
+ Notification warning
719
+ </Button>{/*eslint-disable-line*/}
720
+ <Button color="info" onClick={() => setStore((s) => ({ ...s, message: { text: 'Info.', type: 'info' }})) }>
721
+ Notification info</Button>
722
+ <Button color="success" onClick={() => setStore((s) => ({ ...s, message: 'Success.' }))}>
723
+ Notification success
724
+ </Button>
718
725
  </div>
719
726
  </div>
720
727
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.178",
3
+ "version": "0.0.180",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",