next-helios-fe 1.4.8 → 1.4.10
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/package.json
CHANGED
@@ -128,7 +128,11 @@ export const Autocomplete: React.FC<AutocompleteProps> = ({
|
|
128
128
|
className={`w-full px-4 border-default border rounded-md bg-secondary-bg placeholder:duration-300 placeholder:translate-x-0 focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400 ${height}`}
|
129
129
|
placeholder={placeholder}
|
130
130
|
disabled={rest.disabled}
|
131
|
-
value={
|
131
|
+
value={
|
132
|
+
menus.find((item) => item.value === tempValue)
|
133
|
+
? menus.find((item) => item.value === tempValue)?.label
|
134
|
+
: tempValue
|
135
|
+
}
|
132
136
|
onChange={(e) => {
|
133
137
|
setTempValue(e.target.value);
|
134
138
|
}}
|
@@ -168,14 +172,10 @@ export const Autocomplete: React.FC<AutocompleteProps> = ({
|
|
168
172
|
<button
|
169
173
|
key={index}
|
170
174
|
type="button"
|
171
|
-
className=
|
172
|
-
|
173
|
-
?.label || tempValue) === item.label
|
174
|
-
? "bg-primary-transparent cursor-default"
|
175
|
-
: "hover:bg-secondary-light "
|
176
|
-
}`}
|
175
|
+
className="min-w-40 w-full my-0.5 px-4 py-2 rounded-md text-sm text-left text-default hover:bg-secondary-light disabled:bg-primary-transparent"
|
176
|
+
disabled={tempValue === item.value}
|
177
177
|
onMouseDown={() => {
|
178
|
-
setTempValue(item.
|
178
|
+
setTempValue(item.value);
|
179
179
|
setOpenDropdown(false);
|
180
180
|
}}
|
181
181
|
>
|
@@ -1638,13 +1638,12 @@ export const PhoneNumber: React.FC<PhoneNumberProps> = ({
|
|
1638
1638
|
<button
|
1639
1639
|
key={index}
|
1640
1640
|
type="button"
|
1641
|
-
className=
|
1641
|
+
className="w-full my-0.5 px-4 py-2 rounded-md text-sm text-left text-default hover:bg-secondary-light disabled:bg-primary-transparent"
|
1642
|
+
disabled={
|
1642
1643
|
(countryCodes.find(
|
1643
1644
|
(item) => item.code === rest.value
|
1644
1645
|
)?.code || countryCodes) === item?.code
|
1645
|
-
|
1646
|
-
: "hover:bg-secondary-light "
|
1647
|
-
}`}
|
1646
|
+
}
|
1648
1647
|
onMouseDown={() => {
|
1649
1648
|
setTempValue((prev) => [
|
1650
1649
|
`${item.emoji} ${item.code}`,
|
@@ -128,7 +128,7 @@ export const Select: React.FC<SelectProps> = ({
|
|
128
128
|
className={`w-full px-4 border-default border rounded-md bg-secondary-bg cursor-pointer caret-transparent placeholder:duration-300 placeholder:translate-x-0 focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400 disabled:cursor-default ${height}`}
|
129
129
|
placeholder={placeholder}
|
130
130
|
disabled={rest.disabled}
|
131
|
-
value={tempValue}
|
131
|
+
value={menus.find((item) => item.value === tempValue)?.label}
|
132
132
|
onClick={() => setOpenDropdown(true)}
|
133
133
|
/>
|
134
134
|
<div className="absolute right-4 text-xl text-slate-400 pointer-events-none">
|
@@ -156,14 +156,10 @@ export const Select: React.FC<SelectProps> = ({
|
|
156
156
|
<button
|
157
157
|
key={index}
|
158
158
|
type="button"
|
159
|
-
className=
|
160
|
-
|
161
|
-
tempValue) === item.label
|
162
|
-
? "bg-primary-transparent cursor-default"
|
163
|
-
: "hover:bg-secondary-light "
|
164
|
-
}`}
|
159
|
+
className="min-w-40 w-full my-0.5 px-4 py-2 rounded-md text-sm text-left text-default hover:bg-secondary-light disabled:bg-primary-transparent"
|
160
|
+
disabled={tempValue === item.value}
|
165
161
|
onMouseDown={() => {
|
166
|
-
setTempValue(item.
|
162
|
+
setTempValue(item.value);
|
167
163
|
setOpenDropdown(false);
|
168
164
|
}}
|
169
165
|
>
|