@liguelead/design-system 0.0.38 → 0.0.39
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.
|
@@ -139,7 +139,7 @@ const RadioCardGroup = <TFieldValues extends object = object>({
|
|
|
139
139
|
)}
|
|
140
140
|
<BadgesList>
|
|
141
141
|
{option.badges.map((badge, i) => (
|
|
142
|
-
<Badge key={i} color=
|
|
142
|
+
<Badge key={i} color={isChecked ? 'primary' : 'primaryLight'}>
|
|
143
143
|
{badge}
|
|
144
144
|
</Badge>
|
|
145
145
|
))}
|
|
@@ -172,6 +172,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
172
172
|
if (maxLength !== undefined && newValue.length > maxLength) return
|
|
173
173
|
|
|
174
174
|
setTextAreaValue(newValue)
|
|
175
|
+
onTextAreaChange?.({ target: { value: newValue } } as React.ChangeEvent<HTMLTextAreaElement>)
|
|
175
176
|
|
|
176
177
|
requestAnimationFrame(() => {
|
|
177
178
|
el.focus()
|
|
@@ -224,7 +225,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
224
225
|
<TextAreaFooter>
|
|
225
226
|
{maxLength !== undefined && (
|
|
226
227
|
<CharCount $isOver={isOver}>
|
|
227
|
-
{charCount}/{maxLength}
|
|
228
|
+
{charCount.toLocaleString('pt-BR')}/{maxLength.toLocaleString('pt-BR')}
|
|
228
229
|
</CharCount>
|
|
229
230
|
)}
|
|
230
231
|
{showVariableButton && (
|