@designcrowd/fe-shared-lib 1.2.0-ml-jj-4 → 1.2.0-ml-jj-6

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.0-ml-jj-4",
3
+ "version": "1.2.0-ml-jj-6",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -12,10 +12,10 @@
12
12
  {{ title }}
13
13
  </p>
14
14
  <span
15
- v-if="showLabel"
15
+ v-if="pillLabel"
16
16
  class="tw-text-xs tw-h-4 tw-w-fit tw-text-primary-500 tw-border tw-border-solid tw-border-primary-500 tw-rounded-full tw-px-2 tw-font-sans tw-uppercase"
17
17
  >
18
- Recommended
18
+ {{ pillLabel }}
19
19
  </span>
20
20
  </div>
21
21
  <p class="tw-mt-2 md:tw-mt-0 tw-text-grayscale-600 tw-text-sm">
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 desktop-cta">
29
29
  <Button
30
- label="Search"
30
+ :label="searchButtonLabel"
31
31
  class="tw-flex tw-items-center tw-justify-center md:tw-ml-2 tw-mt-2 md:tw-mt-0 tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24"
32
32
  data-test-brand-page-search-button
33
33
  variant="primary"
@@ -47,7 +47,7 @@
47
47
  </div>
48
48
  <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 mobile-cta tw-mt-2">
49
49
  <Button
50
- label="Search"
50
+ :label="searchButtonLabel"
51
51
  class="tw-flex tw-items-center tw-justify-center md:tw-ml-2 tw-mt-2 md:tw-mt-0 tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24"
52
52
  data-test-brand-page-search-button
53
53
  variant="primary"
@@ -86,9 +86,13 @@ const props = defineProps({
86
86
  type: Boolean,
87
87
  default: true,
88
88
  },
89
- showLabel: {
90
- type: Boolean,
91
- default: false,
89
+ searchButtonLabel: {
90
+ type: String,
91
+ default: () => 'Search',
92
+ },
93
+ pillLabel: {
94
+ type: String,
95
+ default: null,
92
96
  },
93
97
  });
94
98
 
@@ -31,10 +31,6 @@ const localePublishBrandPageModalContent = {
31
31
  publishedSuccessDescriptionLabel: 'Buy matching domain name for your brand',
32
32
  hasAlreadyPurchasedDomainCloseButtonLabel: 'No thanks, maybe later',
33
33
  },
34
- sellDomainNameListSearchResult: {
35
- domainSearchEmptyMessage: 'Sorry, we couldn\'t find any domain for "{domainNameSearchTerm}".',
36
- searchAnotherDomainMessage: 'Try searching with another domain name.',
37
- },
38
34
  },
39
35
  'en-test': {
40
36
  searchButtonLabel: '++Search',
@@ -57,10 +53,6 @@ const localePublishBrandPageModalContent = {
57
53
  publishedSuccessDescriptionLabel: '++Buy matching domain name for your brand',
58
54
  hasAlreadyPurchasedDomainCloseButtonLabel: '++No thanks, maybe later',
59
55
  },
60
- sellDomainNameListSearchResult: {
61
- domainSearchEmptyMessage: '++Sorry, we couldn\'t find any domain for "{domainNameSearchTerm}".',
62
- searchAnotherDomainMessage: '++Try searching with another domain name.',
63
- },
64
56
  },
65
57
  };
66
58
 
@@ -195,7 +195,7 @@
195
195
  :currency="userCurrency"
196
196
  :display-result-limit="4"
197
197
  :domain-search-location="sitePublishedModal"
198
- :content="content"
198
+ :search-button-label="content.searchButtonLabel"
199
199
  @on-change-search="onSearchTextChanged"
200
200
  />
201
201
  </div>
@@ -4,7 +4,7 @@
4
4
  :is-design-com="isDesignCom"
5
5
  :initial-search-term="initialSearchTerm"
6
6
  :show-white-search-background="showWhiteSearchBackground"
7
- :search-button-label="content.searchButtonLabel"
7
+ :search-button-label="searchButtonLabel"
8
8
  @onSearch="onSearchDomainName"
9
9
  />
10
10
  <SellDomainNameSearchResult
@@ -101,9 +101,9 @@ export default {
101
101
  type: Number,
102
102
  default: undefined,
103
103
  },
104
- content: {
105
- type: Object,
106
- required: true,
104
+ searchButtonLabel: {
105
+ type: String,
106
+ default: () => 'Search',
107
107
  },
108
108
  },
109
109
  data: () => ({