@contember/create 2.0.0-alpha.12 → 2.0.0-alpha.14

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@contember/create",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.14",
4
4
  "license": "Apache-2.0",
5
5
  "bin": "dist/production/run.js",
6
6
  "dependencies": {
7
- "@contember/cli-common": "2.0.0-alpha.12",
7
+ "@contember/cli-common": "2.0.0-alpha.14",
8
8
  "chalk": "^4.1.2",
9
9
  "download-tarball": "^2.0.0",
10
10
  "fs-extra": "^11.1.1",
@@ -2,7 +2,7 @@ import { uic } from '../utils/uic'
2
2
  import { Label } from '../ui/label'
3
3
 
4
4
  export const FormLayout = uic('div', {
5
- baseClass: 'flex flex-col gap-2 w-full mx-4',
5
+ baseClass: 'flex flex-col gap-2 mx-4',
6
6
  displayName: 'FormLayout',
7
7
  })
8
8
 
@@ -15,12 +15,14 @@ export const PasswordResetFormFields = ({ hasToken }: { hasToken?: boolean }) =>
15
15
  form={form} messages={dict.tenant.passwordReset.errorMessages}
16
16
  />
17
17
 
18
- <TenantFormField
19
- form={form} messages={dict.tenant.passwordReset.errorMessages} field="token"
20
- type="text" required readOnly={hasToken} autoComplete="off"
21
- >
22
- {dict.tenant.passwordReset.token}
23
- </TenantFormField>
18
+ {hasToken ? null : (
19
+ <TenantFormField
20
+ form={form} messages={dict.tenant.passwordReset.errorMessages} field="token"
21
+ type="text" required autoComplete="off"
22
+ >
23
+ {dict.tenant.passwordReset.token}
24
+ </TenantFormField>
25
+ )}
24
26
 
25
27
  <TenantFormField
26
28
  form={form} messages={dict.tenant.passwordReset.errorMessages} field="password"