@axa-fr/design-system-look-and-feel-react 1.0.5-ci.25 → 1.0.5-ci.28
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/Form/Text/Text.js +1 -1
- package/package.json +2 -2
package/dist/Form/Text/Text.js
CHANGED
@@ -8,7 +8,7 @@ import { Svg } from "../../Svg";
|
|
8
8
|
import { getComponentClassName } from "../../utilities";
|
9
9
|
import { InputError } from "../InputError";
|
10
10
|
const Text = forwardRef(({ unit, className, classModifier = "", label, description, helper, error, buttonLabel, onButtonClick, required, ...otherProps }, inputRef) => {
|
11
|
-
const componentClassName = getComponentClassName("af-form__input-text", className, classModifier);
|
11
|
+
const componentClassName = getComponentClassName("af-form__input-text", className, classModifier + (error ? " error" : ""));
|
12
12
|
let inputId = useId();
|
13
13
|
inputId = otherProps.id || inputId;
|
14
14
|
const idDescription = useId();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@axa-fr/design-system-look-and-feel-react",
|
3
|
-
"version": "1.0.5-ci.
|
3
|
+
"version": "1.0.5-ci.28",
|
4
4
|
"description": "",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
@@ -45,7 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
47
47
|
"peerDependencies": {
|
48
|
-
"@axa-fr/design-system-look-and-feel-css": "1.0.5-ci.
|
48
|
+
"@axa-fr/design-system-look-and-feel-css": "1.0.5-ci.28",
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
50
50
|
"react": ">= 18"
|
51
51
|
},
|