@televet/kibble-ui 4.0.0-beta.49 → 4.0.0-beta.51
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/dist/chunks/{alert.component-xIg594Bw.js → alert.component-g3HPaEm9.js} +3 -3
- package/dist/chunks/{alert.component-xIg594Bw.js.map → alert.component-g3HPaEm9.js.map} +1 -1
- package/dist/chunks/{avatar.component-B7rggLqO.js → avatar.component-oOJ66hzm.js} +11 -11
- package/dist/chunks/{avatar.component-B7rggLqO.js.map → avatar.component-oOJ66hzm.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BxK-Fntw.js → avatarGroup.component-BOzKnzZu.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BxK-Fntw.js.map → avatarGroup.component-BOzKnzZu.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-B_5ioQ76.js → buttonGroup.component-CESNUX_O.js} +2 -2
- package/dist/chunks/{buttonGroup.component-B_5ioQ76.js.map → buttonGroup.component-CESNUX_O.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Bmd3imRK.js → characterCounter.component-BFw6saPi.js} +2 -2
- package/dist/chunks/{characterCounter.component-Bmd3imRK.js.map → characterCounter.component-BFw6saPi.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C99uwLFM.js → checkbox.component-DGQYgNkB.js} +12 -12
- package/dist/chunks/{checkbox.component-C99uwLFM.js.map → checkbox.component-DGQYgNkB.js.map} +1 -1
- package/dist/chunks/{checkbox.records-BBV1vniy.js → checkbox.records-7WQ70CZr.js} +4 -4
- package/dist/chunks/{checkbox.records-BBV1vniy.js.map → checkbox.records-7WQ70CZr.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DwICStpY.js → checkboxGroup.component-DAMxeo3c.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DwICStpY.js.map → checkboxGroup.component-DAMxeo3c.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CiDSMTUO.js → conversationCard.component-CiFdjzC0.js} +7 -7
- package/dist/chunks/{conversationCard.component-CiDSMTUO.js.map → conversationCard.component-CiFdjzC0.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DKDgsGci.js → datePicker.component-D7J1Ft-p.js} +7 -7
- package/dist/chunks/{datePicker.component-DKDgsGci.js.map → datePicker.component-D7J1Ft-p.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-sGBMGLMB.js → dialog-trigger-CKEZLJZ6.js} +13 -13
- package/dist/chunks/{dialog-trigger-sGBMGLMB.js.map → dialog-trigger-CKEZLJZ6.js.map} +1 -1
- package/dist/chunks/{heading.component-DIST7ncC.js → heading.component-CVm2LGDL.js} +2 -2
- package/dist/chunks/{heading.component-DIST7ncC.js.map → heading.component-CVm2LGDL.js.map} +1 -1
- package/dist/chunks/{index-DLvqBeH6.js → index-B8d8Hi2Q.js} +35 -35
- package/dist/chunks/{index-DLvqBeH6.js.map → index-B8d8Hi2Q.js.map} +1 -1
- package/dist/chunks/{index-ByhnCBwf.js → index-BE2MBRYo.js} +4 -4
- package/dist/chunks/{index-ByhnCBwf.js.map → index-BE2MBRYo.js.map} +1 -1
- package/dist/chunks/{index-Dn2nvQ5m.js → index-BavQMU2I.js} +4 -4
- package/dist/chunks/{index-Dn2nvQ5m.js.map → index-BavQMU2I.js.map} +1 -1
- package/dist/chunks/{index-sWaESJRS.js → index-BsfW-qzE.js} +35 -35
- package/dist/chunks/{index-sWaESJRS.js.map → index-BsfW-qzE.js.map} +1 -1
- package/dist/chunks/{index-D79JhErY.js → index-CJ_SaUFt.js} +7 -7
- package/dist/chunks/{index-D79JhErY.js.map → index-CJ_SaUFt.js.map} +1 -1
- package/dist/chunks/{index-63NGUyr9.js → index-COcjj2r_.js} +4 -4
- package/dist/chunks/{index-63NGUyr9.js.map → index-COcjj2r_.js.map} +1 -1
- package/dist/chunks/{index-C3d8HKg_.js → index-CVMzOz4r.js} +7 -7
- package/dist/chunks/{index-C3d8HKg_.js.map → index-CVMzOz4r.js.map} +1 -1
- package/dist/chunks/{index-C1_01X--.js → index-Dw9PbX_m.js} +80 -80
- package/dist/chunks/{index-C1_01X--.js.map → index-Dw9PbX_m.js.map} +1 -1
- package/dist/chunks/{index-Bcp83GlU.js → index-X8K9tzgE.js} +10 -10
- package/dist/chunks/{index-Bcp83GlU.js.map → index-X8K9tzgE.js.map} +1 -1
- package/dist/chunks/{index-Kw3RO_3f.js → index-bYxdnAxK.js} +3 -3
- package/dist/chunks/{index-Kw3RO_3f.js.map → index-bYxdnAxK.js.map} +1 -1
- package/dist/chunks/{index-Cz4pncg8.js → index-xa8tmbbH.js} +25 -25
- package/dist/chunks/{index-Cz4pncg8.js.map → index-xa8tmbbH.js.map} +1 -1
- package/dist/chunks/{link.component-DYNc5XEj.js → link.component-B8MuH7tM.js} +2 -2
- package/dist/chunks/{link.component-DYNc5XEj.js.map → link.component-B8MuH7tM.js.map} +1 -1
- package/dist/chunks/menu.component-Bi2JPazM.js.map +1 -1
- package/dist/chunks/{menu.component-DbVIiM3g.js → menu.component-DZoyME_s.js} +22 -22
- package/dist/chunks/{menu.component-DbVIiM3g.js.map → menu.component-DZoyME_s.js.map} +1 -1
- package/dist/chunks/{modal.types-CdZepugS.js → modal.types-3KGURq43.js} +5 -5
- package/dist/chunks/{modal.types-CdZepugS.js.map → modal.types-3KGURq43.js.map} +1 -1
- package/dist/chunks/{pinInput.types-Ov7NqPQG.js → pinInput.types-Q3gBjJrF.js} +8 -8
- package/dist/chunks/{pinInput.types-Ov7NqPQG.js.map → pinInput.types-Q3gBjJrF.js.map} +1 -1
- package/dist/chunks/{popover-Q1b5Ou9h.js → popover-BBhgGw0a.js} +12 -12
- package/dist/chunks/{popover-Q1b5Ou9h.js.map → popover-BBhgGw0a.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-_dExZRNY.js → popover-root-provider-CKQPoRvU.js} +8 -8
- package/dist/chunks/{popover-root-provider-_dExZRNY.js.map → popover-root-provider-CKQPoRvU.js.map} +1 -1
- package/dist/chunks/{popover.component-LH8cQ5xp.js → popover.component-D-UQ63DB.js} +15 -15
- package/dist/chunks/{popover.component-LH8cQ5xp.js.map → popover.component-D-UQ63DB.js.map} +1 -1
- package/dist/chunks/{popover.recipe-BwEAIvNr.js → popover.recipe-BVdiJdJk.js} +6 -6
- package/dist/chunks/{popover.recipe-BwEAIvNr.js.map → popover.recipe-BVdiJdJk.js.map} +1 -1
- package/dist/chunks/{radio.records-BEcLVP_S.js → radio.records-EtuVQX6z.js} +4 -4
- package/dist/chunks/{radio.records-BEcLVP_S.js.map → radio.records-EtuVQX6z.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-VgKW4-P2.js → radioGroup.component-sOmiKjNM.js} +19 -19
- package/dist/chunks/{radioGroup.component-VgKW4-P2.js.map → radioGroup.component-sOmiKjNM.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CgBG_tvz.js → ratingDots.component-CMDKq3_T.js} +3 -3
- package/dist/chunks/{ratingDots.component-CgBG_tvz.js.map → ratingDots.component-CMDKq3_T.js.map} +1 -1
- package/dist/chunks/{render-strategy-Cr139kIz.js → render-strategy-DBmKAZIM.js} +2 -2
- package/dist/chunks/{render-strategy-Cr139kIz.js.map → render-strategy-DBmKAZIM.js.map} +1 -1
- package/dist/chunks/{select.component-BSZd60MZ.js → select.component-BOSAKx8m.js} +36 -36
- package/dist/chunks/{select.component-BSZd60MZ.js.map → select.component-BOSAKx8m.js.map} +1 -1
- package/dist/chunks/{select.component-BDLdQaL2.js → select.component-C9Vj7Sk7.js} +2 -2
- package/dist/chunks/{select.component-BDLdQaL2.js.map → select.component-C9Vj7Sk7.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BRToMbfY.js → sortableList.component-BEc4_tAM.js} +3 -3
- package/dist/chunks/{sortableList.component-BRToMbfY.js.map → sortableList.component-BEc4_tAM.js.map} +1 -1
- package/dist/chunks/{spinner.component-DCSsW51J.js → spinner.component-DNrNcGw9.js} +2 -2
- package/dist/chunks/{spinner.component-DCSsW51J.js.map → spinner.component-DNrNcGw9.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-b9eWaeJ6.js → styledAvatar.types-DgeupAct.js} +2 -2
- package/dist/chunks/{styledAvatar.types-b9eWaeJ6.js.map → styledAvatar.types-DgeupAct.js.map} +1 -1
- package/dist/chunks/{switch.component-B2vWRrP_.js → switch.component-BQ9rEKP6.js} +9 -9
- package/dist/chunks/{switch.component-B2vWRrP_.js.map → switch.component-BQ9rEKP6.js.map} +1 -1
- package/dist/chunks/{tabs.component-DlaP-qhJ.js → tabs.component-BuknlGMy.js} +41 -41
- package/dist/chunks/{tabs.component-DlaP-qhJ.js.map → tabs.component-BuknlGMy.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DpcWXFLP.js → tagBlock.component-BZtyjaQk.js} +5 -5
- package/dist/chunks/{tagBlock.component-DpcWXFLP.js.map → tagBlock.component-BZtyjaQk.js.map} +1 -1
- package/dist/chunks/{text.component-D3E0SdX1.js → text.component-ByshUroO.js} +2 -2
- package/dist/chunks/{text.component-D3E0SdX1.js.map → text.component-ByshUroO.js.map} +1 -1
- package/dist/chunks/{textInput.component-BpCIE07n.js → textInput.component-BYpBgS2h.js} +12 -12
- package/dist/chunks/{textInput.component-BpCIE07n.js.map → textInput.component-BYpBgS2h.js.map} +1 -1
- package/dist/chunks/{textarea.component-B5AsA90v.js → textarea.component-B8X86Tqw.js} +6 -6
- package/dist/chunks/{textarea.component-B5AsA90v.js.map → textarea.component-B8X86Tqw.js.map} +1 -1
- package/dist/chunks/{theme.provider-B9PPowSI.js → theme.provider-C13bkPxl.js} +18 -18
- package/dist/chunks/{theme.provider-B9PPowSI.js.map → theme.provider-C13bkPxl.js.map} +1 -1
- package/dist/chunks/{timePicker.component-BFa1h4Gv.js → timePicker.component-BwmHvV_9.js} +3 -3
- package/dist/chunks/{timePicker.component-BFa1h4Gv.js.map → timePicker.component-BwmHvV_9.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DuKclNl6.js → timeRange.component-Du_CkwPc.js} +2 -2
- package/dist/chunks/{timeRange.component-DuKclNl6.js.map → timeRange.component-Du_CkwPc.js.map} +1 -1
- package/dist/chunks/{timestamp.component-BouqsJZM.js → timestamp.component-CA-gdN9e.js} +3 -3
- package/dist/chunks/{timestamp.component-BouqsJZM.js.map → timestamp.component-CA-gdN9e.js.map} +1 -1
- package/dist/chunks/{toaster.records-BSRUGTiS.js → toaster.records-DuvFE6c1.js} +10 -10
- package/dist/chunks/{toaster.records-BSRUGTiS.js.map → toaster.records-DuvFE6c1.js.map} +1 -1
- package/dist/chunks/{tooltip.component-DYBYGsfe.js → tooltip.component-B0iqN7WJ.js} +40 -40
- package/dist/chunks/{tooltip.component-DYBYGsfe.js.map → tooltip.component-B0iqN7WJ.js.map} +1 -1
- package/dist/chunks/{typography.records-DA6XZIsX.js → typography.records-BS1CFpJg.js} +2 -2
- package/dist/chunks/{typography.records-DA6XZIsX.js.map → typography.records-BS1CFpJg.js.map} +1 -1
- package/dist/chunks/{use-field-context-B8ygn96q.js → use-field-context-Bxg2bkx0.js} +2 -2
- package/dist/chunks/{use-field-context-B8ygn96q.js.map → use-field-context-Bxg2bkx0.js.map} +1 -1
- package/dist/chunks/{use-locale-context-zakBNK5b.js → use-locale-context-BnlMA8su.js} +58 -58
- package/dist/chunks/{use-locale-context-zakBNK5b.js.map → use-locale-context-BnlMA8su.js.map} +1 -1
- package/dist/chunks/{withFormControl-Vf_flDYv.js → withFormControl-BRVK_J11.js} +26 -26
- package/dist/chunks/{withFormControl-Vf_flDYv.js.map → withFormControl-BRVK_J11.js.map} +1 -1
- package/dist/chunks/{withTruncation-BNm_JUdt.js → withTruncation-C3gfaeh3.js} +2 -2
- package/dist/chunks/{withTruncation-BNm_JUdt.js.map → withTruncation-C3gfaeh3.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/chakra/index.js +115 -114
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +31 -31
- package/dist/esm/index.js +32 -32
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/chakra/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as _e } from "./index-
|
|
1
|
+
import { c as le, N as te, a as ge, r as M, P as ce, Q as ue, o as de, R as he, J as ne, S as pe, f as Oe, e as y, T as K, U as $, L as me, g as ie, M as Ee, z as j, V as Te, y as Ie, W as fe, X as _, Y as Pe, Z as ye, _ as Ce, $ as ve, u as Re, a0 as Se, w as Ne, D as ke, j as Le, a1 as q, K as be } from "./index-B8d8Hi2Q.js";
|
|
2
|
+
import { e as Ae, g as J, d as Me, c as k } from "./use-locale-context-BnlMA8su.js";
|
|
3
|
+
import { t as _e } from "./index-xa8tmbbH.js";
|
|
4
4
|
var R = (e, t) => ({ x: e, y: t });
|
|
5
5
|
function De(e) {
|
|
6
6
|
const { x: t, y: r, width: n, height: o } = e, g = t + n / 2, a = r + o / 2;
|
|
@@ -40,7 +40,7 @@ function Ge(e, t) {
|
|
|
40
40
|
}
|
|
41
41
|
return o;
|
|
42
42
|
}
|
|
43
|
-
var Ve =
|
|
43
|
+
var Ve = Oe("menu").parts(
|
|
44
44
|
"arrow",
|
|
45
45
|
"arrowTip",
|
|
46
46
|
"content",
|
|
@@ -58,23 +58,23 @@ var Ve = le("menu").parts(
|
|
|
58
58
|
), h = Ve.build(), w = (e) => e.ids?.trigger ?? `menu:${e.id}:trigger`, re = (e) => e.ids?.contextTrigger ?? `menu:${e.id}:ctx-trigger`, S = (e) => e.ids?.content ?? `menu:${e.id}:content`, Fe = (e) => e.ids?.arrow ?? `menu:${e.id}:arrow`, oe = (e) => e.ids?.positioner ?? `menu:${e.id}:popper`, Ue = (e, t) => e.ids?.group?.(t) ?? `menu:${e.id}:group:${t}`, N = (e, t) => `${e.id}/${t}`, P = (e) => e?.dataset.value ?? null, Q = (e, t) => e.ids?.groupLabel?.(t) ?? `menu:${e.id}:group-label:${t}`, f = (e) => e.getById(S(e)), Z = (e) => e.getById(oe(e)), D = (e) => e.getById(w(e)), ae = (e, t) => t ? e.getById(N(e, t)) : null, z = (e) => e.getById(re(e)), L = (e) => {
|
|
59
59
|
const r = `[role^="menuitem"][data-ownedby=${CSS.escape(S(e))}]:not([data-disabled])`;
|
|
60
60
|
return ke(f(e), r);
|
|
61
|
-
}, xe = (e) =>
|
|
61
|
+
}, xe = (e) => ue(L(e)), We = (e) => ce(L(e)), W = (e, t) => t ? e.id === t || e.dataset.value === t : !1, Be = (e, t) => {
|
|
62
62
|
const r = L(e), n = r.findIndex((o) => W(o, t.value));
|
|
63
|
-
return
|
|
63
|
+
return ve(r, n, { loop: t.loop ?? t.loopFocus });
|
|
64
64
|
}, Xe = (e, t) => {
|
|
65
65
|
const r = L(e), n = r.findIndex((o) => W(o, t.value));
|
|
66
|
-
return
|
|
66
|
+
return Ce(r, n, { loop: t.loop ?? t.loopFocus });
|
|
67
67
|
}, Ye = (e, t) => {
|
|
68
68
|
const r = L(e), n = r.find((o) => W(o, t.value));
|
|
69
|
-
return
|
|
70
|
-
}, H = (e) =>
|
|
69
|
+
return ne(r, { state: t.typeaheadState, key: t.key, activeId: n?.id ?? null });
|
|
70
|
+
}, H = (e) => Ne(e) && (e.dataset.disabled === "" || e.hasAttribute("disabled")), Ke = (e) => !!e?.getAttribute("role")?.startsWith("menuitem") && !!e?.hasAttribute("aria-controls"), x = "menu:select";
|
|
71
71
|
function $e(e, t) {
|
|
72
72
|
if (!e) return;
|
|
73
|
-
const r =
|
|
73
|
+
const r = ye(e), n = new r.CustomEvent(x, { detail: { value: t } });
|
|
74
74
|
e.dispatchEvent(n);
|
|
75
75
|
}
|
|
76
76
|
function et(e, t) {
|
|
77
|
-
const { context: r, send: n, state: o, computed: g, prop: a, scope: l } = e, u = o.hasTag("open"), I = g("isSubmenu"), b = g("isTypingAhead"), B = a("composite"), X = r.get("currentPlacement"), se = r.get("anchorPoint"), v = r.get("highlightedValue"), G =
|
|
77
|
+
const { context: r, send: n, state: o, computed: g, prop: a, scope: l } = e, u = o.hasTag("open"), I = g("isSubmenu"), b = g("isTypingAhead"), B = a("composite"), X = r.get("currentPlacement"), se = r.get("anchorPoint"), v = r.get("highlightedValue"), G = Me({
|
|
78
78
|
...a("positioning"),
|
|
79
79
|
placement: se ? "bottom" : X
|
|
80
80
|
});
|
|
@@ -101,7 +101,7 @@ function et(e, t) {
|
|
|
101
101
|
...h.item.attrs,
|
|
102
102
|
id: T,
|
|
103
103
|
role: "menuitem",
|
|
104
|
-
"aria-disabled":
|
|
104
|
+
"aria-disabled": Re(p.disabled),
|
|
105
105
|
"data-disabled": y(p.disabled),
|
|
106
106
|
"data-ownedby": S(l),
|
|
107
107
|
"data-highlighted": y(p.highlighted),
|
|
@@ -163,7 +163,7 @@ function et(e, t) {
|
|
|
163
163
|
id: re(l),
|
|
164
164
|
onPointerDown(i) {
|
|
165
165
|
if (i.pointerType === "mouse") return;
|
|
166
|
-
const s =
|
|
166
|
+
const s = _(i);
|
|
167
167
|
n({ type: "CONTEXT_MENU_START", point: s });
|
|
168
168
|
},
|
|
169
169
|
onPointerCancel(i) {
|
|
@@ -176,7 +176,7 @@ function et(e, t) {
|
|
|
176
176
|
i.pointerType !== "mouse" && n({ type: "CONTEXT_MENU_CANCEL" });
|
|
177
177
|
},
|
|
178
178
|
onContextMenu(i) {
|
|
179
|
-
const s =
|
|
179
|
+
const s = _(i);
|
|
180
180
|
n({ type: "CONTEXT_MENU", point: s }), i.preventDefault();
|
|
181
181
|
},
|
|
182
182
|
style: {
|
|
@@ -188,7 +188,7 @@ function et(e, t) {
|
|
|
188
188
|
},
|
|
189
189
|
getTriggerItemProps(i) {
|
|
190
190
|
const s = i.getTriggerProps();
|
|
191
|
-
return
|
|
191
|
+
return Pe(F({ value: s.id }), s);
|
|
192
192
|
},
|
|
193
193
|
getTriggerProps() {
|
|
194
194
|
return t.button({
|
|
@@ -204,12 +204,12 @@ function et(e, t) {
|
|
|
204
204
|
"data-state": u ? "open" : "closed",
|
|
205
205
|
onPointerMove(i) {
|
|
206
206
|
if (i.pointerType !== "mouse" || H(i.currentTarget) || !I) return;
|
|
207
|
-
const m =
|
|
207
|
+
const m = _(i);
|
|
208
208
|
n({ type: "TRIGGER_POINTERMOVE", target: i.currentTarget, point: m });
|
|
209
209
|
},
|
|
210
210
|
onPointerLeave(i) {
|
|
211
211
|
if (H(i.currentTarget) || i.pointerType !== "mouse" || !I) return;
|
|
212
|
-
const s =
|
|
212
|
+
const s = _(i);
|
|
213
213
|
n({
|
|
214
214
|
type: "TRIGGER_POINTERLEAVE",
|
|
215
215
|
target: i.currentTarget,
|
|
@@ -217,7 +217,7 @@ function et(e, t) {
|
|
|
217
217
|
});
|
|
218
218
|
},
|
|
219
219
|
onPointerDown(i) {
|
|
220
|
-
H(i.currentTarget) ||
|
|
220
|
+
H(i.currentTarget) || fe(i) || i.preventDefault();
|
|
221
221
|
},
|
|
222
222
|
onClick(i) {
|
|
223
223
|
i.defaultPrevented || H(i.currentTarget) || n({ type: "TRIGGER_CLICK", target: i.currentTarget });
|
|
@@ -298,10 +298,10 @@ function et(e, t) {
|
|
|
298
298
|
i.pointerType === "mouse" && n({ type: "MENU_POINTERENTER" });
|
|
299
299
|
},
|
|
300
300
|
onKeyDown(i) {
|
|
301
|
-
if (i.defaultPrevented || !
|
|
302
|
-
const s =
|
|
301
|
+
if (i.defaultPrevented || !me(i)) return;
|
|
302
|
+
const s = ie(i);
|
|
303
303
|
if (!(s?.closest("[role=menu]") === i.currentTarget || s === i.currentTarget)) return;
|
|
304
|
-
if (i.key === "Tab" && !
|
|
304
|
+
if (i.key === "Tab" && !Ee(i)) {
|
|
305
305
|
i.preventDefault();
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
@@ -319,7 +319,7 @@ function et(e, t) {
|
|
|
319
319
|
n({ type: "ARROW_RIGHT" });
|
|
320
320
|
},
|
|
321
321
|
Enter() {
|
|
322
|
-
n({ type: "ENTER" }), v != null &&
|
|
322
|
+
n({ type: "ENTER" }), v != null && Se(E) && a("navigate")?.({ value: v, node: E, href: E.href });
|
|
323
323
|
},
|
|
324
324
|
Space(d) {
|
|
325
325
|
b ? n({ type: "TYPEAHEAD", key: d.key }) : p.Enter?.(d);
|
|
@@ -335,7 +335,7 @@ function et(e, t) {
|
|
|
335
335
|
c(i), i.stopPropagation(), i.preventDefault();
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
a("typeahead") &&
|
|
338
|
+
a("typeahead") && Te(i) && (Ie(i) || te(s) || (n({ type: "TYPEAHEAD", key: i.key }), i.preventDefault()));
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
},
|
|
@@ -409,7 +409,7 @@ function et(e, t) {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
var { not: O, and: C, or: je } =
|
|
412
|
+
var { not: O, and: C, or: je } = ge(), tt = le({
|
|
413
413
|
props({ props: e }) {
|
|
414
414
|
return {
|
|
415
415
|
closeOnSelect: !0,
|
|
@@ -417,7 +417,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
417
417
|
composite: !0,
|
|
418
418
|
loopFocus: !1,
|
|
419
419
|
navigate(t) {
|
|
420
|
-
|
|
420
|
+
pe(t.node);
|
|
421
421
|
},
|
|
422
422
|
...e,
|
|
423
423
|
positioning: {
|
|
@@ -463,7 +463,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
463
463
|
return {
|
|
464
464
|
parent: null,
|
|
465
465
|
children: {},
|
|
466
|
-
typeaheadState: { ...
|
|
466
|
+
typeaheadState: { ...ne.defaultOptions },
|
|
467
467
|
positioningOverride: {}
|
|
468
468
|
};
|
|
469
469
|
},
|
|
@@ -881,7 +881,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
881
881
|
isTriggerItemHighlighted: ({ event: e, scope: t, computed: r }) => !!(e.target ?? t.getById(r("highlightedId")))?.hasAttribute("aria-controls"),
|
|
882
882
|
isSubmenu: ({ computed: e }) => e("isSubmenu"),
|
|
883
883
|
isPointerSuspended: ({ context: e }) => e.get("suspendPointer"),
|
|
884
|
-
isHighlightedItemEditable: ({ scope: e, computed: t }) =>
|
|
884
|
+
isHighlightedItemEditable: ({ scope: e, computed: t }) => te(e.getById(t("highlightedId"))),
|
|
885
885
|
// guard assertions (for controlled mode)
|
|
886
886
|
isOpenControlled: ({ prop: e }) => e("open") !== void 0,
|
|
887
887
|
isArrowLeftEvent: ({ event: e }) => e.previousEvent?.type === "ARROW_LEFT",
|
|
@@ -936,7 +936,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
936
936
|
r("onEscapeKeyDown")?.(l), n("isSubmenu") && l.preventDefault(), ee({ parent: e.get("parent") });
|
|
937
937
|
},
|
|
938
938
|
onPointerDownOutside(l) {
|
|
939
|
-
const u =
|
|
939
|
+
const u = ie(l.detail.originalEvent);
|
|
940
940
|
if (q(z(t), u) && l.detail.contextmenu) {
|
|
941
941
|
l.preventDefault();
|
|
942
942
|
return;
|
|
@@ -954,7 +954,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
954
954
|
g.context.set("suspendPointer", !0);
|
|
955
955
|
});
|
|
956
956
|
const a = t.getDoc();
|
|
957
|
-
return
|
|
957
|
+
return he(a, "pointermove", (l) => {
|
|
958
958
|
qe(e.get("intentPolygon"), {
|
|
959
959
|
x: l.clientX,
|
|
960
960
|
y: l.clientY
|
|
@@ -967,7 +967,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
967
967
|
const g = t.getById(r("highlightedId")), a = f(t);
|
|
968
968
|
be(g, { rootEl: a, block: "nearest" });
|
|
969
969
|
};
|
|
970
|
-
return
|
|
970
|
+
return M(() => n()), de(() => f(t), {
|
|
971
971
|
defer: !0,
|
|
972
972
|
attributes: ["aria-activedescendant"],
|
|
973
973
|
callback: n
|
|
@@ -1013,7 +1013,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
1013
1013
|
if (!n || !o) return;
|
|
1014
1014
|
const g = n.getBoundingClientRect(), a = we(g, o);
|
|
1015
1015
|
if (!a) return;
|
|
1016
|
-
const u =
|
|
1016
|
+
const u = Ae(o) === "right" ? -5 : 5;
|
|
1017
1017
|
e.set("intentPolygon", [{ ...r.point, x: r.point.x + u }, ...a]);
|
|
1018
1018
|
},
|
|
1019
1019
|
clearIntentPolygon({ context: e }) {
|
|
@@ -1033,7 +1033,7 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
1033
1033
|
e.set("highlightedValue", null);
|
|
1034
1034
|
},
|
|
1035
1035
|
focusMenu({ scope: e }) {
|
|
1036
|
-
|
|
1036
|
+
M(() => {
|
|
1037
1037
|
const t = f(e);
|
|
1038
1038
|
Le({
|
|
1039
1039
|
root: t,
|
|
@@ -1045,13 +1045,13 @@ var { not: O, and: C, or: je } = Ie(), tt = Oe({
|
|
|
1045
1045
|
});
|
|
1046
1046
|
},
|
|
1047
1047
|
highlightFirstItem({ context: e, scope: t }) {
|
|
1048
|
-
(f(t) ? queueMicrotask :
|
|
1048
|
+
(f(t) ? queueMicrotask : M)(() => {
|
|
1049
1049
|
const n = xe(t);
|
|
1050
1050
|
n && e.set("highlightedValue", P(n));
|
|
1051
1051
|
});
|
|
1052
1052
|
},
|
|
1053
1053
|
highlightLastItem({ context: e, scope: t }) {
|
|
1054
|
-
(f(t) ? queueMicrotask :
|
|
1054
|
+
(f(t) ? queueMicrotask : M)(() => {
|
|
1055
1055
|
const n = We(t);
|
|
1056
1056
|
n && e.set("highlightedValue", P(n));
|
|
1057
1057
|
});
|
|
@@ -1193,4 +1193,4 @@ export {
|
|
|
1193
1193
|
et as c,
|
|
1194
1194
|
tt as m
|
|
1195
1195
|
};
|
|
1196
|
-
//# sourceMappingURL=index-
|
|
1196
|
+
//# sourceMappingURL=index-BsfW-qzE.js.map
|