@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,8 +1,8 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { forwardRef as L, useId as Le, createContext as Se, useContext as De } from "react";
|
|
3
|
-
import { a as Ae, f as R, u as ie, h as je, g as
|
|
3
|
+
import { a as Ae, f as R, u as ie, h as je, g as ee, d as Re, c as xe, i as Ve, j as Ie, k as _e, n as Ne, s as ae, l as le, m as ce, P as Fe } from "./use-locale-context-BnlMA8su.js";
|
|
4
4
|
import { c as Ke } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Y as E, Z as j, a2 as Z, au as $e, g as de, av as We, c as Be, a as ze, R as B, aw as Ge, f as qe, e as He, x as Ue } from "./index-B8d8Hi2Q.js";
|
|
6
6
|
const [pe, x] = Ae({
|
|
7
7
|
name: "TooltipContext",
|
|
8
8
|
hookName: "useTooltipContext",
|
|
@@ -30,12 +30,12 @@ ve.displayName = "TooltipPositioner";
|
|
|
30
30
|
function Ye(e) {
|
|
31
31
|
return !(e.metaKey || !We() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
33
|
+
var Ze = /* @__PURE__ */ new Set(["checkbox", "radio", "range", "color", "file", "image", "button", "submit", "reset"]);
|
|
34
|
+
function Je(e, t, o) {
|
|
35
35
|
const n = o ? de(o) : null, r = j(n);
|
|
36
|
-
return e = e || n instanceof r.HTMLInputElement && !
|
|
36
|
+
return e = e || n instanceof r.HTMLInputElement && !Ze.has(n?.type) || n instanceof r.HTMLTextAreaElement || n instanceof r.HTMLElement && n.isContentEditable, !(e && t === "keyboard" && o instanceof r.KeyboardEvent && !Reflect.has(Qe, o.key));
|
|
37
37
|
}
|
|
38
|
-
var T = null, G = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Map(), k = !1,
|
|
38
|
+
var T = null, G = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Map(), k = !1, q = !1, Qe = {
|
|
39
39
|
Tab: !0,
|
|
40
40
|
Escape: !0
|
|
41
41
|
};
|
|
@@ -54,15 +54,15 @@ function ye(e) {
|
|
|
54
54
|
}
|
|
55
55
|
function me(e) {
|
|
56
56
|
const t = de(e);
|
|
57
|
-
t === j(t) || t ===
|
|
57
|
+
t === j(t) || t === Z(t) || (!k && !q && (T = "virtual", $("virtual", e)), k = !1, q = !1);
|
|
58
58
|
}
|
|
59
59
|
function Pe() {
|
|
60
|
-
k = !1,
|
|
60
|
+
k = !1, q = !0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Xe(e) {
|
|
63
63
|
if (typeof window > "u" || A.get(j(e)))
|
|
64
64
|
return;
|
|
65
|
-
const t = j(e), o =
|
|
65
|
+
const t = j(e), o = Z(e);
|
|
66
66
|
let n = t.HTMLElement.prototype.focus;
|
|
67
67
|
t.HTMLElement.prototype.focus = function() {
|
|
68
68
|
T = "virtual", $("virtual", null), k = !0, n.apply(this, arguments);
|
|
@@ -75,24 +75,24 @@ function Ze(e) {
|
|
|
75
75
|
), A.set(t, { focus: n });
|
|
76
76
|
}
|
|
77
77
|
var et = (e, t) => {
|
|
78
|
-
const o = j(e), n =
|
|
78
|
+
const o = j(e), n = Z(e);
|
|
79
79
|
A.has(o) && (o.HTMLElement.prototype.focus = A.get(o).focus, n.removeEventListener("keydown", F, !0), n.removeEventListener("keyup", F, !0), n.removeEventListener("click", ye, !0), o.removeEventListener("focus", me, !0), o.removeEventListener("blur", Pe, !1), typeof o.PointerEvent < "u" ? (n.removeEventListener("pointerdown", P, !0), n.removeEventListener("pointermove", P, !0), n.removeEventListener("pointerup", P, !0)) : (n.removeEventListener("mousedown", P, !0), n.removeEventListener("mousemove", P, !0), n.removeEventListener("mouseup", P, !0)), A.delete(o));
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function H() {
|
|
82
82
|
return T === "keyboard";
|
|
83
83
|
}
|
|
84
84
|
function tt(e = {}) {
|
|
85
85
|
const { isTextInput: t, autoFocus: o, onChange: n, root: r } = e;
|
|
86
|
-
|
|
86
|
+
Xe(r), n?.({ isFocusVisible: o || H(), modality: T });
|
|
87
87
|
const c = (p, a) => {
|
|
88
|
-
|
|
88
|
+
Je(!!t, p, a) && n?.({ isFocusVisible: H(), modality: p });
|
|
89
89
|
};
|
|
90
90
|
return G.add(c), () => {
|
|
91
91
|
G.delete(c);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
const ot = Symbol(), te = Object.getPrototypeOf,
|
|
95
|
-
|
|
94
|
+
const ot = Symbol(), te = Object.getPrototypeOf, U = /* @__PURE__ */ new WeakMap(), nt = (e) => e && (U.has(e) ? U.get(e) : te(e) === Object.prototype || te(e) === Array.prototype), rt = (e) => nt(e) && e[ot] || null, oe = (e, t = !0) => {
|
|
95
|
+
U.set(e, t);
|
|
96
96
|
};
|
|
97
97
|
function st() {
|
|
98
98
|
if (typeof globalThis < "u") return globalThis;
|
|
@@ -130,7 +130,7 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), it = (e) => ty
|
|
|
130
130
|
})), g), C = (i) => (s, l) => {
|
|
131
131
|
const v = [...s];
|
|
132
132
|
v[1] = [i, ...v[1]], O(v, l);
|
|
133
|
-
}, d = /* @__PURE__ */ new Map(),
|
|
133
|
+
}, d = /* @__PURE__ */ new Map(), J = (i, s) => {
|
|
134
134
|
if (K() && d.has(i))
|
|
135
135
|
throw new Error("prop listener already exists");
|
|
136
136
|
if (u.size) {
|
|
@@ -138,7 +138,7 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), it = (e) => ty
|
|
|
138
138
|
d.set(i, [s, l]);
|
|
139
139
|
} else
|
|
140
140
|
d.set(i, [s]);
|
|
141
|
-
},
|
|
141
|
+
}, Q = (i) => {
|
|
142
142
|
const s = d.get(i);
|
|
143
143
|
s && (d.delete(i), s[1]?.());
|
|
144
144
|
}, Ce = (i) => (u.add(i), u.size === 1 && d.forEach(([l, v], M) => {
|
|
@@ -150,10 +150,10 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), it = (e) => ty
|
|
|
150
150
|
u.delete(i), u.size === 0 && d.forEach(([l, v], M) => {
|
|
151
151
|
v && (v(), d.set(M, [l]));
|
|
152
152
|
});
|
|
153
|
-
}), W = Array.isArray(a) ? [] : Object.create(Object.getPrototypeOf(a)),
|
|
153
|
+
}), W = Array.isArray(a) ? [] : Object.create(Object.getPrototypeOf(a)), I = t(W, {
|
|
154
154
|
deleteProperty(i, s) {
|
|
155
155
|
const l = Reflect.get(i, s);
|
|
156
|
-
|
|
156
|
+
Q(s);
|
|
157
157
|
const v = Reflect.deleteProperty(i, s);
|
|
158
158
|
return v && O(["delete", [s], l]), v;
|
|
159
159
|
},
|
|
@@ -161,22 +161,22 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), it = (e) => ty
|
|
|
161
161
|
const M = Reflect.has(i, s), S = Reflect.get(i, s, v);
|
|
162
162
|
if (M && (e(S, l) || r.has(l) && e(S, r.get(l))))
|
|
163
163
|
return !0;
|
|
164
|
-
|
|
165
|
-
let
|
|
164
|
+
Q(s), Y(l) && (l = rt(l) || l);
|
|
165
|
+
let _ = l;
|
|
166
166
|
if (!Object.getOwnPropertyDescriptor(i, s)?.set) {
|
|
167
|
-
!b.has(l) && ne(l) && (
|
|
168
|
-
const
|
|
169
|
-
|
|
167
|
+
!b.has(l) && ne(l) && (_ = we(l));
|
|
168
|
+
const X = !N.has(_) && b.get(_);
|
|
169
|
+
X && J(s, X);
|
|
170
170
|
}
|
|
171
|
-
return Reflect.set(i, s,
|
|
171
|
+
return Reflect.set(i, s, _, v), O(["set", [s], l, S]), !0;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
r.set(a,
|
|
174
|
+
r.set(a, I);
|
|
175
175
|
const Me = [W, w, n, Ce];
|
|
176
|
-
return b.set(
|
|
176
|
+
return b.set(I, Me), Reflect.ownKeys(a).forEach((i) => {
|
|
177
177
|
const s = Object.getOwnPropertyDescriptor(a, i);
|
|
178
|
-
s.get || s.set ? Object.defineProperty(W, i, s) :
|
|
179
|
-
}),
|
|
178
|
+
s.get || s.set ? Object.defineProperty(W, i, s) : I[i] = a[i];
|
|
179
|
+
}), I;
|
|
180
180
|
}) => [
|
|
181
181
|
// public functions
|
|
182
182
|
p,
|
|
@@ -216,7 +216,7 @@ function ft(e) {
|
|
|
216
216
|
const [o, n, r] = t;
|
|
217
217
|
return r(o, n());
|
|
218
218
|
}
|
|
219
|
-
var gt =
|
|
219
|
+
var gt = qe("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content"), D = gt.build(), he = (e) => e.ids?.trigger ?? `tooltip:${e.id}:trigger`, vt = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, yt = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, be = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, z = (e) => e.getById(he(e)), re = (e) => e.getById(be(e)), h = we({ id: null });
|
|
220
220
|
function mt(e, t) {
|
|
221
221
|
const { state: o, context: n, send: r, scope: c, prop: p, event: a } = e, y = p("id"), g = !!p("aria-label"), u = o.matches("open", "closing"), O = he(c), m = vt(c), w = p("disabled"), C = Re({
|
|
222
222
|
...p("positioning"),
|
|
@@ -235,7 +235,7 @@ function mt(e, t) {
|
|
|
235
235
|
...D.trigger.attrs,
|
|
236
236
|
id: O,
|
|
237
237
|
dir: p("dir"),
|
|
238
|
-
"data-expanded":
|
|
238
|
+
"data-expanded": He(u),
|
|
239
239
|
"data-state": u ? "open" : "closed",
|
|
240
240
|
"aria-describedby": u ? m : void 0,
|
|
241
241
|
onClick(d) {
|
|
@@ -243,7 +243,7 @@ function mt(e, t) {
|
|
|
243
243
|
},
|
|
244
244
|
onFocus(d) {
|
|
245
245
|
queueMicrotask(() => {
|
|
246
|
-
d.defaultPrevented || w || a.src !== "trigger.pointerdown" &&
|
|
246
|
+
d.defaultPrevented || w || a.src !== "trigger.pointerdown" && H() && r({ type: "open", src: "trigger.focus" });
|
|
247
247
|
});
|
|
248
248
|
},
|
|
249
249
|
onBlur(d) {
|
|
@@ -308,7 +308,7 @@ function mt(e, t) {
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var { and: Pt, not: se } =
|
|
311
|
+
var { and: Pt, not: se } = ze(), Ot = Be({
|
|
312
312
|
initialState: ({ prop: e }) => e("open") || e("defaultOpen") ? "open" : "closed",
|
|
313
313
|
props({ props: e }) {
|
|
314
314
|
return {
|
|
@@ -591,7 +591,7 @@ var { and: Pt, not: se } = Ue(), Ot = Ge({
|
|
|
591
591
|
if (!t("closeOnScroll")) return;
|
|
592
592
|
const n = z(o);
|
|
593
593
|
if (!n) return;
|
|
594
|
-
const c =
|
|
594
|
+
const c = Ge(n).map((p) => B(p, "scroll", () => {
|
|
595
595
|
e({ type: "close", src: "scroll" });
|
|
596
596
|
}, {
|
|
597
597
|
passive: !0,
|
|
@@ -610,7 +610,7 @@ var { and: Pt, not: se } = Ue(), Ot = Ge({
|
|
|
610
610
|
}), () => o?.();
|
|
611
611
|
},
|
|
612
612
|
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? B(document, "keydown", (n) => {
|
|
613
|
-
|
|
613
|
+
Ue(n) || n.key === "Escape" && (n.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
|
|
614
614
|
}, !0) : void 0,
|
|
615
615
|
waitForOpenDelay: ({ send: e, prop: t }) => {
|
|
616
616
|
const o = setTimeout(() => {
|
|
@@ -647,12 +647,12 @@ xe()([
|
|
|
647
647
|
"positioning"
|
|
648
648
|
]);
|
|
649
649
|
const wt = (e) => {
|
|
650
|
-
const t = Le(), { getRootNode: o } = Ve(), { dir: n } =
|
|
650
|
+
const t = Le(), { getRootNode: o } = Ve(), { dir: n } = Ie(), r = {
|
|
651
651
|
id: t,
|
|
652
652
|
dir: n,
|
|
653
653
|
getRootNode: o,
|
|
654
654
|
...e
|
|
655
|
-
}, c =
|
|
655
|
+
}, c = _e(Ot, r);
|
|
656
656
|
return mt(c, Ne);
|
|
657
657
|
}, ht = (e) => {
|
|
658
658
|
const [t, { children: o, ...n }] = ae(e), r = wt(n), c = le(E({ present: r.open }, t));
|
|
@@ -754,8 +754,8 @@ export {
|
|
|
754
754
|
Lt as M,
|
|
755
755
|
Dt as T,
|
|
756
756
|
gt as a,
|
|
757
|
-
|
|
757
|
+
H as i,
|
|
758
758
|
tt as t,
|
|
759
759
|
St as u
|
|
760
760
|
};
|
|
761
|
-
//# sourceMappingURL=tooltip.component-
|
|
761
|
+
//# sourceMappingURL=tooltip.component-B0iqN7WJ.js.map
|