@idds/react 1.5.41 → 1.5.43

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.es.js CHANGED
@@ -5025,8 +5025,8 @@ function PhoneInput({
5025
5025
  "ina-phone-input__country-chevron",
5026
5026
  isCountryDropdownOpen && "ina-phone-input__country-chevron--open"
5027
5027
  ),
5028
- width: "12",
5029
- height: "12",
5028
+ width: "16",
5029
+ height: "16",
5030
5030
  viewBox: "0 0 24 24",
5031
5031
  fill: "none",
5032
5032
  xmlns: "http://www.w3.org/2000/svg",
@@ -6959,16 +6959,28 @@ const TimePicker = forwardRef(
6959
6959
  ...props
6960
6960
  }
6961
6961
  ),
6962
- allowClear && internalValue && !disabled ? /* @__PURE__ */ jsx(
6963
- "button",
6962
+ allowClear && internalValue && !disabled && /* @__PURE__ */ jsx(
6963
+ "div",
6964
6964
  {
6965
- type: "button",
6966
6965
  className: "ina-time-picker__clear-button",
6967
- onClick: handleClear,
6966
+ onClick: (e) => {
6967
+ e.stopPropagation();
6968
+ handleClear();
6969
+ },
6968
6970
  "aria-label": "Clear time",
6969
6971
  children: /* @__PURE__ */ jsx(IconX, { size: 16 })
6970
6972
  }
6971
- ) : suffixIcon && /* @__PURE__ */ jsx("div", { className: "ina-time-picker__suffix-icon", children: suffixIcon })
6973
+ ),
6974
+ suffixIcon && /* @__PURE__ */ jsx(
6975
+ "div",
6976
+ {
6977
+ className: "ina-time-picker__suffix-icon",
6978
+ style: {
6979
+ visibility: allowClear && internalValue && !disabled ? "hidden" : "visible"
6980
+ },
6981
+ children: suffixIcon
6982
+ }
6983
+ )
6972
6984
  ]
6973
6985
  }
6974
6986
  ),