nitro-web 0.0.37 → 0.0.39

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.
@@ -47,7 +47,7 @@ export function Button({
47
47
  lg: 'px-3.5 py-2.5 px-button-x-lg py-button-y-lg text-sm rounded-md',
48
48
  }
49
49
 
50
- const contentLayout = `w-full gap-x-1.5 ${iconPosition == 'none' ? '' : 'inline-flex items-center justify-center'}`
50
+ const contentLayout = `gap-x-1.5 ${iconPosition == 'none' ? '' : 'inline-flex items-center justify-center'}`
51
51
  const loading = isLoading ? '[&>*]:opacity-0 text-opacity-0' : ''
52
52
 
53
53
  function getIcon(Icon: React.ReactNode | 'v') {
@@ -62,7 +62,7 @@ export function Message() {
62
62
  // Show message and hide it again after some time. Send back cleanup if store.message changes
63
63
  } else if (messageObject && now - 500 < messageObject.date) {
64
64
  const timeout1 = setTimeout(() => setVisible(true), 50)
65
- if (messageObject.timeout !== 0 && !devDontHide) var timeout2 = setTimeout(hide, messageObject.timeout || 500000)
65
+ if (messageObject.timeout !== 0 && !devDontHide) var timeout2 = setTimeout(hide, messageObject.timeout || 5000)
66
66
  return () => {
67
67
  clearTimeout(timeout1)
68
68
  clearTimeout(timeout2)
@@ -19,7 +19,7 @@ type FieldExtraProps = {
19
19
  name: string
20
20
  id?: string
21
21
  // state object to get the value, and check errors against
22
- state?: { errors: Errors, [key: string]: unknown }
22
+ state?: { errors?: Errors, [key: string]: unknown }
23
23
  type?: 'text' | 'password' | 'email' | 'filter' | 'search' | 'textarea' | 'currency' | 'date' | 'color'
24
24
  icon?: React.ReactNode
25
25
  iconPos?: 'left' | 'right'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
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 🚀",
@@ -46,7 +46,8 @@
46
46
  "passport": "^0.4.1",
47
47
  "passport-jwt": "^4.0.1",
48
48
  "passport-local": "^1.0.0",
49
- "sort-route-addresses-nodeps": "0.0.4"
49
+ "sort-route-addresses-nodeps": "0.0.4",
50
+ "standard-version": "^9.5.0"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "@stripe/stripe-js": "^1.34.0",
@@ -66,10 +67,9 @@
66
67
  },
67
68
  "bumpFiles": [
68
69
  "package.json",
69
- "package-lock.json",
70
70
  "../webpack/package.json",
71
71
  {
72
- "filename": "../readme.md",
72
+ "filename": "../example/package.json",
73
73
  "updater": "./semver-updater.cjs"
74
74
  }
75
75
  ]