@designcrowd/fe-shared-lib 1.0.8-ml-82-1a → 1.0.8-ml-82-1b

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.0.8-ml-82-1a",
3
+ "version": "1.0.8-ml-82-1b",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -32,10 +32,10 @@
32
32
  }"
33
33
  >
34
34
  <div class="tw-w-full tw-p-4 md:tw-p-8">
35
- <h2 v-if="title" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-2">
35
+ <h2 v-if="showTitle" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-10">
36
36
  {{ title }}
37
37
  </h2>
38
- <p class="tw-mb-8 tw-text-grayscale-600">{{ description }}</p>
38
+ <p class="tw-mb-8 tw-text-grayscale-600">{{ modalDescription }}</p>
39
39
  <form id="forgotPassword" ref="forgotPasswordForm" method="post" @submit="validate">
40
40
  <input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
41
41
  <label for="email" class="tw-sr-only"> {{ emailLabel }} </label>
@@ -114,6 +114,11 @@ export default {
114
114
  required: false,
115
115
  default: undefined,
116
116
  },
117
+ hideTitle: {
118
+ type: Boolean,
119
+ required: false,
120
+ default: false,
121
+ },
117
122
  forgotPasswordContent: {
118
123
  type: Object,
119
124
  required: false,
@@ -131,7 +136,7 @@ export default {
131
136
  goBackToLoginLabel: this.forgotPasswordContent?.goBackToLoginLabel ?? 'Go back to login',
132
137
  emailAddressPlaceholderLabel: this.forgotPasswordContent?.emailAddressPlaceholderLabel ?? 'Email address',
133
138
  emailLabel: this.forgotPasswordContent?.emailLabel ?? 'Email',
134
- description: this.forgotPasswordContent?.description ?? 'Enter your email below. We will then send a reset-password link to your email address.',
139
+ modalDescription: this.forgotPasswordContent?.description ?? 'Enter your email below. We will then send a reset-password link to your email address.',
135
140
  title: this.forgotPasswordContent?.title ?? 'Forgot your password?',
136
141
  };
137
142
  },
@@ -146,6 +151,10 @@ export default {
146
151
  isModalMode() {
147
152
  return this.onGoBackToSignIn !== undefined;
148
153
  },
154
+ showTitle()
155
+ {
156
+ return this.title && !this.hideTitle;
157
+ },
149
158
  },
150
159
  watch: {
151
160
  email(newValue) {