@designcrowd/fe-shared-lib 1.0.8-ml-82-23 → 1.0.8-ml-82-25

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-23",
3
+ "version": "1.0.8-ml-82-25",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -151,7 +151,7 @@
151
151
  >
152
152
  <p>
153
153
  {{ getSignUpText }}
154
- <a :href="signUpUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
154
+ <a :href="signUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
155
155
  signUpLabel
156
156
  }}</a>
157
157
  </p>
@@ -295,60 +295,15 @@ export default {
295
295
  required: false,
296
296
  default: undefined,
297
297
  },
298
- emailLabel: {
299
- type: String,
300
- requiured: false,
301
- default: 'Email'
302
- },
303
- emailPlaceholderLabel: {
304
- type: String,
305
- requiured: false,
306
- default: 'Email Address'
307
- },
308
- passwordPlaceholderLabel: {
309
- type: String,
310
- requiured: false,
311
- default: 'Password'
312
- },
313
- forgotPasswordLabel: {
314
- type: String,
315
- requiured: false,
316
- default: 'Forgot Password?'
317
- },
318
- orLabel: {
319
- type: String,
320
- requiured: false,
321
- default: 'or'
322
- },
323
- signUpLabel: {
324
- type: String,
325
- requiured: false,
326
- default: 'Sign Up'
327
- },
328
298
  termsAndConditions: {
329
299
  type: Object,
330
300
  required: false,
331
301
  default: undefined,
332
302
  },
333
- loginWithGoogleLabel: {
334
- type: String,
335
- required: false,
336
- default: undefined,
337
- },
338
- loginWithFacebookLabel: {
339
- type: String,
340
- required: false,
341
- default: undefined,
342
- },
343
- invalidUsernameErrorLabel: {
344
- type: String,
345
- required: false,
346
- default: 'Please enter a valid email address',
347
- },
348
- missingPasswordErrorLabel: {
349
- type: String,
303
+ signInContent: {
304
+ type: Object,
350
305
  required: false,
351
- default: 'Please enter a password',
306
+ default: () => {},
352
307
  },
353
308
  },
354
309
  data() {
@@ -357,7 +312,17 @@ export default {
357
312
  password: undefined,
358
313
  userNameError: undefined,
359
314
  passwordError: undefined,
360
- };
315
+ loginWithGoogleLabel: this.signInContent.loginWithGoogleLabel,
316
+ loginWithFacebookLabel: this.signInContent.loginWithFacebookLabel,
317
+ invalidUsernameErrorLabel: this.signInContent.invalidUsernameErrorLabel ?? 'Please enter a valid email address',
318
+ missingPasswordErrorLabel: this.signInContent.missingPasswordErrorLabel ?? 'Please enter a password',
319
+ emailLabel: this.signInContent.emailLabel ?? 'Email',
320
+ emailPlaceholderLabel: this.signInContent.emailPlaceholderLabel ?? 'Email Address',
321
+ passwordPlaceholderLabel: this.signInContent.passwordPlaceholderLabel ?? 'Password',
322
+ forgotPasswordLabel: this.signInContent.forgotPasswordLabel ?? 'Forgot Password?',
323
+ orLabel: this.signInContent.orLabel ?? 'or',
324
+ signUpLabel: this.signInContent.signUpLabel ?? 'Sign Up',
325
+ },
361
326
  },
362
327
  computed: {
363
328
  isLoading() {
@@ -85,7 +85,7 @@
85
85
  <div v-if="!!loginWithFacebookUrl || !!loginWithGoogleUrl" class="tw-text-center tw-text-grayscale-600">
86
86
  <div class="tw-w-full tw-inline-flex tw-items-center tw-mb-4">
87
87
  <div class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"></div>
88
- <span class="tw-inline tw-px-4">or</span>
88
+ <span class="tw-inline tw-px-4">{{ orLabel }}</span>
89
89
  <div class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"></div>
90
90
  </div>
91
91
  <SocialSignIn
@@ -101,7 +101,7 @@
101
101
  class="tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
102
102
  >
103
103
  {{ alreadyHaveAnAccountLabel }}
104
- <a :href="signInUrl" target="_blank" class="tw-text-info-500">{{ loginLabel }}</a>
104
+ <a :href="signInUrl" class="tw-text-info-500">{{ loginLabel }}</a>
105
105
  </p>
106
106
  </div>
107
107
  </div>
@@ -180,60 +180,15 @@ export default {
180
180
  type: Boolean,
181
181
  default: false,
182
182
  },
183
- emailLabel: {
184
- type: String,
185
- requiured: false,
186
- default: 'Email'
187
- },
188
- emailPlaceholderLabel: {
189
- type: String,
190
- requiured: false,
191
- default: 'Email'
192
- },
193
- passwordPlaceholderLabel: {
194
- type: String,
195
- requiured: false,
196
- default: 'Password'
197
- },
198
- alreadyHaveAnAccountLabel: {
199
- type: String,
200
- requiured: false,
201
- default: 'Already have an account?'
202
- },
203
- loginLabel: {
204
- type: String,
205
- requiured: false,
206
- default: 'Login'
207
- },
208
183
  termsAndConditions: {
209
184
  type: Object,
210
185
  required: false,
211
186
  default: undefined,
212
187
  },
213
- submissionButtonLabel: {
214
- type: String,
215
- required: false,
216
- default: 'Sign Up',
217
- },
218
- loginWithGoogleLabel: {
219
- type: String,
220
- required: false,
221
- default: undefined,
222
- },
223
- loginWithFacebookLabel: {
224
- type: String,
225
- required: false,
226
- default: undefined,
227
- },
228
- invalidUsernameErrorLabel: {
229
- type: String,
230
- required: false,
231
- default: 'Please enter a valid email address',
232
- },
233
- missingPasswordErrorLabel: {
234
- type: String,
188
+ signUpContent: {
189
+ type: Object,
235
190
  required: false,
236
- default: 'Please enter a password',
191
+ default: () => {},
237
192
  },
238
193
  },
239
194
  data() {
@@ -243,6 +198,17 @@ export default {
243
198
  password: null,
244
199
  passwordError: undefined,
245
200
  userNameError: null,
201
+ invalidUsernameErrorLabel: this.signUpContent.invalidUsernameErrorLabel ?? 'Please enter a valid email address',
202
+ missingPasswordErrorLabel: this.signUpContent.missingPasswordErrorLabel ?? 'Please enter a password',
203
+ submissionButtonLabel: this.signUpContent.submissionButtonLabel ?? 'Sign Up',
204
+ loginWithGoogleLabel: this.signUpContent.loginWithGoogleLabel,
205
+ loginWithFacebookLabel: this.signUpContent.loginWithFacebookLabel,
206
+ emailLabel: this.signUpContent.emailLabel ?? 'Email',
207
+ emailPlaceholderLabel: this.signUpContent.emailPlaceholderLabel ?? 'Email',
208
+ passwordPlaceholderLabel: this.signUpContent.passwordPlaceholderLabel ?? 'Password',
209
+ alreadyHaveAnAccountLabel: this.signUpContent.alreadyHaveAnAccountLabel ?? 'Already have an account?',
210
+ orLabel: this.signUpContent.orLabel ?? 'or',
211
+ loginLabel: this.signUpContent.loginLabel ?? 'Login',
246
212
  };
247
213
  },
248
214
  computed: {