Skip to content

Commit a49dc1a

Browse files
committed
cambios esteticos input stepper FIN
1 parent 6ddce33 commit a49dc1a

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

src/common/components/mock-components/front-rich-components/input-stepper.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
4242
shapeType,
4343
ref
4444
);
45-
const { stroke, textColor, strokeStyle } = useShapeProps(
45+
const { stroke, textColor, strokeStyle, fill, strokeWidth } = useShapeProps(
4646
otherProps,
4747
INPUT_SHAPE
4848
);
49+
4950
return (
5051
<Group {...commonGroupProps} {...shapeProps}>
5152
{/* Caja del input */}
@@ -54,10 +55,10 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
5455
y={0}
5556
width={inputWidth / 2} // Reducir ancho a la mitad
5657
height={height}
57-
strokeStyle={strokeStyle}
58-
fill="white"
58+
fill={fill}
5959
stroke={stroke}
60-
strokeWidth={2}
60+
strokeWidth={strokeWidth}
61+
dash={strokeStyle}
6162
cornerRadius={0} // Sin bordes redondeados
6263
/>
6364

@@ -68,8 +69,7 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
6869
text={'0'}
6970
fontFamily="Arial"
7071
fontSize={16}
71-
textColor={textColor}
72-
fill="black"
72+
fill={textColor}
7373
align="right"
7474
/>
7575

@@ -80,17 +80,18 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
8080
y={0}
8181
width={30}
8282
height={buttonHeight}
83-
fill="lightgray"
84-
stroke="black"
85-
strokeWidth={2}
83+
fill={fill}
84+
stroke={stroke}
85+
strokeWidth={strokeWidth}
86+
dash={strokeStyle}
8687
/>
8788
<Text
8889
x={10}
8990
y={buttonHeight / 2 - 8}
9091
text="▲"
9192
fontFamily="Arial"
9293
fontSize={14}
93-
fill="black"
94+
fill={textColor}
9495
/>
9596
</Group>
9697

@@ -101,17 +102,18 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
101102
y={0}
102103
width={30}
103104
height={buttonHeight}
104-
fill="lightgray"
105+
fill={fill}
105106
stroke={stroke}
106-
strokeWidth={2}
107+
strokeWidth={strokeWidth}
108+
dash={strokeStyle}
107109
/>
108110
<Text
109111
x={10}
110112
y={buttonHeight / 2 - 8}
111113
text="▼"
112114
fontFamily="Arial"
113115
fontSize={14}
114-
fill="black"
116+
fill={textColor}
115117
/>
116118
</Group>
117119
</Group>

src/pods/canvas/shape-renderer/simple-rich-components/input-stepper.renderer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export const renderInputStepper = (
2525
onTransformEnd={handleTransform}
2626
initialValue={0}
2727
typeOfTransformer={shape.typeOfTransformer}
28+
text={shape.text}
29+
otherProps={shape.otherProps}
2830
/>
2931
);
3032
};

0 commit comments

Comments
 (0)