@zohodesk/components 1.5.4 → 1.5.5

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/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
4
4
 
5
+ # 1.5.5
6
+
7
+ - **Popup**
8
+ - Refactored to use the `Popup` component from `dotkit@1.0.5`.
9
+
5
10
  # 1.5.4
6
11
 
7
12
  - **Tag**
@@ -26,6 +31,7 @@ Dot UI is a customizable React component library built to deliver a clean, acces
26
31
 
27
32
  - Font Family Migrated to Font-weight across all css (Impacted)
28
33
 
34
+
29
35
  # 1.4.23
30
36
 
31
37
  - **Typography**
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import useDropboxPosCalc from "./useDropboxPosCalc";
4
4
  import cssJSLogic from "./css/cssJSLogic";
5
- import { positionMapping } from "../DropBoxPositionMapping.js";
5
+ import { positionMapping } from '@zohodesk/dotkit/es/react/components/Popup/utils/positioning';
6
6
  import { DropBoxElementDefaultProps } from "./props/defaultProps";
7
7
  import { DropBoxElementPropTypes } from "./props/propTypes";
8
8
  import { mergeStyle } from '@zohodesk/utils';
@@ -1,17 +1,6 @@
1
1
  import { getLibraryConfig } from "../../Provider/Config";
2
+ import { isMobilePopover as isMobile } from '@zohodesk/dotkit/es/utils/device.js';
2
3
  export default function isMobilePopover(needResponsive) {
3
- // let { needResponsive } = props;
4
- let windowWidth,
5
- mobileWidth = getLibraryConfig('mobileWidth'),
6
- isModel = false;
7
-
8
- if (needResponsive) {
9
- windowWidth = window.innerWidth;
10
-
11
- if (windowWidth <= mobileWidth) {
12
- isModel = true;
13
- }
14
- }
15
-
16
- return isModel ? true : false;
4
+ const mobileWidth = getLibraryConfig('mobileWidth');
5
+ return isMobile(needResponsive, mobileWidth);
17
6
  }