@designcrowd/library.brand-page 5.17.17-ast-btn-styles → 5.17.17
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/lib/src/{CreatedOnBrandCrowd-de-de-marEicNQ.js → CreatedOnBrandCrowd-de-de-C9P2zdPv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-yT4i0M-g.js → CreatedOnBrandCrowd-en-us-DBtTxqeM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BZyuRbbP.js → CreatedOnBrandCrowd-es-es-DC5aFDcN.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DbmBFXtc.js → CreatedOnBrandCrowd-fr-ca-CNiUorYS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DbmBFXtc.js → CreatedOnBrandCrowd-fr-fr-CNiUorYS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BbYZJoNt.js → CreatedOnBrandCrowd-pt-br-CuqWCZLB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BbYZJoNt.js → CreatedOnBrandCrowd-pt-pt-CuqWCZLB.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DRL_e7AS.js → CreatedOnDcom-de-de-DRyCl_4J.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-C7q1MIjn.js → CreatedOnDcom-en-us-CV2aCrWr.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-SF9r-nTg.js → CreatedOnDcom-es-es-2db-EVNQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CYfpiHf2.js → CreatedOnDcom-fr-ca-hK0aCeAJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C05ICntD.js → CreatedOnDcom-fr-fr-cXZK46sf.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-B67MNFkH.js → CreatedOnDcom-pt-br-DxjyLWyi.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CfLOkOqR.js → CreatedOnDcom-pt-pt-C4KIe_Nv.js} +1 -1
- package/lib/src/brand-page-maker/models/button-styles-config.js +12 -11
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-C3rqD9fp.js → lib-DD0QNGsz.js} +1550 -1550
- package/package.json +1 -1
- package/src/brand-page-maker/models/button-styles-config.ts +12 -11
- package/src/shared/style-settings/components/StyleSettings.vue +7 -2
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BrandPageType, ButtonStyles } from '@brand-page';
|
|
2
|
+
import { BRAND_PAGE_TYPES } from '@brand-page';
|
|
2
3
|
import { ButtonBoxShadowSize, ButtonSoftBoxShadowSize } from '@brand-page';
|
|
3
4
|
|
|
4
5
|
export const ButtonStyleConfigOptions = [
|
|
@@ -77,7 +78,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
77
78
|
iconName: undefined,
|
|
78
79
|
iconViewBox: undefined,
|
|
79
80
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
80
|
-
brandPageType:
|
|
81
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
81
82
|
},
|
|
82
83
|
{
|
|
83
84
|
id: 'BUTTON_STYLE_4',
|
|
@@ -128,7 +129,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
128
129
|
iconName: undefined,
|
|
129
130
|
iconViewBox: undefined,
|
|
130
131
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
131
|
-
brandPageType:
|
|
132
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
id: 'BUTTON_STYLE_7',
|
|
@@ -151,7 +152,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
151
152
|
'buttonShadowColor',
|
|
152
153
|
'buttonIconColor',
|
|
153
154
|
],
|
|
154
|
-
brandPageType:
|
|
155
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
155
156
|
},
|
|
156
157
|
{
|
|
157
158
|
id: 'BUTTON_STYLE_8',
|
|
@@ -174,7 +175,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
174
175
|
'buttonShadowColor',
|
|
175
176
|
'buttonIconColor',
|
|
176
177
|
],
|
|
177
|
-
brandPageType:
|
|
178
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
181
|
id: 'BUTTON_STYLE_9',
|
|
@@ -197,7 +198,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
197
198
|
'buttonShadowColor',
|
|
198
199
|
'buttonIconColor',
|
|
199
200
|
],
|
|
200
|
-
brandPageType:
|
|
201
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
201
202
|
},
|
|
202
203
|
{
|
|
203
204
|
id: 'BUTTON_STYLE_10',
|
|
@@ -248,7 +249,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
248
249
|
iconName: 'button-dashed-oval',
|
|
249
250
|
iconViewBox: '0 0 60 20',
|
|
250
251
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
251
|
-
brandPageType:
|
|
252
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
252
253
|
},
|
|
253
254
|
{
|
|
254
255
|
id: 'BUTTON_STYLE_13',
|
|
@@ -299,7 +300,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
299
300
|
iconName: 'button-doubleline-oval',
|
|
300
301
|
iconViewBox: '0 0 60 20',
|
|
301
302
|
options: ['buttonFillColor', 'buttonBorderColor', 'buttonIconColor'],
|
|
302
|
-
brandPageType:
|
|
303
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
303
304
|
},
|
|
304
305
|
{
|
|
305
306
|
id: 'BUTTON_STYLE_16',
|
|
@@ -356,7 +357,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
356
357
|
iconName: 'button-softshadow-oval',
|
|
357
358
|
iconViewBox: '0 0 60 20',
|
|
358
359
|
options: ['buttonFillColor', 'buttonSoftShadowColor', 'buttonIconColor'],
|
|
359
|
-
brandPageType:
|
|
360
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
360
361
|
},
|
|
361
362
|
{
|
|
362
363
|
id: 'BUTTON_STYLE_19',
|
|
@@ -373,7 +374,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
373
374
|
iconName: 'button-brushstroke',
|
|
374
375
|
iconViewBox: '0 0 60 20',
|
|
375
376
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
376
|
-
brandPageType:
|
|
377
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
377
378
|
},
|
|
378
379
|
{
|
|
379
380
|
id: 'BUTTON_STYLE_20',
|
|
@@ -390,7 +391,7 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
390
391
|
iconName: 'button-arrow',
|
|
391
392
|
iconViewBox: '0 0 60 20',
|
|
392
393
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
393
|
-
brandPageType:
|
|
394
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
394
395
|
},
|
|
395
396
|
{
|
|
396
397
|
id: 'BUTTON_STYLE_21',
|
|
@@ -407,6 +408,6 @@ export const availableButtonStyleConfigs: ButtonStyleConfig[] = [
|
|
|
407
408
|
iconName: 'button-paper',
|
|
408
409
|
iconViewBox: '0 0 60 20',
|
|
409
410
|
options: ['buttonFillColor', 'buttonIconColor'],
|
|
410
|
-
brandPageType:
|
|
411
|
+
brandPageType: [BRAND_PAGE_TYPES.default, BRAND_PAGE_TYPES.brandContact],
|
|
411
412
|
},
|
|
412
413
|
];
|
|
@@ -170,12 +170,17 @@
|
|
|
170
170
|
'c-button-style--selected !tw-shadow-[0_0_0_2px] !tw-shadow-info-500':
|
|
171
171
|
selectedButtonStyleConfig &&
|
|
172
172
|
buttonStyleConfig.id === selectedButtonStyleConfig.id,
|
|
173
|
-
'tw-py-2.5 tw-w-full':
|
|
173
|
+
'tw-py-2.5 tw-w-full':
|
|
174
|
+
!buttonStyleConfig.iconName ||
|
|
175
|
+
(buttonStyleConfig.iconName && brandPageType === 'brandSite'),
|
|
174
176
|
}"
|
|
175
177
|
@click="onButtonStyleConfigClick({ id: buttonStyleConfig.id })"
|
|
176
178
|
>
|
|
177
179
|
<span
|
|
178
|
-
v-if="
|
|
180
|
+
v-if="
|
|
181
|
+
!buttonStyleConfig.iconName ||
|
|
182
|
+
(buttonStyleConfig.iconName && brandPageType === 'brandSite')
|
|
183
|
+
"
|
|
179
184
|
class="tw-block tw-h-7 tw-bg-primary-500"
|
|
180
185
|
:style="{
|
|
181
186
|
...buttonStyleConfig.uiStyle,
|