@activecollab/components 1.0.359 → 1.0.361

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.js CHANGED
@@ -1368,6 +1368,44 @@
1368
1368
  AddCrossIcon.displayName = "AddCrossIcon";
1369
1369
  var AddCrossIcon$1 = AddCrossIcon;
1370
1370
 
1371
+ /**
1372
+ * @component ArchiveIcon
1373
+ * @description
1374
+ *
1375
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
1376
+ * The Icon component is
1377
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
1378
+ *
1379
+ *
1380
+ * @example
1381
+ * return (
1382
+ * <ArchiveIcon className="mr-2" />
1383
+ * )
1384
+ *
1385
+ * @see
1386
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
1387
+ * @see
1388
+ * https://design.activecollab.com/docs/foundations/icons
1389
+ */
1390
+ var ArchiveIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
1391
+ return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
1392
+ width: 24,
1393
+ height: 24,
1394
+ viewBox: "0 0 24 24",
1395
+ xmlns: "http://www.w3.org/2000/svg",
1396
+ "data-testid": "ArchiveIcon",
1397
+ fill: "var(--color-theme-600)",
1398
+ focusable: false,
1399
+ ref: svgRef
1400
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
1401
+ fillRule: "evenodd",
1402
+ clipRule: "evenodd",
1403
+ d: "M3 5a2 2 0 012-2h14a2 2 0 012 2v3a2 2 0 01-2 2v9a2 2 0 01-2 2H7a2 2 0 01-2-2v-9a2 2 0 01-2-2V5zm4 5h10v9H7v-9zm12-2H5V5h14v3zm-4 4H9v2h6v-2z"
1404
+ }));
1405
+ });
1406
+ ArchiveIcon.displayName = "ArchiveIcon";
1407
+ var ArchiveIcon$1 = ArchiveIcon;
1408
+
1371
1409
  /**
1372
1410
  * @component ArrowBackMobileIcon
1373
1411
  * @description
@@ -15778,12 +15816,13 @@
15778
15816
  });
15779
15817
  EditableContent.displayName = "EditableContent";
15780
15818
 
15781
- var _excluded$c = ["onSave", "onCancel", "value", "inputProps"];
15819
+ var _excluded$c = ["onSave", "onCancel", "value", "inputProps", "allowEmptyString"];
15782
15820
  var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15783
15821
  var onSave = _ref.onSave,
15784
15822
  onCancel = _ref.onCancel,
15785
15823
  value = _ref.value,
15786
15824
  inputProps = _ref.inputProps,
15825
+ allowEmptyString = _ref.allowEmptyString,
15787
15826
  props = _objectWithoutProperties(_ref, _excluded$c);
15788
15827
  var _useState = React.useState(value),
15789
15828
  _useState2 = _slicedToArray(_useState, 2),
@@ -15811,10 +15850,10 @@
15811
15850
  setCurrentValue(e.target.value);
15812
15851
  typeof onSave === "function" && onSave(e);
15813
15852
  } else {
15814
- setCurrentValue(prevValue);
15853
+ !allowEmptyString && setCurrentValue(prevValue);
15815
15854
  }
15816
15855
  }
15817
- }, [onSave, prevValue]);
15856
+ }, [allowEmptyString, onSave, prevValue]);
15818
15857
  var handleKeyDown = React.useCallback(function (e) {
15819
15858
  if (e.key === "Enter") {
15820
15859
  e.target.blur();
@@ -17330,6 +17369,7 @@
17330
17369
  exports.AddCrossTinyIcon = AddCrossTinyIcon$1;
17331
17370
  exports.AddToListButton = AddToListButton;
17332
17371
  exports.ApplauseIcon = ApplauseIcon$1;
17372
+ exports.ArchiveIcon = ArchiveIcon$1;
17333
17373
  exports.ArrowBackMobileIcon = ArrowBackMobileIcon$1;
17334
17374
  exports.ArrowCollapseMultipleIcon = ArrowCollapseMultipleIcon$1;
17335
17375
  exports.ArrowDownIcon = ArrowDownIcon$1;