@vkzstudio/muza-ui 1.0.9 → 1.0.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.
Files changed (148) hide show
  1. package/dist/components/Button/Button.d.ts +2 -1
  2. package/dist/components/Button/Button.d.ts.map +1 -1
  3. package/dist/components/Button/Button.js +58 -55
  4. package/dist/components/Button/Button.stories.d.ts +2 -1
  5. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  6. package/dist/components/Button/buttonVariants.d.ts +1 -1
  7. package/dist/components/Button/buttonVariants.d.ts.map +1 -1
  8. package/dist/components/Button/buttonVariants.js +6 -2
  9. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  10. package/dist/components/DataTable/DataTable.js +5 -4
  11. package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
  12. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  13. package/dist/components/Icons/CustomIcons.d.ts +1 -0
  14. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  15. package/dist/components/Icons/CustomIcons.js +38 -27
  16. package/dist/components/Reorderable/Reorderable.d.ts +2 -0
  17. package/dist/components/Reorderable/Reorderable.d.ts.map +1 -1
  18. package/dist/components/Reorderable/Reorderable.js +80 -78
  19. package/dist/components/ReorderableTable/ReorderableTable.d.ts.map +1 -1
  20. package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -1
  21. package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
  22. package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
  23. package/dist/components/TextEditor/EditorToolbar.js +175 -0
  24. package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
  25. package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
  26. package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
  27. package/dist/components/TextEditor/TextEditor.d.ts +134 -0
  28. package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
  29. package/dist/components/TextEditor/TextEditor.js +240 -0
  30. package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
  31. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
  32. package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
  33. package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
  34. package/dist/components/TextEditor/ToolbarButton.js +68 -0
  35. package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
  36. package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
  37. package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
  38. package/dist/components/TextEditor/index.d.ts +4 -0
  39. package/dist/components/TextEditor/index.d.ts.map +1 -0
  40. package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
  41. package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
  42. package/dist/components/TextEditor/useLinkEditor.js +32 -0
  43. package/dist/components/index.d.ts +1 -0
  44. package/dist/components/index.d.ts.map +1 -1
  45. package/dist/index.js +140 -132
  46. package/dist/muza-ui.css +1 -1
  47. package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
  48. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
  49. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
  50. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
  51. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
  52. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
  53. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
  54. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
  55. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
  56. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
  57. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
  58. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
  59. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
  60. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
  61. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
  62. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
  63. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
  64. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
  65. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
  66. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
  67. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
  68. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
  69. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
  70. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
  71. package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
  72. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
  73. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
  74. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
  75. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
  76. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
  77. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
  78. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
  79. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
  80. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
  81. package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
  82. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
  83. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
  84. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
  85. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
  86. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
  87. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
  88. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
  89. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
  90. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
  91. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
  92. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
  93. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
  94. package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
  95. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
  96. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
  97. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
  98. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
  99. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
  100. package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
  101. package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
  102. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
  103. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
  104. package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
  105. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
  106. package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
  107. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
  108. package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
  109. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
  110. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
  111. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
  112. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
  113. package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
  114. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
  115. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
  116. package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
  117. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
  118. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
  119. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
  120. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
  121. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
  122. package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
  123. package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
  124. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
  125. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  126. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  127. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  128. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  129. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  130. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  131. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  132. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  133. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  134. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  135. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  136. package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
  137. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  138. package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
  139. package/dist/node_modules/w3c-keyname/index.js +93 -0
  140. package/dist/translations/locales/cs.d.ts.map +1 -1
  141. package/dist/translations/locales/cs.js +18 -0
  142. package/dist/translations/locales/en.d.ts.map +1 -1
  143. package/dist/translations/locales/en.js +18 -0
  144. package/dist/translations/locales/sk.d.ts.map +1 -1
  145. package/dist/translations/locales/sk.js +18 -0
  146. package/dist/translations/types.d.ts +22 -0
  147. package/dist/translations/types.d.ts.map +1 -1
  148. package/package.json +17 -1
@@ -0,0 +1,122 @@
1
+ import R from "./dom-utils/getCompositeRect.js";
2
+ import w from "./dom-utils/getLayoutRect.js";
3
+ import b from "./dom-utils/listScrollParents.js";
4
+ import B from "./dom-utils/getOffsetParent.js";
5
+ import L from "./utils/orderModifiers.js";
6
+ import N from "./utils/debounce.js";
7
+ import S from "./utils/mergeByName.js";
8
+ import { isElement as T } from "./dom-utils/instanceOf.js";
9
+ var U = {
10
+ placement: "bottom",
11
+ modifiers: [],
12
+ strategy: "absolute"
13
+ };
14
+ function F() {
15
+ for (var a = arguments.length, c = new Array(a), n = 0; n < a; n++)
16
+ c[n] = arguments[n];
17
+ return !c.some(function(m) {
18
+ return !(m && typeof m.getBoundingClientRect == "function");
19
+ });
20
+ }
21
+ function J(a) {
22
+ a === void 0 && (a = {});
23
+ var c = a, n = c.defaultModifiers, m = n === void 0 ? [] : n, M = c.defaultOptions, v = M === void 0 ? U : M;
24
+ return function(p, g, u) {
25
+ u === void 0 && (u = v);
26
+ var e = {
27
+ placement: "bottom",
28
+ orderedModifiers: [],
29
+ options: Object.assign({}, U, v),
30
+ modifiersData: {},
31
+ elements: {
32
+ reference: p,
33
+ popper: g
34
+ },
35
+ attributes: {},
36
+ styles: {}
37
+ }, y = [], E = !1, i = {
38
+ state: e,
39
+ setOptions: function(r) {
40
+ var f = typeof r == "function" ? r(e.options) : r;
41
+ h(), e.options = Object.assign({}, v, e.options, f), e.scrollParents = {
42
+ reference: T(p) ? b(p) : p.contextElement ? b(p.contextElement) : [],
43
+ popper: b(g)
44
+ };
45
+ var s = L(S([].concat(m, e.options.modifiers)));
46
+ return e.orderedModifiers = s.filter(function(o) {
47
+ return o.enabled;
48
+ }), D(), i.update();
49
+ },
50
+ // Sync update – it will always be executed, even if not necessary. This
51
+ // is useful for low frequency updates where sync behavior simplifies the
52
+ // logic.
53
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
54
+ // prefer the async Popper#update method
55
+ forceUpdate: function() {
56
+ if (!E) {
57
+ var r = e.elements, f = r.reference, s = r.popper;
58
+ if (F(f, s)) {
59
+ e.rects = {
60
+ reference: R(f, B(s), e.options.strategy === "fixed"),
61
+ popper: w(s)
62
+ }, e.reset = !1, e.placement = e.options.placement, e.orderedModifiers.forEach(function(P) {
63
+ return e.modifiersData[P.name] = Object.assign({}, P.data);
64
+ });
65
+ for (var o = 0; o < e.orderedModifiers.length; o++) {
66
+ if (e.reset === !0) {
67
+ e.reset = !1, o = -1;
68
+ continue;
69
+ }
70
+ var d = e.orderedModifiers[o], l = d.fn, O = d.options, j = O === void 0 ? {} : O, C = d.name;
71
+ typeof l == "function" && (e = l({
72
+ state: e,
73
+ options: j,
74
+ name: C,
75
+ instance: i
76
+ }) || e);
77
+ }
78
+ }
79
+ }
80
+ },
81
+ // Async and optimistically optimized update – it will not be executed if
82
+ // not necessary (debounced to run at most once-per-tick)
83
+ update: N(function() {
84
+ return new Promise(function(t) {
85
+ i.forceUpdate(), t(e);
86
+ });
87
+ }),
88
+ destroy: function() {
89
+ h(), E = !0;
90
+ }
91
+ };
92
+ if (!F(p, g))
93
+ return i;
94
+ i.setOptions(u).then(function(t) {
95
+ !E && u.onFirstUpdate && u.onFirstUpdate(t);
96
+ });
97
+ function D() {
98
+ e.orderedModifiers.forEach(function(t) {
99
+ var r = t.name, f = t.options, s = f === void 0 ? {} : f, o = t.effect;
100
+ if (typeof o == "function") {
101
+ var d = o({
102
+ state: e,
103
+ name: r,
104
+ instance: i,
105
+ options: s
106
+ }), l = function() {
107
+ };
108
+ y.push(d || l);
109
+ }
110
+ });
111
+ }
112
+ function h() {
113
+ y.forEach(function(t) {
114
+ return t();
115
+ }), y = [];
116
+ }
117
+ return i;
118
+ };
119
+ }
120
+ export {
121
+ J as popperGenerator
122
+ };
@@ -0,0 +1,18 @@
1
+ import { isShadowRoot as a } from "./instanceOf.js";
2
+ function f(r, e) {
3
+ var t = e.getRootNode && e.getRootNode();
4
+ if (r.contains(e))
5
+ return !0;
6
+ if (t && a(t)) {
7
+ var o = e;
8
+ do {
9
+ if (o && r.isSameNode(o))
10
+ return !0;
11
+ o = o.parentNode || o.host;
12
+ } while (o);
13
+ }
14
+ return !1;
15
+ }
16
+ export {
17
+ f as default
18
+ };
@@ -0,0 +1,23 @@
1
+ import { isHTMLElement as u, isElement as n } from "./instanceOf.js";
2
+ import { round as g } from "../utils/math.js";
3
+ import l from "./getWindow.js";
4
+ import m from "./isLayoutViewport.js";
5
+ function R(t, f, r) {
6
+ f === void 0 && (f = !1), r === void 0 && (r = !1);
7
+ var i = t.getBoundingClientRect(), h = 1, s = 1;
8
+ f && u(t) && (h = t.offsetWidth > 0 && g(i.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && g(i.height) / t.offsetHeight || 1);
9
+ var w = n(t) ? l(t) : window, o = w.visualViewport, d = !m() && r, a = (i.left + (d && o ? o.offsetLeft : 0)) / h, v = (i.top + (d && o ? o.offsetTop : 0)) / s, e = i.width / h, p = i.height / s;
10
+ return {
11
+ width: e,
12
+ height: p,
13
+ top: v,
14
+ right: a + e,
15
+ bottom: v + p,
16
+ left: a,
17
+ x: a,
18
+ y: v
19
+ };
20
+ }
21
+ export {
22
+ R as default
23
+ };
@@ -0,0 +1,37 @@
1
+ import { viewport as c } from "../enums.js";
2
+ import v from "./getViewportRect.js";
3
+ import C from "./getDocumentRect.js";
4
+ import x from "./listScrollParents.js";
5
+ import b from "./getOffsetParent.js";
6
+ import E from "./getDocumentElement.js";
7
+ import P from "./getComputedStyle.js";
8
+ import { isHTMLElement as w, isElement as m } from "./instanceOf.js";
9
+ import T from "./getBoundingClientRect.js";
10
+ import H from "./getParentNode.js";
11
+ import N from "./contains.js";
12
+ import y from "./getNodeName.js";
13
+ import l from "../utils/rectToClientRect.js";
14
+ import { max as u, min as a } from "../utils/math.js";
15
+ function B(i, r) {
16
+ var t = T(i, !1, r === "fixed");
17
+ return t.top = t.top + i.clientTop, t.left = t.left + i.clientLeft, t.bottom = t.top + i.clientHeight, t.right = t.left + i.clientWidth, t.width = i.clientWidth, t.height = i.clientHeight, t.x = t.left, t.y = t.top, t;
18
+ }
19
+ function d(i, r, t) {
20
+ return r === c ? l(v(i, t)) : m(r) ? B(r, t) : l(C(E(i)));
21
+ }
22
+ function D(i) {
23
+ var r = x(H(i)), t = ["absolute", "fixed"].indexOf(P(i).position) >= 0, e = t && w(i) ? b(i) : i;
24
+ return m(e) ? r.filter(function(p) {
25
+ return m(p) && N(p, e) && y(p) !== "body";
26
+ }) : [];
27
+ }
28
+ function J(i, r, t, e) {
29
+ var p = r === "clippingParents" ? D(i) : [].concat(r), g = [].concat(p, [t]), h = g[0], o = g.reduce(function(n, s) {
30
+ var f = d(i, s, e);
31
+ return n.top = u(f.top, n.top), n.right = a(f.right, n.right), n.bottom = a(f.bottom, n.bottom), n.left = u(f.left, n.left), n;
32
+ }, d(i, h, e));
33
+ return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
34
+ }
35
+ export {
36
+ J as default
37
+ };
@@ -0,0 +1,32 @@
1
+ import p from "./getBoundingClientRect.js";
2
+ import g from "./getNodeScroll.js";
3
+ import a from "./getNodeName.js";
4
+ import { isHTMLElement as n } from "./instanceOf.js";
5
+ import h from "./getWindowScrollBarX.js";
6
+ import u from "./getDocumentElement.js";
7
+ import s from "./isScrollParent.js";
8
+ import { round as d } from "../utils/math.js";
9
+ function v(e) {
10
+ var t = e.getBoundingClientRect(), o = d(t.width) / e.offsetWidth || 1, l = d(t.height) / e.offsetHeight || 1;
11
+ return o !== 1 || l !== 1;
12
+ }
13
+ function C(e, t, o) {
14
+ o === void 0 && (o = !1);
15
+ var l = n(t), f = n(t) && v(t), c = u(t), i = p(e, f, o), m = {
16
+ scrollLeft: 0,
17
+ scrollTop: 0
18
+ }, r = {
19
+ x: 0,
20
+ y: 0
21
+ };
22
+ return (l || !l && !o) && ((a(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
23
+ s(c)) && (m = g(t)), n(t) ? (r = p(t, !0), r.x += t.clientLeft, r.y += t.clientTop) : c && (r.x = h(c))), {
24
+ x: i.left + m.scrollLeft - r.x,
25
+ y: i.top + m.scrollTop - r.y,
26
+ width: i.width,
27
+ height: i.height
28
+ };
29
+ }
30
+ export {
31
+ C as default
32
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./getWindow.js";
2
+ function r(t) {
3
+ return e(t).getComputedStyle(t);
4
+ }
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,10 @@
1
+ import { isElement as n } from "./instanceOf.js";
2
+ function e(t) {
3
+ return ((n(t) ? t.ownerDocument : (
4
+ // $FlowFixMe[prop-missing]
5
+ t.document
6
+ )) || window.document).documentElement;
7
+ }
8
+ export {
9
+ e as default
10
+ };
@@ -0,0 +1,17 @@
1
+ import m from "./getDocumentElement.js";
2
+ import a from "./getComputedStyle.js";
3
+ import g from "./getWindowScrollBarX.js";
4
+ import f from "./getWindowScroll.js";
5
+ import { max as i } from "../utils/math.js";
6
+ function w(r) {
7
+ var l, o = m(r), e = f(r), t = (l = r.ownerDocument) == null ? void 0 : l.body, c = i(o.scrollWidth, o.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), h = i(o.scrollHeight, o.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), n = -e.scrollLeft + g(r), d = -e.scrollTop;
8
+ return a(t || o).direction === "rtl" && (n += i(o.clientWidth, t ? t.clientWidth : 0) - c), {
9
+ width: c,
10
+ height: h,
11
+ x: n,
12
+ y: d
13
+ };
14
+ }
15
+ export {
16
+ w as default
17
+ };
@@ -0,0 +1,9 @@
1
+ function o(l) {
2
+ return {
3
+ scrollLeft: l.scrollLeft,
4
+ scrollTop: l.scrollTop
5
+ };
6
+ }
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,13 @@
1
+ import o from "./getBoundingClientRect.js";
2
+ function e(t) {
3
+ var i = o(t), h = t.offsetWidth, f = t.offsetHeight;
4
+ return Math.abs(i.width - h) <= 1 && (h = i.width), Math.abs(i.height - f) <= 1 && (f = i.height), {
5
+ x: t.offsetLeft,
6
+ y: t.offsetTop,
7
+ width: h,
8
+ height: f
9
+ };
10
+ }
11
+ export {
12
+ e as default
13
+ };
@@ -0,0 +1,6 @@
1
+ function o(e) {
2
+ return e ? (e.nodeName || "").toLowerCase() : null;
3
+ }
4
+ export {
5
+ o as default
6
+ };
@@ -0,0 +1,10 @@
1
+ import t from "./getWindowScroll.js";
2
+ import o from "./getWindow.js";
3
+ import { isHTMLElement as e } from "./instanceOf.js";
4
+ import l from "./getHTMLElementScroll.js";
5
+ function c(r) {
6
+ return r === o(r) || !e(r) ? t(r) : l(r);
7
+ }
8
+ export {
9
+ c as default
10
+ };
@@ -0,0 +1,35 @@
1
+ import d from "./getWindow.js";
2
+ import f from "./getNodeName.js";
3
+ import n from "./getComputedStyle.js";
4
+ import { isHTMLElement as a, isShadowRoot as m } from "./instanceOf.js";
5
+ import g from "./isTableElement.js";
6
+ import s from "./getParentNode.js";
7
+ import p from "../utils/userAgent.js";
8
+ function l(r) {
9
+ return !a(r) || // https://github.com/popperjs/popper-core/issues/837
10
+ n(r).position === "fixed" ? null : r.offsetParent;
11
+ }
12
+ function v(r) {
13
+ var e = /firefox/i.test(p()), t = /Trident/i.test(p());
14
+ if (t && a(r)) {
15
+ var u = n(r);
16
+ if (u.position === "fixed")
17
+ return null;
18
+ }
19
+ var i = s(r);
20
+ for (m(i) && (i = i.host); a(i) && ["html", "body"].indexOf(f(i)) < 0; ) {
21
+ var o = n(i);
22
+ if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
23
+ return i;
24
+ i = i.parentNode;
25
+ }
26
+ return null;
27
+ }
28
+ function O(r) {
29
+ for (var e = d(r), t = l(r); t && g(t) && n(t).position === "static"; )
30
+ t = l(t);
31
+ return t && (f(t) === "html" || f(t) === "body" && n(t).position === "static") ? e : t || v(r) || e;
32
+ }
33
+ export {
34
+ O as default
35
+ };
@@ -0,0 +1,18 @@
1
+ import r from "./getNodeName.js";
2
+ import t from "./getDocumentElement.js";
3
+ import { isShadowRoot as a } from "./instanceOf.js";
4
+ function u(o) {
5
+ return r(o) === "html" ? o : (
6
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
7
+ // $FlowFixMe[incompatible-return]
8
+ // $FlowFixMe[prop-missing]
9
+ o.assignedSlot || // step into the shadow DOM of the parent of a slotted node
10
+ o.parentNode || // DOM Element detected
11
+ (a(o) ? o.host : null) || // ShadowRoot detected
12
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
13
+ t(o)
14
+ );
15
+ }
16
+ export {
17
+ u as default
18
+ };
@@ -0,0 +1,10 @@
1
+ import t from "./getParentNode.js";
2
+ import e from "./isScrollParent.js";
3
+ import o from "./getNodeName.js";
4
+ import { isHTMLElement as m } from "./instanceOf.js";
5
+ function i(r) {
6
+ return ["html", "body", "#document"].indexOf(o(r)) >= 0 ? r.ownerDocument.body : m(r) && e(r) ? r : i(t(r));
7
+ }
8
+ export {
9
+ i as default
10
+ };
@@ -0,0 +1,21 @@
1
+ import p from "./getWindow.js";
2
+ import w from "./getDocumentElement.js";
3
+ import d from "./getWindowScrollBarX.js";
4
+ import g from "./isLayoutViewport.js";
5
+ function u(i, v) {
6
+ var m = p(i), r = w(i), t = m.visualViewport, o = r.clientWidth, e = r.clientHeight, f = 0, a = 0;
7
+ if (t) {
8
+ o = t.width, e = t.height;
9
+ var h = g();
10
+ (h || !h && v === "fixed") && (f = t.offsetLeft, a = t.offsetTop);
11
+ }
12
+ return {
13
+ width: o,
14
+ height: e,
15
+ x: f + d(i),
16
+ y: a
17
+ };
18
+ }
19
+ export {
20
+ u as default
21
+ };
@@ -0,0 +1,12 @@
1
+ function n(t) {
2
+ if (t == null)
3
+ return window;
4
+ if (t.toString() !== "[object Window]") {
5
+ var i = t.ownerDocument;
6
+ return i && i.defaultView || window;
7
+ }
8
+ return t;
9
+ }
10
+ export {
11
+ n as default
12
+ };
@@ -0,0 +1,11 @@
1
+ import t from "./getWindow.js";
2
+ function a(r) {
3
+ var o = t(r), e = o.pageXOffset, l = o.pageYOffset;
4
+ return {
5
+ scrollLeft: e,
6
+ scrollTop: l
7
+ };
8
+ }
9
+ export {
10
+ a as default
11
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./getBoundingClientRect.js";
2
+ import r from "./getDocumentElement.js";
3
+ import e from "./getWindowScroll.js";
4
+ function f(t) {
5
+ return o(r(t)).left + e(t).scrollLeft;
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,20 @@
1
+ import e from "./getWindow.js";
2
+ function i(n) {
3
+ var t = e(n).Element;
4
+ return n instanceof t || n instanceof Element;
5
+ }
6
+ function a(n) {
7
+ var t = e(n).HTMLElement;
8
+ return n instanceof t || n instanceof HTMLElement;
9
+ }
10
+ function f(n) {
11
+ if (typeof ShadowRoot > "u")
12
+ return !1;
13
+ var t = e(n).ShadowRoot;
14
+ return n instanceof t || n instanceof ShadowRoot;
15
+ }
16
+ export {
17
+ i as isElement,
18
+ a as isHTMLElement,
19
+ f as isShadowRoot
20
+ };
@@ -0,0 +1,7 @@
1
+ import t from "../utils/userAgent.js";
2
+ function i() {
3
+ return !/^((?!chrome|android).)*safari/i.test(t());
4
+ }
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,8 @@
1
+ import f from "./getComputedStyle.js";
2
+ function a(e) {
3
+ var o = f(e), r = o.overflow, t = o.overflowX, l = o.overflowY;
4
+ return /auto|scroll|overlay|hidden/.test(r + l + t);
5
+ }
6
+ export {
7
+ a as default
8
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./getNodeName.js";
2
+ function n(e) {
3
+ return ["table", "td", "th"].indexOf(t(e)) >= 0;
4
+ }
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,16 @@
1
+ import l from "./getScrollParent.js";
2
+ import m from "./getParentNode.js";
3
+ import d from "./getWindow.js";
4
+ import v from "./isScrollParent.js";
5
+ function u(t, o) {
6
+ var a;
7
+ o === void 0 && (o = []);
8
+ var r = l(t), e = r === ((a = t.ownerDocument) == null ? void 0 : a.body), n = d(r), i = e ? [n].concat(n.visualViewport || [], v(r) ? r : []) : r, c = o.concat(i);
9
+ return e ? c : (
10
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
11
+ c.concat(u(m(i)))
12
+ );
13
+ }
14
+ export {
15
+ u as default
16
+ };
@@ -0,0 +1,31 @@
1
+ var i = "top", o = "bottom", n = "right", f = "left", c = "auto", a = [i, o, n, f], t = "start", v = "end", w = "clippingParents", M = "viewport", R = "popper", W = "reference", h = /* @__PURE__ */ a.reduce(function(e, r) {
2
+ return e.concat([r + "-" + t, r + "-" + v]);
3
+ }, []), x = /* @__PURE__ */ [].concat(a, [c]).reduce(function(e, r) {
4
+ return e.concat([r, r + "-" + t, r + "-" + v]);
5
+ }, []), p = "beforeRead", d = "read", s = "afterRead", b = "beforeMain", u = "main", m = "afterMain", P = "beforeWrite", g = "write", l = "afterWrite", j = [p, d, s, b, u, m, P, g, l];
6
+ export {
7
+ m as afterMain,
8
+ s as afterRead,
9
+ l as afterWrite,
10
+ c as auto,
11
+ a as basePlacements,
12
+ b as beforeMain,
13
+ p as beforeRead,
14
+ P as beforeWrite,
15
+ o as bottom,
16
+ w as clippingParents,
17
+ v as end,
18
+ f as left,
19
+ u as main,
20
+ j as modifierPhases,
21
+ x as placements,
22
+ R as popper,
23
+ d as read,
24
+ W as reference,
25
+ n as right,
26
+ t as start,
27
+ i as top,
28
+ h as variationPlacements,
29
+ M as viewport,
30
+ g as write
31
+ };
@@ -0,0 +1,47 @@
1
+ import c from "../dom-utils/getNodeName.js";
2
+ import { isHTMLElement as f } from "../dom-utils/instanceOf.js";
3
+ function p(l) {
4
+ var e = l.state;
5
+ Object.keys(e.elements).forEach(function(t) {
6
+ var r = e.styles[t] || {}, s = e.attributes[t] || {}, a = e.elements[t];
7
+ !f(a) || !c(a) || (Object.assign(a.style, r), Object.keys(s).forEach(function(o) {
8
+ var i = s[o];
9
+ i === !1 ? a.removeAttribute(o) : a.setAttribute(o, i === !0 ? "" : i);
10
+ }));
11
+ });
12
+ }
13
+ function y(l) {
14
+ var e = l.state, t = {
15
+ popper: {
16
+ position: e.options.strategy,
17
+ left: "0",
18
+ top: "0",
19
+ margin: "0"
20
+ },
21
+ arrow: {
22
+ position: "absolute"
23
+ },
24
+ reference: {}
25
+ };
26
+ return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {
27
+ Object.keys(e.elements).forEach(function(r) {
28
+ var s = e.elements[r], a = e.attributes[r] || {}, o = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), i = o.reduce(function(n, u) {
29
+ return n[u] = "", n;
30
+ }, {});
31
+ !f(s) || !c(s) || (Object.assign(s.style, i), Object.keys(a).forEach(function(n) {
32
+ s.removeAttribute(n);
33
+ }));
34
+ });
35
+ };
36
+ }
37
+ const m = {
38
+ name: "applyStyles",
39
+ enabled: !0,
40
+ phase: "write",
41
+ fn: p,
42
+ effect: y,
43
+ requires: ["computeStyles"]
44
+ };
45
+ export {
46
+ m as default
47
+ };
@@ -0,0 +1,37 @@
1
+ import q from "../utils/getBasePlacement.js";
2
+ import E from "../dom-utils/getLayoutRect.js";
3
+ import R from "../dom-utils/contains.js";
4
+ import H from "../dom-utils/getOffsetParent.js";
5
+ import M from "../utils/getMainAxisFromPlacement.js";
6
+ import { within as S } from "../utils/within.js";
7
+ import T from "../utils/mergePaddingObject.js";
8
+ import z from "../utils/expandToHashMap.js";
9
+ import { basePlacements as A, top as B, left as O, bottom as F, right as P } from "../enums.js";
10
+ var I = function(e, r) {
11
+ return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
12
+ placement: r.placement
13
+ })) : e, T(typeof e != "number" ? e : z(e, A));
14
+ };
15
+ function L(o) {
16
+ var e, r = o.state, n = o.name, t = o.options, f = r.elements.arrow, s = r.modifiersData.popperOffsets, p = q(r.placement), a = M(p), b = [O, P].indexOf(p) >= 0, i = b ? "height" : "width";
17
+ if (!(!f || !s)) {
18
+ var c = I(t.padding, r), v = E(f), d = a === "y" ? B : O, g = a === "y" ? F : P, h = r.rects.reference[i] + r.rects.reference[a] - s[a] - r.rects.popper[i], x = s[a] - r.rects.reference[a], m = H(f), l = m ? a === "y" ? m.clientHeight || 0 : m.clientWidth || 0 : 0, y = h / 2 - x / 2, j = c[d], D = l - v[i] - c[g], u = l / 2 - v[i] / 2 + y, w = S(j, u, D), $ = a;
19
+ r.modifiersData[n] = (e = {}, e[$] = w, e.centerOffset = w - u, e);
20
+ }
21
+ }
22
+ function V(o) {
23
+ var e = o.state, r = o.options, n = r.element, t = n === void 0 ? "[data-popper-arrow]" : n;
24
+ t != null && (typeof t == "string" && (t = e.elements.popper.querySelector(t), !t) || R(e.elements.popper, t) && (e.elements.arrow = t));
25
+ }
26
+ const X = {
27
+ name: "arrow",
28
+ enabled: !0,
29
+ phase: "main",
30
+ fn: L,
31
+ effect: V,
32
+ requires: ["popperOffsets"],
33
+ requiresIfExists: ["preventOverflow"]
34
+ };
35
+ export {
36
+ X as default
37
+ };