@strapi/design-system 2.0.0-rc.19 → 2.0.0-rc.21

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.mjs CHANGED
@@ -5974,7 +5974,7 @@ const SearchbarInput = styled(Input$2)`
5974
5974
  ${inputFocusStyle()}
5975
5975
  `;
5976
5976
  const Searchbar = React.forwardRef(
5977
- ({ name, children, value = "", onClear, clearLabel, ...props }, ref) => {
5977
+ ({ name, children, value = "", onClear, clearLabel = "Clear", ...props }, ref) => {
5978
5978
  const inputRef = React.useRef(null);
5979
5979
  const isCompleting = value.length > 0;
5980
5980
  const handleClear = (e) => {
@@ -5992,14 +5992,17 @@ const Searchbar = React.forwardRef(
5992
5992
  value,
5993
5993
  startAction: /* @__PURE__ */ jsx(SearchIcon, { "aria-hidden": true }),
5994
5994
  endAction: isCompleting ? /* @__PURE__ */ jsx(
5995
- Action$1,
5995
+ IconButton,
5996
5996
  {
5997
- label: clearLabel,
5998
5997
  onClick: handleClear,
5999
5998
  onMouseDown: (e) => {
6000
5999
  e.preventDefault();
6001
6000
  },
6002
- children: /* @__PURE__ */ jsx(IconButton, { label: "Clear", size: "XS", variant: "ghost", children: /* @__PURE__ */ jsx(CloseIcon, {}) })
6001
+ label: clearLabel,
6002
+ size: "XS",
6003
+ variant: "ghost",
6004
+ type: "button",
6005
+ children: /* @__PURE__ */ jsx(CloseIcon, {})
6003
6006
  }
6004
6007
  ) : void 0,
6005
6008
  ...props