@zohodesk/components 1.5.4 → 1.5.6

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.
Files changed (34) hide show
  1. package/README.md +17 -0
  2. package/es/AppContainer/AppContainer.module.css +1 -1
  3. package/es/DropBox/DropBoxElement/DropBoxElement.js +1 -1
  4. package/es/DropBox/utils/isMobilePopover.js +3 -14
  5. package/es/ListItem/ListItemWithCheckBox.js +2 -0
  6. package/es/ListItem/ListItemWithRadio.js +2 -0
  7. package/es/ListItem/props/defaultProps.js +2 -0
  8. package/es/ListItem/props/propTypes.js +2 -0
  9. package/es/Popup/Popup.js +32 -1045
  10. package/es/shared/ArrowIcon/ArrowIcon.module.css +2 -3
  11. package/es/utils/Common.js +1 -1
  12. package/es/v1/Popup/Popup.js +2 -2
  13. package/lib/AppContainer/AppContainer.module.css +1 -1
  14. package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -5
  15. package/lib/DropBox/utils/isMobilePopover.js +4 -14
  16. package/lib/ListItem/ListItemWithCheckBox.js +2 -0
  17. package/lib/ListItem/ListItemWithRadio.js +2 -0
  18. package/lib/ListItem/props/defaultProps.js +2 -0
  19. package/lib/ListItem/props/propTypes.js +2 -0
  20. package/lib/Popup/Popup.js +36 -1149
  21. package/lib/shared/ArrowIcon/ArrowIcon.module.css +2 -3
  22. package/lib/utils/Common.js +1 -1
  23. package/lib/v1/Popup/Popup.js +4 -4
  24. package/package.json +8 -8
  25. package/es/DropBox/DropBoxPositionMapping.js +0 -142
  26. package/es/Popup/PositionMapping.js +0 -72
  27. package/es/Popup/Registry.js +0 -36
  28. package/es/Popup/intersectionObserver.js +0 -49
  29. package/es/Popup/viewPort.js +0 -373
  30. package/lib/DropBox/DropBoxPositionMapping.js +0 -149
  31. package/lib/Popup/PositionMapping.js +0 -81
  32. package/lib/Popup/Registry.js +0 -46
  33. package/lib/Popup/intersectionObserver.js +0 -72
  34. package/lib/Popup/viewPort.js +0 -367
package/README.md CHANGED
@@ -2,6 +2,22 @@
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.6
6
+
7
+ - **ListItemWithRadio, ListItemWithCheckBox**
8
+ - `needBorder` prop supported
9
+
10
+ - **ArrowIcon**
11
+ - Fixes of visible state and color from the container hover
12
+
13
+ - **AppContainer**
14
+ - The --zd-font-family variable now includes an empty string ('') as its fallback font-family value.
15
+
16
+ # 1.5.5
17
+
18
+ - **Popup**
19
+ - Refactored to use the `Popup` component from `dotkit@1.0.5`.
20
+
5
21
  # 1.5.4
6
22
 
7
23
  - **Tag**
@@ -26,6 +42,7 @@ Dot UI is a customizable React component library built to deliver a clean, acces
26
42
 
27
43
  - Font Family Migrated to Font-weight across all css (Impacted)
28
44
 
45
+
29
46
  # 1.4.23
30
47
 
31
48
  - **Typography**
@@ -10,7 +10,7 @@
10
10
  }
11
11
  .container, .container button, .container input, .container textarea ,.container select {
12
12
  /* font-family: var(--zd_regular); */
13
- font-family: var(--zd-font-family), var(--zd_fallback_font, ZDLato);
13
+ font-family: var(--zd-font-family, ''), var(--zd_fallback_font, ZDLato);
14
14
  }
15
15
  .tooltip {
16
16
  height: 0 ;
@@ -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
  }
@@ -52,6 +52,7 @@ export default class ListItemWithCheckBox extends React.Component {
52
52
  checked,
53
53
  autoHover,
54
54
  palette,
55
+ needBorder,
55
56
  dataId,
56
57
  dataSelectorId,
57
58
  title,
@@ -88,6 +89,7 @@ export default class ListItemWithCheckBox extends React.Component {
88
89
  isDisabled: isDisabled,
89
90
  active: active,
90
91
  autoHover: autoHover,
92
+ needBorder: needBorder,
91
93
  customClass: customListItem,
92
94
  dataId: `${dataId ? dataId : value}_ListItemWithCheckBox`,
93
95
  dataSelectorId: dataSelectorId,
@@ -52,6 +52,7 @@ export default class ListItemWithRadio extends React.Component {
52
52
  checked,
53
53
  autoHover,
54
54
  palette,
55
+ needBorder,
55
56
  id,
56
57
  dataId,
57
58
  dataSelectorId,
@@ -89,6 +90,7 @@ export default class ListItemWithRadio extends React.Component {
89
90
  isDisabled: isDisabled,
90
91
  active: active,
91
92
  autoHover: autoHover,
93
+ needBorder: needBorder,
92
94
  customClass: customListItem,
93
95
  dataId: dataId,
94
96
  dataSelectorId: dataSelectorId,
@@ -56,6 +56,7 @@ export const ListItemWithCheckBoxDefaultProps = {
56
56
  autoHover: false,
57
57
  checked: false,
58
58
  highlight: false,
59
+ needBorder: true,
59
60
  palette: 'default',
60
61
  size: 'medium',
61
62
  value: 'List',
@@ -91,6 +92,7 @@ export const ListItemWithRadioDefaultProps = {
91
92
  autoHover: false,
92
93
  checked: false,
93
94
  highlight: false,
95
+ needBorder: true,
94
96
  palette: 'default',
95
97
  size: 'medium',
96
98
  value: 'List',
@@ -137,6 +137,7 @@ export const ListItemWithCheckBox_Props = {
137
137
  title: PropTypes.string,
138
138
  value: PropTypes.string,
139
139
  secondaryValue: PropTypes.string,
140
+ needBorder: PropTypes.bool,
140
141
  renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
141
142
  lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
142
143
  lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
@@ -213,6 +214,7 @@ export const ListItemWithRadio_Props = {
213
214
  title: PropTypes.string,
214
215
  value: PropTypes.string,
215
216
  secondaryValue: PropTypes.string,
217
+ needBorder: PropTypes.bool,
216
218
  renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
217
219
  lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
218
220
  lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),