@tedi-design-system/react 16.1.0-rc.7 → 16.1.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/bundle-stats.html +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/external/react-is/index.es.js +1 -1
- package/package.json +1 -1
- package/src/community/components/tooltip/tooltip-provider.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip-provider.es.js +18 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.development.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.development.cjs2.js");/** @license React v16.13.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.production.min.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.production.min.cjs2.js");/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/index.cjs4.js"),r=require("./cjs/react-is.production.min.cjs.js"),o=require("./cjs/react-is.development.cjs.js");process.env.NODE_ENV==="production"?e.__module.exports=r.__require():e.__module.exports=o.__require();var t=e.__module.exports;exports.reactIsExports=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../../../_virtual/index.
|
|
1
|
+
import { __module as r } from "../../../../_virtual/index.es4.js";
|
|
2
2
|
import { __require as e } from "./cjs/react-is.production.min.es.js";
|
|
3
3
|
import { __require as o } from "./cjs/react-is.development.es.js";
|
|
4
4
|
process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.development.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.development.cjs.js");/** @license React v16.13.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.production.min.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../_virtual/react-is.production.min.cjs.js");/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/index.cjs3.js"),t=require("./cjs/react-is.production.min.cjs.js"),o=require("./cjs/react-is.development.cjs.js");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/index.
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index.es3.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.es.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.es.js";
|
|
4
4
|
var r;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("react/jsx-runtime"),e=require("../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),l=require("react"),j=require("../../../tedi/helpers/hooks/use-is-touch-device.cjs.js"),k=require("../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),s=require("../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("react/jsx-runtime"),e=require("../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),l=require("react"),j=require("../../../tedi/helpers/hooks/use-is-touch-device.cjs.js"),k=require("../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),s=require("../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),B=require("../../../tedi/providers/label-provider/use-labels.cjs.js"),z=require("../../../tedi/helpers/hooks/use-is-mounted.cjs.js"),g=7,J=14,T=3,m=T+g,O=l.createContext({open:!1,isMounted:!1,openWith:"hover",reference:()=>null,floating:()=>null,focusManager:{},arrowRef:{current:null},x:null,y:null,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{x:0,y:0,centerOffset:0},placement:"top",context:{}}),R=a=>{const{getLabel:v}=B.useLabels(),h=j.useIsTouchDevice(),{children:P,placement:F="bottom",openWith:o=h?"click":"hover",defaultOpen:_=!1,open:r,onToggle:n,role:D="tooltip",offset:w=m}=a,{order:y=["reference","content"],modal:c=!1,initialFocus:I=-1,...i}=a.focusManager??{},{visuallyHiddenDismiss:M=c?v("close"):!1}=i??{},[x,b]=l.useState(_),u=l.useRef(null),f=n&&typeof r<"u"?r:x,q=p=>{typeof r>"u"&&b(p),n==null||n(p)},A=z.useIsMounted(),{x:E,y:H,refs:d,strategy:W,context:t,middlewareData:L,placement:C}=e.useFloating({placement:F,open:f,onOpenChange:q,middleware:[s.offset(w),s.flip(),s.shift({altBoundary:!0,padding:8}),s.arrow({element:u,padding:4})],whileElementsMounted:k.autoUpdate}),{getReferenceProps:S,getFloatingProps:U}=e.useInteractions([e.useHover(t,{handleClose:e.safePolygon(),enabled:o==="hover"}),e.useClick(t),e.useFocus(t,{enabled:o==="hover"}),e.useRole(t,{role:D}),e.useDismiss(t,{ancestorScroll:!0,outsidePressEvent:o==="click"?"mousedown":"pointerdown"})]);return G.jsx(O.Provider,{value:{open:f,isMounted:A,openWith:o,reference:d.setReference,floating:d.setFloating,arrowRef:u,focusManager:{order:y,initialFocus:I,modal:c,visuallyHiddenDismiss:M,...i},x:E,y:H,strategy:W,getReferenceProps:S,getFloatingProps:U,arrow:{...L.arrow},context:t,placement:C},children:P})};exports.ARROW_HEIGHT=g;exports.ARROW_WIDTH=J;exports.DEFAULT_TOOLTIP_OFFSET=m;exports.GAP=T;exports.TooltipContext=O;exports.TooltipProvider=R;exports.default=R;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as H } from "react/jsx-runtime";
|
|
2
|
-
import { useFloating as W, useInteractions as A, useHover as L, useClick as k, useFocus as
|
|
2
|
+
import { useFloating as W, useInteractions as A, useHover as L, useClick as k, useFocus as S, useRole as G, useDismiss as U, safePolygon as j } from "../../../../external/@floating-ui/react/dist/floating-ui.react.es.js";
|
|
3
3
|
import s from "react";
|
|
4
|
-
import { useIsTouchDevice as
|
|
5
|
-
import { autoUpdate as
|
|
6
|
-
import { offset as
|
|
4
|
+
import { useIsTouchDevice as B } from "../../../tedi/helpers/hooks/use-is-touch-device.es.js";
|
|
5
|
+
import { autoUpdate as q } from "../../../../external/@floating-ui/dom/dist/floating-ui.dom.es.js";
|
|
6
|
+
import { offset as z, flip as J, shift as K, arrow as N } from "../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js";
|
|
7
7
|
import { useLabels as Q } from "../../../tedi/providers/label-provider/use-labels.es.js";
|
|
8
8
|
import { useIsMounted as V } from "../../../tedi/helpers/hooks/use-is-mounted.es.js";
|
|
9
9
|
const X = 7, ce = 14, Y = 3, Z = Y + X, $ = s.createContext({
|
|
@@ -27,7 +27,7 @@ const X = 7, ce = 14, Y = 3, Z = Y + X, $ = s.createContext({
|
|
|
27
27
|
placement: "top",
|
|
28
28
|
context: {}
|
|
29
29
|
}), ie = (r) => {
|
|
30
|
-
const { getLabel: p } = Q(), d =
|
|
30
|
+
const { getLabel: p } = Q(), d = B(), {
|
|
31
31
|
children: m,
|
|
32
32
|
placement: g = "bottom",
|
|
33
33
|
openWith: o = d ? "click" : "hover",
|
|
@@ -41,33 +41,37 @@ const X = 7, ce = 14, Y = 3, Z = Y + X, $ = s.createContext({
|
|
|
41
41
|
modal: a = !1,
|
|
42
42
|
initialFocus: w = -1,
|
|
43
43
|
...l
|
|
44
|
-
} = r.focusManager ?? {}, { visuallyHiddenDismiss:
|
|
45
|
-
typeof n > "u" &&
|
|
44
|
+
} = r.focusManager ?? {}, { visuallyHiddenDismiss: y = a ? p("close") : !1 } = l ?? {}, [F, P] = s.useState(h), c = s.useRef(null), i = t && typeof n < "u" ? n : F, x = (u) => {
|
|
45
|
+
typeof n > "u" && P(u), t == null || t(u);
|
|
46
46
|
}, T = V(), { x: D, y: M, refs: f, strategy: b, context: e, middlewareData: I, placement: _ } = W({
|
|
47
47
|
placement: g,
|
|
48
48
|
open: i,
|
|
49
|
-
onOpenChange:
|
|
49
|
+
onOpenChange: x,
|
|
50
50
|
middleware: [
|
|
51
|
-
|
|
51
|
+
z(O),
|
|
52
52
|
J(),
|
|
53
|
-
K({
|
|
53
|
+
K({
|
|
54
|
+
altBoundary: !0,
|
|
55
|
+
padding: 8
|
|
56
|
+
}),
|
|
54
57
|
N({
|
|
55
58
|
element: c,
|
|
56
59
|
padding: 4
|
|
57
60
|
})
|
|
58
61
|
],
|
|
59
|
-
whileElementsMounted:
|
|
62
|
+
whileElementsMounted: q
|
|
60
63
|
}), { getReferenceProps: C, getFloatingProps: E } = A([
|
|
61
64
|
L(e, {
|
|
62
65
|
handleClose: j(),
|
|
63
66
|
enabled: o === "hover"
|
|
64
67
|
}),
|
|
65
68
|
k(e),
|
|
66
|
-
|
|
69
|
+
S(e, {
|
|
67
70
|
enabled: o === "hover"
|
|
68
71
|
}),
|
|
69
|
-
|
|
72
|
+
G(e, { role: v }),
|
|
70
73
|
U(e, {
|
|
74
|
+
ancestorScroll: !0,
|
|
71
75
|
outsidePressEvent: o === "click" ? "mousedown" : "pointerdown"
|
|
72
76
|
// https://floating-ui.com/docs/dialog#interaction-hooks
|
|
73
77
|
})
|
|
@@ -86,7 +90,7 @@ const X = 7, ce = 14, Y = 3, Z = Y + X, $ = s.createContext({
|
|
|
86
90
|
order: R,
|
|
87
91
|
initialFocus: w,
|
|
88
92
|
modal: a,
|
|
89
|
-
visuallyHiddenDismiss:
|
|
93
|
+
visuallyHiddenDismiss: y,
|
|
90
94
|
...l
|
|
91
95
|
},
|
|
92
96
|
x: D,
|