@designcrowd/fe-shared-lib 1.5.23-pre-gt9544-brooke-v2 → 1.5.23-pre-gt9544-brooke-v4

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.5.23-pre-gt9544-brooke-v2",
3
+ "version": "1.5.23-pre-gt9544-brooke-v4",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -52,9 +52,12 @@
52
52
  >
53
53
  {{ title }}
54
54
  </h2>
55
- <p v-if="description" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0" :class="{'tw-font-semibold': shouldResetPassword }">
55
+ <p v-if="description && !resetPasswordDescription" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0">
56
56
  {{ description }}
57
57
  </p>
58
+ <p v-if="resetPasswordDescription" class="tw-text-center tw-mb-6 tw-font-semibold tw-text-info-500 tw-mt-0">
59
+ {{ resetPasswordDescription }}
60
+ </p>
58
61
  <div class="tw-flex tw-flex-col">
59
62
  <div>
60
63
  <form id="signin" :action="getSignInAction" method="post" @submit="validate">
@@ -92,12 +95,13 @@
92
95
  <p v-if="capturePassword && !!passwordError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
93
96
  {{ passwordError }}
94
97
  </p>
95
- <p v-if="capturePassword || shouldResetPassword" class="tw-w-full tw-text-left tw-mb-4">
98
+ <p v-if="capturePassword || resetPasswordDescription" class="tw-w-full tw-text-left tw-mb-4">
96
99
  <a class="tw-text-info-500 tw-cursor-pointer hover:tw-underline" @click="forgotPasswordClick()">
97
100
  {{ forgotPasswordLabel }}
98
101
  </a>
99
102
  </p>
100
103
  <SubmissionButton
104
+ v-if="!resetPasswordDescription"
101
105
  data-test-login-button
102
106
  variant="primary"
103
107
  size="medium"
@@ -256,9 +260,9 @@ export default {
256
260
  type: Boolean,
257
261
  default: true,
258
262
  },
259
- shouldResetPassword: {
260
- type: Boolean,
261
- default: false,
263
+ resetPasswordDescription: {
264
+ type: String,
265
+ default: undefined,
262
266
  },
263
267
  emailLoading: {
264
268
  type: Boolean,