@shoplflow/base 0.35.1 → 0.36.0

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
@@ -6759,7 +6759,7 @@ var SliderThumbs = ({
6759
6759
  selectedColor,
6760
6760
  onMouseDown
6761
6761
  }) => {
6762
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: positions.map((position, index) => /* @__PURE__ */ jsxRuntime.jsx(ThumbButton, { style: { left: `${position}%` }, onMouseDown: onMouseDown(index), children: /* @__PURE__ */ jsxRuntime.jsx(
6762
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: positions.map((position, index) => /* @__PURE__ */ jsxRuntime.jsx(ThumbButton, { style: { left: `${position}%` }, onMouseDown: onMouseDown(index), type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(
6763
6763
  exports.Tooltip,
6764
6764
  {
6765
6765
  trigger: /* @__PURE__ */ jsxRuntime.jsx(ThumbCircle, { isDisabled, selectedColor }),
@@ -6782,11 +6782,11 @@ var useSlider = ({ bounds, step, defaultRange, handleRange, isDisabled = false }
6782
6782
  } else if (index === 1) {
6783
6783
  newRange[1] = Math.max(newValue, newRange[0]);
6784
6784
  }
6785
+ handleRange == null ? void 0 : handleRange({ min: newRange[0], max: newRange[1] });
6785
6786
  return newRange;
6786
6787
  });
6787
- handleRange == null ? void 0 : handleRange({ min: range[0], max: range[1] });
6788
6788
  },
6789
- [range, handleRange]
6789
+ [handleRange]
6790
6790
  );
6791
6791
  const handleMouseDown = React3.useCallback(
6792
6792
  (index) => (e) => {
package/dist/index.js CHANGED
@@ -6732,7 +6732,7 @@ var SliderThumbs = ({
6732
6732
  selectedColor,
6733
6733
  onMouseDown
6734
6734
  }) => {
6735
- return /* @__PURE__ */ jsx(Fragment, { children: positions.map((position, index) => /* @__PURE__ */ jsx(ThumbButton, { style: { left: `${position}%` }, onMouseDown: onMouseDown(index), children: /* @__PURE__ */ jsx(
6735
+ return /* @__PURE__ */ jsx(Fragment, { children: positions.map((position, index) => /* @__PURE__ */ jsx(ThumbButton, { style: { left: `${position}%` }, onMouseDown: onMouseDown(index), type: "button", children: /* @__PURE__ */ jsx(
6736
6736
  Tooltip_default,
6737
6737
  {
6738
6738
  trigger: /* @__PURE__ */ jsx(ThumbCircle, { isDisabled, selectedColor }),
@@ -6755,11 +6755,11 @@ var useSlider = ({ bounds, step, defaultRange, handleRange, isDisabled = false }
6755
6755
  } else if (index === 1) {
6756
6756
  newRange[1] = Math.max(newValue, newRange[0]);
6757
6757
  }
6758
+ handleRange == null ? void 0 : handleRange({ min: newRange[0], max: newRange[1] });
6758
6759
  return newRange;
6759
6760
  });
6760
- handleRange == null ? void 0 : handleRange({ min: range[0], max: range[1] });
6761
6761
  },
6762
- [range, handleRange]
6762
+ [handleRange]
6763
6763
  );
6764
6764
  const handleMouseDown = useCallback(
6765
6765
  (index) => (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.35.1",
3
+ "version": "0.36.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -91,8 +91,8 @@
91
91
  "react-dom": "^18.2.0",
92
92
  "simplebar-react": "^3.2.6",
93
93
  "@shoplflow/hada-assets": "^0.1.3",
94
- "@shoplflow/shopl-assets": "^0.12.3",
95
- "@shoplflow/utils": "^0.6.5"
94
+ "@shoplflow/utils": "^0.6.5",
95
+ "@shoplflow/shopl-assets": "^0.12.3"
96
96
  },
97
97
  "scripts": {
98
98
  "type-check": "tsc --noEmit",