@inappstory/slide-api 0.1.32 → 0.1.33

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/dist/index.cjs CHANGED
@@ -6189,6 +6189,10 @@ class Slider {
6189
6189
  createBulletPoints(count, getLayoutDirection, position) {
6190
6190
  const bullets = document.createElement("div");
6191
6191
  bullets.classList.add("cards-slider__navbar");
6192
+ // force hide bullets container for single slide
6193
+ if (count <= 1) {
6194
+ position = 0;
6195
+ }
6192
6196
  if (position === 0) {
6193
6197
  bullets.classList.add("cards-slider__navbar--position-none");
6194
6198
  }
@@ -6226,10 +6230,6 @@ class Slider {
6226
6230
  bullets.appendChild(bullet);
6227
6231
  }
6228
6232
  }
6229
- else {
6230
- // additionally hide bullets container for single slide
6231
- bullets.classList.add("hidden");
6232
- }
6233
6233
  // const onUpdateActiveIndex = (activeIndex: number) => {
6234
6234
  // if (activeIndex >= 0 && activeIndex < count) {
6235
6235
  // for (const bullet of bullets.querySelectorAll(".cards-slider__bullet--active")) {