react-better-html 1.1.77 → 1.1.78
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/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4889,7 +4889,7 @@ var DropdownComponent = forwardRef7(function Dropdown({
|
|
|
4889
4889
|
Div_default.row,
|
|
4890
4890
|
{
|
|
4891
4891
|
position: "absolute",
|
|
4892
|
-
top: 46 / 2 + (label ? 16 + theme2.styles.gap
|
|
4892
|
+
top: 46 / 2 + (label ? 16 + theme2.styles.gap : 0),
|
|
4893
4893
|
right: theme2.styles.space + 1,
|
|
4894
4894
|
alignItems: "center",
|
|
4895
4895
|
gap: theme2.styles.gap,
|
|
@@ -5148,7 +5148,7 @@ var InputElement = styled8.input.withConfig({
|
|
|
5148
5148
|
&[type="date"],
|
|
5149
5149
|
&[type="datetime-local"],
|
|
5150
5150
|
&[type="time"] {
|
|
5151
|
-
min-height:
|
|
5151
|
+
// min-height: 46px;
|
|
5152
5152
|
-webkit-appearance: none;
|
|
5153
5153
|
|
|
5154
5154
|
&::-webkit-calendar-picker-indicator {
|
|
@@ -5277,6 +5277,12 @@ var InputFieldComponent = forwardRef8(function InputField({
|
|
|
5277
5277
|
},
|
|
5278
5278
|
[onChange, onChangeValue, withDebounce]
|
|
5279
5279
|
);
|
|
5280
|
+
const leftIconZIndex = useMemo5(
|
|
5281
|
+
() => ["react-better-html-dropdown-open-late", "react-better-html-inputField-dateTime-opened-late"].some(
|
|
5282
|
+
(classNameItem) => props.className?.includes(classNameItem)
|
|
5283
|
+
) ? 1002 : 1,
|
|
5284
|
+
[props.className]
|
|
5285
|
+
);
|
|
5280
5286
|
useEffect7(() => {
|
|
5281
5287
|
if (!withDebounce) return;
|
|
5282
5288
|
onChangeValue?.(debouncedValue);
|
|
@@ -5289,11 +5295,11 @@ var InputFieldComponent = forwardRef8(function InputField({
|
|
|
5289
5295
|
{
|
|
5290
5296
|
name: leftIcon,
|
|
5291
5297
|
position: "absolute",
|
|
5292
|
-
top: 46 / 2,
|
|
5298
|
+
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 46) / 2,
|
|
5293
5299
|
left: theme2.styles.space + 1,
|
|
5294
5300
|
transform: "translateY(-50%)",
|
|
5295
5301
|
pointerEvents: "none",
|
|
5296
|
-
zIndex:
|
|
5302
|
+
zIndex: leftIconZIndex
|
|
5297
5303
|
}
|
|
5298
5304
|
),
|
|
5299
5305
|
/* @__PURE__ */ jsx15(
|