diginet-core-ui 1.3.82-beta.1 → 1.3.82-beta.3

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.
@@ -1078,6 +1078,8 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1078
1078
  title: "",
1079
1079
  onDrop: onDropInput,
1080
1080
  onDragLeave: onDropInput,
1081
+ onClick: e => e.target.value = null // Fix not fire onChange when select same file
1082
+ ,
1081
1083
  ...inputProps
1082
1084
  })), [inputProps]);
1083
1085
  const AttachedView = useMemo(() => jsx(ScrollBar, {
@@ -253,13 +253,13 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
253
253
  // getBoundingClientRect includes margin => phải trừ đi margin
254
254
  const style = window.getComputedStyle(child) || child.currentStyle;
255
255
  const margin = parseInt((style === null || style === void 0 ? void 0 : style.marginLeft) || 0) + parseInt((style === null || style === void 0 ? void 0 : style.marginRight) || 0);
256
- if (infoChild.right - margin >= infoParent.width) {
256
+ if (infoChild.right - margin >= infoParent.right) {
257
257
  child.style.opacity = 0;
258
258
  child.style.setProperty('display', 'none', 'important');
259
259
  } else {
260
260
  child.style.opacity = 1;
261
261
  }
262
- return infoChild.right >= infoParent.width;
262
+ return infoChild.right >= infoParent.right;
263
263
  });
264
264
  };
265
265
  const setWithNumber = useCallback((totalRefs = totalRef, numberRefs = numberRef) => {
@@ -182,7 +182,7 @@ const Popover = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
182
182
  };
183
183
  const updatePositionPopover = (el = null, cb) => {
184
184
  var _window, _window2, _anchor6, _anchorRect, _anchorRect2, _anchor7, _anchorRect3, _anchorRect4, _anchorRect5, _anchorRect6, _anchorRect7, _anchorRect8, _anchorRect9, _anchorRect10, _anchorRect11, _anchorRect12, _newDirectionObject, _newDirectionObject$t, _transformOrigin, _newDirectionObject2, _newDirectionObject2$, _transformOrigin2;
185
- setElement(el instanceof Element ? el : null);
185
+ if (el instanceof Element) setElement(el);
186
186
  if (!ref.current) {
187
187
  window.removeEventListener('resize', updatePositionPopover);
188
188
  return;
@@ -16,9 +16,7 @@ const IconMenu = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
16
16
  type,
17
17
  width
18
18
  }, reference) => {
19
- if (!reference) {
20
- reference = useRef(null);
21
- }
19
+ if (!reference) reference = useRef(null);
22
20
  const ref = useRef(null);
23
21
  useImperativeHandle(reference, () => {
24
22
  const currentRef = ref.current || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.82-beta.1",
3
+ "version": "1.3.82-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",