@tedi-design-system/react 16.0.0-rc.1 → 16.0.0-rc.11
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.cjs10.js +1 -1
- package/_virtual/index.cjs11.js +1 -1
- package/_virtual/index.cjs12.js +1 -1
- package/_virtual/index.cjs13.js +1 -1
- package/_virtual/index.cjs5.js +1 -1
- package/_virtual/index.cjs6.js +1 -1
- package/_virtual/index.cjs7.js +1 -1
- package/_virtual/index.cjs8.js +1 -1
- package/_virtual/index.cjs9.js +1 -1
- package/_virtual/index.es10.js +1 -1
- package/_virtual/index.es11.js +1 -1
- package/_virtual/index.es12.js +1 -1
- package/_virtual/index.es13.js +2 -4
- package/_virtual/index.es5.js +4 -2
- package/_virtual/index.es6.js +1 -1
- package/_virtual/index.es7.js +1 -1
- package/_virtual/index.es8.js +1 -1
- package/_virtual/index.es9.js +1 -1
- package/bundle-stats.html +1 -1
- package/external/@mui/system/colorManipulator.cjs.js +1 -1
- package/external/@mui/system/colorManipulator.es.js +2 -2
- package/external/@mui/system/createStyled.cjs.js +1 -1
- package/external/@mui/system/createStyled.es.js +6 -6
- package/external/@mui/system/useThemeWithoutDefault.cjs.js +1 -1
- package/external/@mui/system/useThemeWithoutDefault.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/index.css +1 -1
- package/package.json +2 -2
- package/src/tedi/components/buttons/button-content/button-content.cjs.js +1 -1
- package/src/tedi/components/buttons/button-content/button-content.es.js +54 -54
- package/src/tedi/components/buttons/button-content/button-content.module.scss.cjs.js +1 -1
- package/src/tedi/components/buttons/button-content/button-content.module.scss.es.js +2 -1
- package/src/tedi/components/buttons/button-group/button-group.cjs.js +1 -1
- package/src/tedi/components/buttons/button-group/button-group.d.ts +4 -0
- package/src/tedi/components/buttons/button-group/button-group.es.js +31 -22
- package/src/tedi/components/buttons/button-group/button-group.module.scss.cjs.js +1 -1
- package/src/tedi/components/buttons/button-group/button-group.module.scss.es.js +2 -0
- package/src/tedi/components/buttons/floating-button/floating-button.module.scss.cjs.js +1 -1
- package/src/tedi/components/buttons/floating-button/floating-button.module.scss.es.js +2 -1
- package/src/tedi/components/buttons/info-button/info-button.cjs.js +1 -1
- package/src/tedi/components/buttons/info-button/info-button.d.ts +4 -3
- package/src/tedi/components/buttons/info-button/info-button.es.js +17 -16
- package/src/tedi/components/form/checkbox/checkbox.cjs.js +1 -1
- package/src/tedi/components/form/checkbox/checkbox.es.js +61 -59
- package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.cjs.js +1 -1
- package/src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.es.js +61 -58
- package/src/tedi/components/form/choice-input.types.d.ts +5 -1
- package/src/tedi/components/form/form-label/form-label.d.ts +1 -1
- package/src/tedi/components/form/radio/radio.cjs.js +1 -1
- package/src/tedi/components/form/radio/radio.es.js +55 -53
- package/src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.d.ts +2 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.es.js +37 -35
- package/src/tedi/components/layout/sidenav/components/sidenav-item/sidenav-item.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-item/sidenav-item.es.js +20 -19
- package/src/tedi/components/layout/sidenav/sidenav.d.ts +2 -1
- package/src/tedi/components/notifications/alert/alert.cjs.js +1 -1
- package/src/tedi/components/notifications/alert/alert.d.ts +8 -1
- package/src/tedi/components/notifications/alert/alert.es.js +17 -15
- package/src/tedi/components/notifications/alert/alert.module.scss.cjs.js +1 -1
- package/src/tedi/components/notifications/alert/alert.module.scss.es.js +2 -0
- package/src/tedi/components/overlays/overlay/overlay-content.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay-content.es.js +13 -11
- package/src/tedi/components/overlays/overlay/overlay-trigger.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay-trigger.es.js +21 -17
- package/src/tedi/components/overlays/overlay/overlay.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay.d.ts +2 -0
- package/src/tedi/components/overlays/overlay/overlay.es.js +114 -88
- package/src/tedi/components/overlays/tooltip/tooltip.cjs.js +1 -1
- package/src/tedi/components/overlays/tooltip/tooltip.es.js +21 -14
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { OverlayContent as
|
|
5
|
-
import { OverlayTrigger as
|
|
6
|
-
import { autoUpdate as
|
|
7
|
-
import { offset as
|
|
8
|
-
import { useIsTouchDevice as
|
|
9
|
-
import { useIsMounted as
|
|
10
|
-
const
|
|
1
|
+
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
+
import { useFloating as V, useInteractions as q, useHover as z, useClick as B, useFocus as J, useRole as K, useDismiss as N, safePolygon as Q } from "../../../../../external/@floating-ui/react/dist/floating-ui.react.es.js";
|
|
3
|
+
import { createContext as X, useState as Y, useRef as Z, useMemo as T, useCallback as _, useId as $ } from "react";
|
|
4
|
+
import { OverlayContent as D } from "./overlay-content.es.js";
|
|
5
|
+
import { OverlayTrigger as ee } from "./overlay-trigger.es.js";
|
|
6
|
+
import { autoUpdate as te } from "../../../../../external/@floating-ui/dom/dist/floating-ui.dom.es.js";
|
|
7
|
+
import { offset as oe, flip as ne, shift as re, arrow as se } from "../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js";
|
|
8
|
+
import { useIsTouchDevice as ce } from "../../../helpers/hooks/use-is-touch-device.es.js";
|
|
9
|
+
import { useIsMounted as le } from "../../../helpers/hooks/use-is-mounted.es.js";
|
|
10
|
+
const ae = 3, ie = X({
|
|
11
11
|
open: !1,
|
|
12
12
|
onOpenChange: () => {
|
|
13
13
|
},
|
|
@@ -33,96 +33,122 @@ const se = 3, ae = K({
|
|
|
33
33
|
},
|
|
34
34
|
placement: "top",
|
|
35
35
|
context: {},
|
|
36
|
-
scrollLock: void 0
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
scrollLock: void 0,
|
|
37
|
+
contentId: ""
|
|
38
|
+
}), E = (L) => {
|
|
39
|
+
const W = ce(), {
|
|
40
|
+
children: j,
|
|
41
|
+
placement: A = "top",
|
|
42
|
+
openWith: n = W ? "click" : "hover",
|
|
43
|
+
defaultOpen: G = !1,
|
|
44
|
+
open: r,
|
|
45
|
+
onToggle: o,
|
|
46
|
+
role: c = "tooltip",
|
|
46
47
|
arrowDimensions: e,
|
|
47
|
-
offset:
|
|
48
|
-
focusManager:
|
|
49
|
-
dismissible:
|
|
50
|
-
scrollLock:
|
|
51
|
-
} =
|
|
52
|
-
(
|
|
53
|
-
typeof
|
|
48
|
+
offset: H = ae + ((e == null ? void 0 : e.height) ?? 0),
|
|
49
|
+
focusManager: l,
|
|
50
|
+
dismissible: d,
|
|
51
|
+
scrollLock: p
|
|
52
|
+
} = L, { order: g = ["reference", "content"], initialFocus: h, modal: a, ...m } = l ?? {}, v = h !== void 0 ? h : a ? 0 : void 0, [y, O] = Y(G), i = Z(null), x = le(), f = T(() => o && typeof r < "u" ? r : y, [o, r, y]), u = _(
|
|
53
|
+
(k) => {
|
|
54
|
+
typeof r > "u" && O(k), o == null || o(k);
|
|
54
55
|
},
|
|
55
|
-
[
|
|
56
|
-
), { x:
|
|
57
|
-
placement:
|
|
58
|
-
open:
|
|
59
|
-
onOpenChange:
|
|
56
|
+
[r, O, o]
|
|
57
|
+
), { x: F, y: C, refs: s, strategy: M, context: t, middlewareData: P, placement: R } = V({
|
|
58
|
+
placement: A,
|
|
59
|
+
open: f,
|
|
60
|
+
onOpenChange: u,
|
|
60
61
|
middleware: [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
element:
|
|
62
|
+
oe(H),
|
|
63
|
+
ne(),
|
|
64
|
+
re({ padding: 8 }),
|
|
65
|
+
se({
|
|
66
|
+
element: i,
|
|
66
67
|
padding: 4
|
|
67
68
|
})
|
|
68
69
|
],
|
|
69
|
-
whileElementsMounted:
|
|
70
|
-
}), { getReferenceProps:
|
|
71
|
-
|
|
72
|
-
enabled:
|
|
73
|
-
handleClose:
|
|
70
|
+
whileElementsMounted: te
|
|
71
|
+
}), { getReferenceProps: w, getFloatingProps: I } = q([
|
|
72
|
+
z(t, {
|
|
73
|
+
enabled: n === "hover",
|
|
74
|
+
handleClose: Q()
|
|
74
75
|
}),
|
|
75
|
-
|
|
76
|
-
toggle:
|
|
76
|
+
B(t, {
|
|
77
|
+
toggle: d
|
|
77
78
|
}),
|
|
78
|
-
|
|
79
|
-
enabled:
|
|
79
|
+
J(t, {
|
|
80
|
+
enabled: n === "hover"
|
|
80
81
|
}),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
enabled:
|
|
84
|
-
outsidePressEvent:
|
|
82
|
+
K(t, { role: c }),
|
|
83
|
+
N(t, {
|
|
84
|
+
enabled: d,
|
|
85
|
+
outsidePressEvent: n === "click" ? "mousedown" : "pointerdown"
|
|
85
86
|
})
|
|
86
|
-
])
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
arrow
|
|
110
|
-
width: e == null ? void 0 : e.width,
|
|
111
|
-
height: e == null ? void 0 : e.height,
|
|
112
|
-
...L.arrow
|
|
113
|
-
},
|
|
114
|
-
context: o,
|
|
115
|
-
placement: W,
|
|
116
|
-
scrollLock: M
|
|
87
|
+
]), b = $(), S = T(
|
|
88
|
+
() => ({
|
|
89
|
+
open: f,
|
|
90
|
+
onOpenChange: u,
|
|
91
|
+
isMounted: x,
|
|
92
|
+
openWith: n,
|
|
93
|
+
focusManager: l ? {
|
|
94
|
+
order: g,
|
|
95
|
+
modal: a,
|
|
96
|
+
initialFocus: v,
|
|
97
|
+
...m
|
|
98
|
+
} : void 0,
|
|
99
|
+
reference: s.setReference,
|
|
100
|
+
floating: s.setFloating,
|
|
101
|
+
arrowRef: i,
|
|
102
|
+
x: F,
|
|
103
|
+
y: C,
|
|
104
|
+
strategy: M,
|
|
105
|
+
getReferenceProps: w,
|
|
106
|
+
getFloatingProps: I,
|
|
107
|
+
arrow: {
|
|
108
|
+
width: e == null ? void 0 : e.width,
|
|
109
|
+
height: e == null ? void 0 : e.height,
|
|
110
|
+
...P.arrow
|
|
117
111
|
},
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
context: t,
|
|
113
|
+
placement: R,
|
|
114
|
+
scrollLock: p,
|
|
115
|
+
role: c,
|
|
116
|
+
contentId: b
|
|
117
|
+
}),
|
|
118
|
+
[
|
|
119
|
+
f,
|
|
120
|
+
u,
|
|
121
|
+
x,
|
|
122
|
+
n,
|
|
123
|
+
l,
|
|
124
|
+
s.setReference,
|
|
125
|
+
s.setFloating,
|
|
126
|
+
i,
|
|
127
|
+
F,
|
|
128
|
+
C,
|
|
129
|
+
M,
|
|
130
|
+
w,
|
|
131
|
+
I,
|
|
132
|
+
e == null ? void 0 : e.width,
|
|
133
|
+
e == null ? void 0 : e.height,
|
|
134
|
+
P.arrow,
|
|
135
|
+
t,
|
|
136
|
+
R,
|
|
137
|
+
p,
|
|
138
|
+
c,
|
|
139
|
+
b,
|
|
140
|
+
a,
|
|
141
|
+
g,
|
|
142
|
+
v,
|
|
143
|
+
m
|
|
144
|
+
]
|
|
120
145
|
);
|
|
146
|
+
return /* @__PURE__ */ U(ie.Provider, { value: S, children: j });
|
|
121
147
|
};
|
|
122
|
-
|
|
123
|
-
|
|
148
|
+
E.Trigger = ee;
|
|
149
|
+
E.Content = D;
|
|
124
150
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
151
|
+
E as Overlay,
|
|
152
|
+
ie as OverlayContext,
|
|
153
|
+
E as default
|
|
128
154
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("../overlay/overlay.cjs.js"),l=require("./tooltip-content.cjs.js"),u=require("./tooltip-trigger.cjs.js"),c=7,a=14,e=o=>{const{openWith:t="hover",focusManager:r,...n}=o;return i.jsx(s.Overlay,{arrowDimensions:{width:a,height:c},openWith:t,role:"tooltip",focusManager:{modal:!1,order:["reference","content"],returnFocus:!0,...r},...n})};e.Trigger=u.TooltipTrigger;e.Content=l.TooltipContent;exports.Tooltip=e;exports.default=e;
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Overlay as
|
|
3
|
-
import { TooltipContent as
|
|
4
|
-
import { TooltipTrigger as
|
|
5
|
-
const
|
|
6
|
-
const { openWith:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Overlay as s } from "../overlay/overlay.es.js";
|
|
3
|
+
import { TooltipContent as a } from "./tooltip-content.es.js";
|
|
4
|
+
import { TooltipTrigger as m } from "./tooltip-trigger.es.js";
|
|
5
|
+
const p = 7, c = 14, o = (r) => {
|
|
6
|
+
const { openWith: t = "hover", focusManager: e, ...n } = r;
|
|
7
|
+
return /* @__PURE__ */ i(
|
|
8
|
+
s,
|
|
9
9
|
{
|
|
10
10
|
arrowDimensions: {
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
11
|
+
width: c,
|
|
12
|
+
height: p
|
|
13
13
|
},
|
|
14
|
-
openWith:
|
|
15
|
-
|
|
14
|
+
openWith: t,
|
|
15
|
+
role: "tooltip",
|
|
16
|
+
focusManager: {
|
|
17
|
+
modal: !1,
|
|
18
|
+
order: ["reference", "content"],
|
|
19
|
+
returnFocus: !0,
|
|
20
|
+
...e
|
|
21
|
+
},
|
|
22
|
+
...n
|
|
16
23
|
}
|
|
17
24
|
);
|
|
18
25
|
};
|
|
19
|
-
o.Trigger =
|
|
20
|
-
o.Content =
|
|
26
|
+
o.Trigger = m;
|
|
27
|
+
o.Content = a;
|
|
21
28
|
export {
|
|
22
29
|
o as Tooltip,
|
|
23
30
|
o as default
|