@designcrowd/fe-shared-lib 1.2.10-ml-407-1 → 1.2.11-ast-upsell

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.2.10-ml-407-1",
3
+ "version": "1.2.11-ast-upsell",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -113,4 +113,4 @@
113
113
  "overrides": {
114
114
  "storybook": "$storybook"
115
115
  }
116
- }
116
+ }
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-brandCrowd .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-brandCrowd .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(0 121 172 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-brandCrowd .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(252 209 217 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-brandCrowd .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(245 73 101 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-brandPage .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-brandPage .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-crazyDomains .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-crazyDomains .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(0 129 191 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-crazyDomains .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(226 238 213 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-crazyDomains .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(140 189 89 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-designCom .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-designCom .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(50 71 197 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-designCom .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(236 238 254 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-designCom .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(121 139 249 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-designCrowd .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-designCrowd .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(14 121 188 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-designCrowd .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(207 234 251 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-designCrowd .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(65 172 239 / var(--tw-bg-opacity));
@@ -21,6 +21,7 @@ export const Sample = () => {
21
21
  {
22
22
  label: 'Medium',
23
23
  value: 'medium',
24
+ disabled: true,
24
25
  },
25
26
  {
26
27
  label: 'Large',
@@ -10,11 +10,14 @@
10
10
  <button
11
11
  class="button-group-item tw-text-xs tw-shadow-inner tw-w-full tw-py-2"
12
12
  :class="{
13
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
14
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
13
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
14
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
15
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
16
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
15
17
  }"
18
+ :disabled="option.disabled"
16
19
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
17
- @click="$emit('on-select', option)"
20
+ @click="!option.disabled && $emit('on-select', option)"
18
21
  >
19
22
  <slot name="content" :option="option"></slot>
20
23
  </button>
@@ -35,8 +38,10 @@
35
38
  <button
36
39
  v-if="variant === 'icon'"
37
40
  :class="{
38
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
39
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
41
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
42
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
43
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
44
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
40
45
  'tw-px-2': !option.iconViewBox,
41
46
  'tw-px-px':
42
47
  option.iconViewBox && !option.isSelected && !option.iconName.includes('display-style') && btnStyleVariant, // TODO - move style logic to computed prop
@@ -45,9 +50,10 @@
45
50
  'tw-px-0 tw-py-0': option.iconName.includes('display-style') || btnStyleVariant === 'compressed',
46
51
  }"
47
52
  :style="option.iconName.includes('display-style') ? { lineHeight: 0 } : {}"
53
+ :disabled="option.disabled"
48
54
  class="tw-text-xs button-group-icon-button tw-shadow-inner"
49
55
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
50
- @click="$emit('on-select', option)"
56
+ @click="!option.disabled && $emit('on-select', option)"
51
57
  >
52
58
  <div
53
59
  :class="{
@@ -67,12 +73,15 @@
67
73
  <button
68
74
  v-else
69
75
  :class="{
70
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
71
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
76
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
77
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
78
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
79
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
72
80
  }"
81
+ :disabled="option.disabled"
73
82
  class="tw-text-xs button-group-image-button tw-shadow-inner"
74
83
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
75
- @click="$emit('on-select', option)"
84
+ @click="!option.disabled && $emit('on-select', option)"
76
85
  >
77
86
  <img :src="option.src" :alt="option.alt" class="tw-w-full tw-h-full" />
78
87
  </button>
@@ -90,11 +99,14 @@
90
99
  :key="`button-${option.value}`"
91
100
  :class="{
92
101
  'tw-ml-2': idx > 0 && !columns,
93
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
94
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
102
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
103
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
104
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
105
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
95
106
  }"
107
+ :disabled="option.disabled"
96
108
  class="tw-text-xs button-group-button tw-shadow-inner"
97
- @click="$emit('on-select', option)"
109
+ @click="!option.disabled && $emit('on-select', option)"
98
110
  >
99
111
  {{ option.label }}
100
112
  </button>
@@ -57,7 +57,7 @@
57
57
  </p>
58
58
  <div class="tw-flex tw-flex-col">
59
59
  <div>
60
- <form id="signin" :action="getSignInAction" method="post" @submit="validate">
60
+ <form id="signin" action="/identity/account/signin" method="post" @submit="validate">
61
61
  <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
62
62
  <label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
63
63
  <input
@@ -170,7 +170,6 @@ import themeMixin from '../../mixins/themeMixin';
170
170
  import { SIGN_IN } from '../../constants/partner-dictionary-constants';
171
171
  import isValidEmail from '../../helpers/email-validator';
172
172
  import SocialSignIn from './SocialSignIn.vue';
173
- import { getCurrentLocale } from '../../../useSharedLibTranslate';
174
173
 
175
174
  export default {
176
175
  components: {
@@ -310,7 +309,7 @@ export default {
310
309
  signInContent: {
311
310
  type: Object,
312
311
  required: false,
313
- default: () => { },
312
+ default: () => {},
314
313
  },
315
314
  },
316
315
  data() {
@@ -335,9 +334,6 @@ export default {
335
334
  isLoading() {
336
335
  return this.emailLoading || this.facebookLoading || this.googleLoading;
337
336
  },
338
- currentLocale() {
339
- return getCurrentLocale();
340
- },
341
337
  submissionButtonLabelLowercase() {
342
338
  return this.submissionButtonLabel.toLowerCase();
343
339
  },
@@ -373,11 +369,6 @@ export default {
373
369
  }
374
370
  return this.signUpText;
375
371
  },
376
- getSignInAction() {
377
- const params = new URLSearchParams();
378
- params.set('locale', this.currentLocale);
379
- return `/identity/account/signin?${params.toString()}`;
380
- },
381
372
  },
382
373
  watch: {
383
374
  capturePassword() {
@@ -440,7 +431,6 @@ export default {
440
431
  background-image: url(https://dcstatic.com/images/icons/forms/forms-email-58207f9a5c.svg);
441
432
  background-position: top 50% left 0.5rem;
442
433
  }
443
-
444
434
  .password-input {
445
435
  background-image: url(https://dcstatic.com/images/icons/forms/forms-password-ff538cd5e4.svg);
446
436
  background-position: top 50% left 0.5rem;
@@ -21,6 +21,7 @@
21
21
  <p v-else class="tw-text-grayscale-600 tw-mb-8 tw-font-normal">
22
22
  {{ publishedSuccessDescriptionLabel }}
23
23
  </p>
24
+ <slot name="upsell" />
24
25
  </div>
25
26
  </template>
26
27
  <template #default>