@@ -5,6 +5,8 @@ import { useGroupShapeProps } from '../mock-components.utils';
55import { fitSizeToShapeSizeRestrictions } from '@/common/utils/shapes/shape-restrictions' ;
66import { ShapeType } from '@/core/model' ;
77import { ShapeProps } from '../shape.model' ;
8+ import { useShapeProps } from '../../shapes/use-shape-props.hook' ;
9+ import { INPUT_SHAPE } from '../front-components/shape.const' ;
810
911// Size restrictions (igual patrón que file-tree)
1012export const inputStepperShapeRestrictions : ShapeSizeRestrictions = {
@@ -40,7 +42,10 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
4042 shapeType ,
4143 ref
4244 ) ;
43-
45+ const { stroke, textColor, strokeStyle } = useShapeProps (
46+ otherProps ,
47+ INPUT_SHAPE
48+ ) ;
4449 return (
4550 < Group { ...commonGroupProps } { ...shapeProps } >
4651 { /* Caja del input */ }
@@ -49,8 +54,9 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
4954 y = { 0 }
5055 width = { inputWidth / 2 } // Reducir ancho a la mitad
5156 height = { height }
57+ strokeStyle = { strokeStyle }
5258 fill = "white"
53- stroke = "black"
59+ stroke = { stroke }
5460 strokeWidth = { 2 }
5561 cornerRadius = { 0 } // Sin bordes redondeados
5662 />
@@ -62,6 +68,7 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
6268 text = { '0' }
6369 fontFamily = "Arial"
6470 fontSize = { 16 }
71+ textColor = { textColor }
6572 fill = "black"
6673 align = "right"
6774 />
@@ -95,7 +102,7 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
95102 width = { 30 }
96103 height = { buttonHeight }
97104 fill = "lightgray"
98- stroke = "black"
105+ stroke = { stroke }
99106 strokeWidth = { 2 }
100107 />
101108 < Text
0 commit comments