11import { forwardRef } from 'react' ;
22import { Group , Rect , Text } from 'react-konva' ;
33import { ShapeSizeRestrictions } from '@/common/utils/shapes/shape-restrictions' ;
4- import { useGroupShapeProps } from '../../ mock-components.utils' ;
4+ import { useGroupShapeProps } from '../mock-components.utils' ;
55import { fitSizeToShapeSizeRestrictions } from '@/common/utils/shapes/shape-restrictions' ;
66import { ShapeType } from '@/core/model' ;
7- import { ShapeProps } from '../../shape.model' ;
8- import { useShapeProps } from '../../../shapes/use-shape-props.hook' ;
9- import { INPUT_SHAPE } from '../../front-components/shape.const' ;
10- import { getTextFieldWidth } from './input-stepper.business' ;
7+ import { ShapeProps } from '../shape.model' ;
8+ import { useShapeProps } from '../../shapes/use-shape-props.hook' ;
9+ import { INPUT_SHAPE } from '../front-components/shape.const' ;
1110
1211// Size restrictions (igual patrón que file-tree)
1312export const inputStepperShapeRestrictions : ShapeSizeRestrictions = {
@@ -50,8 +49,6 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
5049
5150 const { width : restrictedWidth } = restrictedSize ;
5251
53- const textFieldWidth = getTextFieldWidth ( restrictedWidth ) ;
54-
5552 return (
5653 < Group { ...commonGroupProps } { ...shapeProps } >
5754 { /* Caja del input */ }
@@ -71,12 +68,12 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
7168 < Text
7269 x = { 0 }
7370 y = { height / 2 - 8 } // Centrar verticalmente
74- width = { restrictedWidth - textFieldWidth - 8 }
71+ width = { restrictedWidth }
7572 text = { text }
7673 fontFamily = "Arial"
7774 fontSize = { 16 }
7875 fill = { textColor }
79- align = "right "
76+ align = "left "
8077 wrap = "none"
8178 />
8279
0 commit comments