@zohodesk/components 1.6.3 → 1.6.4

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,14 @@
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.6.4
6
+ - **Popup**
7
+ - Fixed an issue where the popup did not reposition correctly when the `mobileWidth` configuration was updated dynamically.
8
+
9
+ ### 🔒 Compatibility
10
+ - Requires `@zohodesk/dotkit` version `1.0.8` or above.
11
+
12
+
5
13
  # 1.6.3
6
14
 
7
15
  - Added customProps support to **AdvancedMultiSelect**.
@@ -15,6 +23,8 @@ Dot UI is a customizable React component library built to deliver a clean, acces
15
23
 
16
24
  - **Select, SelectWithIcon, SelectWithAvatar, GroupSelect, MultiSelect, MultiSelectWithAvatar, AdvancedMultiSelect, AdvancedGroupMultiSelect**
17
25
  - `renderCustomEmptyState` prop supported
26
+ - **v1** code removed
27
+ - **CBT** cli migrated for build
18
28
 
19
29
  # 1.6.1
20
30
 
package/es/Popup/Popup.js CHANGED
@@ -17,8 +17,15 @@ const Popup = function (Component) {
17
17
  closeOnScroll = false,
18
18
  isOutsideScrollBlocked = false
19
19
  } = options;
20
- const getRootElement = getLibraryConfig('getRootElement');
21
- const mobileWidth = getLibraryConfig('mobileWidth');
20
+
21
+ const getRootElement = () => {
22
+ return getLibraryConfig('getRootElement');
23
+ };
24
+
25
+ const getMobileWidth = () => {
26
+ return getLibraryConfig('mobileWidth');
27
+ };
28
+
22
29
  const middleware = {
23
30
  useAbsolutePositioning: isAbsolutePositioningNeeded,
24
31
  positionOrder: customOrder,
@@ -30,8 +37,8 @@ const Popup = function (Component) {
30
37
  };
31
38
  const popupConfig = {
32
39
  group,
33
- mobileWidth,
34
- rootElementCallback: getRootElement,
40
+ getMobileWidth,
41
+ getRootElement,
35
42
  middleware
36
43
  };
37
44
  return DotkitPopup(Component, popupConfig);
@@ -35,8 +35,15 @@ var Popup = function Popup(Component) {
35
35
  closeOnScroll = _options$closeOnScrol === void 0 ? false : _options$closeOnScrol,
36
36
  _options$isOutsideScr = options.isOutsideScrollBlocked,
37
37
  isOutsideScrollBlocked = _options$isOutsideScr === void 0 ? false : _options$isOutsideScr;
38
- var getRootElement = (0, _Config.getLibraryConfig)('getRootElement');
39
- var mobileWidth = (0, _Config.getLibraryConfig)('mobileWidth');
38
+
39
+ var getRootElement = function getRootElement() {
40
+ return (0, _Config.getLibraryConfig)('getRootElement');
41
+ };
42
+
43
+ var getMobileWidth = function getMobileWidth() {
44
+ return (0, _Config.getLibraryConfig)('mobileWidth');
45
+ };
46
+
40
47
  var middleware = {
41
48
  useAbsolutePositioning: isAbsolutePositioningNeeded,
42
49
  positionOrder: customOrder,
@@ -48,8 +55,8 @@ var Popup = function Popup(Component) {
48
55
  };
49
56
  var popupConfig = {
50
57
  group: group,
51
- mobileWidth: mobileWidth,
52
- rootElementCallback: getRootElement,
58
+ getMobileWidth: getMobileWidth,
59
+ getRootElement: getRootElement,
53
60
  middleware: middleware
54
61
  };
55
62
  return (0, _Popup["default"])(Component, popupConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -76,9 +76,9 @@
76
76
  "@zohodesk-private/react-prop-validator": "1.2.3",
77
77
  "@zohodesk/a11y": "2.3.8",
78
78
  "@zohodesk/docstool": "1.0.0-alpha-2",
79
- "@zohodesk/dotkit": "1.0.7",
80
- "@zohodesk/hooks": "2.0.6",
81
- "@zohodesk/icons": "1.2.3",
79
+ "@zohodesk/dotkit": "1.0.8",
80
+ "@zohodesk/hooks": "2.0.8",
81
+ "@zohodesk/icons": "1.2.5",
82
82
  "@zohodesk/layout": "3.1.0",
83
83
  "@zohodesk/svg": "1.3.2",
84
84
  "@zohodesk/utils": "1.3.16",
@@ -97,17 +97,17 @@
97
97
  "selectn": "1.1.2"
98
98
  },
99
99
  "peerDependencies": {
100
- "@zohodesk/icons": "1.2.3",
100
+ "@zohodesk/icons": "1.2.5",
101
101
  "@zohodesk/variables": "1.2.0",
102
102
  "@zohodesk/svg": "1.3.2",
103
103
  "@zohodesk/virtualizer": "1.0.13",
104
104
  "velocity-react": "1.4.3",
105
105
  "react-sortable-hoc": "^0.8.3",
106
- "@zohodesk/hooks": "2.0.6",
106
+ "@zohodesk/hooks": "2.0.8",
107
107
  "@zohodesk/utils": "1.3.16",
108
108
  "@zohodesk/a11y": "2.3.8",
109
109
  "@zohodesk/layout": "3.1.0",
110
- "@zohodesk/dotkit": "1.0.7",
110
+ "@zohodesk/dotkit": "1.0.8",
111
111
  "color": "4.2.3"
112
112
  }
113
113
  }