@orchidui/dashboard 1.8.1-96 → 1.8.1-97

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 (166) hide show
  1. package/dist/Dashboard/Card/OcCard.js +1 -1
  2. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  3. package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
  4. package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
  5. package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
  6. package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
  7. package/dist/index.js +4 -4
  8. package/package.json +3 -265
  9. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
  10. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
  11. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
  12. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
  13. package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
  14. package/dist/Collection-COudIl-A.js +0 -55
  15. package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
  16. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
  17. package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
  18. package/dist/DialogPortal-zAvO8zt4.js +0 -23
  19. package/dist/DialogTrigger-BIF1A4hk.js +0 -72
  20. package/dist/DismissableLayer-C7IJliOb.js +0 -151
  21. package/dist/FocusScope--pJ6bboI.js +0 -121
  22. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
  23. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
  24. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
  25. package/dist/ListboxItem-CjMk-mEX.js +0 -417
  26. package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
  27. package/dist/OcCodeBlock-CBdVqav7.js +0 -37
  28. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
  29. package/dist/PopperContent-BT3Svcc3.js +0 -1465
  30. package/dist/Presence-CxfTrw6l.js +0 -133
  31. package/dist/Primitive-B3twiLO1.js +0 -44
  32. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
  33. package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
  34. package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
  35. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
  36. package/dist/Separator-DRam5i7g.js +0 -54
  37. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
  39. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
  40. package/dist/Teleport-DnUewq5H.js +0 -25
  41. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
  42. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
  43. package/dist/VisuallyHidden-DMAU4heD.js +0 -41
  44. package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
  45. package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
  46. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  47. package/dist/array-CqVTtuYm.js +0 -6
  48. package/dist/arrays-4jDZqbdb.js +0 -20
  49. package/dist/check-C2tzJ0Gk.js +0 -11
  50. package/dist/chevron-down-CnpAlizg.js +0 -13
  51. package/dist/chevron-left-BOwFasou.js +0 -13
  52. package/dist/chevron-right-D308801z.js +0 -13
  53. package/dist/circle-A-6NpYiX.js +0 -13
  54. package/dist/clamp-BL1Rb24G.js +0 -22
  55. package/dist/constant-CuDQlTIy.js +0 -3433
  56. package/dist/createContext-CZEfaSVa.js +0 -17
  57. package/dist/createLucideIcon-eXqDwUWj.js +0 -71
  58. package/dist/ellipsis-CEG9G7eN.js +0 -15
  59. package/dist/getActiveElement-B-HWdUIb.js +0 -11
  60. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
  61. package/dist/index-B3LW8uSH.js +0 -133
  62. package/dist/index-BIlpXuWX.js +0 -3430
  63. package/dist/index-BlGEiPHj.js +0 -1246
  64. package/dist/index-BwPb_idr.js +0 -574
  65. package/dist/index-C9julNQm.js +0 -173
  66. package/dist/index-C_aI-Wfj.js +0 -34
  67. package/dist/index-CumjCvqB.js +0 -5703
  68. package/dist/index-LqWMCtOd.js +0 -809
  69. package/dist/index-OpE2oGce.js +0 -110
  70. package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
  71. package/dist/lib/utils.js +0 -5
  72. package/dist/nullish-CjWwlQS3.js +0 -6
  73. package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
  74. package/dist/plus-CgluTYQY.js +0 -14
  75. package/dist/text-zwICaAnx.js +0 -743
  76. package/dist/ui/accordion/index.js +0 -7
  77. package/dist/ui/alert/index.js +0 -64
  78. package/dist/ui/alert-dialog/index.js +0 -356
  79. package/dist/ui/aspect-ratio/index.js +0 -50
  80. package/dist/ui/auto-form/constant.js +0 -5
  81. package/dist/ui/auto-form/dependencies.js +0 -61
  82. package/dist/ui/auto-form/index.js +0 -227
  83. package/dist/ui/auto-form/interface.js +0 -4
  84. package/dist/ui/auto-form/utils.js +0 -89
  85. package/dist/ui/avatar/index.js +0 -189
  86. package/dist/ui/badge/index.js +0 -37
  87. package/dist/ui/breadcrumb/index.js +0 -126
  88. package/dist/ui/button/index.js +0 -55
  89. package/dist/ui/calendar/index.js +0 -15
  90. package/dist/ui/card/index.js +0 -38
  91. package/dist/ui/carousel/index.js +0 -174
  92. package/dist/ui/carousel/interface.js +0 -1
  93. package/dist/ui/carousel/useCarousel.js +0 -1288
  94. package/dist/ui/chart/index.js +0 -8
  95. package/dist/ui/chart/interface.js +0 -1
  96. package/dist/ui/chart-area/index.js +0 -331
  97. package/dist/ui/chart-bar/index.js +0 -490
  98. package/dist/ui/chart-donut/index.js +0 -509
  99. package/dist/ui/chart-line/index.js +0 -110
  100. package/dist/ui/checkbox/index.js +0 -4
  101. package/dist/ui/collapsible/index.js +0 -60
  102. package/dist/ui/combobox/index.js +0 -877
  103. package/dist/ui/command/index.js +0 -323
  104. package/dist/ui/context-menu/index.js +0 -734
  105. package/dist/ui/dialog/index.js +0 -169
  106. package/dist/ui/drawer/index.js +0 -971
  107. package/dist/ui/dropdown-menu/index.js +0 -723
  108. package/dist/ui/form/index.js +0 -13
  109. package/dist/ui/form/injectionKeys.js +0 -4
  110. package/dist/ui/form/useFormField.js +0 -25
  111. package/dist/ui/hover-card/index.js +0 -331
  112. package/dist/ui/input/index.js +0 -4
  113. package/dist/ui/label/index.js +0 -4
  114. package/dist/ui/menubar/index.js +0 -862
  115. package/dist/ui/navigation-menu/index.js +0 -873
  116. package/dist/ui/number-field/index.js +0 -682
  117. package/dist/ui/pagination/index.js +0 -444
  118. package/dist/ui/pin-input/index.js +0 -308
  119. package/dist/ui/popover/index.js +0 -6
  120. package/dist/ui/progress/index.js +0 -137
  121. package/dist/ui/radio-group/index.js +0 -5
  122. package/dist/ui/range-calendar/index.js +0 -986
  123. package/dist/ui/resizable/index.js +0 -1432
  124. package/dist/ui/scroll-area/index.js +0 -775
  125. package/dist/ui/select/index.js +0 -135
  126. package/dist/ui/separator/index.js +0 -4
  127. package/dist/ui/sheet/index.js +0 -188
  128. package/dist/ui/sidebar/index.js +0 -652
  129. package/dist/ui/sidebar/utils.js +0 -12
  130. package/dist/ui/skeleton/index.js +0 -4
  131. package/dist/ui/slider/index.js +0 -478
  132. package/dist/ui/sonner/index.js +0 -892
  133. package/dist/ui/stepper/index.js +0 -442
  134. package/dist/ui/switch/index.js +0 -4
  135. package/dist/ui/table/index.js +0 -153
  136. package/dist/ui/tabs/index.js +0 -280
  137. package/dist/ui/tags-input/index.js +0 -449
  138. package/dist/ui/textarea/index.js +0 -4
  139. package/dist/ui/toast/index.js +0 -738
  140. package/dist/ui/toast/use-toast.js +0 -85
  141. package/dist/ui/toggle/index.js +0 -6
  142. package/dist/ui/toggle-group/index.js +0 -112
  143. package/dist/ui/tooltip/index.js +0 -29
  144. package/dist/useArrowNavigation-BRMPveaB.js +0 -49
  145. package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
  146. package/dist/useDirection-C3C_TLKm.js +0 -14
  147. package/dist/useFocusGuards-CyjC9cG9.js +0 -26
  148. package/dist/useFormControl-CFVC51Lp.js +0 -11
  149. package/dist/useForwardExpose-DZT6mL_U.js +0 -37
  150. package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
  151. package/dist/useGraceArea-D7-GP1ii.js +0 -137
  152. package/dist/useId-reAg216X.js +0 -13
  153. package/dist/useKbd-BJNupnml.js +0 -41
  154. package/dist/useLocale-BfU0LC8Z.js +0 -14
  155. package/dist/useNonce-C1ZOgOp5.js +0 -14
  156. package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
  157. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
  158. package/dist/useSize-BnyQ8FZF.js +0 -37
  159. package/dist/useTypeahead-oSidjyFF.js +0 -40
  160. package/dist/utils-DKNaYMZh.js +0 -57
  161. package/dist/utils-Dx9la83v.js +0 -35
  162. package/dist/utils-DxQ_ywGa.js +0 -55
  163. package/dist/utils-SFgRDk1R.js +0 -2748
  164. package/dist/utils-W-UiqiPE.js +0 -1869
  165. package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
  166. package/dist/x-Cl6YllUK.js +0 -14
@@ -1,137 +0,0 @@
1
- import { r as w, c as p } from "./index-BwPb_idr.js";
2
- import { ref as A, watchEffect as g } from "vue";
3
- function C(t, r) {
4
- const e = w(!1, 300), n = A(null), s = p();
5
- function c() {
6
- n.value = null, e.value = !1;
7
- }
8
- function a(u, l) {
9
- const h = u.currentTarget, o = { x: u.clientX, y: u.clientY }, i = L(o, h.getBoundingClientRect()), f = T(o, i), y = k(l.getBoundingClientRect()), x = G([...f, ...y]);
10
- n.value = x, e.value = !0;
11
- }
12
- return g((u) => {
13
- if (t.value && r.value) {
14
- const l = (o) => a(o, r.value), h = (o) => a(o, t.value);
15
- t.value.addEventListener("pointerleave", l), r.value.addEventListener("pointerleave", h), u(() => {
16
- var o, i;
17
- (o = t.value) == null || o.removeEventListener("pointerleave", l), (i = r.value) == null || i.removeEventListener("pointerleave", h);
18
- });
19
- }
20
- }), g((u) => {
21
- var l;
22
- if (n.value) {
23
- const h = (o) => {
24
- var v, b;
25
- if (!n.value || !(o.target instanceof HTMLElement))
26
- return;
27
- const i = o.target, f = { x: o.clientX, y: o.clientY }, y = ((v = t.value) == null ? void 0 : v.contains(i)) || ((b = r.value) == null ? void 0 : b.contains(i)), x = !E(f, n.value), m = !!i.closest("[data-grace-area-trigger]");
28
- y ? c() : (x || m) && (c(), s.trigger());
29
- };
30
- (l = t.value) == null || l.ownerDocument.addEventListener("pointermove", h), u(() => {
31
- var o;
32
- return (o = t.value) == null ? void 0 : o.ownerDocument.removeEventListener("pointermove", h);
33
- });
34
- }
35
- }), {
36
- isPointerInTransit: e,
37
- onPointerExit: s.on
38
- };
39
- }
40
- function L(t, r) {
41
- const e = Math.abs(r.top - t.y), n = Math.abs(r.bottom - t.y), s = Math.abs(r.right - t.x), c = Math.abs(r.left - t.x);
42
- switch (Math.min(e, n, s, c)) {
43
- case c:
44
- return "left";
45
- case s:
46
- return "right";
47
- case e:
48
- return "top";
49
- case n:
50
- return "bottom";
51
- default:
52
- throw new Error("unreachable");
53
- }
54
- }
55
- function T(t, r, e = 5) {
56
- const n = [];
57
- switch (r) {
58
- case "top":
59
- n.push(
60
- { x: t.x - e, y: t.y + e },
61
- { x: t.x + e, y: t.y + e }
62
- );
63
- break;
64
- case "bottom":
65
- n.push(
66
- { x: t.x - e, y: t.y - e },
67
- { x: t.x + e, y: t.y - e }
68
- );
69
- break;
70
- case "left":
71
- n.push(
72
- { x: t.x + e, y: t.y - e },
73
- { x: t.x + e, y: t.y + e }
74
- );
75
- break;
76
- case "right":
77
- n.push(
78
- { x: t.x - e, y: t.y - e },
79
- { x: t.x - e, y: t.y + e }
80
- );
81
- break;
82
- }
83
- return n;
84
- }
85
- function k(t) {
86
- const { top: r, right: e, bottom: n, left: s } = t;
87
- return [
88
- { x: s, y: r },
89
- { x: e, y: r },
90
- { x: e, y: n },
91
- { x: s, y: n }
92
- ];
93
- }
94
- function E(t, r) {
95
- const { x: e, y: n } = t;
96
- let s = !1;
97
- for (let c = 0, a = r.length - 1; c < r.length; a = c++) {
98
- const u = r[c].x, l = r[c].y, h = r[a].x, o = r[a].y;
99
- l > n != o > n && e < (h - u) * (n - l) / (o - l) + u && (s = !s);
100
- }
101
- return s;
102
- }
103
- function G(t) {
104
- const r = t.slice();
105
- return r.sort((e, n) => e.x < n.x ? -1 : e.x > n.x ? 1 : e.y < n.y ? -1 : e.y > n.y ? 1 : 0), H(r);
106
- }
107
- function H(t) {
108
- if (t.length <= 1)
109
- return t.slice();
110
- const r = [];
111
- for (let n = 0; n < t.length; n++) {
112
- const s = t[n];
113
- for (; r.length >= 2; ) {
114
- const c = r[r.length - 1], a = r[r.length - 2];
115
- if ((c.x - a.x) * (s.y - a.y) >= (c.y - a.y) * (s.x - a.x))
116
- r.pop();
117
- else break;
118
- }
119
- r.push(s);
120
- }
121
- r.pop();
122
- const e = [];
123
- for (let n = t.length - 1; n >= 0; n--) {
124
- const s = t[n];
125
- for (; e.length >= 2; ) {
126
- const c = e[e.length - 1], a = e[e.length - 2];
127
- if ((c.x - a.x) * (s.y - a.y) >= (c.y - a.y) * (s.x - a.x))
128
- e.pop();
129
- else break;
130
- }
131
- e.push(s);
132
- }
133
- return e.pop(), r.length === 1 && e.length === 1 && r[0].x === e[0].x && r[0].y === e[0].y ? r : r.concat(e);
134
- }
135
- export {
136
- C as u
137
- };
@@ -1,13 +0,0 @@
1
- import * as e from "vue";
2
- import { i as u } from "./ConfigProvider-7mV0D7Sp.js";
3
- let s = 0;
4
- function d(r, o = "reka") {
5
- var n;
6
- if (r)
7
- return r;
8
- const t = u({ useId: void 0 });
9
- return Object.hasOwn(e, "useId") ? `${o}-${(n = e.useId) == null ? void 0 : n.call(e)}` : t.useId ? `${o}-${t.useId()}` : `${o}-${++s}`;
10
- }
11
- export {
12
- d as u
13
- };
@@ -1,41 +0,0 @@
1
- function F() {
2
- return {
3
- ALT: "Alt",
4
- ARROW_DOWN: "ArrowDown",
5
- ARROW_LEFT: "ArrowLeft",
6
- ARROW_RIGHT: "ArrowRight",
7
- ARROW_UP: "ArrowUp",
8
- BACKSPACE: "Backspace",
9
- CAPS_LOCK: "CapsLock",
10
- CONTROL: "Control",
11
- DELETE: "Delete",
12
- END: "End",
13
- ENTER: "Enter",
14
- ESCAPE: "Escape",
15
- F1: "F1",
16
- F10: "F10",
17
- F11: "F11",
18
- F12: "F12",
19
- F2: "F2",
20
- F3: "F3",
21
- F4: "F4",
22
- F5: "F5",
23
- F6: "F6",
24
- F7: "F7",
25
- F8: "F8",
26
- F9: "F9",
27
- HOME: "Home",
28
- META: "Meta",
29
- PAGE_DOWN: "PageDown",
30
- PAGE_UP: "PageUp",
31
- SHIFT: "Shift",
32
- SPACE: " ",
33
- TAB: "Tab",
34
- CTRL: "Control",
35
- ASTERISK: "*",
36
- SPACE_CODE: "Space"
37
- };
38
- }
39
- export {
40
- F as u
41
- };
@@ -1,14 +0,0 @@
1
- import { ref as n, computed as r } from "vue";
2
- import { i } from "./ConfigProvider-7mV0D7Sp.js";
3
- function m(e) {
4
- const o = i({
5
- locale: n("en")
6
- });
7
- return r(() => {
8
- var t;
9
- return (e == null ? void 0 : e.value) || ((t = o.locale) == null ? void 0 : t.value) || "en";
10
- });
11
- }
12
- export {
13
- m as u
14
- };
@@ -1,14 +0,0 @@
1
- import { ref as r, computed as i } from "vue";
2
- import { i as u } from "./ConfigProvider-7mV0D7Sp.js";
3
- function n(t) {
4
- const e = u({
5
- nonce: r()
6
- });
7
- return i(() => {
8
- var o;
9
- return (t == null ? void 0 : t.value) || ((o = e.nonce) == null ? void 0 : o.value);
10
- });
11
- }
12
- export {
13
- n as u
14
- };
@@ -1,15 +0,0 @@
1
- import { a as r } from "./index-BwPb_idr.js";
2
- import { ref as i, computed as l } from "vue";
3
- function c() {
4
- const e = i(), m = l(() => {
5
- var t, n;
6
- return ["#text", "#comment"].includes((t = e.value) == null ? void 0 : t.$el.nodeName) ? (n = e.value) == null ? void 0 : n.$el.nextElementSibling : r(e);
7
- });
8
- return {
9
- primitiveElement: e,
10
- currentElement: m
11
- };
12
- }
13
- export {
14
- c as u
15
- };
@@ -1,43 +0,0 @@
1
- import { u as c } from "./index-BwPb_idr.js";
2
- import { computed as t } from "vue";
3
- import { i as m } from "./isValueEqualOrExist-BDSMUv8t.js";
4
- import { i as a } from "./ohash.D__AXeF1-DX2n0b2C.js";
5
- function v({ type: e, defaultValue: i, modelValue: r }) {
6
- const n = r || i;
7
- return r !== void 0 || i !== void 0 ? Array.isArray(n) ? "multiple" : "single" : e ?? "single";
8
- }
9
- function g({ type: e, defaultValue: i, modelValue: r }) {
10
- return e || v({ type: e, defaultValue: i, modelValue: r });
11
- }
12
- function p({ type: e, defaultValue: i }) {
13
- return i !== void 0 ? i : e === "single" ? void 0 : [];
14
- }
15
- function B(e, i) {
16
- const r = t(() => g(e)), n = c(e, "modelValue", i, {
17
- defaultValue: p(e),
18
- passive: e.modelValue === void 0,
19
- deep: !0
20
- });
21
- function o(l) {
22
- if (r.value === "single")
23
- n.value = a(l, n.value) ? void 0 : l;
24
- else {
25
- const u = Array.isArray(n.value) ? [...n.value || []] : [n.value].filter(Boolean);
26
- if (m(u, l)) {
27
- const f = u.findIndex((d) => a(d, l));
28
- u.splice(f, 1);
29
- } else
30
- u.push(l);
31
- n.value = u;
32
- }
33
- }
34
- const s = t(() => r.value === "single");
35
- return {
36
- modelValue: n,
37
- changeModelValue: o,
38
- isSingle: s
39
- };
40
- }
41
- export {
42
- B as u
43
- };
@@ -1,37 +0,0 @@
1
- import { a as b } from "./index-BwPb_idr.js";
2
- import { ref as c, computed as u, onMounted as v } from "vue";
3
- function S(d) {
4
- const r = c(), l = u(() => {
5
- var e;
6
- return ((e = r.value) == null ? void 0 : e.width) ?? 0;
7
- }), a = u(() => {
8
- var e;
9
- return ((e = r.value) == null ? void 0 : e.height) ?? 0;
10
- });
11
- return v(() => {
12
- const e = b(d);
13
- if (e) {
14
- r.value = { width: e.offsetWidth, height: e.offsetHeight };
15
- const s = new ResizeObserver((t) => {
16
- if (!Array.isArray(t) || !t.length)
17
- return;
18
- const h = t[0];
19
- let i, o;
20
- if ("borderBoxSize" in h) {
21
- const n = h.borderBoxSize, f = Array.isArray(n) ? n[0] : n;
22
- i = f.inlineSize, o = f.blockSize;
23
- } else
24
- i = e.offsetWidth, o = e.offsetHeight;
25
- r.value = { width: i, height: o };
26
- });
27
- return s.observe(e, { box: "border-box" }), () => s.unobserve(e);
28
- } else
29
- r.value = void 0;
30
- }), {
31
- width: l,
32
- height: a
33
- };
34
- }
35
- export {
36
- S as u
37
- };
@@ -1,40 +0,0 @@
1
- import { r as h } from "./index-BwPb_idr.js";
2
- import { g as m } from "./getActiveElement-B-HWdUIb.js";
3
- function T(a) {
4
- const e = h("", 1e3);
5
- return {
6
- search: e,
7
- handleTypeaheadSearch: (u, f) => {
8
- e.value = e.value + u;
9
- {
10
- const s = m(), c = f.map((t) => {
11
- var i, p;
12
- return {
13
- ...t,
14
- textValue: ((i = t.value) == null ? void 0 : i.textValue) ?? ((p = t.ref.textContent) == null ? void 0 : p.trim()) ?? ""
15
- };
16
- }), r = c.find((t) => t.ref === s), n = c.map((t) => t.textValue), x = V(n, e.value, r == null ? void 0 : r.textValue), l = c.find((t) => t.textValue === x);
17
- return l && l.ref.focus(), l == null ? void 0 : l.ref;
18
- }
19
- },
20
- resetTypeahead: () => {
21
- e.value = "";
22
- }
23
- };
24
- }
25
- function v(a, e) {
26
- return a.map((o, d) => a[(e + d) % a.length]);
27
- }
28
- function V(a, e, o) {
29
- const u = e.length > 1 && Array.from(e).every((n) => n === e[0]) ? e[0] : e, f = o ? a.indexOf(o) : -1;
30
- let s = v(a, Math.max(f, 0));
31
- u.length === 1 && (s = s.filter((n) => n !== o));
32
- const r = s.find(
33
- (n) => n.toLowerCase().startsWith(u.toLowerCase())
34
- );
35
- return r !== o ? r : void 0;
36
- }
37
- export {
38
- T as u,
39
- v as w
40
- };
@@ -1,57 +0,0 @@
1
- import { g as o } from "./getActiveElement-B-HWdUIb.js";
2
- const d = "focusScope.autoFocusOnMount", p = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 };
3
- function b(e, { select: t = !1 } = {}) {
4
- const s = o();
5
- for (const n of e)
6
- if (f(n, { select: t }), o() !== s)
7
- return !0;
8
- }
9
- function E(e) {
10
- const t = u(e), s = r(t, e), n = r(t.reverse(), e);
11
- return [s, n];
12
- }
13
- function u(e) {
14
- const t = [], s = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
15
- acceptNode: (n) => {
16
- const i = n.tagName === "INPUT" && n.type === "hidden";
17
- return n.disabled || n.hidden || i ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
18
- }
19
- });
20
- for (; s.nextNode(); ) t.push(s.currentNode);
21
- return t;
22
- }
23
- function r(e, t) {
24
- for (const s of e)
25
- if (!c(s, { upTo: t }))
26
- return s;
27
- }
28
- function c(e, { upTo: t }) {
29
- if (getComputedStyle(e).visibility === "hidden")
30
- return !0;
31
- for (; e; ) {
32
- if (t !== void 0 && e === t)
33
- return !1;
34
- if (getComputedStyle(e).display === "none")
35
- return !0;
36
- e = e.parentElement;
37
- }
38
- return !1;
39
- }
40
- function a(e) {
41
- return e instanceof HTMLInputElement && "select" in e;
42
- }
43
- function f(e, { select: t = !1 } = {}) {
44
- if (e && e.focus) {
45
- const s = o();
46
- e.focus({ preventScroll: !0 }), e !== s && a(e) && t && e.select();
47
- }
48
- }
49
- export {
50
- d as A,
51
- N as E,
52
- f as a,
53
- p as b,
54
- E as c,
55
- b as f,
56
- u as g
57
- };
@@ -1,35 +0,0 @@
1
- import { g as n } from "./getActiveElement-B-HWdUIb.js";
2
- const f = "rovingFocusGroup.onEntryFocus", u = { bubbles: !1, cancelable: !0 }, s = {
3
- ArrowLeft: "prev",
4
- ArrowUp: "prev",
5
- ArrowRight: "next",
6
- ArrowDown: "next",
7
- PageUp: "first",
8
- Home: "first",
9
- PageDown: "last",
10
- End: "last"
11
- };
12
- function i(r, t) {
13
- return t !== "rtl" ? r : r === "ArrowLeft" ? "ArrowRight" : r === "ArrowRight" ? "ArrowLeft" : r;
14
- }
15
- function a(r, t, e) {
16
- const o = i(r.key, e);
17
- if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
18
- return s[o];
19
- }
20
- function w(r, t = !1) {
21
- const e = n();
22
- for (const o of r)
23
- if (o === e || (o.focus({ preventScroll: t }), n() !== e))
24
- return;
25
- }
26
- function A(r, t) {
27
- return r.map((e, o) => r[(t + o) % r.length]);
28
- }
29
- export {
30
- f as E,
31
- u as a,
32
- w as f,
33
- a as g,
34
- A as w
35
- };
@@ -1,55 +0,0 @@
1
- import { g as f } from "./getActiveElement-B-HWdUIb.js";
2
- const I = "menu.itemSelect", E = ["Enter", " "], _ = ["ArrowDown", "PageUp", "Home"], d = ["ArrowUp", "PageDown", "End"], T = [..._, ...d], w = {
3
- ltr: [...E, "ArrowRight"],
4
- rtl: [...E, "ArrowLeft"]
5
- }, P = {
6
- ltr: ["ArrowLeft"],
7
- rtl: ["ArrowRight"]
8
- };
9
- function Y(t) {
10
- return t ? "open" : "closed";
11
- }
12
- function l(t) {
13
- return t === "indeterminate";
14
- }
15
- function g(t) {
16
- return l(t) ? "indeterminate" : t ? "checked" : "unchecked";
17
- }
18
- function x(t) {
19
- const e = f();
20
- for (const n of t)
21
- if (n === e || (n.focus(), f() !== e))
22
- return;
23
- }
24
- function m(t, e) {
25
- const { x: n, y: s } = t;
26
- let o = !1;
27
- for (let r = 0, i = e.length - 1; r < e.length; i = r++) {
28
- const a = e[r].x, c = e[r].y, S = e[i].x, u = e[i].y;
29
- c > s != u > s && n < (S - a) * (s - c) / (u - c) + a && (o = !o);
30
- }
31
- return o;
32
- }
33
- function h(t, e) {
34
- if (!e)
35
- return !1;
36
- const n = { x: t.clientX, y: t.clientY };
37
- return m(n, e);
38
- }
39
- function K(t) {
40
- return t.pointerType === "mouse";
41
- }
42
- export {
43
- T as F,
44
- I,
45
- d as L,
46
- E as S,
47
- K as a,
48
- l as b,
49
- g as c,
50
- P as d,
51
- w as e,
52
- x as f,
53
- Y as g,
54
- h as i
55
- };