@designcrowd/fe-shared-lib 1.5.28 → 1.5.29-jj-2
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/.storybook-static/assets/Auth-CV5AmoX8.css +1 -0
- package/.storybook-static/assets/Auth.stories-CX3sjxh5.js +490 -0
- package/.storybook-static/assets/AuthCrazyDomains.stories-Didj_VFa.js +73 -0
- package/.storybook-static/assets/Button-5UzSGUF6.css +1 -0
- package/.storybook-static/assets/Button-DtVlr_q3.js +1 -0
- package/.storybook-static/assets/ButtonGroup-Dfr7bNL2.css +1 -0
- package/.storybook-static/assets/ButtonGroup.stories-4EQk-ktb.js +503 -0
- package/.storybook-static/assets/ButtonPrimary-Bu6bXb_c.css +1 -0
- package/.storybook-static/assets/ButtonPrimary-DG9wNod9.js +1 -0
- package/.storybook-static/assets/Buttons.stories-B_KpeCzt.js +761 -0
- package/.storybook-static/assets/ButtonsCrazyDomains.stories-oZtahAmR.js +199 -0
- package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +1 -0
- package/.storybook-static/assets/Checkbox.stories-C67RL0ut.js +203 -0
- package/.storybook-static/assets/Checktile.stories-DN2wfzd6.js +88 -0
- package/.storybook-static/assets/CollapsiblePanel.stories-BkzrqfVG.js +39 -0
- package/.storybook-static/assets/ColorPicker.stories-85BQwpyF.js +73 -0
- package/.storybook-static/assets/CopyToClipboardText.stories-Csh5nVRs.js +32 -0
- package/.storybook-static/assets/Dropdown.stories-NNlxNopk.js +159 -0
- package/.storybook-static/assets/DropdownItem-CDX_V6Mi.js +1 -0
- package/.storybook-static/assets/DropdownItem-CLNmWtKh.css +1 -0
- package/.storybook-static/assets/FormControl.mixin-_gXRExB7.js +1 -0
- package/.storybook-static/assets/HashRouteModal.stories-Dy1_nLTJ.js +64 -0
- package/.storybook-static/assets/HelloBar-z54fob0q.js +1 -0
- package/.storybook-static/assets/HelloBar.stories-ClJ9_KRK.js +342 -0
- package/.storybook-static/assets/Icon-8mZGP41G.js +144 -0
- package/.storybook-static/assets/Icon.stories-BcXMvpuh.js +126 -0
- package/.storybook-static/assets/Icon.stories-D6ECVMta.js +751 -0
- package/.storybook-static/assets/Loader-D61Ki9P1.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-B1_8hw0H.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-DEFhAyxR.css +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours.stories-CIWe9ndn.js +36 -0
- package/.storybook-static/assets/Masonry-C2MNiGg0.css +1 -0
- package/.storybook-static/assets/Masonry.stories-CDT8kZCv.js +71 -0
- package/.storybook-static/assets/Modal-BQrpXSGA.js +1 -0
- package/.storybook-static/assets/Modal-BvVMN71n.css +1 -0
- package/.storybook-static/assets/Modal.stories-BycF7YL6.js +345 -0
- package/.storybook-static/assets/Notice.stories-BufkrC1b.js +222 -0
- package/.storybook-static/assets/NumberStepper-Blffv09R.css +1 -0
- package/.storybook-static/assets/NumberStepper.stories-6_y_lEgC.js +64 -0
- package/.storybook-static/assets/PaymentConfigList-wI1eTv5x.css +1 -0
- package/.storybook-static/assets/PaymentConfigList.stories-BlzzKrzz.js +126 -0
- package/.storybook-static/assets/Picture-Cq76CaoK.js +1 -0
- package/.storybook-static/assets/Picture.stories-BDqRm9_g.js +119 -0
- package/.storybook-static/assets/Pill-BsMeJhV9.js +1 -0
- package/.storybook-static/assets/Pill.stories-DUvzbtnS.js +18 -0
- package/.storybook-static/assets/PillBar-os4mJV3M.css +1 -0
- package/.storybook-static/assets/PillBar.stories-BUMLXBij.js +41 -0
- package/.storybook-static/assets/Price-DKOwLeD0.js +1 -0
- package/.storybook-static/assets/Price.stories-DlqrNUWI.js +221 -0
- package/.storybook-static/assets/PublishBrandPageModal-CLU8-If3.css +1 -0
- package/.storybook-static/assets/PublishBrandPageModal.stories-Dqobvq-n.js +273 -0
- package/.storybook-static/assets/SearchBar.stories-_wPX3-Rl.js +12 -0
- package/.storybook-static/assets/Select-Dw-zvSUg.css +1 -0
- package/.storybook-static/assets/Select.stories-BWINGxdY.js +108 -0
- package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-ByK_ak0A.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-CdfyEX1a.css +1 -0
- package/.storybook-static/assets/SellDomainNameListModal.stories-DrL8w2AY.js +71 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-1WuAKfzI.css +1 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-By0IpIM_.js +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults-BttjI4PH.js +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-Dm1Q8Cza.js +37 -0
- package/.storybook-static/assets/SellDomainNameWidget.stories-CKoz3WnZ.js +36 -0
- package/.storybook-static/assets/SignIn-DNYeJu86.css +1 -0
- package/.storybook-static/assets/SignIn-Dt8OJr0J.js +1 -0
- package/.storybook-static/assets/Slider-Cog2FFdj.css +1 -0
- package/.storybook-static/assets/Slider.stories-08DN2SFB.js +141 -0
- package/.storybook-static/assets/StarRating-BtKh7pzm.css +1 -0
- package/.storybook-static/assets/StarRating.stories-BEIj9ufA.js +45 -0
- package/.storybook-static/assets/TabMenu.stories-D9f0pyZI.js +47 -0
- package/.storybook-static/assets/TextCopyField-B04vTGbG.js +1 -0
- package/.storybook-static/assets/TextCopyField.stories-KD0WUWzA.js +47 -0
- package/.storybook-static/assets/TextInput-JK1M0hv6.js +1 -0
- package/.storybook-static/assets/TextInput.stories-BO0eQqBY.js +233 -0
- package/.storybook-static/assets/Textarea.stories-Bcn4sCkV.js +207 -0
- package/.storybook-static/assets/Toggle.stories-CuTFLoNh.js +161 -0
- package/.storybook-static/assets/Tooltip-DcSbUh5f.js +1 -0
- package/.storybook-static/assets/Tooltip-DyXIgFQH.css +1 -0
- package/.storybook-static/assets/Tooltip.stories-B0I_PBGG.js +953 -0
- package/.storybook-static/assets/UploadYourLogoApplication-EyTEQx-x.css +9 -0
- package/.storybook-static/assets/UploadYourLogoApplication.stories-Dixp1ynI.js +194 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-DQqACf-e.css +1 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-DouZtNvi.js +24 -0
- package/.storybook-static/assets/UploadYourLogoDropzone.stories-BHYeu4gz.js +55 -0
- package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-D1KR63O4.js +79 -0
- package/.storybook-static/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
- package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/.storybook-static/assets/api-lSJGRrF2.js +1 -0
- package/.storybook-static/assets/axe-nGVJxRof.js +30 -0
- package/.storybook-static/assets/brand-crowd-api.client-DiPM1Wo-.js +1 -0
- package/.storybook-static/assets/bundled-translations-BZ57czTo.js +1 -0
- package/.storybook-static/assets/bundled-translations.de-DE-DXggTXB2.js +1 -0
- package/.storybook-static/assets/bundled-translations.es-ES-DtMmvicd.js +1 -0
- package/.storybook-static/assets/bundled-translations.fr-FR-BrQqbieG.js +1 -0
- package/.storybook-static/assets/bundled-translations.pt-PT-CpiWEAtr.js +1 -0
- package/.storybook-static/assets/carousel-CMMZ5MZ-.css +1 -0
- package/.storybook-static/assets/carousel.stories-o3eu2Qyc.js +374 -0
- package/.storybook-static/assets/event-constants-CMO9VQVu.js +1 -0
- package/.storybook-static/assets/iframe-C86bI_2U.js +1126 -0
- package/.storybook-static/assets/index-Bw-gCGc_.js +6 -0
- package/.storybook-static/assets/index-DhkYCT1V.js +29 -0
- package/.storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
- package/.storybook-static/assets/tracking-ATsLLehC.js +1 -0
- package/.storybook-static/css/tailwind-brandCrowd.css +2404 -0
- package/.storybook-static/css/tailwind-brandPage.css +2088 -0
- package/.storybook-static/css/tailwind-crazyDomains.css +2404 -0
- package/.storybook-static/css/tailwind-designCom.css +2404 -0
- package/.storybook-static/css/tailwind-designCrowd.css +2404 -0
- package/.storybook-static/favicon.svg +1 -0
- package/.storybook-static/iframe.html +694 -0
- package/.storybook-static/index.html +156 -0
- package/.storybook-static/index.json +1 -0
- package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/project.json +1 -0
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +5 -0
- package/.storybook-static/sb-addons/links-2/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +188 -0
- package/.storybook-static/sb-addons/themes-3/manager-bundle.js +3 -0
- package/.storybook-static/sb-common-assets/favicon.svg +1 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/sb-manager/globals-module-info.js +797 -0
- package/.storybook-static/sb-manager/globals-runtime.js +72062 -0
- package/.storybook-static/sb-manager/globals.js +34 -0
- package/.storybook-static/sb-manager/runtime.js +13002 -0
- package/dist/css/tailwind-brandCrowd.css +8 -192
- package/dist/css/tailwind-brandPage.css +9 -185
- package/dist/css/tailwind-crazyDomains.css +8 -192
- package/dist/css/tailwind-designCom.css +8 -192
- package/dist/css/tailwind-designCrowd.css +8 -192
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +2522 -0
- package/public/css/tailwind-brandPage.css +2198 -0
- package/public/css/tailwind-crazyDomains.css +2522 -0
- package/public/css/tailwind-designCom.css +2522 -0
- package/public/css/tailwind-designCrowd.css +2522 -0
- package/src/bundles/bundled-translations.de-DE.json +3 -1
- package/src/bundles/bundled-translations.es-ES.json +3 -1
- package/src/bundles/bundled-translations.fr-CA.json +3 -1
- package/src/bundles/bundled-translations.fr-FR.json +3 -1
- package/src/bundles/bundled-translations.json +3 -1
- package/src/bundles/bundled-translations.pt-BR.json +3 -1
- package/src/bundles/bundled-translations.pt-PT.json +3 -1
- package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +9 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +19 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +56 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +19 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-CA.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-BR.json +3 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +3 -1
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inaktiv",
|
|
11
11
|
"addPaymentProvider": "Zahlungsanbieter hinzufügen",
|
|
12
12
|
"deletePaymentMethod": "Zahlungsmethode löschen",
|
|
13
|
-
"currencyLabel": "Währung"
|
|
13
|
+
"currencyLabel": "Währung",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inactivo",
|
|
11
11
|
"addPaymentProvider": "Añadir proveedor de pago",
|
|
12
12
|
"deletePaymentMethod": "Eliminar método de pago",
|
|
13
|
-
"currencyLabel": "Moneda"
|
|
13
|
+
"currencyLabel": "Moneda",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inactif",
|
|
11
11
|
"addPaymentProvider": "Ajouter un fournisseur de paiement",
|
|
12
12
|
"deletePaymentMethod": "Supprimer le mode de paiement",
|
|
13
|
-
"currencyLabel": "Devise"
|
|
13
|
+
"currencyLabel": "Devise",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inactif",
|
|
11
11
|
"addPaymentProvider": "Ajouter un fournisseur de paiement",
|
|
12
12
|
"deletePaymentMethod": "Supprimer le mode de paiement",
|
|
13
|
-
"currencyLabel": "Devise"
|
|
13
|
+
"currencyLabel": "Devise",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inactive",
|
|
11
11
|
"addPaymentProvider": "Add Payment Provider",
|
|
12
12
|
"deletePaymentMethod": "Delete payment method",
|
|
13
|
-
"currencyLabel": "Currency"
|
|
13
|
+
"currencyLabel": "Currency",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inativo",
|
|
11
11
|
"addPaymentProvider": "Adicionar fornecedor de pagamentos",
|
|
12
12
|
"deletePaymentMethod": "Excluir método de pagamento",
|
|
13
|
-
"currencyLabel": "Moeda"
|
|
13
|
+
"currencyLabel": "Moeda",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"inactive": "Inativo",
|
|
11
11
|
"addPaymentProvider": "Adicionar fornecedor de pagamentos",
|
|
12
12
|
"deletePaymentMethod": "Eliminar método de pagamento",
|
|
13
|
-
"currencyLabel": "Moeda"
|
|
13
|
+
"currencyLabel": "Moeda",
|
|
14
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
15
|
+
"upgradeNow": "Upgrade Now"
|
|
14
16
|
},
|
|
15
17
|
"publishBrandPageModal": {
|
|
16
18
|
"firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
|
|
@@ -25,6 +25,11 @@ export default {
|
|
|
25
25
|
required: false,
|
|
26
26
|
default: undefined,
|
|
27
27
|
},
|
|
28
|
+
showUpgradeBanner: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
required: false,
|
|
31
|
+
default: false,
|
|
32
|
+
},
|
|
28
33
|
},
|
|
29
34
|
directives: {
|
|
30
35
|
clickOutside: vClickOutside,
|
|
@@ -101,6 +106,10 @@ export default {
|
|
|
101
106
|
}
|
|
102
107
|
},
|
|
103
108
|
|
|
109
|
+
onUpgradeClick() {
|
|
110
|
+
this.$emit('on-upgrade-click');
|
|
111
|
+
},
|
|
112
|
+
|
|
104
113
|
async getCurrentListAsync() {
|
|
105
114
|
try {
|
|
106
115
|
const result = await brandPageApiClient.getPaymentConfigCurrencyListByBrandPageTokenAsync();
|
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
<div v-if="isLoading" class="tw-w-full tw-flex tw-justify-center tw-p-2">
|
|
4
4
|
<Loader />
|
|
5
5
|
</div>
|
|
6
|
+
<div
|
|
7
|
+
v-if="showUpgradeBanner && !isLoading"
|
|
8
|
+
class="tw-p-3 tw-mb-3 tw-rounded tw-border tw-border-solid tw-border-primary-500 tw-bg-primary-100"
|
|
9
|
+
>
|
|
10
|
+
<div class="tw-flex tw-items-start tw-gap-2">
|
|
11
|
+
<Icon name="upgrade-alt" size="md" class="tw-flex-shrink-0" />
|
|
12
|
+
<div class="tw-flex tw-flex-col tw-gap-2">
|
|
13
|
+
<span class="tw-text-sm">{{ sharedPaymentConfigTr('upgradeMessage') }}</span>
|
|
14
|
+
<Button
|
|
15
|
+
:label="sharedPaymentConfigTr('upgradeNow')"
|
|
16
|
+
variant="primary"
|
|
17
|
+
size="small"
|
|
18
|
+
class="tw-w-fit"
|
|
19
|
+
@on-click="onUpgradeClick"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
6
24
|
<Button
|
|
7
25
|
v-if="isAddPaymentProviderButtonVisible"
|
|
8
26
|
:label="sharedPaymentConfigTr('addPaymentProvider')"
|
|
@@ -102,6 +120,7 @@ export default {
|
|
|
102
120
|
Icon,
|
|
103
121
|
},
|
|
104
122
|
mixins: [PaymentConfigMixin],
|
|
123
|
+
emits: ['on-add-payment-provider-click', 'on-payment-config-selected', 'on-currency-selected', 'on-upgrade-click'],
|
|
105
124
|
props: {
|
|
106
125
|
showAddPaymentProvider: {
|
|
107
126
|
type: Boolean,
|
|
@@ -232,3 +232,59 @@ export const SampleDropdownEmpty = () => {
|
|
|
232
232
|
SampleDropdownEmpty.SampleDropdownEmpty = {
|
|
233
233
|
name: 'Dropdown Empty',
|
|
234
234
|
};
|
|
235
|
+
|
|
236
|
+
export const SampleStripeWithUpgradeBanner = () => {
|
|
237
|
+
const mock = new MockAdapter(axios, { delayResponse: MOCK_RESPONSE_DELAY });
|
|
238
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
239
|
+
|
|
240
|
+
mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
241
|
+
mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
|
|
242
|
+
|
|
243
|
+
return {
|
|
244
|
+
components: {
|
|
245
|
+
PaymentConfigList,
|
|
246
|
+
},
|
|
247
|
+
data() {
|
|
248
|
+
return {
|
|
249
|
+
brandPageToken,
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
template: `
|
|
253
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
254
|
+
<PaymentConfigList :brand-page-token="brandPageToken" :show-upgrade-banner="true" @on-upgrade-click="() => alert('Upgrade clicked')" />
|
|
255
|
+
</div>
|
|
256
|
+
`,
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
SampleStripeWithUpgradeBanner.story = {
|
|
261
|
+
name: 'Sample Stripe (With Upgrade Banner)',
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export const SampleDropdownStripeWithUpgradeBanner = () => {
|
|
265
|
+
const mock = new MockAdapter(axios, { delayResponse: MOCK_RESPONSE_DELAY });
|
|
266
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
267
|
+
|
|
268
|
+
mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
269
|
+
mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
|
|
270
|
+
|
|
271
|
+
return {
|
|
272
|
+
components: {
|
|
273
|
+
PaymentConfigDropdown,
|
|
274
|
+
},
|
|
275
|
+
data() {
|
|
276
|
+
return {
|
|
277
|
+
brandPageToken,
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
template: `
|
|
281
|
+
<div class="tw-w-1/3 tw-p-4" style="background: #f4f4f4">
|
|
282
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken" :show-upgrade-banner="true" @on-upgrade-click="() => alert('Upgrade clicked')" />
|
|
283
|
+
</div>
|
|
284
|
+
`,
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
SampleDropdownStripeWithUpgradeBanner.story = {
|
|
289
|
+
name: 'Dropdown Stripe (With Upgrade Banner)',
|
|
290
|
+
};
|
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
<Loader />
|
|
5
5
|
</div>
|
|
6
6
|
<div v-else>
|
|
7
|
+
<div
|
|
8
|
+
v-if="showUpgradeBanner"
|
|
9
|
+
class="tw-p-3 tw-mb-3 tw-rounded tw-border tw-border-solid tw-border-primary-500 tw-bg-primary-100"
|
|
10
|
+
>
|
|
11
|
+
<div class="tw-flex tw-items-start tw-gap-2 sm:tw-items-center sm:tw-gap-3 sm:tw-flex-row">
|
|
12
|
+
<Icon name="upgrade-alt" size="md" class="tw-flex-shrink-0" />
|
|
13
|
+
<div class="tw-flex tw-flex-col tw-gap-2 sm:tw-flex-row sm:tw-items-center sm:tw-grow">
|
|
14
|
+
<span class="tw-text-sm sm:tw-grow">{{ sharedPaymentConfigTr('upgradeMessage') }}</span>
|
|
15
|
+
<Button
|
|
16
|
+
:label="sharedPaymentConfigTr('upgradeNow')"
|
|
17
|
+
variant="primary"
|
|
18
|
+
size="small"
|
|
19
|
+
class="tw-w-fit"
|
|
20
|
+
@on-click="onUpgradeClick"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
7
25
|
<div
|
|
8
26
|
v-for="(paymentConfig, index) in paymentConfigs"
|
|
9
27
|
:key="paymentConfig.id"
|
|
@@ -82,7 +100,7 @@ export default {
|
|
|
82
100
|
},
|
|
83
101
|
|
|
84
102
|
mixins: [PaymentConfigMixin],
|
|
85
|
-
emits: ['on-load'],
|
|
103
|
+
emits: ['on-load', 'on-upgrade-click'],
|
|
86
104
|
data() {
|
|
87
105
|
return {
|
|
88
106
|
activeStripeOptionIndex: null,
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inaktiv",
|
|
7
7
|
"addPaymentProvider" : "Zahlungsanbieter hinzufügen",
|
|
8
8
|
"deletePaymentMethod" : "Zahlungsmethode löschen",
|
|
9
|
-
"currencyLabel" : "Währung"
|
|
9
|
+
"currencyLabel" : "Währung",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inactivo",
|
|
7
7
|
"addPaymentProvider" : "Añadir proveedor de pago",
|
|
8
8
|
"deletePaymentMethod" : "Eliminar método de pago",
|
|
9
|
-
"currencyLabel" : "Moneda"
|
|
9
|
+
"currencyLabel" : "Moneda",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inactif",
|
|
7
7
|
"addPaymentProvider" : "Ajouter un fournisseur de paiement",
|
|
8
8
|
"deletePaymentMethod" : "Supprimer le mode de paiement",
|
|
9
|
-
"currencyLabel" : "Devise"
|
|
9
|
+
"currencyLabel" : "Devise",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inactif",
|
|
7
7
|
"addPaymentProvider" : "Ajouter un fournisseur de paiement",
|
|
8
8
|
"deletePaymentMethod" : "Supprimer le mode de paiement",
|
|
9
|
-
"currencyLabel" : "Devise"
|
|
9
|
+
"currencyLabel" : "Devise",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive": "Inactive",
|
|
7
7
|
"addPaymentProvider": "Add Payment Provider",
|
|
8
8
|
"deletePaymentMethod": "Delete payment method",
|
|
9
|
-
"currencyLabel": "Currency"
|
|
9
|
+
"currencyLabel": "Currency",
|
|
10
|
+
"upgradeMessage": "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow": "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inativo",
|
|
7
7
|
"addPaymentProvider" : "Adicionar fornecedor de pagamentos",
|
|
8
8
|
"deletePaymentMethod" : "Excluir método de pagamento",
|
|
9
|
-
"currencyLabel" : "Moeda"
|
|
9
|
+
"currencyLabel" : "Moeda",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"inactive" : "Inativo",
|
|
7
7
|
"addPaymentProvider" : "Adicionar fornecedor de pagamentos",
|
|
8
8
|
"deletePaymentMethod" : "Eliminar método de pagamento",
|
|
9
|
-
"currencyLabel" : "Moeda"
|
|
9
|
+
"currencyLabel" : "Moeda",
|
|
10
|
+
"upgradeMessage" : "Unlock lower commission fees by upgrading to Premium",
|
|
11
|
+
"upgradeNow" : "Upgrade Now"
|
|
10
12
|
}
|
|
11
13
|
}
|