@pismo/marola 2.1.18 → 2.1.20

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.
Files changed (54) hide show
  1. package/dist/{Button-Bh6rpTyY.js → Button-BrEDdtHO.js} +2 -2
  2. package/dist/{ClickAwayListener-BjqhGzJh.js → ClickAwayListener-Z08peX_P.js} +3 -3
  3. package/dist/{Popup-aWlctE1C.js → Popup-Dffqo7wT.js} +3 -3
  4. package/dist/{Portal-Dc9ej3DW.js → Portal-DJapUCn6.js} +14 -13
  5. package/dist/{RadioButton.module-VF7v9SuY.js → RadioButton.module-RTKWJmma.js} +1 -1
  6. package/dist/{Toggle-DPXiwAx3.js → Toggle-SlvGYQKW.js} +48 -46
  7. package/dist/assets/Draggable.css +1 -0
  8. package/dist/{combineHooksSlotProps-CNWfgylM.js → combineHooksSlotProps-BhQ14uyD.js} +5 -5
  9. package/dist/components/Autocomplete/Autocomplete.js +38 -38
  10. package/dist/components/Button/Button.js +1 -1
  11. package/dist/components/Chip/Chip.js +6 -3
  12. package/dist/components/DatePicker/DatePicker.js +4 -4
  13. package/dist/components/Dialog/CloseIconButton.js +1 -1
  14. package/dist/components/Dialog/Dialog.js +4 -4
  15. package/dist/components/Draggable/Draggable.d.ts +47 -0
  16. package/dist/components/Draggable/Draggable.js +151 -0
  17. package/dist/components/Draggable/Draggable.spec.d.ts +1 -0
  18. package/dist/components/Draggable/Draggable.stories.d.ts +44 -0
  19. package/dist/components/Draggable/useDraggable.d.ts +20 -0
  20. package/dist/components/Draggable/useDraggable.js +11 -0
  21. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
  22. package/dist/components/IconButton/IconButton.js +1 -1
  23. package/dist/components/Input/Input.js +1 -1
  24. package/dist/components/Popover/Popover.js +2 -2
  25. package/dist/components/RadioButton/RadioButton.js +17 -15
  26. package/dist/components/RadioButton/RadioOption.js +13 -12
  27. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  28. package/dist/components/RowItem/RowItem.js +5 -3
  29. package/dist/components/Select/Select.js +5 -5
  30. package/dist/components/Snackbar/Snackbar.js +3 -3
  31. package/dist/components/Tabs/Tab.js +3 -3
  32. package/dist/components/Tabs/TabPanel.js +1 -1
  33. package/dist/components/Tabs/Tabs.js +3 -3
  34. package/dist/components/Toggle/Toggle.js +1 -1
  35. package/dist/components/ToggleGroup/Toggle.js +4 -2
  36. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  37. package/dist/components/Tooltip/Tooltip.js +350 -119
  38. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
  39. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +3 -0
  40. package/dist/contexts/DraggableProvider/DraggableProvider.js +6 -0
  41. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  42. package/dist/exactProp-SYjL19cU.js +13 -0
  43. package/dist/{index-Bppuplgd.js → index-1UpBa69h.js} +1361 -1372
  44. package/dist/main.d.ts +6 -0
  45. package/dist/main.js +123 -102
  46. package/dist/{ownerDocument-CXvpb_nj.js → ownerDocument-By592Iy6.js} +1 -1
  47. package/dist/react-BvI-Sw9b.js +509 -0
  48. package/dist/{useButton-B8Y1xR88.js → useButton-CezPDte8.js} +6 -6
  49. package/dist/{useList-9gbS2r78.js → useList-nqLfZem8.js} +2 -2
  50. package/dist/{useSlotProps-C7dqSmdM.js → useSlotProps-CYHDC4TN.js} +2 -2
  51. package/dist/utils/draggable.d.ts +8 -0
  52. package/dist/utils/draggable.js +30 -0
  53. package/dist/utils/draggable.test.d.ts +1 -0
  54. package/package.json +4 -2
@@ -5,11 +5,11 @@ import { c as B } from "../../clsx-OuTLNxxd.js";
5
5
  import { T as G, u as J, s as Q } from "../../Tabs.module-DyJgAZt8.js";
6
6
  import { Tab as Ie } from "./Tab.js";
7
7
  import { TabPanel as Fe } from "./TabPanel.js";
8
- import { g as I, a as _, b as C, _ as F, c as $, d as N, e as w, P as t } from "../../useSlotProps-C7dqSmdM.js";
8
+ import { g as I, a as _, _ as C, b as F, c as $, d as N, e as w, P as t } from "../../useSlotProps-CYHDC4TN.js";
9
9
  import { a as M, C as O } from "../../useCompoundItem-B7Eo_qZk.js";
10
10
  import { u as X } from "../../useControlled-CCMYYdCM.js";
11
- import { L as Y, a as Z } from "../../combineHooksSlotProps-CNWfgylM.js";
12
- import { l as ee, m as te, u as oe } from "../../useList-9gbS2r78.js";
11
+ import { L as Y, a as Z } from "../../combineHooksSlotProps-BhQ14uyD.js";
12
+ import { l as ee, m as te, u as oe } from "../../useList-nqLfZem8.js";
13
13
  const k = "Tabs";
14
14
  function se(s) {
15
15
  return I(k, s);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as j, jsx as T } from "react/jsx-runtime";
2
2
  import { c as F } from "../../clsx-OuTLNxxd.js";
3
- import { u as E, b as y, g as v, a as U, _ as H, c as N, d as M, e as A, P as e } from "../../useSlotProps-C7dqSmdM.js";
3
+ import { u as E, _ as y, g as v, a as U, b as H, c as N, d as M, e as A, P as e } from "../../useSlotProps-CYHDC4TN.js";
4
4
  import * as V from "react";
5
5
  import { u as D } from "../../useControlled-CCMYYdCM.js";
6
6
  import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
@@ -6,9 +6,11 @@ import "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Avatar/Avatar.js";
8
8
  import "../Button/Button.js";
9
- import { T as k } from "../../Toggle-DPXiwAx3.js";
9
+ import { T as q } from "../../Toggle-SlvGYQKW.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
+ import "../../index-1UpBa69h.js";
13
+ import "../Draggable/useDraggable.js";
12
14
  import "../IconButton/IconButton.js";
13
15
  import "../InputSearch/InputSearch.js";
14
16
  import "../Select/Select.js";
@@ -18,5 +20,5 @@ import "../Tabs/Tabs.js";
18
20
  import "../../Group-DJz1rK2n.js";
19
21
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
20
22
  export {
21
- k as default
23
+ q as default
22
24
  };
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-DPXiwAx3.js";
1
+ import { T as e } from "../../Toggle-SlvGYQKW.js";
2
2
  import { G as p } from "../../Group-DJz1rK2n.js";
3
3
  export {
4
4
  p as ToggleGroup,
@@ -1,59 +1,285 @@
1
- import { jsx as i, jsxs as g, Fragment as R } from "react/jsx-runtime";
2
- import * as f from "react";
3
- import { useRef as T, useState as q, useEffect as E, isValidElement as O, cloneElement as V } from "react";
4
- import { T as z, P as D } from "../../Popup-aWlctE1C.js";
5
- import { c as A } from "../../clsx-OuTLNxxd.js";
6
- import { _ as F, b as I, P as c } from "../../useSlotProps-C7dqSmdM.js";
7
- import { C as L } from "../../ClickAwayListener-BjqhGzJh.js";
8
- import '../../assets/Tooltip.css';function W() {
9
- const p = f.useContext(z);
10
- if (!p)
1
+ import { jsx as x, jsxs as $, Fragment as et } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import { useRef as ot, useState as G, useEffect as J, isValidElement as nt, cloneElement as it } from "react";
4
+ import { T as rt, P as at } from "../../Popup-Dffqo7wT.js";
5
+ import { c as X } from "../../clsx-OuTLNxxd.js";
6
+ import { b as lt, _ as st, P as O } from "../../useSlotProps-CYHDC4TN.js";
7
+ import { C as ct } from "../../ClickAwayListener-Z08peX_P.js";
8
+ import '../../assets/Tooltip.css';function pt() {
9
+ const t = j.useContext(rt);
10
+ if (!t)
11
11
  throw new Error("Missing transition context");
12
12
  const {
13
- registerTransition: a,
14
- requestedEnter: h,
15
- onExited: e
16
- } = p;
17
- return f.useEffect(() => a(), [a]), {
18
- onExited: e,
19
- requestedEnter: h
13
+ registerTransition: e,
14
+ requestedEnter: i,
15
+ onExited: n
16
+ } = t;
17
+ return j.useEffect(() => e(), [e]), {
18
+ onExited: n,
19
+ requestedEnter: i
20
20
  };
21
21
  }
22
- const $ = ["children", "className", "enterAnimationName", "enterClassName", "exitAnimationName", "exitClassName"];
23
- function C(p) {
22
+ const ft = ["children", "className", "enterAnimationName", "enterClassName", "exitAnimationName", "exitClassName"];
23
+ function Y(t) {
24
24
  const {
25
- children: a,
26
- className: h,
27
- enterAnimationName: e,
28
- enterClassName: m,
29
- exitAnimationName: l,
30
- exitClassName: u
31
- } = p, y = F(p, $), {
32
- requestedEnter: s,
33
- onExited: o
34
- } = W(), r = f.useRef(!0);
35
- f.useEffect(() => {
36
- s && r.current && (r.current = !1);
37
- }, [s]);
38
- const d = f.useCallback((t) => {
39
- t.animationName === l ? (o(), r.current = !0) : t.animationName === e && (r.current = !1);
40
- }, [o, l, e]);
41
- return /* @__PURE__ */ i("div", I({
42
- onAnimationEnd: d,
43
- className: A(h, s ? m : u)
44
- }, y, {
45
- children: a
25
+ children: e,
26
+ className: i,
27
+ enterAnimationName: n,
28
+ enterClassName: r,
29
+ exitAnimationName: o,
30
+ exitClassName: l
31
+ } = t, s = lt(t, ft), {
32
+ requestedEnter: f,
33
+ onExited: c
34
+ } = pt(), m = j.useRef(!0);
35
+ j.useEffect(() => {
36
+ f && m.current && (m.current = !1);
37
+ }, [f]);
38
+ const g = j.useCallback((a) => {
39
+ a.animationName === o ? (c(), m.current = !0) : a.animationName === n && (m.current = !1);
40
+ }, [c, o, n]);
41
+ return /* @__PURE__ */ x("div", st({
42
+ onAnimationEnd: g,
43
+ className: X(i, f ? r : l)
44
+ }, s, {
45
+ children: e
46
46
  }));
47
47
  }
48
- process.env.NODE_ENV !== "production" && (C.propTypes = {
49
- children: c.node,
50
- className: c.string,
51
- enterAnimationName: c.string,
52
- enterClassName: c.string,
53
- exitAnimationName: c.string,
54
- exitClassName: c.string
48
+ process.env.NODE_ENV !== "production" && (Y.propTypes = {
49
+ children: O.node,
50
+ className: O.string,
51
+ enterAnimationName: O.string,
52
+ enterClassName: O.string,
53
+ exitAnimationName: O.string,
54
+ exitClassName: O.string
55
55
  });
56
- const B = "_tooltip_f9rcp_79", G = "_tooltip__container_f9rcp_125", J = "_tooltip__title_f9rcp_131", K = "_tooltip__content_f9rcp_138", Q = "_tooltip__footer_f9rcp_145", n = {
56
+ const mt = {
57
+ left: "right",
58
+ right: "left",
59
+ bottom: "top",
60
+ top: "bottom"
61
+ }, ut = {
62
+ start: "end",
63
+ end: "start"
64
+ };
65
+ function Z(t, e) {
66
+ return typeof t == "function" ? t(e) : t;
67
+ }
68
+ function F(t) {
69
+ return t.split("-")[0];
70
+ }
71
+ function H(t) {
72
+ return t.split("-")[1];
73
+ }
74
+ function _t(t) {
75
+ return t === "x" ? "y" : "x";
76
+ }
77
+ function ht(t) {
78
+ return t === "y" ? "height" : "width";
79
+ }
80
+ const gt = /* @__PURE__ */ new Set(["top", "bottom"]);
81
+ function M(t) {
82
+ return gt.has(F(t)) ? "y" : "x";
83
+ }
84
+ function dt(t) {
85
+ return _t(M(t));
86
+ }
87
+ function yt(t, e, i) {
88
+ i === void 0 && (i = !1);
89
+ const n = H(t), r = dt(t), o = ht(r);
90
+ let l = r === "x" ? n === (i ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
91
+ return e.reference[o] > e.floating[o] && (l = L(l)), [l, L(l)];
92
+ }
93
+ function xt(t) {
94
+ const e = L(t);
95
+ return [q(t), e, q(e)];
96
+ }
97
+ function q(t) {
98
+ return t.replace(/start|end/g, (e) => ut[e]);
99
+ }
100
+ const K = ["left", "right"], Q = ["right", "left"], bt = ["top", "bottom"], vt = ["bottom", "top"];
101
+ function wt(t, e, i) {
102
+ switch (t) {
103
+ case "top":
104
+ case "bottom":
105
+ return i ? e ? Q : K : e ? K : Q;
106
+ case "left":
107
+ case "right":
108
+ return e ? bt : vt;
109
+ default:
110
+ return [];
111
+ }
112
+ }
113
+ function At(t, e, i, n) {
114
+ const r = H(t);
115
+ let o = wt(F(t), i === "start", n);
116
+ return r && (o = o.map((l) => l + "-" + r), e && (o = o.concat(o.map(q)))), o;
117
+ }
118
+ function L(t) {
119
+ return t.replace(/left|right|bottom|top/g, (e) => mt[e]);
120
+ }
121
+ function Pt(t) {
122
+ return {
123
+ top: 0,
124
+ right: 0,
125
+ bottom: 0,
126
+ left: 0,
127
+ ...t
128
+ };
129
+ }
130
+ function Nt(t) {
131
+ return typeof t != "number" ? Pt(t) : {
132
+ top: t,
133
+ right: t,
134
+ bottom: t,
135
+ left: t
136
+ };
137
+ }
138
+ function U(t) {
139
+ const {
140
+ x: e,
141
+ y: i,
142
+ width: n,
143
+ height: r
144
+ } = t;
145
+ return {
146
+ width: n,
147
+ height: r,
148
+ top: i,
149
+ left: e,
150
+ right: e + n,
151
+ bottom: i + r,
152
+ x: e,
153
+ y: i
154
+ };
155
+ }
156
+ async function kt(t, e) {
157
+ var i;
158
+ e === void 0 && (e = {});
159
+ const {
160
+ x: n,
161
+ y: r,
162
+ platform: o,
163
+ rects: l,
164
+ elements: s,
165
+ strategy: f
166
+ } = t, {
167
+ boundary: c = "clippingAncestors",
168
+ rootBoundary: m = "viewport",
169
+ elementContext: g = "floating",
170
+ altBoundary: a = !1,
171
+ padding: S = 0
172
+ } = Z(e, t), p = Nt(S), b = s[a ? g === "floating" ? "reference" : "floating" : g], w = U(await o.getClippingRect({
173
+ element: (i = await (o.isElement == null ? void 0 : o.isElement(b))) == null || i ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
174
+ boundary: c,
175
+ rootBoundary: m,
176
+ strategy: f
177
+ })), v = g === "floating" ? {
178
+ x: n,
179
+ y: r,
180
+ width: l.floating.width,
181
+ height: l.floating.height
182
+ } : l.reference, P = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), d = await (o.isElement == null ? void 0 : o.isElement(P)) ? await (o.getScale == null ? void 0 : o.getScale(P)) || {
183
+ x: 1,
184
+ y: 1
185
+ } : {
186
+ x: 1,
187
+ y: 1
188
+ }, y = U(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
189
+ elements: s,
190
+ rect: v,
191
+ offsetParent: P,
192
+ strategy: f
193
+ }) : v);
194
+ return {
195
+ top: (w.top - y.top + p.top) / d.y,
196
+ bottom: (y.bottom - w.bottom + p.bottom) / d.y,
197
+ left: (w.left - y.left + p.left) / d.x,
198
+ right: (y.right - w.right + p.right) / d.x
199
+ };
200
+ }
201
+ const Ct = function(t) {
202
+ return t === void 0 && (t = {}), {
203
+ name: "flip",
204
+ options: t,
205
+ async fn(e) {
206
+ var i, n;
207
+ const {
208
+ placement: r,
209
+ middlewareData: o,
210
+ rects: l,
211
+ initialPlacement: s,
212
+ platform: f,
213
+ elements: c
214
+ } = e, {
215
+ mainAxis: m = !0,
216
+ crossAxis: g = !0,
217
+ fallbackPlacements: a,
218
+ fallbackStrategy: S = "bestFit",
219
+ fallbackAxisSideDirection: p = "none",
220
+ flipAlignment: C = !0,
221
+ ...b
222
+ } = Z(t, e);
223
+ if ((i = o.arrow) != null && i.alignmentOffset)
224
+ return {};
225
+ const w = F(r), v = M(s), P = F(s) === s, d = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), y = a || (P || !C ? [L(s)] : xt(s)), D = p !== "none";
226
+ !a && D && y.push(...At(s, C, p, d));
227
+ const V = [s, ...y], R = await kt(e, b), E = [];
228
+ let u = ((n = o.flip) == null ? void 0 : n.overflows) || [];
229
+ if (m && E.push(R[w]), g) {
230
+ const N = yt(r, l, d);
231
+ E.push(R[N[0]], R[N[1]]);
232
+ }
233
+ if (u = [...u, {
234
+ placement: r,
235
+ overflows: E
236
+ }], !E.every((N) => N <= 0)) {
237
+ var I, z;
238
+ const N = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, B = V[N];
239
+ if (B && (!(g === "alignment" ? v !== M(B) : !1) || // We leave the current main axis only if every placement on that axis
240
+ // overflows the main axis.
241
+ u.every((_) => _.overflows[0] > 0 && M(_.placement) === v)))
242
+ return {
243
+ data: {
244
+ index: N,
245
+ overflows: u
246
+ },
247
+ reset: {
248
+ placement: B
249
+ }
250
+ };
251
+ let T = (z = u.filter((k) => k.overflows[0] <= 0).sort((k, _) => k.overflows[1] - _.overflows[1])[0]) == null ? void 0 : z.placement;
252
+ if (!T)
253
+ switch (S) {
254
+ case "bestFit": {
255
+ var W;
256
+ const k = (W = u.filter((_) => {
257
+ if (D) {
258
+ const A = M(_.placement);
259
+ return A === v || // Create a bias to the `y` side axis due to horizontal
260
+ // reading directions favoring greater width.
261
+ A === "y";
262
+ }
263
+ return !0;
264
+ }).map((_) => [_.placement, _.overflows.filter((A) => A > 0).reduce((A, tt) => A + tt, 0)]).sort((_, A) => _[1] - A[1])[0]) == null ? void 0 : W[0];
265
+ k && (T = k);
266
+ break;
267
+ }
268
+ case "initialPlacement":
269
+ T = s;
270
+ break;
271
+ }
272
+ if (r !== T)
273
+ return {
274
+ reset: {
275
+ placement: T
276
+ }
277
+ };
278
+ }
279
+ return {};
280
+ }
281
+ };
282
+ }, Et = Ct, Ot = "_tooltip_f9rcp_79", St = "_tooltip__container_f9rcp_125", Rt = "_tooltip__title_f9rcp_131", Tt = "_tooltip__content_f9rcp_138", Mt = "_tooltip__footer_f9rcp_145", h = {
57
283
  "u-typography-h1": "_u-typography-h1_f9rcp_1",
58
284
  "u-typography-h2": "_u-typography-h2_f9rcp_8",
59
285
  "u-typography-h3": "_u-typography-h3_f9rcp_15",
@@ -69,15 +295,15 @@ const B = "_tooltip_f9rcp_79", G = "_tooltip__container_f9rcp_125", J = "_toolti
69
295
  "u-typography-base--strikethrough": "_u-typography-base--strikethrough_f9rcp_68",
70
296
  "u-typography-base--underlined": "_u-typography-base--underlined_f9rcp_71",
71
297
  "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_f9rcp_74",
72
- tooltip: B,
298
+ tooltip: Ot,
73
299
  "tooltip--bottom": "_tooltip--bottom_f9rcp_96",
74
300
  "tooltip--top": "_tooltip--top_f9rcp_103",
75
301
  "tooltip--right": "_tooltip--right_f9rcp_110",
76
302
  "tooltip--left": "_tooltip--left_f9rcp_117",
77
- tooltip__container: G,
78
- tooltip__title: J,
79
- tooltip__content: K,
80
- tooltip__footer: Q,
303
+ tooltip__container: St,
304
+ tooltip__title: Rt,
305
+ tooltip__content: Tt,
306
+ tooltip__footer: Mt,
81
307
  "tooltip__footer-button": "_tooltip__footer-button_f9rcp_149",
82
308
  "tooltip__footer-link": "_tooltip__footer-link_f9rcp_169",
83
309
  "s--animation": "_s--animation_f9rcp_180",
@@ -85,85 +311,90 @@ const B = "_tooltip_f9rcp_79", G = "_tooltip__container_f9rcp_125", J = "_toolti
85
311
  "tooltip--open-animation": "_tooltip--open-animation_f9rcp_1",
86
312
  "tooltip--anim-close": "_tooltip--anim-close_f9rcp_183",
87
313
  "tooltip--close-animation": "_tooltip--close-animation_f9rcp_1"
88
- }, ot = ({
89
- arialRole: p,
90
- children: a,
91
- className: h,
92
- disableHoverListener: e,
93
- onClose: m,
94
- position: l = "bottom",
95
- open: u,
96
- title: y,
97
- content: s,
98
- footer: o,
99
- onTargetCreated: r,
100
- ...d
314
+ }, $t = ({
315
+ arialRole: t,
316
+ children: e,
317
+ className: i,
318
+ disableHoverListener: n,
319
+ onClose: r,
320
+ position: o = "bottom",
321
+ open: l,
322
+ title: s,
323
+ content: f,
324
+ footer: c,
325
+ onTargetCreated: m,
326
+ ...g
101
327
  }) => {
102
- const t = T(null), [P, _] = q(u || !1);
103
- let N = P;
104
- E(() => {
105
- _(u || !1);
106
- }, [u]);
107
- const b = O(a) ? a : /* @__PURE__ */ i("span", { children: a });
108
- !s && s !== 0 && (N = !1);
109
- const v = () => {
110
- m == null || m(), !e && _(!1);
328
+ const a = ot(null), [S, p] = G(l || !1);
329
+ let C = S;
330
+ const [b, w] = G(o);
331
+ J(() => {
332
+ p(l || !1);
333
+ }, [l]);
334
+ const v = nt(e) ? e : /* @__PURE__ */ x("span", { children: e });
335
+ !f && f !== 0 && (C = !1);
336
+ const P = () => {
337
+ r == null || r(), !n && p(!1);
111
338
  };
112
- E(() => {
113
- if (t != null && t.current) {
114
- const j = t == null ? void 0 : t.current;
115
- r == null || r(j);
339
+ J(() => {
340
+ if (a != null && a.current) {
341
+ const u = a == null ? void 0 : a.current;
342
+ m == null || m(u);
116
343
  }
117
- }, [t, e]);
118
- const x = () => {
119
- e || _(!0);
120
- }, k = () => {
121
- e || _(!1);
122
- }, S = {
123
- padding: l.match(/(bottom|top)/) ? ".25rem 0" : "0 .25rem",
344
+ }, [a, n]);
345
+ const d = () => {
346
+ n || p(!0);
347
+ }, y = () => {
348
+ n || p(!1);
349
+ }, D = {
350
+ padding: b.match(/(bottom|top)/) ? ".25rem 0" : "0 .25rem",
124
351
  zIndex: 1
125
- }, w = A(n.tooltip, n[`tooltip--${l}`], h), M = {
126
- ...b.props,
127
- ref: t,
128
- onPointerEnter: e ? void 0 : () => _(!0),
129
- onPointerLeave: e ? void 0 : () => _(!1)
130
- };
131
- return /* @__PURE__ */ g(R, { children: [
132
- V(b, M),
133
- /* @__PURE__ */ i(
134
- D,
352
+ }, V = X(h.tooltip, h[`tooltip--${b}`], i), R = {
353
+ ...v.props,
354
+ ref: a,
355
+ onPointerEnter: n ? void 0 : () => p(!0),
356
+ onPointerLeave: n ? void 0 : () => p(!1)
357
+ }, E = () => ({
358
+ name: "currentPlacement",
359
+ fn: (u) => (w(u.placement), u)
360
+ });
361
+ return /* @__PURE__ */ $(et, { children: [
362
+ it(v, R),
363
+ /* @__PURE__ */ x(
364
+ at,
135
365
  {
136
366
  disablePortal: !0,
137
- ...d,
138
- open: N,
139
- anchor: t == null ? void 0 : t.current,
140
- style: S,
141
- role: p,
142
- placement: l,
143
- onPointerEnter: x,
144
- onPointerLeave: k,
367
+ ...g,
368
+ open: C,
369
+ anchor: a == null ? void 0 : a.current,
370
+ style: D,
371
+ role: t,
372
+ placement: b,
373
+ onPointerEnter: d,
374
+ onPointerLeave: y,
145
375
  "data-testid": "popup",
146
- children: /* @__PURE__ */ i(
147
- C,
376
+ middleware: [Et(), E()],
377
+ children: /* @__PURE__ */ x(
378
+ Y,
148
379
  {
149
- className: n["tooltip--animation"],
150
- enterClassName: n["tooltip--anim-open"],
151
- exitClassName: n["tooltip--anim-close"],
380
+ className: h["tooltip--animation"],
381
+ enterClassName: h["tooltip--anim-open"],
382
+ exitClassName: h["tooltip--anim-close"],
152
383
  enterAnimationName: "tooltip--open-animation",
153
384
  exitAnimationName: "tooltip--close-animation",
154
- children: /* @__PURE__ */ i("div", { className: w, onPointerEnter: x, onPointerLeave: k, children: /* @__PURE__ */ i(L, { onClickAway: v, children: /* @__PURE__ */ g("div", { className: n.tooltip__container, children: [
155
- y && /* @__PURE__ */ i("div", { className: n.tooltip__title, children: y }),
156
- /* @__PURE__ */ i("div", { className: n.tooltip__content, children: s }),
157
- o && /* @__PURE__ */ g("div", { className: n.tooltip__footer, children: [
158
- o.type === "button" && o.onClick && /* @__PURE__ */ i("button", { onClick: o.onClick, className: n["tooltip__footer-button"], children: o.label }),
159
- o.type === "link" && o.href && /* @__PURE__ */ i(
385
+ children: /* @__PURE__ */ x("div", { className: V, onPointerEnter: d, onPointerLeave: y, children: /* @__PURE__ */ x(ct, { onClickAway: P, children: /* @__PURE__ */ $("div", { className: h.tooltip__container, children: [
386
+ s && /* @__PURE__ */ x("div", { className: h.tooltip__title, children: s }),
387
+ /* @__PURE__ */ x("div", { className: h.tooltip__content, children: f }),
388
+ c && /* @__PURE__ */ $("div", { className: h.tooltip__footer, children: [
389
+ c.type === "button" && c.onClick && /* @__PURE__ */ x("button", { onClick: c.onClick, className: h["tooltip__footer-button"], children: c.label }),
390
+ c.type === "link" && c.href && /* @__PURE__ */ x(
160
391
  "a",
161
392
  {
162
- href: o.href,
163
- className: n["tooltip__footer-link"],
393
+ href: c.href,
394
+ className: h["tooltip__footer-link"],
164
395
  target: "_blank",
165
396
  rel: "noopener noreferrer",
166
- children: o.label
397
+ children: c.label
167
398
  }
168
399
  )
169
400
  ] })
@@ -175,5 +406,5 @@ const B = "_tooltip_f9rcp_79", G = "_tooltip__container_f9rcp_125", J = "_toolti
175
406
  ] });
176
407
  };
177
408
  export {
178
- ot as Tooltip
409
+ $t as Tooltip
179
410
  };
@@ -20,7 +20,7 @@ declare const meta: {
20
20
  open?: boolean | undefined;
21
21
  disableHoverListener?: boolean | undefined;
22
22
  onClose?: (() => void) | undefined;
23
- position?: import('@floating-ui/utils').Placement | undefined;
23
+ position?: import('@floating-ui/react-dom').Placement | undefined;
24
24
  arialRole?: import('react').AriaRole | undefined;
25
25
  className?: string | undefined;
26
26
  style?: import('react').CSSProperties | undefined;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export type DraggableProviderProps = React.PropsWithChildren;
3
+ export declare const DraggableProvider: ({ children }: DraggableProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { P as e } from "../../react-BvI-Sw9b.js";
3
+ const t = ({ children: r }) => /* @__PURE__ */ o(e, { children: r });
4
+ export {
5
+ t as DraggableProvider
6
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, jsxs as l, Fragment as g } from "react/jsx-runtime";
2
2
  import { createContext as p, useContext as f, useState as b, useCallback as k, createElement as C } from "react";
3
- import { r as v } from "../../index-Bppuplgd.js";
3
+ import { r as v } from "../../index-1UpBa69h.js";
4
4
  import { Snackbar as x } from "../../components/Snackbar/Snackbar.js";
5
5
  const o = p({
6
6
  showMessage: () => {
@@ -0,0 +1,13 @@
1
+ import { _ as n } from "./useSlotProps-CYHDC4TN.js";
2
+ const s = "exact-prop: ​";
3
+ function u(e) {
4
+ return process.env.NODE_ENV === "production" ? e : n({}, e, {
5
+ [s]: (o) => {
6
+ const t = Object.keys(o).filter((r) => !e.hasOwnProperty(r));
7
+ return t.length > 0 ? new Error(`The following props are not supported: ${t.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
8
+ }
9
+ });
10
+ }
11
+ export {
12
+ u as e
13
+ };