@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.
@@ -1 +1 @@
1
- {"version":3,"file":"Searchbar.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA+CjC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,UAAU;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,yFA6CrB,CAAC"}
1
+ {"version":3,"file":"Searchbar.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA+CjC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,UAAU;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,yFA8CrB,CAAC"}
package/dist/index.js CHANGED
@@ -6006,7 +6006,7 @@ const SearchbarInput = styledComponents.styled(Input$2)`
6006
6006
  ${inputFocusStyle()}
6007
6007
  `;
6008
6008
  const Searchbar = React__namespace.forwardRef(
6009
- ({ name, children, value = "", onClear, clearLabel, ...props }, ref) => {
6009
+ ({ name, children, value = "", onClear, clearLabel = "Clear", ...props }, ref) => {
6010
6010
  const inputRef = React__namespace.useRef(null);
6011
6011
  const isCompleting = value.length > 0;
6012
6012
  const handleClear = (e) => {
@@ -6024,14 +6024,17 @@ const Searchbar = React__namespace.forwardRef(
6024
6024
  value,
6025
6025
  startAction: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { "aria-hidden": true }),
6026
6026
  endAction: isCompleting ? /* @__PURE__ */ jsxRuntime.jsx(
6027
- Action$1,
6027
+ IconButton,
6028
6028
  {
6029
- label: clearLabel,
6030
6029
  onClick: handleClear,
6031
6030
  onMouseDown: (e) => {
6032
6031
  e.preventDefault();
6033
6032
  },
6034
- children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { label: "Clear", size: "XS", variant: "ghost", children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, {}) })
6033
+ label: clearLabel,
6034
+ size: "XS",
6035
+ variant: "ghost",
6036
+ type: "button",
6037
+ children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, {})
6035
6038
  }
6036
6039
  ) : void 0,
6037
6040
  ...props