@innovastudio/contentbuilder 1.5.198 → 1.5.199

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.
@@ -4665,7 +4665,7 @@ class Util {
4665
4665
  callback(true);
4666
4666
  });
4667
4667
  }
4668
- confirm(message, callback, yesno, yestext, forceOpen) {
4668
+ confirm(message, callback, yesno, yestext, forceOpen, notext = 'Cancel') {
4669
4669
  if (!this.builder.deleteConfirm && !forceOpen) {
4670
4670
  callback(true);
4671
4671
  return;
@@ -4682,8 +4682,8 @@ class Util {
4682
4682
  html = `<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
4683
4683
  <div class="is-modal-content" style="padding-bottom:20px;">
4684
4684
  <div style="margin: 20px 0 30px;font-size: 14px;">${message}</div>
4685
- <button title="${this.out('Cancel')}" class="input-cancel classic-secondary">${this.out('Cancel')}</button>
4686
- <button title="${yestext}" class="input-ok classic-primary">${yestext}</button>
4685
+ <button title="${this.out(notext)}" class="input-cancel classic-secondary">${this.out(notext)}</button>
4686
+ <button title="${this.out(yestext)}" class="input-ok classic-primary">${this.out(yestext)}</button>
4687
4687
  </div>
4688
4688
  </div>`;
4689
4689
  }
@@ -18033,6 +18033,8 @@ const renderSnippetPanel = (builder, snippetOpen) => {
18033
18033
  }
18034
18034
  }
18035
18035
  let snippetPanel = document.querySelector(builder.opts.snippetList);
18036
+ if (!snippetPanel) return;
18037
+ snippetPanel.classList.add('is-ui');
18036
18038
  snippetPanel.innerHTML = ''; //clear
18037
18039
  dom.appendHtml(snippetPanel, html_snippets);
18038
18040
  const snippetList = [];
@@ -91785,7 +91787,7 @@ Classes: ease-linear, ease-in, ease-out, ease-in-out
91785
91787
 
91786
91788
  **Hover Transforms**
91787
91789
 
91788
- Classes: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2
91790
+ Classes: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2, .hover:translate-x-1, .hover:translate-x-2
91789
91791
 
91790
91792
  **Hover Shadow**
91791
91793
 
@@ -91830,6 +91832,31 @@ Classes: spin, ping, pulse, bounce
91830
91832
 
91831
91833
  **Key classes:** transition-transform, duration-300, hover:translate-y--2
91832
91834
 
91835
+ **Example: Hover shift on List Items**
91836
+
91837
+ <div class="row" style="gap: 30px;">
91838
+ <div class="column">
91839
+ <!-- list item -->
91840
+ <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">
91841
+ <div class="pr-6 pt-5">
91842
+ <i class="bi bi-globe size-24 text-black"></i>
91843
+ </div>
91844
+ <div>
91845
+ <h3 class="size-24 font-normal mb-3">Global Perspective</h3>
91846
+ <p class="size-16 leading-17 text-gray-600">
91847
+ Our team spans three continents, bringing diverse cultural insights to every project. We design experiences that transcend borders while respecting local nuances, ensuring your brand resonates globally.
91848
+ </p>
91849
+ </div>
91850
+ </div>
91851
+ <!-- list item -->
91852
+ <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">
91853
+ <!-- item content -->
91854
+ </div>
91855
+ </div>
91856
+ </div>
91857
+
91858
+ **Key classes:** transition-transform, duration-300, hover:translate-x-2
91859
+
91833
91860
  **Example: Hover lift and shadow on Cards**
91834
91861
 
91835
91862
  <div class="row" style="gap: 30px;">