@zextras/carbonio-design-system 0.3.7 → 0.3.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.3.8](https://github.com/Zextras/carbonio-design-system/compare/v0.3.7...v0.3.8) (2022-07-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * added disableTransition prop to Accordion ([5811d4b](https://github.com/Zextras/carbonio-design-system/commit/5811d4b4af56b07533a8a810e4ae57926b4a480d))
11
+ * added repeat exception icon ([346f6c8](https://github.com/Zextras/carbonio-design-system/commit/346f6c80652f084656bb9fbd6699dd3535eff88f)), closes [#96](https://github.com/Zextras/carbonio-design-system/issues/96)
12
+ * added repeat exception icon ([b2da7ca](https://github.com/Zextras/carbonio-design-system/commit/b2da7ca7dc9e08a3bc547e5f161ee666cdbe5f92))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * clear popper listener register on unmount ([06b5856](https://github.com/Zextras/carbonio-design-system/commit/06b58560109b441abcba027034cb6aa571aea0af))
18
+
5
19
  ### [0.3.7](https://github.com/Zextras/carbonio-design-system/compare/v0.3.6...v0.3.7) (2022-07-21)
6
20
 
7
21
 
@@ -6327,6 +6327,18 @@ function SvgRepeat(props) {
6327
6327
  }))));
6328
6328
  }
6329
6329
 
6330
+ function SvgRepeatException(props) {
6331
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
6332
+ width: 24,
6333
+ height: 24,
6334
+ xmlns: "http://www.w3.org/2000/svg"
6335
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
6336
+ d: "M6.09 19h12l-1.3 1.29a1.004 1.004 0 101.42 1.42l3-3a1.002 1.002 0 000-1.42l-3-3a1.002 1.002 0 00-1.639.325 1 1 0 00.219 1.095l1.3 1.29h-12a1.559 1.559 0 01-1.59-1.53V13a1 1 0 10-2 0v2.47A3.56 3.56 0 006.09 19zM5.79 9.71a1.004 1.004 0 001.42-1.42L5.91 7h12a1.56 1.56 0 011.59 1.53V11a1 1 0 102 0V8.53A3.56 3.56 0 0017.91 5h-12l1.3-1.29a1 1 0 000-1.42 1 1 0 00-1.42 0l-3 3a1 1 0 000 1.42l3 3z"
6337
+ }), /*#__PURE__*/React__namespace.createElement("path", {
6338
+ d: "M12 16a1 1 0 100-2 1 1 0 000 2zM12 8c-.265 0-.52.088-.707.244a.77.77 0 00-.293.59v3.333a.77.77 0 00.293.589c.187.156.442.244.707.244.265 0 .52-.088.707-.244a.77.77 0 00.293-.59V8.834a.77.77 0 00-.293-.589A1.11 1.11 0 0012 8z"
6339
+ }));
6340
+ }
6341
+
6330
6342
  function SvgReplyAll(props) {
6331
6343
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
6332
6344
  width: 24,
@@ -7747,6 +7759,7 @@ var fillData = /*#__PURE__*/Object.freeze({
7747
7759
  Recording: SvgRecording,
7748
7760
  Refresh: SvgRefresh,
7749
7761
  Repeat: SvgRepeat,
7762
+ RepeatException: SvgRepeatException,
7750
7763
  ReplyAll: SvgReplyAll,
7751
7764
  Restore: SvgRestore,
7752
7765
  RewindLeft: SvgRewindLeft,
@@ -35928,8 +35941,8 @@ Collapser.propTypes = {
35928
35941
  };
35929
35942
 
35930
35943
  var _excluded$b = ["item", "children"],
35931
- _excluded2$4 = ["level", "item", "background", "activeId", "openIds"],
35932
- _excluded3$1 = ["items", "level", "background", "activeId", "openIds"];
35944
+ _excluded2$4 = ["level", "item", "background", "activeId", "openIds", "disableTransition"],
35945
+ _excluded3$1 = ["items", "level", "background", "activeId", "openIds", "disableTransition"];
35933
35946
  var AccordionContainerEl = styled__default["default"](Container$1).withConfig({
35934
35947
  displayName: "Accordion__AccordionContainerEl",
35935
35948
  componentId: "sc-s8zgku-0"
@@ -35996,6 +36009,7 @@ var AccordionRoot = /*#__PURE__*/React__default["default"].forwardRef(function A
35996
36009
  background = _ref6.background,
35997
36010
  activeId = _ref6.activeId,
35998
36011
  openIds = _ref6.openIds,
36012
+ disableTransition = _ref6.disableTransition,
35999
36013
  rest = _objectWithoutProperties(_ref6, _excluded2$4);
36000
36014
 
36001
36015
  var _useState = React.useState(!!item.open),
@@ -36066,13 +36080,15 @@ var AccordionRoot = /*#__PURE__*/React__default["default"].forwardRef(function A
36066
36080
  crossSize: "100%",
36067
36081
  orientation: "vertical",
36068
36082
  open: open,
36069
- maxSize: "".concat(item.items.length * 64, "px")
36083
+ maxSize: "".concat(item.items.length * 64, "px"),
36084
+ disableTransition: disableTransition
36070
36085
  }, /*#__PURE__*/React__default["default"].createElement(Accordion, {
36071
36086
  activeId: activeId,
36072
36087
  openIds: openIds,
36073
36088
  items: item.items,
36074
36089
  level: item.level !== undefined ? item.level : level + 1,
36075
- background: background
36090
+ background: background,
36091
+ disableTransition: disableTransition
36076
36092
  }))));
36077
36093
  });
36078
36094
  var Accordion = /*#__PURE__*/React__default["default"].forwardRef(function AccordionFn(_ref7, ref) {
@@ -36081,6 +36097,7 @@ var Accordion = /*#__PURE__*/React__default["default"].forwardRef(function Accor
36081
36097
  background = _ref7.background,
36082
36098
  activeId = _ref7.activeId,
36083
36099
  openIds = _ref7.openIds,
36100
+ disableTransition = _ref7.disableTransition,
36084
36101
  rest = _objectWithoutProperties(_ref7, _excluded3$1);
36085
36102
 
36086
36103
  return /*#__PURE__*/React__default["default"].createElement(Container$1, _extends({
@@ -36099,7 +36116,8 @@ var Accordion = /*#__PURE__*/React__default["default"].forwardRef(function Accor
36099
36116
  item: item,
36100
36117
  background: background,
36101
36118
  activeId: activeId,
36102
- openIds: openIds
36119
+ openIds: openIds,
36120
+ disableTransition: disableTransition
36103
36121
  });
36104
36122
  }));
36105
36123
  });
@@ -36127,7 +36145,8 @@ Accordion.propTypes = {
36127
36145
  onOpen: PropTypes__default["default"].func,
36128
36146
  onClose: PropTypes__default["default"].func,
36129
36147
  background: Container$1.propTypes.background,
36130
- disableHover: PropTypes__default["default"].bool
36148
+ disableHover: PropTypes__default["default"].bool,
36149
+ disableTransition: PropTypes__default["default"].bool
36131
36150
  })),
36132
36151
 
36133
36152
  /** Depth level, internally used for recursion nesting */
@@ -36139,7 +36158,8 @@ Accordion.propTypes = {
36139
36158
  Accordion.defaultProps = {
36140
36159
  items: [],
36141
36160
  level: 0,
36142
- background: 'gray5'
36161
+ background: 'gray5',
36162
+ disableTransition: false
36143
36163
  };
36144
36164
 
36145
36165
  /**
@@ -36876,19 +36896,22 @@ var Popper = /*#__PURE__*/React__default["default"].forwardRef(function PopperFn
36876
36896
  };
36877
36897
  }, [open, placement, anchorEl, virtualElement, popperRef]);
36878
36898
  React.useEffect(function () {
36899
+ var listenerTimer;
36900
+
36879
36901
  if (open) {
36880
- setTimeout(function () {
36881
- return windowObj.document.addEventListener('click', closePopper);
36902
+ listenerTimer = setTimeout(function () {
36903
+ windowObj.document.addEventListener('click', closePopper);
36882
36904
  }, 1);
36883
36905
  return function () {
36884
- return windowObj.document.removeEventListener('click', closePopper);
36906
+ windowObj.document.removeEventListener('click', closePopper);
36907
+ listenerTimer && clearTimeout(listenerTimer);
36885
36908
  };
36886
36909
  }
36887
36910
 
36888
36911
  return function () {
36889
36912
  return undefined;
36890
36913
  };
36891
- }, [open, closePopper, windowObj.document]);
36914
+ }, [open, closePopper, windowObj]);
36892
36915
  React.useEffect(function () {
36893
36916
  if (open) {
36894
36917
  wrapperRef.current && wrapperRef.current.focus();
@@ -37024,7 +37047,7 @@ var Popover = /*#__PURE__*/React__default["default"].forwardRef(function Popover
37024
37047
  }
37025
37048
  }, [onMouseMove, anchorEl]);
37026
37049
  var innerOnClose = React.useCallback(function () {
37027
- return !activateOnHover && onClose();
37050
+ !activateOnHover && onClose();
37028
37051
  }, [activateOnHover, onClose]);
37029
37052
  var onMouseEnter = React.useCallback(function () {
37030
37053
  return !innerOpen && anchorEl.current && anchorEl.current.addEventListener('mousemove', onMouseMove);
@@ -37058,7 +37081,7 @@ var Popover = /*#__PURE__*/React__default["default"].forwardRef(function Popover
37058
37081
  return function () {
37059
37082
  return undefined;
37060
37083
  };
37061
- }, [anchorEl, activateOnHover, onMouseEnter, onMouseLeave, closePopover, windowObj.document]);
37084
+ }, [anchorEl, activateOnHover, onMouseEnter, onMouseLeave, closePopover, windowObj]);
37062
37085
  return /*#__PURE__*/React__default["default"].createElement(Popper$1, _extends({
37063
37086
  ref: popoverRef,
37064
37087
  open: activateOnHover ? innerOpen : open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-design-system",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "An awesome UI for Zextras Projects.",
5
5
  "main": "dist/zapp-ui.bundle.js",
6
6
  "scripts": {