allaw-ui 4.3.0 → 4.3.1

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.
@@ -97,7 +97,11 @@ var PhoneInput = function (_a) {
97
97
  };
98
98
  return (React.createElement("div", { className: styles.wrapper },
99
99
  React.createElement("div", { className: styles.inputContainer },
100
- React.createElement("input", __assign({ ref: inputRef, className: styles.input + (error && isTouched ? " " + styles.errorBorder : ""), type: "tel", inputMode: "numeric", pattern: "[0-9 ]*", placeholder: placeholder, value: value, onChange: handleChange, onBlur: handleBlur, "aria-required": isRequired, "aria-invalid": !!error, disabled: disabled }, (disableAutofill && {
100
+ React.createElement("span", { className: styles.zeroHint }, "(0)"),
101
+ React.createElement("input", __assign({ ref: inputRef, className: styles.input +
102
+ " " +
103
+ styles.inputWithZeroHint +
104
+ (error && isTouched ? " " + styles.errorBorder : ""), type: "tel", inputMode: "numeric", pattern: "[0-9 ]*", placeholder: placeholder, value: value, onChange: handleChange, onBlur: handleBlur, "aria-required": isRequired, "aria-invalid": !!error, disabled: disabled }, (disableAutofill && {
101
105
  autoComplete: "off",
102
106
  "data-form-type": "other",
103
107
  "data-lpignore": "true",
@@ -11,6 +11,7 @@
11
11
  }
12
12
  .input {
13
13
  width: 100%;
14
+ min-width: 0;
14
15
  height: 44px;
15
16
  padding: 10px;
16
17
  border: 2px solid var(--grey-venom, #e6edf5);
@@ -62,3 +63,18 @@
62
63
  margin-top: 4px;
63
64
  margin-left: 2px;
64
65
  }
66
+ .zeroHint {
67
+ position: absolute;
68
+ left: 14px;
69
+ top: 50%;
70
+ transform: translateY(-50%);
71
+ color: #728ea7;
72
+ font-size: 16px;
73
+ font-family: "Open Sans";
74
+ opacity: 0.8;
75
+ pointer-events: none;
76
+ z-index: 2;
77
+ }
78
+ .inputWithZeroHint {
79
+ padding-left: 38px;
80
+ }
@@ -15,14 +15,17 @@
15
15
  flex-direction: row;
16
16
  align-items: center;
17
17
  gap: 8px;
18
+ width: 100%;
18
19
  }
19
20
 
20
21
  .inputWrapper {
21
- flex: 1 1 auto;
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  min-height: 64px;
25
+ width: 100%;
26
+ flex: 1 1 0;
25
27
  }
28
+
26
29
  .errorMessage {
27
30
  color: var(--actions-error, #e15151);
28
31
  font-size: 13px;
@@ -40,7 +40,7 @@
40
40
  }
41
41
  .chevron {
42
42
  /* margin-left: 8px; */
43
- font-size: 18px;
43
+ font-size: 14px;
44
44
  color: var(--mid-grey, #728ea7);
45
45
  display: flex;
46
46
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",