@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 +6 -0
- package/es/DropBox/DropBoxElement/DropBoxElement.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +3 -14
- package/es/Popup/Popup.js +32 -1045
- package/es/utils/Common.js +1 -1
- package/es/v1/Popup/Popup.js +2 -2
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -5
- package/lib/DropBox/utils/isMobilePopover.js +4 -14
- package/lib/Popup/Popup.js +36 -1149
- package/lib/utils/Common.js +1 -1
- package/lib/v1/Popup/Popup.js +4 -4
- package/package.json +8 -8
- package/es/DropBox/DropBoxPositionMapping.js +0 -142
- package/es/Popup/PositionMapping.js +0 -72
- package/es/Popup/Registry.js +0 -36
- package/es/Popup/intersectionObserver.js +0 -49
- package/es/Popup/viewPort.js +0 -373
- package/lib/DropBox/DropBoxPositionMapping.js +0 -149
- package/lib/Popup/PositionMapping.js +0 -81
- package/lib/Popup/Registry.js +0 -46
- package/lib/Popup/intersectionObserver.js +0 -72
- package/lib/Popup/viewPort.js +0 -367
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
|
|
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
|
-
|
|
4
|
-
|
|
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
|
}
|