@tedi-design-system/react 19.0.0-rc.14 → 19.0.0-rc.15
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/_virtual/index.es13.js +2 -2
- package/_virtual/index.es14.js +2 -2
- package/bundle-stats.html +1 -1
- package/external/react-is/index.cjs.js +1 -1
- package/external/react-is/index.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/package.json +1 -1
- package/src/community/components/map-components/button-group/button-group.cjs.js +1 -1
- package/src/community/components/map-components/button-group/button-group.es.js +18 -14
- package/src/community/components/map-components/map-button/map-button.cjs.js +1 -1
- package/src/community/components/map-components/map-button/map-button.es.js +34 -33
- package/src/tedi/components/overlays/overlay/overlay.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay.es.js +29 -28
|
@@ -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.cjs13.js"),r=require("./cjs/react-is.production.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.es13.js";
|
|
2
2
|
import { __require as e } from "./cjs/react-is.production.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("../../_virtual/_commonjsHelpers.cjs.js"),w=require("../../_virtual/index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("../../_virtual/_commonjsHelpers.cjs.js"),w=require("../../_virtual/index.cjs14.js");w.__module.exports=function(n){return d(p(n),n)};w.__module.exports.array=d;function d(n,r){var t=n.length,a=new Array(t),e={},s=t,g=y(r),i=S(n);for(r.forEach(function(o){if(!i.has(o[0])||!i.has(o[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)e[s]||v(n[s],s,new Set);return a;function v(o,u,f){if(f.has(o)){var h;try{h=", node was:"+JSON.stringify(o)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!i.has(o))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(o));if(!e[u]){e[u]=!0;var l=g.get(o)||new Set;if(l=Array.from(l),u=l.length){f.add(o);do{var c=l[--u];v(c,i.get(c),f)}while(u);f.delete(o)}a[--t]=o}}}function p(n){for(var r=new Set,t=0,a=n.length;t<a;t++){var e=n[t];r.add(e[0]),r.add(e[1])}return Array.from(r)}function y(n){for(var r=new Map,t=0,a=n.length;t<a;t++){var e=n[t];r.has(e[0])||r.set(e[0],new Set),r.has(e[1])||r.set(e[1],new Set),r.get(e[0]).add(e[1])}return r}function S(n){for(var r=new Map,t=0,a=n.length;t<a;t++)r.set(n[t],t);return r}var _=w.__module.exports;const E=m.getDefaultExportFromCjs(_);exports.default=E;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tedi-design-system/react",
|
|
3
|
-
"version": "19.0.0-rc.
|
|
3
|
+
"version": "19.0.0-rc.15",
|
|
4
4
|
"description": "TEDI Design System React component library — accessible, reusable UI components. Docs & live examples: https://storybook.tedi.ee/react/rc/",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("../../../../../external/classnames/index.cjs.js"),o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("../../../../../external/classnames/index.cjs.js"),o=require("react"),h=require("../map-button/map-button.cjs.js"),e=require("./button-group.module.scss.cjs.js"),j=p=>{const{children:c,className:f,direction:m="horizontal",onSelectionChange:s,stretch:b=!1,ariaLabel:x,prefix:a,suffix:l,prefixClassName:_,suffixClassName:g}=p;return r.jsxs("div",{className:i.default(e.default["tedi-button-group"],e.default[`tedi-button-group--${m}`],{[e.default["tedi-button-group--stretch"]]:b},f),role:"group","aria-label":x,children:[a&&r.jsx("div",{className:i.default(e.default["tedi-button-group__prefix"],_),children:r.jsx("span",{children:a})}),o.Children.map(c,u=>{if(o.isValidElement(u)&&u.type===h.MapButton){const t=u;return o.cloneElement(t,{className:i.default(e.default["tedi-button-group__item"],{[e.default["tedi-button-group__item--active"]]:t.props.isActive,[e.default["tedi-button-group__item--disabled"]]:t.props.disabled},t.props.className),onClick:N=>{var d,n;t.props.disabled||((n=(d=t.props).onClick)==null||n.call(d,N),s==null||s(t.props.id))}})}return u}),l&&r.jsx("div",{className:i.default(e.default["tedi-button-group__suffix"],g),children:r.jsx("span",{children:l})})]})};exports.ButtonGroup=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../../../../external/classnames/index.es.js";
|
|
3
3
|
import { Children as h, isValidElement as v, cloneElement as C } from "react";
|
|
4
4
|
import { MapButton as y } from "../map-button/map-button.es.js";
|
|
5
5
|
import t from "./button-group.module.scss.es.js";
|
|
@@ -8,7 +8,7 @@ const A = (d) => {
|
|
|
8
8
|
children: u,
|
|
9
9
|
className: m,
|
|
10
10
|
direction: c = "horizontal",
|
|
11
|
-
onSelectionChange:
|
|
11
|
+
onSelectionChange: o,
|
|
12
12
|
stretch: f = !1,
|
|
13
13
|
ariaLabel: b,
|
|
14
14
|
prefix: p,
|
|
@@ -16,10 +16,10 @@ const A = (d) => {
|
|
|
16
16
|
prefixClassName: _,
|
|
17
17
|
suffixClassName: x
|
|
18
18
|
} = d;
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ g(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: s(
|
|
23
23
|
t["tedi-button-group"],
|
|
24
24
|
t[`tedi-button-group--${c}`],
|
|
25
25
|
{
|
|
@@ -30,24 +30,28 @@ const A = (d) => {
|
|
|
30
30
|
role: "group",
|
|
31
31
|
"aria-label": b,
|
|
32
32
|
children: [
|
|
33
|
-
p && /* @__PURE__ */ i("div", { className:
|
|
33
|
+
p && /* @__PURE__ */ i("div", { className: s(t["tedi-button-group__prefix"], _), children: /* @__PURE__ */ i("span", { children: p }) }),
|
|
34
34
|
h.map(u, (r) => {
|
|
35
35
|
if (v(r) && r.type === y) {
|
|
36
36
|
const e = r;
|
|
37
37
|
return C(e, {
|
|
38
|
-
className:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
e.props.
|
|
38
|
+
className: s(
|
|
39
|
+
t["tedi-button-group__item"],
|
|
40
|
+
{
|
|
41
|
+
[t["tedi-button-group__item--active"]]: e.props.isActive,
|
|
42
|
+
[t["tedi-button-group__item--disabled"]]: e.props.disabled
|
|
43
|
+
},
|
|
44
|
+
e.props.className
|
|
45
|
+
),
|
|
46
|
+
onClick: (N) => {
|
|
47
|
+
var l, n;
|
|
48
|
+
e.props.disabled || ((n = (l = e.props).onClick) == null || n.call(l, N), o == null || o(e.props.id));
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
return r;
|
|
49
53
|
}),
|
|
50
|
-
a && /* @__PURE__ */ i("div", { className:
|
|
54
|
+
a && /* @__PURE__ */ i("div", { className: s(t["tedi-button-group__suffix"], x), children: /* @__PURE__ */ i("span", { children: a }) })
|
|
51
55
|
]
|
|
52
56
|
}
|
|
53
57
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../../../../external/classnames/index.cjs.js"),B=require("react"),S=require("../../../../tedi/components/base/icon/icon.cjs.js"),N=require("../../../../tedi/components/loaders/spinner/spinner.cjs.js"),O=require("../../../../tedi/components/buttons/button/button.cjs.js"),d=require("../map-dropdown/map-dropdown.cjs.js"),t=require("./map-button.module.scss.cjs.js"),l=require("../../../../tedi/components/overlays/tooltip/tooltip.cjs.js"),b=f=>{const{size:n="default",icon:r,selected:h=!1,className:x,children:u,hideLabel:c=!1,tooltipContent:p=u,dropdownItems:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../../../../external/classnames/index.cjs.js"),B=require("react"),S=require("../../../../tedi/components/base/icon/icon.cjs.js"),N=require("../../../../tedi/components/loaders/spinner/spinner.cjs.js"),O=require("../../../../tedi/components/buttons/button/button.cjs.js"),d=require("../map-dropdown/map-dropdown.cjs.js"),t=require("./map-button.module.scss.cjs.js"),l=require("../../../../tedi/components/overlays/tooltip/tooltip.cjs.js"),b=f=>{const{size:n="default",icon:r,selected:h=!1,className:x,children:u,hideLabel:c=!1,tooltipContent:p=u,dropdownItems:i,isActive:j,isHovered:g,underline:q,isLoading:s,...v}=f,[_,w]=B.useState(!1),D=h||_,M=m.default(t.default["tedi-map-button"],t.default[`tedi-map-button--${n}`],D&&t.default["tedi-map-button--selected"],i&&t.default["tedi-map-button--dropdown"],j&&t.default["tedi-map-button--is-active"],g&&t.default["tedi-map-button--is-hovered"],q&&t.default["tedi-map-button--underline"],s&&t.default["tedi-map-button--loading"],x),C=e.jsxs(e.Fragment,{children:[s?e.jsx(N.Spinner,{size:n==="small"?16:18,className:t.default["tedi-map-button__icon"]}):r&&e.jsx(S.Icon,{name:r,className:t.default["tedi-map-button__icon"],size:n==="small"?24:18}),!c&&e.jsx("div",{className:m.default(t.default["tedi-map-button__text"]),children:u})]}),a=e.jsx(O.Button,{noStyle:!0,isLoading:s,className:M,size:n,...v,children:C}),T=c&&p?e.jsxs(l.Tooltip,{placement:"right",children:[e.jsx(l.Tooltip.Trigger,{children:a}),e.jsx(l.Tooltip.Content,{children:p})]}):a;return i?e.jsxs(d.MapDropdown,{onOpenChange:w,placement:"right-start",children:[e.jsx(d.MapDropdown.Trigger,{children:a}),e.jsx(d.MapDropdown.Content,{items:i.map(o=>({children:o.children,onClick:o.onClick,isActive:o.isActive,isDisabled:o.isDisabled}))})]}):T};exports.MapButton=b;exports.default=b;
|
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import b from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Spinner as
|
|
6
|
-
import { Button as
|
|
3
|
+
import { useState as A } from "react";
|
|
4
|
+
import { Icon as I } from "../../../../tedi/components/base/icon/icon.es.js";
|
|
5
|
+
import { Spinner as M } from "../../../../tedi/components/loaders/spinner/spinner.es.js";
|
|
6
|
+
import { Button as O } from "../../../../tedi/components/buttons/button/button.es.js";
|
|
7
7
|
import { MapDropdown as l } from "../map-dropdown/map-dropdown.es.js";
|
|
8
8
|
import t from "./map-button.module.scss.es.js";
|
|
9
|
-
import { Tooltip as
|
|
9
|
+
import { Tooltip as d } from "../../../../tedi/components/overlays/tooltip/tooltip.es.js";
|
|
10
10
|
const q = (h) => {
|
|
11
11
|
const {
|
|
12
12
|
size: o = "default",
|
|
13
|
-
icon:
|
|
13
|
+
icon: m,
|
|
14
14
|
selected: f = !1,
|
|
15
15
|
className: g,
|
|
16
|
-
children:
|
|
17
|
-
hideLabel:
|
|
18
|
-
tooltipContent: u =
|
|
19
|
-
dropdownItems:
|
|
20
|
-
isActive:
|
|
21
|
-
isHovered:
|
|
22
|
-
underline:
|
|
23
|
-
isLoading:
|
|
24
|
-
...
|
|
25
|
-
} = h, [w, D] =
|
|
16
|
+
children: c,
|
|
17
|
+
hideLabel: p = !1,
|
|
18
|
+
tooltipContent: u = c,
|
|
19
|
+
dropdownItems: i,
|
|
20
|
+
isActive: v,
|
|
21
|
+
isHovered: C,
|
|
22
|
+
underline: N,
|
|
23
|
+
isLoading: s,
|
|
24
|
+
..._
|
|
25
|
+
} = h, [w, D] = A(!1), x = f || w, B = b(
|
|
26
26
|
t["tedi-map-button"],
|
|
27
27
|
t[`tedi-map-button--${o}`],
|
|
28
28
|
x && t["tedi-map-button--selected"],
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
i && t["tedi-map-button--dropdown"],
|
|
30
|
+
v && t["tedi-map-button--is-active"],
|
|
31
|
+
C && t["tedi-map-button--is-hovered"],
|
|
32
|
+
N && t["tedi-map-button--underline"],
|
|
33
|
+
s && t["tedi-map-button--loading"],
|
|
34
34
|
g
|
|
35
35
|
), S = /* @__PURE__ */ a(z, { children: [
|
|
36
|
-
|
|
37
|
-
!
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ e(
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
] }) :
|
|
42
|
-
return
|
|
43
|
-
/* @__PURE__ */ e(l.Trigger, { children:
|
|
36
|
+
s ? /* @__PURE__ */ e(M, { size: o === "small" ? 16 : 18, className: t["tedi-map-button__icon"] }) : m && /* @__PURE__ */ e(I, { name: m, className: t["tedi-map-button__icon"], size: o === "small" ? 24 : 18 }),
|
|
37
|
+
!p && /* @__PURE__ */ e("div", { className: b(t["tedi-map-button__text"]), children: c })
|
|
38
|
+
] }), r = /* @__PURE__ */ e(O, { noStyle: !0, isLoading: s, className: B, size: o, ..._, children: S }), T = p && u ? /* @__PURE__ */ a(d, { placement: "right", children: [
|
|
39
|
+
/* @__PURE__ */ e(d.Trigger, { children: r }),
|
|
40
|
+
/* @__PURE__ */ e(d.Content, { children: u })
|
|
41
|
+
] }) : r;
|
|
42
|
+
return i ? /* @__PURE__ */ a(l, { onOpenChange: D, placement: "right-start", children: [
|
|
43
|
+
/* @__PURE__ */ e(l.Trigger, { children: r }),
|
|
44
44
|
/* @__PURE__ */ e(
|
|
45
45
|
l.Content,
|
|
46
46
|
{
|
|
47
|
-
items:
|
|
48
|
-
children:
|
|
49
|
-
onClick:
|
|
50
|
-
|
|
47
|
+
items: i.map((n) => ({
|
|
48
|
+
children: n.children,
|
|
49
|
+
onClick: n.onClick,
|
|
50
|
+
isActive: n.isActive,
|
|
51
|
+
isDisabled: n.isDisabled
|
|
51
52
|
}))
|
|
52
53
|
}
|
|
53
54
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("react/jsx-runtime"),t=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),n=require("react"),X=require("./overlay-content.cjs.js"),Y=require("./overlay-trigger.cjs.js"),Z=require("../../../helpers/hooks/use-is-touch-device.cjs.js"),$=require("../../../helpers/hooks/use-is-mounted.cjs.js"),S=require("../../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),i=require("../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),D=3,E=n.createContext({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0,contentId:""}),u=H=>{const L=Z.useIsTouchDevice(),{children:W,placement:A="top",openWith:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("react/jsx-runtime"),t=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),n=require("react"),X=require("./overlay-content.cjs.js"),Y=require("./overlay-trigger.cjs.js"),Z=require("../../../helpers/hooks/use-is-touch-device.cjs.js"),$=require("../../../helpers/hooks/use-is-mounted.cjs.js"),S=require("../../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),i=require("../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),D=3,E=n.createContext({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0,contentId:""}),u=H=>{const L=Z.useIsTouchDevice(),{children:W,placement:A="top",openWith:r=L?"click":"hover",defaultOpen:G=!1,open:a,onToggle:s,role:d="tooltip",ariaHidden:f=!1,arrowDimensions:e,offset:V=D+((e==null?void 0:e.height)??0),arrowPadding:z=4,focusManager:g,dismissible:O,scrollLock:M,trackReferencePosition:B=!1}=H,{order:m=["reference","content"],initialFocus:x,modal:p,...C}=g??{},F=x!==void 0?x:p?0:void 0,[P,R]=n.useState(G),h=n.useRef(null),b=$.useIsMounted(),v=n.useMemo(()=>s&&typeof a<"u"?a:P,[s,a,P]),y=n.useCallback(l=>{typeof a>"u"&&R(l),s==null||s(l)},[a,R,s]),{x:q,y:I,refs:c,strategy:k,context:o,middlewareData:w,placement:T}=t.useFloating({placement:A,open:v,onOpenChange:y,middleware:[i.offset(V),i.flip(),i.shift({padding:8}),i.arrow({element:h,padding:z})],whileElementsMounted:B?(l,K,N)=>S.autoUpdate(l,K,N,{animationFrame:!0}):S.autoUpdate}),{getReferenceProps:U,getFloatingProps:_}=t.useInteractions([t.useHover(o,{enabled:r==="hover",handleClose:t.safePolygon()}),t.useClick(o,{enabled:r==="click",toggle:O}),t.useFocus(o,{enabled:r==="hover"}),t.useRole(o,{role:d,enabled:!f}),t.useDismiss(o,{enabled:O,outsidePressEvent:r==="click"?"mousedown":"pointerdown"})]),j=n.useId(),J=n.useMemo(()=>({open:v,onOpenChange:y,isMounted:b,openWith:r,focusManager:g?{order:m,modal:p,initialFocus:F,...C}:void 0,reference:c.setReference,floating:c.setFloating,arrowRef:h,x:q,y:I,strategy:k,getReferenceProps:U,getFloatingProps:_,arrow:{width:e==null?void 0:e.width,height:e==null?void 0:e.height,...w.arrow},context:o,placement:T,scrollLock:M,role:d,ariaHidden:f,contentId:j}),[v,y,b,r,g,c.setReference,c.setFloating,h,q,I,k,U,_,e==null?void 0:e.width,e==null?void 0:e.height,w.arrow,o,T,M,d,f,j,p,m,F,C]);return Q.jsx(E.Provider,{value:J,children:W})};u.Trigger=Y.OverlayTrigger;u.Content=X.OverlayContent;exports.Overlay=u;exports.OverlayContext=E;exports.default=u;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
2
|
import { useFloating as N, useInteractions as Q, useHover as X, safePolygon as Y, useClick as Z, useFocus as _, useRole as $, useDismiss as D } from "../../../../../external/@floating-ui/react/dist/floating-ui.react.es.js";
|
|
3
3
|
import { useState as ee, useRef as te, useMemo as E, useCallback as oe, useId as ne, createContext as re } from "react";
|
|
4
|
-
import { OverlayContent as
|
|
5
|
-
import { OverlayTrigger as
|
|
4
|
+
import { OverlayContent as ae } from "./overlay-content.es.js";
|
|
5
|
+
import { OverlayTrigger as se } from "./overlay-trigger.es.js";
|
|
6
6
|
import { useIsTouchDevice as le } from "../../../helpers/hooks/use-is-touch-device.es.js";
|
|
7
7
|
import { useIsMounted as ce } from "../../../helpers/hooks/use-is-mounted.es.js";
|
|
8
8
|
import { autoUpdate as H } from "../../../../../external/@floating-ui/dom/dist/floating-ui.dom.es.js";
|
|
@@ -39,10 +39,10 @@ const pe = 3, ge = re({
|
|
|
39
39
|
const j = le(), {
|
|
40
40
|
children: A,
|
|
41
41
|
placement: G = "top",
|
|
42
|
-
openWith:
|
|
42
|
+
openWith: o = j ? "click" : "hover",
|
|
43
43
|
defaultOpen: S = !1,
|
|
44
44
|
open: r,
|
|
45
|
-
onToggle:
|
|
45
|
+
onToggle: n,
|
|
46
46
|
role: l = "tooltip",
|
|
47
47
|
ariaHidden: c = !1,
|
|
48
48
|
arrowDimensions: e,
|
|
@@ -52,12 +52,12 @@ const pe = 3, ge = re({
|
|
|
52
52
|
dismissible: g,
|
|
53
53
|
scrollLock: h,
|
|
54
54
|
trackReferencePosition: q = !1
|
|
55
|
-
} = W, { order: m = ["reference", "content"], initialFocus: v, modal: f, ...y } = i ?? {}, O = v !== void 0 ? v : f ? 0 : void 0, [x, F] = ee(S), d = te(null), P = ce(), u = E(() =>
|
|
56
|
-
(
|
|
57
|
-
typeof r > "u" && F(
|
|
55
|
+
} = W, { order: m = ["reference", "content"], initialFocus: v, modal: f, ...y } = i ?? {}, O = v !== void 0 ? v : f ? 0 : void 0, [x, F] = ee(S), d = te(null), P = ce(), u = E(() => n && typeof r < "u" ? r : x, [n, r, x]), p = oe(
|
|
56
|
+
(s) => {
|
|
57
|
+
typeof r > "u" && F(s), n == null || n(s);
|
|
58
58
|
},
|
|
59
|
-
[r, F,
|
|
60
|
-
), { x: C, y: M, refs:
|
|
59
|
+
[r, F, n]
|
|
60
|
+
), { x: C, y: M, refs: a, strategy: R, context: t, middlewareData: b, placement: k } = N({
|
|
61
61
|
placement: G,
|
|
62
62
|
open: u,
|
|
63
63
|
onOpenChange: p,
|
|
@@ -70,50 +70,51 @@ const pe = 3, ge = re({
|
|
|
70
70
|
padding: V
|
|
71
71
|
})
|
|
72
72
|
],
|
|
73
|
-
whileElementsMounted: q ? (
|
|
74
|
-
}), { getReferenceProps:
|
|
73
|
+
whileElementsMounted: q ? (s, B, J) => H(s, B, J, { animationFrame: !0 }) : H
|
|
74
|
+
}), { getReferenceProps: w, getFloatingProps: I } = Q([
|
|
75
75
|
X(t, {
|
|
76
|
-
enabled:
|
|
76
|
+
enabled: o === "hover",
|
|
77
77
|
handleClose: Y()
|
|
78
78
|
}),
|
|
79
79
|
Z(t, {
|
|
80
|
+
enabled: o === "click",
|
|
80
81
|
toggle: g
|
|
81
82
|
}),
|
|
82
83
|
_(t, {
|
|
83
|
-
enabled:
|
|
84
|
+
enabled: o === "hover"
|
|
84
85
|
}),
|
|
85
86
|
$(t, { role: l, enabled: !c }),
|
|
86
87
|
D(t, {
|
|
87
88
|
enabled: g,
|
|
88
|
-
outsidePressEvent:
|
|
89
|
+
outsidePressEvent: o === "click" ? "mousedown" : "pointerdown"
|
|
89
90
|
})
|
|
90
91
|
]), T = ne(), z = E(
|
|
91
92
|
() => ({
|
|
92
93
|
open: u,
|
|
93
94
|
onOpenChange: p,
|
|
94
95
|
isMounted: P,
|
|
95
|
-
openWith:
|
|
96
|
+
openWith: o,
|
|
96
97
|
focusManager: i ? {
|
|
97
98
|
order: m,
|
|
98
99
|
modal: f,
|
|
99
100
|
initialFocus: O,
|
|
100
101
|
...y
|
|
101
102
|
} : void 0,
|
|
102
|
-
reference:
|
|
103
|
-
floating:
|
|
103
|
+
reference: a.setReference,
|
|
104
|
+
floating: a.setFloating,
|
|
104
105
|
arrowRef: d,
|
|
105
106
|
x: C,
|
|
106
107
|
y: M,
|
|
107
108
|
strategy: R,
|
|
108
|
-
getReferenceProps:
|
|
109
|
+
getReferenceProps: w,
|
|
109
110
|
getFloatingProps: I,
|
|
110
111
|
arrow: {
|
|
111
112
|
width: e == null ? void 0 : e.width,
|
|
112
113
|
height: e == null ? void 0 : e.height,
|
|
113
|
-
...
|
|
114
|
+
...b.arrow
|
|
114
115
|
},
|
|
115
116
|
context: t,
|
|
116
|
-
placement:
|
|
117
|
+
placement: k,
|
|
117
118
|
scrollLock: h,
|
|
118
119
|
role: l,
|
|
119
120
|
ariaHidden: c,
|
|
@@ -123,21 +124,21 @@ const pe = 3, ge = re({
|
|
|
123
124
|
u,
|
|
124
125
|
p,
|
|
125
126
|
P,
|
|
126
|
-
|
|
127
|
+
o,
|
|
127
128
|
i,
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
a.setReference,
|
|
130
|
+
a.setFloating,
|
|
130
131
|
d,
|
|
131
132
|
C,
|
|
132
133
|
M,
|
|
133
134
|
R,
|
|
134
|
-
|
|
135
|
+
w,
|
|
135
136
|
I,
|
|
136
137
|
e == null ? void 0 : e.width,
|
|
137
138
|
e == null ? void 0 : e.height,
|
|
138
|
-
|
|
139
|
+
b.arrow,
|
|
139
140
|
t,
|
|
140
|
-
|
|
141
|
+
k,
|
|
141
142
|
h,
|
|
142
143
|
l,
|
|
143
144
|
c,
|
|
@@ -150,8 +151,8 @@ const pe = 3, ge = re({
|
|
|
150
151
|
);
|
|
151
152
|
return /* @__PURE__ */ K(ge.Provider, { value: z, children: A });
|
|
152
153
|
};
|
|
153
|
-
L.Trigger =
|
|
154
|
-
L.Content =
|
|
154
|
+
L.Trigger = se;
|
|
155
|
+
L.Content = ae;
|
|
155
156
|
export {
|
|
156
157
|
L as Overlay,
|
|
157
158
|
ge as OverlayContext,
|