@phillips/seldon 1.155.0 → 1.157.0
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/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/Modal/Modal.d.ts +8 -8
- package/dist/components/Modal/Modal.js +59 -50
- package/dist/components/Modal/Modal.stories.d.ts +2 -1
- package/dist/node_modules/ics/dist/index.js +2 -2
- package/dist/node_modules/ics/dist/pipeline/format.js +1 -1
- package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
- package/dist/node_modules/ics/dist/pipeline/validate.js +1 -1
- package/dist/node_modules/ics/dist/schema/index.js +1 -1
- package/dist/node_modules/ics/dist/utils/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +8 -9
- package/dist/node_modules/runes2/dist/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/scss/components/ContentPeek/_contentPeek.scss +1 -1
- package/dist/scss/components/Modal/_modal.scss +6 -8
- package/dist/scss/components/Modal/_modal.stories.scss +11 -0
- package/package.json +1 -3
- package/dist/_virtual/Modal.js +0 -4
- package/dist/_virtual/ModalPortal.js +0 -4
- package/dist/_virtual/ariaAppHider.js +0 -4
- package/dist/_virtual/bodyTrap.js +0 -4
- package/dist/_virtual/classList.js +0 -4
- package/dist/_virtual/focusManager.js +0 -4
- package/dist/_virtual/index11.js +0 -4
- package/dist/_virtual/index12.js +0 -4
- package/dist/_virtual/portalOpenInstances.js +0 -4
- package/dist/_virtual/react-lifecycles-compat.es.js +0 -6
- package/dist/_virtual/safeHTMLElement.js +0 -4
- package/dist/_virtual/scopeTab.js +0 -4
- package/dist/_virtual/tabbable.js +0 -4
- package/dist/node_modules/exenv/index.js +0 -21
- package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +0 -63
- package/dist/node_modules/react-modal/lib/components/Modal.js +0 -237
- package/dist/node_modules/react-modal/lib/components/ModalPortal.js +0 -249
- package/dist/node_modules/react-modal/lib/helpers/ariaAppHider.js +0 -91
- package/dist/node_modules/react-modal/lib/helpers/bodyTrap.js +0 -42
- package/dist/node_modules/react-modal/lib/helpers/classList.js +0 -62
- package/dist/node_modules/react-modal/lib/helpers/focusManager.js +0 -67
- package/dist/node_modules/react-modal/lib/helpers/portalOpenInstances.js +0 -46
- package/dist/node_modules/react-modal/lib/helpers/safeHTMLElement.js +0 -15
- package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +0 -45
- package/dist/node_modules/react-modal/lib/helpers/tabbable.js +0 -60
- package/dist/node_modules/react-modal/lib/index.js +0 -19
- package/dist/node_modules/warning/warning.js +0 -33
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __exports as t } from "../../../../_virtual/focusManager.js";
|
|
2
|
-
import { t as s } from "./tabbable.js";
|
|
3
|
-
Object.defineProperty(t, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
});
|
|
6
|
-
t.resetState = f;
|
|
7
|
-
t.log = v;
|
|
8
|
-
t.handleBlur = r;
|
|
9
|
-
t.handleFocus = a;
|
|
10
|
-
t.markForFocusLater = m;
|
|
11
|
-
t.returnFocus = p;
|
|
12
|
-
t.popWithoutFocus = h;
|
|
13
|
-
t.setupScopedFocus = E;
|
|
14
|
-
t.teardownScopedFocus = F;
|
|
15
|
-
var l = s, i = d(l);
|
|
16
|
-
function d(e) {
|
|
17
|
-
return e && e.__esModule ? e : { default: e };
|
|
18
|
-
}
|
|
19
|
-
var n = [], u = null, c = !1;
|
|
20
|
-
function f() {
|
|
21
|
-
n = [];
|
|
22
|
-
}
|
|
23
|
-
function v() {
|
|
24
|
-
process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), n.forEach(function(e) {
|
|
25
|
-
var o = e || {};
|
|
26
|
-
console.log(o.nodeName, o.className, o.id);
|
|
27
|
-
}), console.log("end focusManager ----------"));
|
|
28
|
-
}
|
|
29
|
-
function r() {
|
|
30
|
-
c = !0;
|
|
31
|
-
}
|
|
32
|
-
function a() {
|
|
33
|
-
if (c) {
|
|
34
|
-
if (c = !1, !u)
|
|
35
|
-
return;
|
|
36
|
-
setTimeout(function() {
|
|
37
|
-
if (!u.contains(document.activeElement)) {
|
|
38
|
-
var e = (0, i.default)(u)[0] || u;
|
|
39
|
-
e.focus();
|
|
40
|
-
}
|
|
41
|
-
}, 0);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function m() {
|
|
45
|
-
n.push(document.activeElement);
|
|
46
|
-
}
|
|
47
|
-
function p() {
|
|
48
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, o = null;
|
|
49
|
-
try {
|
|
50
|
-
n.length !== 0 && (o = n.pop(), o.focus({ preventScroll: e }));
|
|
51
|
-
return;
|
|
52
|
-
} catch {
|
|
53
|
-
console.warn(["You tried to return focus to", o, "but it is not in the DOM anymore"].join(" "));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function h() {
|
|
57
|
-
n.length > 0 && n.pop();
|
|
58
|
-
}
|
|
59
|
-
function E(e) {
|
|
60
|
-
u = e, window.addEventListener ? (window.addEventListener("blur", r, !1), document.addEventListener("focus", a, !0)) : (window.attachEvent("onBlur", r), document.attachEvent("onFocus", a));
|
|
61
|
-
}
|
|
62
|
-
function F() {
|
|
63
|
-
u = null, window.addEventListener ? (window.removeEventListener("blur", r), document.removeEventListener("focus", a)) : (window.detachEvent("onBlur", r), document.detachEvent("onFocus", a));
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
t as default
|
|
67
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __exports as r } from "../../../../_virtual/portalOpenInstances.js";
|
|
2
|
-
Object.defineProperty(r, "__esModule", {
|
|
3
|
-
value: !0
|
|
4
|
-
});
|
|
5
|
-
r.log = c;
|
|
6
|
-
r.resetState = l;
|
|
7
|
-
function i(s, e) {
|
|
8
|
-
if (!(s instanceof e))
|
|
9
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10
|
-
}
|
|
11
|
-
var a = function s() {
|
|
12
|
-
var e = this;
|
|
13
|
-
i(this, s), this.register = function(n) {
|
|
14
|
-
if (e.openInstances.indexOf(n) !== -1) {
|
|
15
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
e.openInstances.push(n), e.emit("register");
|
|
19
|
-
}, this.deregister = function(n) {
|
|
20
|
-
var t = e.openInstances.indexOf(n);
|
|
21
|
-
if (t === -1) {
|
|
22
|
-
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
e.openInstances.splice(t, 1), e.emit("deregister");
|
|
26
|
-
}, this.subscribe = function(n) {
|
|
27
|
-
e.subscribers.push(n);
|
|
28
|
-
}, this.emit = function(n) {
|
|
29
|
-
e.subscribers.forEach(function(t) {
|
|
30
|
-
return t(
|
|
31
|
-
n,
|
|
32
|
-
// shallow copy to avoid accidental mutation
|
|
33
|
-
e.openInstances.slice()
|
|
34
|
-
);
|
|
35
|
-
});
|
|
36
|
-
}, this.openInstances = [], this.subscribers = [];
|
|
37
|
-
}, o = new a();
|
|
38
|
-
function c() {
|
|
39
|
-
console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
|
|
40
|
-
return console.log(s);
|
|
41
|
-
}), console.log("end portalOpenInstances ----------");
|
|
42
|
-
}
|
|
43
|
-
function l() {
|
|
44
|
-
o = new a();
|
|
45
|
-
}
|
|
46
|
-
r.default = o;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __exports as e } from "../../../../_virtual/safeHTMLElement.js";
|
|
2
|
-
import { e as t } from "../../../exenv/index.js";
|
|
3
|
-
Object.defineProperty(e, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
});
|
|
6
|
-
e.canUseDOM = e.SafeNodeList = e.SafeHTMLCollection = void 0;
|
|
7
|
-
var o = t, r = i(o);
|
|
8
|
-
function i(n) {
|
|
9
|
-
return n && n.__esModule ? n : { default: n };
|
|
10
|
-
}
|
|
11
|
-
var a = r.default, l = a.canUseDOM ? window.HTMLElement : {};
|
|
12
|
-
e.SafeHTMLCollection = a.canUseDOM ? window.HTMLCollection : {};
|
|
13
|
-
e.SafeNodeList = a.canUseDOM ? window.NodeList : {};
|
|
14
|
-
e.canUseDOM = a.canUseDOM;
|
|
15
|
-
e.default = l;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { __module as s } from "../../../../_virtual/scopeTab.js";
|
|
2
|
-
import { t as _ } from "./tabbable.js";
|
|
3
|
-
(function(c, f) {
|
|
4
|
-
Object.defineProperty(f, "__esModule", {
|
|
5
|
-
value: !0
|
|
6
|
-
}), f.default = g;
|
|
7
|
-
var d = _, p = m(d);
|
|
8
|
-
function m(e) {
|
|
9
|
-
return e && e.__esModule ? e : { default: e };
|
|
10
|
-
}
|
|
11
|
-
function v() {
|
|
12
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
|
|
13
|
-
return e.activeElement.shadowRoot ? v(e.activeElement.shadowRoot) : e.activeElement;
|
|
14
|
-
}
|
|
15
|
-
function g(e, r) {
|
|
16
|
-
var a = (0, p.default)(e);
|
|
17
|
-
if (!a.length) {
|
|
18
|
-
r.preventDefault();
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
var t = void 0, n = r.shiftKey, o = a[0], u = a[a.length - 1], i = v();
|
|
22
|
-
if (e === i) {
|
|
23
|
-
if (!n) return;
|
|
24
|
-
t = u;
|
|
25
|
-
}
|
|
26
|
-
if (u === i && !n && (t = o), o === i && n && (t = u), t) {
|
|
27
|
-
r.preventDefault(), t.focus();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
var b = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), h = b != null && b[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
31
|
-
if (h) {
|
|
32
|
-
var l = a.indexOf(i);
|
|
33
|
-
if (l > -1 && (l += n ? -1 : 1), t = a[l], typeof t > "u") {
|
|
34
|
-
r.preventDefault(), t = n ? u : o, t.focus();
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
r.preventDefault(), t.focus();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
c.exports = f.default;
|
|
41
|
-
})(s, s.exports);
|
|
42
|
-
var D = s.exports;
|
|
43
|
-
export {
|
|
44
|
-
D as s
|
|
45
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { __module as n } from "../../../../_virtual/tabbable.js";
|
|
2
|
-
(function(u, a) {
|
|
3
|
-
Object.defineProperty(a, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
}), a.default = i;
|
|
6
|
-
/*!
|
|
7
|
-
* Adapted from jQuery UI core
|
|
8
|
-
*
|
|
9
|
-
* http://jqueryui.com
|
|
10
|
-
*
|
|
11
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
|
12
|
-
* Released under the MIT license.
|
|
13
|
-
* http://jquery.org/license
|
|
14
|
-
*
|
|
15
|
-
* http://api.jqueryui.com/category/ui-core/
|
|
16
|
-
*/
|
|
17
|
-
var d = "none", s = "contents", f = /input|select|textarea|button|object|iframe/;
|
|
18
|
-
function c(t, e) {
|
|
19
|
-
return e.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
20
|
-
t.scrollWidth <= 0 && t.scrollHeight <= 0;
|
|
21
|
-
}
|
|
22
|
-
function b(t) {
|
|
23
|
-
var e = t.offsetWidth <= 0 && t.offsetHeight <= 0;
|
|
24
|
-
if (e && !t.innerHTML) return !0;
|
|
25
|
-
try {
|
|
26
|
-
var r = window.getComputedStyle(t), o = r.getPropertyValue("display");
|
|
27
|
-
return e ? o !== s && c(t, r) : o === d;
|
|
28
|
-
} catch {
|
|
29
|
-
return console.warn("Failed to inspect element style"), !1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function l(t) {
|
|
33
|
-
for (var e = t, r = t.getRootNode && t.getRootNode(); e && e !== document.body; ) {
|
|
34
|
-
if (r && e === r && (e = r.host.parentNode), b(e)) return !1;
|
|
35
|
-
e = e.parentNode;
|
|
36
|
-
}
|
|
37
|
-
return !0;
|
|
38
|
-
}
|
|
39
|
-
function v(t, e) {
|
|
40
|
-
var r = t.nodeName.toLowerCase(), o = f.test(r) && !t.disabled || r === "a" && t.href || e;
|
|
41
|
-
return o && l(t);
|
|
42
|
-
}
|
|
43
|
-
function p(t) {
|
|
44
|
-
var e = t.getAttribute("tabindex");
|
|
45
|
-
e === null && (e = void 0);
|
|
46
|
-
var r = isNaN(e);
|
|
47
|
-
return (r || e >= 0) && v(t, !r);
|
|
48
|
-
}
|
|
49
|
-
function i(t) {
|
|
50
|
-
var e = [].slice.call(t.querySelectorAll("*"), 0).reduce(function(r, o) {
|
|
51
|
-
return r.concat(o.shadowRoot ? i(o.shadowRoot) : [o]);
|
|
52
|
-
}, []);
|
|
53
|
-
return e.filter(p);
|
|
54
|
-
}
|
|
55
|
-
u.exports = a.default;
|
|
56
|
-
})(n, n.exports);
|
|
57
|
-
var g = n.exports;
|
|
58
|
-
export {
|
|
59
|
-
g as t
|
|
60
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as d } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __module as r } from "../../../_virtual/index3.js";
|
|
3
|
-
import "./components/Modal.js";
|
|
4
|
-
import { __exports as f } from "../../../_virtual/Modal.js";
|
|
5
|
-
(function(o, t) {
|
|
6
|
-
Object.defineProperty(t, "__esModule", {
|
|
7
|
-
value: !0
|
|
8
|
-
});
|
|
9
|
-
var a = f, l = u(a);
|
|
10
|
-
function u(e) {
|
|
11
|
-
return e && e.__esModule ? e : { default: e };
|
|
12
|
-
}
|
|
13
|
-
t.default = l.default, o.exports = t.default;
|
|
14
|
-
})(r, r.exports);
|
|
15
|
-
var i = r.exports;
|
|
16
|
-
const n = /* @__PURE__ */ d(i);
|
|
17
|
-
export {
|
|
18
|
-
n as default
|
|
19
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var c = process.env.NODE_ENV !== "production", i = function() {
|
|
2
|
-
};
|
|
3
|
-
if (c) {
|
|
4
|
-
var g = function(e, r) {
|
|
5
|
-
var a = arguments.length;
|
|
6
|
-
r = new Array(a > 1 ? a - 1 : 0);
|
|
7
|
-
for (var n = 1; n < a; n++)
|
|
8
|
-
r[n - 1] = arguments[n];
|
|
9
|
-
var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
|
|
10
|
-
return r[u++];
|
|
11
|
-
});
|
|
12
|
-
typeof console < "u" && console.error(t);
|
|
13
|
-
try {
|
|
14
|
-
throw new Error(t);
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
i = function(o, e, r) {
|
|
19
|
-
var a = arguments.length;
|
|
20
|
-
r = new Array(a > 2 ? a - 2 : 0);
|
|
21
|
-
for (var n = 2; n < a; n++)
|
|
22
|
-
r[n - 2] = arguments[n];
|
|
23
|
-
if (e === void 0)
|
|
24
|
-
throw new Error(
|
|
25
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
26
|
-
);
|
|
27
|
-
o || g.apply(null, [e].concat(r));
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var s = i;
|
|
31
|
-
export {
|
|
32
|
-
s as w
|
|
33
|
-
};
|