@designcrowd/fe-shared-lib 1.1.2 → 1.1.3-kp-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/package.json +2 -2
- package/public/css/tailwind-brandCrowd.css +34 -0
- package/public/css/tailwind-brandPage.css +34 -0
- package/public/css/tailwind-crazyDomains.css +34 -0
- package/public/css/tailwind-designCom.css +34 -0
- package/public/css/tailwind-designCrowd.css +34 -0
- package/src/experiences/clients/brand-page-api.client.js +16 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +6 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +92 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +74 -4
- package/dist/css/tailwind-brandCrowd.css +0 -2419
- package/dist/css/tailwind-brandPage.css +0 -2107
- package/dist/css/tailwind-crazyDomains.css +0 -2419
- package/dist/css/tailwind-designCom.css +0 -2419
- package/dist/css/tailwind-designCrowd.css +0 -2419
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcrowd/fe-shared-lib",
|
|
3
|
-
"version": "1.1.2",
|
|
3
|
+
"version": "1.1.3-kp-2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run storybook",
|
|
6
6
|
"build": "npm run build:css --production",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vue-color": "2.8.1",
|
|
36
36
|
"vue-cropperjs": "5.0.0",
|
|
37
37
|
"vue-observe-visibility": "1.0.0",
|
|
38
|
-
"vue-router": "4.
|
|
38
|
+
"vue-router": "4.5.0",
|
|
39
39
|
"yargs": "17.7.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -651,6 +651,10 @@ video {
|
|
|
651
651
|
margin-top: 1rem;
|
|
652
652
|
margin-bottom: 1rem;
|
|
653
653
|
}
|
|
654
|
+
.theme-brandCrowd .tw-my-5 {
|
|
655
|
+
margin-top: 1.25rem;
|
|
656
|
+
margin-bottom: 1.25rem;
|
|
657
|
+
}
|
|
654
658
|
.theme-brandCrowd .tw-my-auto {
|
|
655
659
|
margin-top: auto;
|
|
656
660
|
margin-bottom: auto;
|
|
@@ -679,6 +683,9 @@ video {
|
|
|
679
683
|
.theme-brandCrowd .tw-mb-1 {
|
|
680
684
|
margin-bottom: 0.25rem;
|
|
681
685
|
}
|
|
686
|
+
.theme-brandCrowd .tw-mb-10 {
|
|
687
|
+
margin-bottom: 2.5rem;
|
|
688
|
+
}
|
|
682
689
|
.theme-brandCrowd .tw-mb-2 {
|
|
683
690
|
margin-bottom: 0.5rem;
|
|
684
691
|
}
|
|
@@ -835,6 +842,9 @@ video {
|
|
|
835
842
|
.theme-brandCrowd .tw-max-h-screen {
|
|
836
843
|
max-height: 100vh;
|
|
837
844
|
}
|
|
845
|
+
.theme-brandCrowd .tw-w-1\/3 {
|
|
846
|
+
width: 33.333333%;
|
|
847
|
+
}
|
|
838
848
|
.theme-brandCrowd .tw-w-10 {
|
|
839
849
|
width: 2.5rem;
|
|
840
850
|
}
|
|
@@ -1184,6 +1194,9 @@ video {
|
|
|
1184
1194
|
.theme-brandCrowd .tw-border-b-0 {
|
|
1185
1195
|
border-bottom-width: 0px;
|
|
1186
1196
|
}
|
|
1197
|
+
.theme-brandCrowd .tw-border-b-2 {
|
|
1198
|
+
border-bottom-width: 2px;
|
|
1199
|
+
}
|
|
1187
1200
|
.theme-brandCrowd .tw-border-b-4 {
|
|
1188
1201
|
border-bottom-width: 4px;
|
|
1189
1202
|
}
|
|
@@ -1715,6 +1728,9 @@ video {
|
|
|
1715
1728
|
.theme-brandCrowd .tw-text-center {
|
|
1716
1729
|
text-align: center;
|
|
1717
1730
|
}
|
|
1731
|
+
.theme-brandCrowd .tw-align-top {
|
|
1732
|
+
vertical-align: top;
|
|
1733
|
+
}
|
|
1718
1734
|
.theme-brandCrowd .tw-align-middle {
|
|
1719
1735
|
vertical-align: middle;
|
|
1720
1736
|
}
|
|
@@ -2197,6 +2213,9 @@ video {
|
|
|
2197
2213
|
.theme-brandCrowd .md\:tw-grid {
|
|
2198
2214
|
display: grid;
|
|
2199
2215
|
}
|
|
2216
|
+
.theme-brandCrowd .md\:tw-hidden {
|
|
2217
|
+
display: none;
|
|
2218
|
+
}
|
|
2200
2219
|
.theme-brandCrowd .md\:tw-h-10 {
|
|
2201
2220
|
height: 2.5rem;
|
|
2202
2221
|
}
|
|
@@ -2209,12 +2228,21 @@ video {
|
|
|
2209
2228
|
.theme-brandCrowd .md\:tw-w-10 {
|
|
2210
2229
|
width: 2.5rem;
|
|
2211
2230
|
}
|
|
2231
|
+
.theme-brandCrowd .md\:tw-w-24 {
|
|
2232
|
+
width: 6rem;
|
|
2233
|
+
}
|
|
2212
2234
|
.theme-brandCrowd .md\:tw-w-auto {
|
|
2213
2235
|
width: auto;
|
|
2214
2236
|
}
|
|
2215
2237
|
.theme-brandCrowd .md\:tw-w-full {
|
|
2216
2238
|
width: 100%;
|
|
2217
2239
|
}
|
|
2240
|
+
.theme-brandCrowd .md\:tw-max-w-full {
|
|
2241
|
+
max-width: 100%;
|
|
2242
|
+
}
|
|
2243
|
+
.theme-brandCrowd .md\:tw-grow {
|
|
2244
|
+
flex-grow: 1;
|
|
2245
|
+
}
|
|
2218
2246
|
.theme-brandCrowd .md\:tw-grid-cols-2 {
|
|
2219
2247
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2220
2248
|
}
|
|
@@ -2236,6 +2264,9 @@ video {
|
|
|
2236
2264
|
.theme-brandCrowd .md\:tw-justify-start {
|
|
2237
2265
|
justify-content: flex-start;
|
|
2238
2266
|
}
|
|
2267
|
+
.theme-brandCrowd .md\:tw-justify-end {
|
|
2268
|
+
justify-content: flex-end;
|
|
2269
|
+
}
|
|
2239
2270
|
.theme-brandCrowd .md\:tw-justify-center {
|
|
2240
2271
|
justify-content: center;
|
|
2241
2272
|
}
|
|
@@ -2278,6 +2309,9 @@ video {
|
|
|
2278
2309
|
padding-top: 0.5rem;
|
|
2279
2310
|
padding-bottom: 0.5rem;
|
|
2280
2311
|
}
|
|
2312
|
+
.theme-brandCrowd .md\:tw-pl-4 {
|
|
2313
|
+
padding-left: 1rem;
|
|
2314
|
+
}
|
|
2281
2315
|
.theme-brandCrowd .md\:tw-pr-2 {
|
|
2282
2316
|
padding-right: 0.5rem;
|
|
2283
2317
|
}
|
|
@@ -651,6 +651,10 @@ video {
|
|
|
651
651
|
margin-top: 1rem;
|
|
652
652
|
margin-bottom: 1rem;
|
|
653
653
|
}
|
|
654
|
+
.theme-brandPage .tw-my-5 {
|
|
655
|
+
margin-top: 1.25rem;
|
|
656
|
+
margin-bottom: 1.25rem;
|
|
657
|
+
}
|
|
654
658
|
.theme-brandPage .tw-my-auto {
|
|
655
659
|
margin-top: auto;
|
|
656
660
|
margin-bottom: auto;
|
|
@@ -679,6 +683,9 @@ video {
|
|
|
679
683
|
.theme-brandPage .tw-mb-1 {
|
|
680
684
|
margin-bottom: 0.25rem;
|
|
681
685
|
}
|
|
686
|
+
.theme-brandPage .tw-mb-10 {
|
|
687
|
+
margin-bottom: 2.5rem;
|
|
688
|
+
}
|
|
682
689
|
.theme-brandPage .tw-mb-2 {
|
|
683
690
|
margin-bottom: 0.5rem;
|
|
684
691
|
}
|
|
@@ -835,6 +842,9 @@ video {
|
|
|
835
842
|
.theme-brandPage .tw-max-h-screen {
|
|
836
843
|
max-height: 100vh;
|
|
837
844
|
}
|
|
845
|
+
.theme-brandPage .tw-w-1\/3 {
|
|
846
|
+
width: 33.333333%;
|
|
847
|
+
}
|
|
838
848
|
.theme-brandPage .tw-w-10 {
|
|
839
849
|
width: 2.5rem;
|
|
840
850
|
}
|
|
@@ -1184,6 +1194,9 @@ video {
|
|
|
1184
1194
|
.theme-brandPage .tw-border-b-0 {
|
|
1185
1195
|
border-bottom-width: 0px;
|
|
1186
1196
|
}
|
|
1197
|
+
.theme-brandPage .tw-border-b-2 {
|
|
1198
|
+
border-bottom-width: 2px;
|
|
1199
|
+
}
|
|
1187
1200
|
.theme-brandPage .tw-border-b-4 {
|
|
1188
1201
|
border-bottom-width: 4px;
|
|
1189
1202
|
}
|
|
@@ -1563,6 +1576,9 @@ video {
|
|
|
1563
1576
|
.theme-brandPage .tw-text-center {
|
|
1564
1577
|
text-align: center;
|
|
1565
1578
|
}
|
|
1579
|
+
.theme-brandPage .tw-align-top {
|
|
1580
|
+
vertical-align: top;
|
|
1581
|
+
}
|
|
1566
1582
|
.theme-brandPage .tw-align-middle {
|
|
1567
1583
|
vertical-align: middle;
|
|
1568
1584
|
}
|
|
@@ -1885,6 +1901,9 @@ video {
|
|
|
1885
1901
|
.theme-brandPage .md\:tw-grid {
|
|
1886
1902
|
display: grid;
|
|
1887
1903
|
}
|
|
1904
|
+
.theme-brandPage .md\:tw-hidden {
|
|
1905
|
+
display: none;
|
|
1906
|
+
}
|
|
1888
1907
|
.theme-brandPage .md\:tw-h-10 {
|
|
1889
1908
|
height: 2.5rem;
|
|
1890
1909
|
}
|
|
@@ -1897,12 +1916,21 @@ video {
|
|
|
1897
1916
|
.theme-brandPage .md\:tw-w-10 {
|
|
1898
1917
|
width: 2.5rem;
|
|
1899
1918
|
}
|
|
1919
|
+
.theme-brandPage .md\:tw-w-24 {
|
|
1920
|
+
width: 6rem;
|
|
1921
|
+
}
|
|
1900
1922
|
.theme-brandPage .md\:tw-w-auto {
|
|
1901
1923
|
width: auto;
|
|
1902
1924
|
}
|
|
1903
1925
|
.theme-brandPage .md\:tw-w-full {
|
|
1904
1926
|
width: 100%;
|
|
1905
1927
|
}
|
|
1928
|
+
.theme-brandPage .md\:tw-max-w-full {
|
|
1929
|
+
max-width: 100%;
|
|
1930
|
+
}
|
|
1931
|
+
.theme-brandPage .md\:tw-grow {
|
|
1932
|
+
flex-grow: 1;
|
|
1933
|
+
}
|
|
1906
1934
|
.theme-brandPage .md\:tw-grid-cols-2 {
|
|
1907
1935
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1908
1936
|
}
|
|
@@ -1924,6 +1952,9 @@ video {
|
|
|
1924
1952
|
.theme-brandPage .md\:tw-justify-start {
|
|
1925
1953
|
justify-content: flex-start;
|
|
1926
1954
|
}
|
|
1955
|
+
.theme-brandPage .md\:tw-justify-end {
|
|
1956
|
+
justify-content: flex-end;
|
|
1957
|
+
}
|
|
1927
1958
|
.theme-brandPage .md\:tw-justify-center {
|
|
1928
1959
|
justify-content: center;
|
|
1929
1960
|
}
|
|
@@ -1966,6 +1997,9 @@ video {
|
|
|
1966
1997
|
padding-top: 0.5rem;
|
|
1967
1998
|
padding-bottom: 0.5rem;
|
|
1968
1999
|
}
|
|
2000
|
+
.theme-brandPage .md\:tw-pl-4 {
|
|
2001
|
+
padding-left: 1rem;
|
|
2002
|
+
}
|
|
1969
2003
|
.theme-brandPage .md\:tw-pr-2 {
|
|
1970
2004
|
padding-right: 0.5rem;
|
|
1971
2005
|
}
|
|
@@ -651,6 +651,10 @@ video {
|
|
|
651
651
|
margin-top: 1rem;
|
|
652
652
|
margin-bottom: 1rem;
|
|
653
653
|
}
|
|
654
|
+
.theme-crazyDomains .tw-my-5 {
|
|
655
|
+
margin-top: 1.25rem;
|
|
656
|
+
margin-bottom: 1.25rem;
|
|
657
|
+
}
|
|
654
658
|
.theme-crazyDomains .tw-my-auto {
|
|
655
659
|
margin-top: auto;
|
|
656
660
|
margin-bottom: auto;
|
|
@@ -679,6 +683,9 @@ video {
|
|
|
679
683
|
.theme-crazyDomains .tw-mb-1 {
|
|
680
684
|
margin-bottom: 0.25rem;
|
|
681
685
|
}
|
|
686
|
+
.theme-crazyDomains .tw-mb-10 {
|
|
687
|
+
margin-bottom: 2.5rem;
|
|
688
|
+
}
|
|
682
689
|
.theme-crazyDomains .tw-mb-2 {
|
|
683
690
|
margin-bottom: 0.5rem;
|
|
684
691
|
}
|
|
@@ -835,6 +842,9 @@ video {
|
|
|
835
842
|
.theme-crazyDomains .tw-max-h-screen {
|
|
836
843
|
max-height: 100vh;
|
|
837
844
|
}
|
|
845
|
+
.theme-crazyDomains .tw-w-1\/3 {
|
|
846
|
+
width: 33.333333%;
|
|
847
|
+
}
|
|
838
848
|
.theme-crazyDomains .tw-w-10 {
|
|
839
849
|
width: 2.5rem;
|
|
840
850
|
}
|
|
@@ -1184,6 +1194,9 @@ video {
|
|
|
1184
1194
|
.theme-crazyDomains .tw-border-b-0 {
|
|
1185
1195
|
border-bottom-width: 0px;
|
|
1186
1196
|
}
|
|
1197
|
+
.theme-crazyDomains .tw-border-b-2 {
|
|
1198
|
+
border-bottom-width: 2px;
|
|
1199
|
+
}
|
|
1187
1200
|
.theme-crazyDomains .tw-border-b-4 {
|
|
1188
1201
|
border-bottom-width: 4px;
|
|
1189
1202
|
}
|
|
@@ -1715,6 +1728,9 @@ video {
|
|
|
1715
1728
|
.theme-crazyDomains .tw-text-center {
|
|
1716
1729
|
text-align: center;
|
|
1717
1730
|
}
|
|
1731
|
+
.theme-crazyDomains .tw-align-top {
|
|
1732
|
+
vertical-align: top;
|
|
1733
|
+
}
|
|
1718
1734
|
.theme-crazyDomains .tw-align-middle {
|
|
1719
1735
|
vertical-align: middle;
|
|
1720
1736
|
}
|
|
@@ -2197,6 +2213,9 @@ video {
|
|
|
2197
2213
|
.theme-crazyDomains .md\:tw-grid {
|
|
2198
2214
|
display: grid;
|
|
2199
2215
|
}
|
|
2216
|
+
.theme-crazyDomains .md\:tw-hidden {
|
|
2217
|
+
display: none;
|
|
2218
|
+
}
|
|
2200
2219
|
.theme-crazyDomains .md\:tw-h-10 {
|
|
2201
2220
|
height: 2.5rem;
|
|
2202
2221
|
}
|
|
@@ -2209,12 +2228,21 @@ video {
|
|
|
2209
2228
|
.theme-crazyDomains .md\:tw-w-10 {
|
|
2210
2229
|
width: 2.5rem;
|
|
2211
2230
|
}
|
|
2231
|
+
.theme-crazyDomains .md\:tw-w-24 {
|
|
2232
|
+
width: 6rem;
|
|
2233
|
+
}
|
|
2212
2234
|
.theme-crazyDomains .md\:tw-w-auto {
|
|
2213
2235
|
width: auto;
|
|
2214
2236
|
}
|
|
2215
2237
|
.theme-crazyDomains .md\:tw-w-full {
|
|
2216
2238
|
width: 100%;
|
|
2217
2239
|
}
|
|
2240
|
+
.theme-crazyDomains .md\:tw-max-w-full {
|
|
2241
|
+
max-width: 100%;
|
|
2242
|
+
}
|
|
2243
|
+
.theme-crazyDomains .md\:tw-grow {
|
|
2244
|
+
flex-grow: 1;
|
|
2245
|
+
}
|
|
2218
2246
|
.theme-crazyDomains .md\:tw-grid-cols-2 {
|
|
2219
2247
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2220
2248
|
}
|
|
@@ -2236,6 +2264,9 @@ video {
|
|
|
2236
2264
|
.theme-crazyDomains .md\:tw-justify-start {
|
|
2237
2265
|
justify-content: flex-start;
|
|
2238
2266
|
}
|
|
2267
|
+
.theme-crazyDomains .md\:tw-justify-end {
|
|
2268
|
+
justify-content: flex-end;
|
|
2269
|
+
}
|
|
2239
2270
|
.theme-crazyDomains .md\:tw-justify-center {
|
|
2240
2271
|
justify-content: center;
|
|
2241
2272
|
}
|
|
@@ -2278,6 +2309,9 @@ video {
|
|
|
2278
2309
|
padding-top: 0.5rem;
|
|
2279
2310
|
padding-bottom: 0.5rem;
|
|
2280
2311
|
}
|
|
2312
|
+
.theme-crazyDomains .md\:tw-pl-4 {
|
|
2313
|
+
padding-left: 1rem;
|
|
2314
|
+
}
|
|
2281
2315
|
.theme-crazyDomains .md\:tw-pr-2 {
|
|
2282
2316
|
padding-right: 0.5rem;
|
|
2283
2317
|
}
|
|
@@ -651,6 +651,10 @@ video {
|
|
|
651
651
|
margin-top: 1rem;
|
|
652
652
|
margin-bottom: 1rem;
|
|
653
653
|
}
|
|
654
|
+
.theme-designCom .tw-my-5 {
|
|
655
|
+
margin-top: 1.25rem;
|
|
656
|
+
margin-bottom: 1.25rem;
|
|
657
|
+
}
|
|
654
658
|
.theme-designCom .tw-my-auto {
|
|
655
659
|
margin-top: auto;
|
|
656
660
|
margin-bottom: auto;
|
|
@@ -679,6 +683,9 @@ video {
|
|
|
679
683
|
.theme-designCom .tw-mb-1 {
|
|
680
684
|
margin-bottom: 0.25rem;
|
|
681
685
|
}
|
|
686
|
+
.theme-designCom .tw-mb-10 {
|
|
687
|
+
margin-bottom: 2.5rem;
|
|
688
|
+
}
|
|
682
689
|
.theme-designCom .tw-mb-2 {
|
|
683
690
|
margin-bottom: 0.5rem;
|
|
684
691
|
}
|
|
@@ -835,6 +842,9 @@ video {
|
|
|
835
842
|
.theme-designCom .tw-max-h-screen {
|
|
836
843
|
max-height: 100vh;
|
|
837
844
|
}
|
|
845
|
+
.theme-designCom .tw-w-1\/3 {
|
|
846
|
+
width: 33.333333%;
|
|
847
|
+
}
|
|
838
848
|
.theme-designCom .tw-w-10 {
|
|
839
849
|
width: 2.5rem;
|
|
840
850
|
}
|
|
@@ -1184,6 +1194,9 @@ video {
|
|
|
1184
1194
|
.theme-designCom .tw-border-b-0 {
|
|
1185
1195
|
border-bottom-width: 0px;
|
|
1186
1196
|
}
|
|
1197
|
+
.theme-designCom .tw-border-b-2 {
|
|
1198
|
+
border-bottom-width: 2px;
|
|
1199
|
+
}
|
|
1187
1200
|
.theme-designCom .tw-border-b-4 {
|
|
1188
1201
|
border-bottom-width: 4px;
|
|
1189
1202
|
}
|
|
@@ -1715,6 +1728,9 @@ video {
|
|
|
1715
1728
|
.theme-designCom .tw-text-center {
|
|
1716
1729
|
text-align: center;
|
|
1717
1730
|
}
|
|
1731
|
+
.theme-designCom .tw-align-top {
|
|
1732
|
+
vertical-align: top;
|
|
1733
|
+
}
|
|
1718
1734
|
.theme-designCom .tw-align-middle {
|
|
1719
1735
|
vertical-align: middle;
|
|
1720
1736
|
}
|
|
@@ -2197,6 +2213,9 @@ video {
|
|
|
2197
2213
|
.theme-designCom .md\:tw-grid {
|
|
2198
2214
|
display: grid;
|
|
2199
2215
|
}
|
|
2216
|
+
.theme-designCom .md\:tw-hidden {
|
|
2217
|
+
display: none;
|
|
2218
|
+
}
|
|
2200
2219
|
.theme-designCom .md\:tw-h-10 {
|
|
2201
2220
|
height: 2.5rem;
|
|
2202
2221
|
}
|
|
@@ -2209,12 +2228,21 @@ video {
|
|
|
2209
2228
|
.theme-designCom .md\:tw-w-10 {
|
|
2210
2229
|
width: 2.5rem;
|
|
2211
2230
|
}
|
|
2231
|
+
.theme-designCom .md\:tw-w-24 {
|
|
2232
|
+
width: 6rem;
|
|
2233
|
+
}
|
|
2212
2234
|
.theme-designCom .md\:tw-w-auto {
|
|
2213
2235
|
width: auto;
|
|
2214
2236
|
}
|
|
2215
2237
|
.theme-designCom .md\:tw-w-full {
|
|
2216
2238
|
width: 100%;
|
|
2217
2239
|
}
|
|
2240
|
+
.theme-designCom .md\:tw-max-w-full {
|
|
2241
|
+
max-width: 100%;
|
|
2242
|
+
}
|
|
2243
|
+
.theme-designCom .md\:tw-grow {
|
|
2244
|
+
flex-grow: 1;
|
|
2245
|
+
}
|
|
2218
2246
|
.theme-designCom .md\:tw-grid-cols-2 {
|
|
2219
2247
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2220
2248
|
}
|
|
@@ -2236,6 +2264,9 @@ video {
|
|
|
2236
2264
|
.theme-designCom .md\:tw-justify-start {
|
|
2237
2265
|
justify-content: flex-start;
|
|
2238
2266
|
}
|
|
2267
|
+
.theme-designCom .md\:tw-justify-end {
|
|
2268
|
+
justify-content: flex-end;
|
|
2269
|
+
}
|
|
2239
2270
|
.theme-designCom .md\:tw-justify-center {
|
|
2240
2271
|
justify-content: center;
|
|
2241
2272
|
}
|
|
@@ -2278,6 +2309,9 @@ video {
|
|
|
2278
2309
|
padding-top: 0.5rem;
|
|
2279
2310
|
padding-bottom: 0.5rem;
|
|
2280
2311
|
}
|
|
2312
|
+
.theme-designCom .md\:tw-pl-4 {
|
|
2313
|
+
padding-left: 1rem;
|
|
2314
|
+
}
|
|
2281
2315
|
.theme-designCom .md\:tw-pr-2 {
|
|
2282
2316
|
padding-right: 0.5rem;
|
|
2283
2317
|
}
|
|
@@ -651,6 +651,10 @@ video {
|
|
|
651
651
|
margin-top: 1rem;
|
|
652
652
|
margin-bottom: 1rem;
|
|
653
653
|
}
|
|
654
|
+
.theme-designCrowd .tw-my-5 {
|
|
655
|
+
margin-top: 1.25rem;
|
|
656
|
+
margin-bottom: 1.25rem;
|
|
657
|
+
}
|
|
654
658
|
.theme-designCrowd .tw-my-auto {
|
|
655
659
|
margin-top: auto;
|
|
656
660
|
margin-bottom: auto;
|
|
@@ -679,6 +683,9 @@ video {
|
|
|
679
683
|
.theme-designCrowd .tw-mb-1 {
|
|
680
684
|
margin-bottom: 0.25rem;
|
|
681
685
|
}
|
|
686
|
+
.theme-designCrowd .tw-mb-10 {
|
|
687
|
+
margin-bottom: 2.5rem;
|
|
688
|
+
}
|
|
682
689
|
.theme-designCrowd .tw-mb-2 {
|
|
683
690
|
margin-bottom: 0.5rem;
|
|
684
691
|
}
|
|
@@ -835,6 +842,9 @@ video {
|
|
|
835
842
|
.theme-designCrowd .tw-max-h-screen {
|
|
836
843
|
max-height: 100vh;
|
|
837
844
|
}
|
|
845
|
+
.theme-designCrowd .tw-w-1\/3 {
|
|
846
|
+
width: 33.333333%;
|
|
847
|
+
}
|
|
838
848
|
.theme-designCrowd .tw-w-10 {
|
|
839
849
|
width: 2.5rem;
|
|
840
850
|
}
|
|
@@ -1184,6 +1194,9 @@ video {
|
|
|
1184
1194
|
.theme-designCrowd .tw-border-b-0 {
|
|
1185
1195
|
border-bottom-width: 0px;
|
|
1186
1196
|
}
|
|
1197
|
+
.theme-designCrowd .tw-border-b-2 {
|
|
1198
|
+
border-bottom-width: 2px;
|
|
1199
|
+
}
|
|
1187
1200
|
.theme-designCrowd .tw-border-b-4 {
|
|
1188
1201
|
border-bottom-width: 4px;
|
|
1189
1202
|
}
|
|
@@ -1715,6 +1728,9 @@ video {
|
|
|
1715
1728
|
.theme-designCrowd .tw-text-center {
|
|
1716
1729
|
text-align: center;
|
|
1717
1730
|
}
|
|
1731
|
+
.theme-designCrowd .tw-align-top {
|
|
1732
|
+
vertical-align: top;
|
|
1733
|
+
}
|
|
1718
1734
|
.theme-designCrowd .tw-align-middle {
|
|
1719
1735
|
vertical-align: middle;
|
|
1720
1736
|
}
|
|
@@ -2197,6 +2213,9 @@ video {
|
|
|
2197
2213
|
.theme-designCrowd .md\:tw-grid {
|
|
2198
2214
|
display: grid;
|
|
2199
2215
|
}
|
|
2216
|
+
.theme-designCrowd .md\:tw-hidden {
|
|
2217
|
+
display: none;
|
|
2218
|
+
}
|
|
2200
2219
|
.theme-designCrowd .md\:tw-h-10 {
|
|
2201
2220
|
height: 2.5rem;
|
|
2202
2221
|
}
|
|
@@ -2209,12 +2228,21 @@ video {
|
|
|
2209
2228
|
.theme-designCrowd .md\:tw-w-10 {
|
|
2210
2229
|
width: 2.5rem;
|
|
2211
2230
|
}
|
|
2231
|
+
.theme-designCrowd .md\:tw-w-24 {
|
|
2232
|
+
width: 6rem;
|
|
2233
|
+
}
|
|
2212
2234
|
.theme-designCrowd .md\:tw-w-auto {
|
|
2213
2235
|
width: auto;
|
|
2214
2236
|
}
|
|
2215
2237
|
.theme-designCrowd .md\:tw-w-full {
|
|
2216
2238
|
width: 100%;
|
|
2217
2239
|
}
|
|
2240
|
+
.theme-designCrowd .md\:tw-max-w-full {
|
|
2241
|
+
max-width: 100%;
|
|
2242
|
+
}
|
|
2243
|
+
.theme-designCrowd .md\:tw-grow {
|
|
2244
|
+
flex-grow: 1;
|
|
2245
|
+
}
|
|
2218
2246
|
.theme-designCrowd .md\:tw-grid-cols-2 {
|
|
2219
2247
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2220
2248
|
}
|
|
@@ -2236,6 +2264,9 @@ video {
|
|
|
2236
2264
|
.theme-designCrowd .md\:tw-justify-start {
|
|
2237
2265
|
justify-content: flex-start;
|
|
2238
2266
|
}
|
|
2267
|
+
.theme-designCrowd .md\:tw-justify-end {
|
|
2268
|
+
justify-content: flex-end;
|
|
2269
|
+
}
|
|
2239
2270
|
.theme-designCrowd .md\:tw-justify-center {
|
|
2240
2271
|
justify-content: center;
|
|
2241
2272
|
}
|
|
@@ -2278,6 +2309,9 @@ video {
|
|
|
2278
2309
|
padding-top: 0.5rem;
|
|
2279
2310
|
padding-bottom: 0.5rem;
|
|
2280
2311
|
}
|
|
2312
|
+
.theme-designCrowd .md\:tw-pl-4 {
|
|
2313
|
+
padding-left: 1rem;
|
|
2314
|
+
}
|
|
2281
2315
|
.theme-designCrowd .md\:tw-pr-2 {
|
|
2282
2316
|
padding-right: 0.5rem;
|
|
2283
2317
|
}
|
|
@@ -24,7 +24,23 @@ const getPaymentConfigsByBrandPageToken = async (brandPageToken) => {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
const deletePaymentConfigByBrandPageTokenAndConfigId = async (brandPageToken, paymentConfigId) => {
|
|
28
|
+
try {
|
|
29
|
+
const response = await getAxios().delete(`/maker/api/brand-pages/${brandPageToken}/payment-configs`, {
|
|
30
|
+
data: { paymentConfigId },
|
|
31
|
+
});
|
|
32
|
+
if (response.status === 200) {
|
|
33
|
+
return response.data;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return null;
|
|
37
|
+
} catch (err) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
27
42
|
export default {
|
|
28
43
|
setBrandPageApiClientAxios,
|
|
29
44
|
getPaymentConfigsByBrandPageToken,
|
|
45
|
+
deletePaymentConfigByBrandPageTokenAndConfigId,
|
|
30
46
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import brandPageApiClient from '../../clients/brand-page-api.client';
|
|
2
|
+
import vClickOutside from 'click-outside-vue3';
|
|
2
3
|
|
|
3
4
|
export const paymentConfigStatuses = Object.freeze({
|
|
4
5
|
active: 'Active',
|
|
@@ -24,9 +25,14 @@ export default {
|
|
|
24
25
|
default: undefined,
|
|
25
26
|
},
|
|
26
27
|
},
|
|
28
|
+
directives: {
|
|
29
|
+
clickOutside: vClickOutside,
|
|
30
|
+
},
|
|
27
31
|
data: () => ({
|
|
28
32
|
isLoading: true,
|
|
29
33
|
paymentConfigs: [],
|
|
34
|
+
selectedPaymentConfig: {},
|
|
35
|
+
isStripeOptionActionVisible: false,
|
|
30
36
|
}),
|
|
31
37
|
methods: {
|
|
32
38
|
getPaymentConfigStatusDisplayText(paymentConfigStatus) {
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Modal
|
|
3
|
+
classes="publish-bp--modal tw-px-2 md:tw-px-8"
|
|
4
|
+
close-on-esc
|
|
5
|
+
:visible="true"
|
|
6
|
+
:hide-scrollbar="false"
|
|
7
|
+
@close-modal="onCloseModal"
|
|
8
|
+
>
|
|
9
|
+
<template #header>
|
|
10
|
+
<div class="tw-text-center tw-font-bold tw-mb-4 tw-mt-8 tw-text-2xl">
|
|
11
|
+
<span>Delete Payment Provider</span>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<template #default>
|
|
15
|
+
<div class="tw-text-center tw-w-full tw-border-0 tw-border-solid tw-border-grayscale-400 tw-border-t tw-p-4">
|
|
16
|
+
<p class="tw-text-grayscale-600">Are you sure you want to delete this payment provider?</p>
|
|
17
|
+
<p class="tw-text-grayscale-600">
|
|
18
|
+
Once deleted, your site will no longer show any payment options to visitors. You won’t be able to accept
|
|
19
|
+
payments unless you set up a new provider.
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
class="tw-font-sans tw-text-center tw-flex tw-gap-2 tw-justify-center tw-mt-4 tw-border-0 tw-border-solid tw-border-grayscale-400 tw-border-t"
|
|
25
|
+
:style="isMobile ? 'padding-left: 1.5rem; padding-right: 1.5rem;' : ''"
|
|
26
|
+
>
|
|
27
|
+
<Button label="Cancel" size="large" variant="outline" class="tw-my-4" @on-click="onCloseModal" />
|
|
28
|
+
<Button label="Delete Provider" variant="primary" size="large" class="tw-my-4" @on-click="onConfirmDelete" />
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
</Modal>
|
|
32
|
+
</template>
|
|
33
|
+
<script>
|
|
34
|
+
import Modal from '../../../../src/atoms/components/Modal/Modal.vue';
|
|
35
|
+
import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
36
|
+
import brandPageApiClient from './../../clients/brand-page-api.client';
|
|
37
|
+
export default {
|
|
38
|
+
components: {
|
|
39
|
+
Modal,
|
|
40
|
+
Button,
|
|
41
|
+
},
|
|
42
|
+
emits: ['close-modal'],
|
|
43
|
+
props: {
|
|
44
|
+
paymentConfig: {
|
|
45
|
+
type: Object,
|
|
46
|
+
required: true,
|
|
47
|
+
default: () => ({}),
|
|
48
|
+
},
|
|
49
|
+
brandPageToken: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
onCloseModal() {
|
|
56
|
+
this.$emit('close-modal');
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
async onConfirmDelete() {
|
|
60
|
+
const paymentConfigId = this.paymentConfig.paymentConfigId;
|
|
61
|
+
if (!this.brandPageToken) {
|
|
62
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
63
|
+
console.error(`brandPageToken is required`);
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (!paymentConfigId) {
|
|
69
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
70
|
+
console.error(`paymentConfigId is required`);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
try {
|
|
76
|
+
this.isLoading = true;
|
|
77
|
+
|
|
78
|
+
const result = await brandPageApiClient.deletePaymentConfigByBrandPageTokenAndConfigId(
|
|
79
|
+
this.brandPageToken,
|
|
80
|
+
paymentConfigId,
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
if (result) {
|
|
84
|
+
this.$emit('on-load', paymentConfigId);
|
|
85
|
+
}
|
|
86
|
+
} finally {
|
|
87
|
+
this.isLoading = false;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
</script>
|