door_models 2.0.0 → 2.0.1
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.js +15 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3005,9 +3005,9 @@ const EditableSlider = _ref => {
|
|
|
3005
3005
|
step = 1,
|
|
3006
3006
|
onChange
|
|
3007
3007
|
} = _ref;
|
|
3008
|
-
const [inputValue, setInputValue] = require$$0.useState(value);
|
|
3008
|
+
const [inputValue, setInputValue] = require$$0.useState(String(value));
|
|
3009
3009
|
require$$0__default["default"].useEffect(() => {
|
|
3010
|
-
setInputValue(value);
|
|
3010
|
+
setInputValue(String(value));
|
|
3011
3011
|
}, [value]);
|
|
3012
3012
|
const handleSliderChange = (_, newValue) => {
|
|
3013
3013
|
onChange(Array.isArray(newValue) ? newValue[0] : newValue);
|
|
@@ -4281,8 +4281,18 @@ const Interface = () => {
|
|
|
4281
4281
|
});
|
|
4282
4282
|
};
|
|
4283
4283
|
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4284
|
+
const DoorConfigurator = _ref => {
|
|
4285
|
+
let {
|
|
4286
|
+
doorName,
|
|
4287
|
+
showInterface = true
|
|
4288
|
+
} = _ref;
|
|
4289
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(ConfiguratorProvider, {
|
|
4290
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx(DoorModels, {
|
|
4291
|
+
doorName: doorName
|
|
4292
|
+
}), showInterface && /*#__PURE__*/jsxRuntimeExports.jsx(Interface, {})]
|
|
4293
|
+
});
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4296
|
+
exports["default"] = DoorConfigurator;
|
|
4287
4297
|
exports.useConfigurator = useConfigurator;
|
|
4288
4298
|
//# sourceMappingURL=index.cjs.js.map
|