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 CHANGED
@@ -4962,7 +4962,7 @@ var DropdownComponent = (0, import_react16.forwardRef)(function Dropdown({
4962
4962
  Div_default.row,
4963
4963
  {
4964
4964
  position: "absolute",
4965
- top: 46 / 2 + (label ? 16 + theme2.styles.gap / 2 : 0),
4965
+ top: 46 / 2 + (label ? 16 + theme2.styles.gap : 0),
4966
4966
  right: theme2.styles.space + 1,
4967
4967
  alignItems: "center",
4968
4968
  gap: theme2.styles.gap,
@@ -5221,7 +5221,7 @@ var InputElement = import_styled_components9.default.input.withConfig({
5221
5221
  &[type="date"],
5222
5222
  &[type="datetime-local"],
5223
5223
  &[type="time"] {
5224
- min-height: 48px;
5224
+ // min-height: 46px;
5225
5225
  -webkit-appearance: none;
5226
5226
 
5227
5227
  &::-webkit-calendar-picker-indicator {
@@ -5350,6 +5350,12 @@ var InputFieldComponent = (0, import_react18.forwardRef)(function InputField({
5350
5350
  },
5351
5351
  [onChange, onChangeValue, withDebounce]
5352
5352
  );
5353
+ const leftIconZIndex = (0, import_react18.useMemo)(
5354
+ () => ["react-better-html-dropdown-open-late", "react-better-html-inputField-dateTime-opened-late"].some(
5355
+ (classNameItem) => props.className?.includes(classNameItem)
5356
+ ) ? 1002 : 1,
5357
+ [props.className]
5358
+ );
5353
5359
  (0, import_react18.useEffect)(() => {
5354
5360
  if (!withDebounce) return;
5355
5361
  onChangeValue?.(debouncedValue);
@@ -5362,11 +5368,11 @@ var InputFieldComponent = (0, import_react18.forwardRef)(function InputField({
5362
5368
  {
5363
5369
  name: leftIcon,
5364
5370
  position: "absolute",
5365
- top: 46 / 2,
5371
+ top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 46) / 2,
5366
5372
  left: theme2.styles.space + 1,
5367
5373
  transform: "translateY(-50%)",
5368
5374
  pointerEvents: "none",
5369
- zIndex: props.className?.includes("react-better-html-dropdown-open-late") ? 1002 : 1
5375
+ zIndex: leftIconZIndex
5370
5376
  }
5371
5377
  ),
5372
5378
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(