@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261014075053 → 0.8.1-dev.20261014101636

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.
@@ -161,7 +161,14 @@ var Slider = ({
161
161
  setIsPlaying(true);
162
162
  }
163
163
  };
164
- const translateX = -currentSlide * slideWidthPercentage;
164
+ const maxTranslatePercentage = Math.max(
165
+ 0,
166
+ totalSlides * slideWidthPercentage - 100
167
+ );
168
+ const translateX = -Math.min(
169
+ currentSlide * slideWidthPercentage,
170
+ maxTranslatePercentage
171
+ );
165
172
  const slides = Children.map(children, (child, index) => {
166
173
  if (!React.isValidElement(child)) return null;
167
174
  const childProps = child.props;
@@ -163,7 +163,14 @@ var Slider = ({
163
163
  setIsPlaying(true);
164
164
  }
165
165
  };
166
- const translateX = -currentSlide * slideWidthPercentage;
166
+ const maxTranslatePercentage = Math.max(
167
+ 0,
168
+ totalSlides * slideWidthPercentage - 100
169
+ );
170
+ const translateX = -Math.min(
171
+ currentSlide * slideWidthPercentage,
172
+ maxTranslatePercentage
173
+ );
167
174
  const slides = Children.map(children, (child, index) => {
168
175
  if (!React.isValidElement(child)) return null;
169
176
  const childProps = child.props;
package/dist/index.js CHANGED
@@ -7324,7 +7324,14 @@ var init_Slider = __esm({
7324
7324
  setIsPlaying(true);
7325
7325
  }
7326
7326
  };
7327
- const translateX = -currentSlide * slideWidthPercentage;
7327
+ const maxTranslatePercentage = Math.max(
7328
+ 0,
7329
+ totalSlides * slideWidthPercentage - 100
7330
+ );
7331
+ const translateX = -Math.min(
7332
+ currentSlide * slideWidthPercentage,
7333
+ maxTranslatePercentage
7334
+ );
7328
7335
  const slides = import_react62.Children.map(children, (child, index) => {
7329
7336
  if (!import_react62.default.isValidElement(child)) return null;
7330
7337
  const childProps = child.props;
package/dist/index.mjs CHANGED
@@ -2551,7 +2551,7 @@ var Pagination = dynamic16(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: tru
2551
2551
  var DataBindingControls = dynamic16(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
2552
2552
  ssr: true
2553
2553
  });
2554
- var Slider = dynamic16(() => import("./Slider-XDYPGJYI.mjs"), {
2554
+ var Slider = dynamic16(() => import("./Slider-MZWLONIG.mjs"), {
2555
2555
  ssr: false
2556
2556
  });
2557
2557
  function toCamelCase(str) {
package/dist/server.js CHANGED
@@ -4959,7 +4959,14 @@ var init_Slider = __esm({
4959
4959
  setIsPlaying(true);
4960
4960
  }
4961
4961
  };
4962
- const translateX = -currentSlide * slideWidthPercentage;
4962
+ const maxTranslatePercentage = Math.max(
4963
+ 0,
4964
+ totalSlides * slideWidthPercentage - 100
4965
+ );
4966
+ const translateX = -Math.min(
4967
+ currentSlide * slideWidthPercentage,
4968
+ maxTranslatePercentage
4969
+ );
4963
4970
  const slides = import_react42.Children.map(children, (child, index) => {
4964
4971
  if (!import_react42.default.isValidElement(child)) return null;
4965
4972
  const childProps = child.props;
package/dist/server.mjs CHANGED
@@ -2507,7 +2507,7 @@ var Pagination = dynamic15(() => import("./Pagination-RMAXCIL7.mjs"), { ssr: tru
2507
2507
  var DataBindingControls = dynamic15(() => import("./DataBindingControls-Z2AHWFYX.mjs"), {
2508
2508
  ssr: true
2509
2509
  });
2510
- var Slider = dynamic15(() => import("./Slider-BH5S4XRN.mjs"), {
2510
+ var Slider = dynamic15(() => import("./Slider-3UFC3SQQ.mjs"), {
2511
2511
  ssr: false
2512
2512
  });
2513
2513
  function toCamelCase(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20261014075053",
3
+ "version": "0.8.1-dev.20261014101636",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",