@snacky/ui 0.13.0 → 0.13.2

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.cjs CHANGED
@@ -442,9 +442,9 @@ var TextField = (0, import_react4.forwardRef)(function TextField2({
442
442
  // src/components/Input/SearchField.tsx
443
443
  var import_react5 = require("react");
444
444
  var import_jsx_runtime6 = require("react/jsx-runtime");
445
- var SearchField = (0, import_react5.forwardRef)(function SearchField2({ value, onChange, searchIcon, onClear, className, placeholder = "Search products...", ...rest }, ref) {
445
+ var SearchField = (0, import_react5.forwardRef)(function SearchField2({ value, onChange, searchIcon, clearIcon, onClear, className, placeholder = "Search products...", ...rest }, ref) {
446
446
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: cx("snacky-search", className), children: [
447
- searchIcon && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "snacky-search__icon", children: searchIcon }),
447
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "snacky-search__icon", children: searchIcon ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(search, { width: 16, height: 16 }) }),
448
448
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
449
449
  "input",
450
450
  {
@@ -456,7 +456,7 @@ var SearchField = (0, import_react5.forwardRef)(function SearchField2({ value, o
456
456
  ...rest
457
457
  }
458
458
  ),
459
- value && onClear && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { type: "button", className: "snacky-search__clear", onClick: onClear, "aria-label": "Clear search", children: "\u2715" })
459
+ value && onClear && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { type: "button", className: "snacky-search__clear", onClick: onClear, "aria-label": "Clear search", children: clearIcon ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(closeInput, { width: 16, height: 16 }) })
460
460
  ] });
461
461
  });
462
462