@designcrowd/library.brand-page 5.17.17 → 5.17.18-ast-btn-styles

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.
Files changed (37) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-C9P2zdPv.js → CreatedOnBrandCrowd-de-de-D2OCuUBR.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DBtTxqeM.js → CreatedOnBrandCrowd-en-us-CeQE2mrH.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DC5aFDcN.js → CreatedOnBrandCrowd-es-es-GCt5DXs8.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CNiUorYS.js → CreatedOnBrandCrowd-fr-ca-CX2-IOfY.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CNiUorYS.js → CreatedOnBrandCrowd-fr-fr-CX2-IOfY.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CuqWCZLB.js → CreatedOnBrandCrowd-pt-br-BjTeqtuz.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CuqWCZLB.js → CreatedOnBrandCrowd-pt-pt-BjTeqtuz.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DRyCl_4J.js → CreatedOnDcom-de-de-LJRZhI9w.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CV2aCrWr.js → CreatedOnDcom-en-us-CSy4jVVQ.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-2db-EVNQ.js → CreatedOnDcom-es-es-BhFkRbVC.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-hK0aCeAJ.js → CreatedOnDcom-fr-ca-bhu0hPDU.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-cXZK46sf.js → CreatedOnDcom-fr-fr-B1whVvQJ.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DxjyLWyi.js → CreatedOnDcom-pt-br-DtLVtfZK.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-C4KIe_Nv.js → CreatedOnDcom-pt-pt-5CMzJm82.js} +1 -1
  15. package/lib/src/brand-page/components/button/Button.mixin.d.ts +0 -7
  16. package/lib/src/brand-page/components/button/Button.mixin.js +0 -41
  17. package/lib/src/brand-page/constants/font.constants.js +1 -1
  18. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +3 -2
  19. package/lib/src/brand-page-maker/models/button-styles-config.js +11 -12
  20. package/lib/src/css/library.brand-page-brandCrowd.min.css +53 -75
  21. package/lib/src/css/library.brand-page-brandPage.min.css +53 -75
  22. package/lib/src/css/library.brand-page-designCom.min.css +53 -75
  23. package/lib/src/css/library.brand-page-preview.min.css +53 -75
  24. package/lib/src/index.mjs +1 -1
  25. package/lib/src/{lib-DD0QNGsz.js → lib-DdgsfoxJ.js} +7344 -7333
  26. package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.js +2 -1
  27. package/package.json +1 -1
  28. package/src/brand-page/components/button/Button.mixin.ts +0 -37
  29. package/src/brand-page/components/button/Button.vue +104 -178
  30. package/src/brand-page/components/button/ButtonStyleWrapper.vue +122 -0
  31. package/src/brand-page/components/shop/ProductDetailModal.vue +3 -1
  32. package/src/brand-page/constants/font.constants.ts +1 -1
  33. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +4 -2
  34. package/src/brand-page-maker/models/button-styles-config.ts +11 -12
  35. package/src/shared/font-family-selector/FontFamilySelector.mixin.ts +5 -1
  36. package/src/shared/font-family-selector/FontPicker.vue +4 -3
  37. package/src/shared/style-settings/components/StyleSettings.vue +2 -7
@@ -10,7 +10,7 @@
10
10
  @click="togglePanel"
11
11
  >
12
12
  <div class="tw-py-3 tw-pl-3 tw-flex-auto tw-text-left tw-truncate">
13
- {{ value }}
13
+ {{ stripQuotes(value) }}
14
14
  </div>
15
15
  <Icon
16
16
  :name="isPanelOpen ? 'chevron-up' : 'chevron-down'"
@@ -130,7 +130,7 @@ const selectedCategoryLabel = computed(() => {
130
130
  });
131
131
 
132
132
  function isSelectedFont(option: StyleTextFontFamilyOption): boolean {
133
- return FONT_FAMILY_CONFIGS[option.key].name === props.value;
133
+ return FONT_FAMILY_CONFIGS[option.key].name === stripQuotes(props.value);
134
134
  }
135
135
 
136
136
  function togglePanel(): void {
@@ -158,7 +158,7 @@ function scrollToSelectedFont(): void {
158
158
  nextTick(() => {
159
159
  if (!fontListRef.value) return;
160
160
  const selectedKey = filteredFontOptions.value.find(
161
- (o) => FONT_FAMILY_CONFIGS[o.key].name === props.value,
161
+ (o) => FONT_FAMILY_CONFIGS[o.key].name === stripQuotes(props.value),
162
162
  )?.key;
163
163
  if (!selectedKey) return;
164
164
  const el = fontListRef.value.querySelector(
@@ -201,6 +201,7 @@ function handleClickOutside(): void {
201
201
  function onSelectCategory(category: FontFamilyCategory | null): void {
202
202
  selectedCategory.value = category;
203
203
  categoryDropdownRef.value?.hideMenu();
204
+ scrollToSelectedFont();
204
205
  }
205
206
 
206
207
  function onFontClick(option: StyleTextFontFamilyOption): void {
@@ -170,17 +170,12 @@
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':
174
- !buttonStyleConfig.iconName ||
175
- (buttonStyleConfig.iconName && brandPageType === 'brandSite'),
173
+ 'tw-py-2.5 tw-w-full': !buttonStyleConfig.iconName,
176
174
  }"
177
175
  @click="onButtonStyleConfigClick({ id: buttonStyleConfig.id })"
178
176
  >
179
177
  <span
180
- v-if="
181
- !buttonStyleConfig.iconName ||
182
- (buttonStyleConfig.iconName && brandPageType === 'brandSite')
183
- "
178
+ v-if="!buttonStyleConfig.iconName"
184
179
  class="tw-block tw-h-7 tw-bg-primary-500"
185
180
  :style="{
186
181
  ...buttonStyleConfig.uiStyle,