@enigma-lake/mines-play-controller-sdk 2.0.22 → 2.0.23

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -111,7 +111,7 @@ const Input = ({ onChange, disabled, className, max, ...restProps }) => {
111
111
  event.target.value = clamped;
112
112
  onChange?.(event);
113
113
  }, [disabled, max, onChange]);
114
- return (jsx("input", { ...restProps, type: "text", max: max, inputMode: "numeric", pattern: "\\d*", maxLength: 200, disabled: disabled, onChange: handleChange, className: cx$1(styles$4.base, className, { [styles$4.disabled]: disabled }) }));
114
+ return (jsx("input", { ...restProps, type: "text", max: max, inputMode: "numeric", pattern: "\\d*", maxLength: 250, disabled: disabled, onChange: handleChange, className: cx$1(styles$4.base, className, { [styles$4.disabled]: disabled }) }));
115
115
  };
116
116
 
117
117
  var styles$3 = {"base":"Switch-module__base___gj2ey","switcher":"Switch-module__switcher___gHXIx","gold":"Switch-module__gold___oewnb","sweeps":"Switch-module__sweeps___yS-IY","unchecked":"Switch-module__unchecked___ooSS2","disabled":"Switch-module__disabled___lMRv0","thumb":"Switch-module__thumb___1wJ9D","move-right":"Switch-module__move-right___ca-6D","label":"Switch-module__label___pG2uz"};
@@ -836,7 +836,7 @@ const AutoManualPlayProvider = ({ children, config, }) => {
836
836
  "--play-bottom": config.panel.bottom ?? 0,
837
837
  "--play-panel-bg": hexToRgb(config.panel.bgColorHex ?? "#01243A"),
838
838
  "--play-panel-bg-opacity": 0.5,
839
- }, children: jsxs("div", { className: cx$1(styles_ui.container), children: [jsx(PlayValueList, {}), jsx("div", { className: cx$1(styles_ui.auto), children: jsx(InputWithSwitch, { value: numberOfPlays === Infinity ? 0 : numberOfPlays, type: "number", onChange: (e) => setNumberOfPlays(Number(e.currentTarget.value)), placeholder: "Number of Plays", min: 0, max: 200, disabled: config.playOptions.disabledController ||
839
+ }, children: jsxs("div", { className: cx$1(styles_ui.container), children: [jsx(PlayValueList, {}), jsx("div", { className: cx$1(styles_ui.auto), children: jsx(InputWithSwitch, { value: numberOfPlays === Infinity ? 0 : numberOfPlays, type: "number", onChange: (e) => setNumberOfPlays(Number(e.currentTarget.value)), placeholder: "Number of Plays", min: 0, max: 250, disabled: config.playOptions.disabledController ||
840
840
  mode === GAME_MODE.MANUAL, switcherConfig: {
841
841
  onSwitch: toggleMode,
842
842
  isPlaying: isAutoPlaying || config.playOptions.isPlaying,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigma-lake/mines-play-controller-sdk",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "description": "A React component library for building gameplay interfaces",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",