@citygross/components 0.16.12 → 0.16.13

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.
@@ -30,7 +30,7 @@ var getPortalRoot = function (portalHostSelector) {
30
30
  var _a;
31
31
  if (typeof document === 'undefined')
32
32
  return null;
33
- var hostElement = document.querySelector(portalHostSelector);
33
+ var hostElement = document.getElementById(portalHostSelector);
34
34
  return (_a = hostElement === null || hostElement === void 0 ? void 0 : hostElement.parentElement) !== null && _a !== void 0 ? _a : document.body;
35
35
  };
36
36
  var Modal = function (_a) {
@@ -44,8 +44,9 @@ var Modal = function (_a) {
44
44
  React.useEffect(function () {
45
45
  if (typeof document === 'undefined')
46
46
  return;
47
- var inertElements = Array.from(new Set(inertSelectors.flatMap(function (selector) {
48
- return Array.from(document.querySelectorAll(selector));
47
+ var inertElements = Array.from(new Set(inertSelectors.flatMap(function (id) {
48
+ var element = document.getElementById(id);
49
+ return element ? [element] : [];
49
50
  })));
50
51
  var body = document.body;
51
52
  var html = document.documentElement;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Modal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -22,7 +22,7 @@ var getPortalRoot = function (portalHostSelector) {
22
22
  var _a;
23
23
  if (typeof document === 'undefined')
24
24
  return null;
25
- var hostElement = document.querySelector(portalHostSelector);
25
+ var hostElement = document.getElementById(portalHostSelector);
26
26
  return (_a = hostElement === null || hostElement === void 0 ? void 0 : hostElement.parentElement) !== null && _a !== void 0 ? _a : document.body;
27
27
  };
28
28
  var Modal = function (_a) {
@@ -36,8 +36,9 @@ var Modal = function (_a) {
36
36
  useEffect(function () {
37
37
  if (typeof document === 'undefined')
38
38
  return;
39
- var inertElements = Array.from(new Set(inertSelectors.flatMap(function (selector) {
40
- return Array.from(document.querySelectorAll(selector));
39
+ var inertElements = Array.from(new Set(inertSelectors.flatMap(function (id) {
40
+ var element = document.getElementById(id);
41
+ return element ? [element] : [];
41
42
  })));
42
43
  var body = document.body;
43
44
  var html = document.documentElement;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Modal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.16.12",
3
+ "version": "0.16.13",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -74,5 +74,5 @@
74
74
  "react-slick": "^0.30.1",
75
75
  "slick-carousel": "^1.8.1"
76
76
  },
77
- "gitHead": "0fa3a09dd8832273591467ff6984f770068dfc41"
77
+ "gitHead": "b6c31a3d925202b2d3a33794d4ec8aa5e840506c"
78
78
  }