next-helios-fe 1.4.7 → 1.4.9
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
@@ -168,14 +168,11 @@ export const Autocomplete: React.FC<AutocompleteProps> = ({
|
|
168
168
|
<button
|
169
169
|
key={index}
|
170
170
|
type="button"
|
171
|
-
className=
|
172
|
-
|
173
|
-
|
174
|
-
? "bg-primary-transparent cursor-default"
|
175
|
-
: "hover:bg-secondary-light "
|
176
|
-
}`}
|
171
|
+
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"
|
172
|
+
disabled={(menus.find((item) => item.value === rest.value)
|
173
|
+
?.value || tempValue) === item.value}
|
177
174
|
onMouseDown={() => {
|
178
|
-
setTempValue(item.
|
175
|
+
setTempValue(item.value);
|
179
176
|
setOpenDropdown(false);
|
180
177
|
}}
|
181
178
|
>
|
@@ -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}`,
|
@@ -156,14 +156,15 @@ export const Select: React.FC<SelectProps> = ({
|
|
156
156
|
<button
|
157
157
|
key={index}
|
158
158
|
type="button"
|
159
|
-
className=
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
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={
|
161
|
+
(menus.find((item) => item.value === rest.value)?.value ||
|
162
|
+
tempValue) === item.value
|
163
|
+
? true
|
164
|
+
: false
|
165
|
+
}
|
165
166
|
onMouseDown={() => {
|
166
|
-
setTempValue(item.
|
167
|
+
setTempValue(item.value);
|
167
168
|
setOpenDropdown(false);
|
168
169
|
}}
|
169
170
|
>
|