@bigbinary/neeto-molecules 1.1.26 → 1.1.28

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.
@@ -2,15 +2,16 @@ import * as React from 'react';
2
2
  import React__default, { forwardRef, useRef, useState } from 'react';
3
3
  import { isNotPresent, isNotEmpty, noop, snakeToCamelCase } from '@bigbinary/neeto-cist';
4
4
  import { withT, useMutationWithInvalidation, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
5
- import { Typography, Button, Alert, Dropdown as Dropdown$1, Input, Tooltip, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
5
+ import { Typography, Button, Alert, Dropdown as Dropdown$1, Tooltip, Tag, Callout, Input, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
6
6
  import { useTranslation, Trans } from 'react-i18next';
7
7
  import classnames from 'classnames';
8
8
  import { not, mergeRight } from 'ramda';
9
- import { Column, Download, Filter, MenuHorizontal, Search, MenuVertical, Info, Check } from '@bigbinary/neeto-icons';
9
+ import { Column, Download, Filter, MenuHorizontal, MenuVertical, Info, Check } from '@bigbinary/neeto-icons';
10
10
  import ManageColumns from '@bigbinary/neeto-molecules/Columns';
11
11
  import { Filters } from '@bigbinary/neeto-filters-frontend';
12
12
  import { PLURAL, SINGULAR } from '@bigbinary/neeto-commons-frontend/constants';
13
13
  import { withEventTargetValue, joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils';
14
+ import Search from '@bigbinary/neeto-molecules/Search';
14
15
  import { Link } from 'react-router-dom';
15
16
  import { Formik, Form } from 'formik';
16
17
  import { Input as Input$1 } from '@bigbinary/neetoui/formik';
@@ -1649,9 +1650,6 @@ var Header$2 = function Header(_ref) {
1649
1650
  size = _ref$size === void 0 ? "large" : _ref$size,
1650
1651
  _ref$dataTestid = _ref["data-testid"],
1651
1652
  dataTestId = _ref$dataTestid === void 0 ? "neeto-molecules-header" : _ref$dataTestid;
1652
- var searchRef = useRef(null);
1653
- var _useTranslation = useTranslation(),
1654
- t = _useTranslation.t;
1655
1653
  return /*#__PURE__*/React__default.createElement("div", {
1656
1654
  "data-testid": dataTestId,
1657
1655
  className: classnames(["neeto-molecules-header", {
@@ -1676,11 +1674,7 @@ var Header$2 = function Header(_ref) {
1676
1674
  weight: "semibold"
1677
1675
  }, title), renderDropdown(Dropdown)))), /*#__PURE__*/React__default.createElement("div", {
1678
1676
  className: "neeto-ui-gap-3 neeto-molecules-header__right"
1679
- }, searchProps && /*#__PURE__*/React__default.createElement(Input, _extends$1({
1680
- placeholder: t("neetoMolecules.common.actions.search"),
1681
- prefix: /*#__PURE__*/React__default.createElement(Search, null),
1682
- ref: searchRef,
1683
- type: "search",
1677
+ }, searchProps && /*#__PURE__*/React__default.createElement(Search, _extends$1({
1684
1678
  className: classnames(["neeto-molecules-header__search-input", searchProps.className])
1685
1679
  }, searchProps)), actionBlock));
1686
1680
  };