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

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