iguazio.dashboard-react-controls 1.2.0 → 1.2.1

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.
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _lodash = _interopRequireWildcard(require("lodash"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
12
  var _FormChipCellView = _interopRequireDefault(require("./FormChipCellView"));
12
13
  var _common = require("../../utils/common.util");
@@ -48,6 +49,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*
48
49
  */
49
50
  var FormChipCell = function FormChipCell(_ref) {
50
51
  var chipOptions = _ref.chipOptions,
52
+ className = _ref.className,
51
53
  delimiter = _ref.delimiter,
52
54
  formState = _ref.formState,
53
55
  initialValues = _ref.initialValues,
@@ -59,6 +61,7 @@ var FormChipCell = function FormChipCell(_ref) {
59
61
  validationRules = _ref.validationRules,
60
62
  validator = _ref.validator,
61
63
  visibleChipsMaxLength = _ref.visibleChipsMaxLength;
64
+ var chipsClassName = (0, _classnames.default)('chips', className);
62
65
  var _useState = (0, _react.useState)({}),
63
66
  _useState2 = _slicedToArray(_useState, 2),
64
67
  chipsSizes = _useState2[0],
@@ -323,7 +326,7 @@ var FormChipCell = function FormChipCell(_ref) {
323
326
  return [validateField(key, 'key'), validateField(value, 'value')];
324
327
  };
325
328
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
326
- className: "chips",
329
+ className: chipsClassName,
327
330
  children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
328
331
  className: "chips__label",
329
332
  children: label
@@ -364,6 +367,7 @@ FormChipCell.defaultProps = {
364
367
  density: 'dense',
365
368
  font: 'purple'
366
369
  },
370
+ className: '',
367
371
  delimiter: null,
368
372
  isEditable: false,
369
373
  label: null,
@@ -375,6 +379,7 @@ FormChipCell.defaultProps = {
375
379
  };
376
380
  FormChipCell.propTypes = {
377
381
  chipOptions: _types.CHIP_OPTIONS,
382
+ className: _propTypes.default.string,
378
383
  delimiter: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
379
384
  formState: _propTypes.default.shape({}).isRequired,
380
385
  initialValues: _propTypes.default.object.isRequired,
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4 4L20 4L20 20L11 20L11 18L18 18L18 6L6 6L6 13L4 13L4 4Z" fill="#7F7989"/>
3
+ <path d="M7.38605 18L9 18L9 20L4 20L4 15L6 15L6 16.5576L10.3358 12.2218L11.75 13.636L7.38605 18Z" fill="#7F7989"/>
4
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",