@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.
package/dist/Security.js CHANGED
@@ -1,15 +1,16 @@
1
1
  import * as React from 'react';
2
- import React__default, { forwardRef, useRef } from 'react';
2
+ import React__default, { forwardRef } from 'react';
3
3
  import { isNotEmpty, noop } from '@bigbinary/neeto-cist';
4
- import { Input as Input$1, Radio, Form, ActionBlock } from '@bigbinary/neetoui/formik';
4
+ import { Input, Radio, Form, ActionBlock } from '@bigbinary/neetoui/formik';
5
5
  import classnames from 'classnames';
6
- import { MenuHorizontal, Search, Delete } from '@bigbinary/neeto-icons';
7
- import { Typography, Dropdown as Dropdown$1, Input, Button, Label } from '@bigbinary/neetoui';
8
- import { useTranslation } from 'react-i18next';
6
+ import Search from '@bigbinary/neeto-molecules/Search';
7
+ import { Typography, Dropdown as Dropdown$1, Button, Label } from '@bigbinary/neetoui';
9
8
  import { Link } from 'react-router-dom';
9
+ import { MenuHorizontal, Delete } from '@bigbinary/neeto-icons';
10
10
  import { useFormikContext, ErrorMessage } from 'formik';
11
11
  import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
12
12
  import { remove, isEmpty, identity } from 'ramda';
13
+ import { useTranslation } from 'react-i18next';
13
14
  import { t as t$1 } from 'i18next';
14
15
  import * as yup from 'yup';
15
16
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
@@ -1296,9 +1297,6 @@ var Header = function Header(_ref) {
1296
1297
  size = _ref$size === void 0 ? "large" : _ref$size,
1297
1298
  _ref$dataTestid = _ref["data-testid"],
1298
1299
  dataTestId = _ref$dataTestid === void 0 ? "neeto-molecules-header" : _ref$dataTestid;
1299
- var searchRef = useRef(null);
1300
- var _useTranslation = useTranslation(),
1301
- t = _useTranslation.t;
1302
1300
  return /*#__PURE__*/React__default.createElement("div", {
1303
1301
  "data-testid": dataTestId,
1304
1302
  className: classnames(["neeto-molecules-header", {
@@ -1323,11 +1321,7 @@ var Header = function Header(_ref) {
1323
1321
  weight: "semibold"
1324
1322
  }, title), renderDropdown(Dropdown)))), /*#__PURE__*/React__default.createElement("div", {
1325
1323
  className: "neeto-ui-gap-3 neeto-molecules-header__right"
1326
- }, searchProps && /*#__PURE__*/React__default.createElement(Input, _extends$1({
1327
- placeholder: t("neetoMolecules.common.actions.search"),
1328
- prefix: /*#__PURE__*/React__default.createElement(Search, null),
1329
- ref: searchRef,
1330
- type: "search",
1324
+ }, searchProps && /*#__PURE__*/React__default.createElement(Search, _extends$1({
1331
1325
  className: classnames(["neeto-molecules-header__search-input", searchProps.className])
1332
1326
  }, searchProps)), actionBlock));
1333
1327
  };
@@ -1559,7 +1553,7 @@ var Add = function Add() {
1559
1553
  return /*#__PURE__*/React__default.createElement("div", {
1560
1554
  className: classnames("flex w-full items-start justify-between gap-x-2"),
1561
1555
  key: index
1562
- }, /*#__PURE__*/React__default.createElement(Input$1, {
1556
+ }, /*#__PURE__*/React__default.createElement(Input, {
1563
1557
  autoFocus: true,
1564
1558
  "data-cy": "keyword-input-field-".concat(index),
1565
1559
  name: "allowedKeywords[".concat(index, "]"),
@@ -1699,7 +1693,7 @@ var Password = function Password() {
1699
1693
  onPasswordChange = _getFieldProps.onChange;
1700
1694
  return /*#__PURE__*/React__default.createElement("div", {
1701
1695
  className: "space-y-4 pb-2"
1702
- }, /*#__PURE__*/React__default.createElement(Input$1, {
1696
+ }, /*#__PURE__*/React__default.createElement(Input, {
1703
1697
  autoFocus: true,
1704
1698
  unlimitedChars: true,
1705
1699
  className: "w-7/12",