@televet/kibble-ui 4.0.0-beta.44 → 4.0.0-beta.45
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-D4KMig7W.js → alert.component-CjjsneE_.js} +2 -2
- package/dist/chunks/{alert.component-D4KMig7W.js.map → alert.component-CjjsneE_.js.map} +1 -1
- package/dist/chunks/{alert.component-BrnaAnby.js → alert.component-xIg594Bw.js} +3 -3
- package/dist/chunks/{alert.component-BrnaAnby.js.map → alert.component-xIg594Bw.js.map} +1 -1
- package/dist/chunks/{avatar.component-Bh0DFMwE.js → avatar.component-B7rggLqO.js} +2 -2
- package/dist/chunks/{avatar.component-Bh0DFMwE.js.map → avatar.component-B7rggLqO.js.map} +1 -1
- package/dist/chunks/{avatar.component-_Mqnl3-P.js → avatar.component-C0lDpuBh.js} +2 -2
- package/dist/chunks/{avatar.component-_Mqnl3-P.js.map → avatar.component-C0lDpuBh.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-oRjqOWEB.js → avatarGroup.component-BxK-Fntw.js} +2 -2
- package/dist/chunks/{avatarGroup.component-oRjqOWEB.js.map → avatarGroup.component-BxK-Fntw.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Bw5gczhh.js → avatarGroup.component-Cr2dLGn7.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Bw5gczhh.js.map → avatarGroup.component-Cr2dLGn7.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BCCxeFx_.js → buttonGroup.component-BllwiY24.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BCCxeFx_.js.map → buttonGroup.component-BllwiY24.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Cpwnw5G3.js → buttonGroup.component-CyWOOEs3.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Cpwnw5G3.js.map → buttonGroup.component-CyWOOEs3.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Ww-ll5pL.js → characterCounter.component-Bmd3imRK.js} +2 -2
- package/dist/chunks/{characterCounter.component-Ww-ll5pL.js.map → characterCounter.component-Bmd3imRK.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BcKXSebL.js → characterCounter.component-L802Ir9b.js} +2 -2
- package/dist/chunks/{characterCounter.component-BcKXSebL.js.map → characterCounter.component-L802Ir9b.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C8IPf20R.js → checkbox.component-C99uwLFM.js} +3 -3
- package/dist/chunks/{checkbox.component-C8IPf20R.js.map → checkbox.component-C99uwLFM.js.map} +1 -1
- package/dist/chunks/{checkbox.component-CvuE1PVR.js → checkbox.component-jKQDjGYQ.js} +2 -2
- package/dist/chunks/{checkbox.component-CvuE1PVR.js.map → checkbox.component-jKQDjGYQ.js.map} +1 -1
- package/dist/chunks/{checkbox.records-ef7wOXPE.js → checkbox.records-BBV1vniy.js} +2 -2
- package/dist/chunks/{checkbox.records-ef7wOXPE.js.map → checkbox.records-BBV1vniy.js.map} +1 -1
- package/dist/chunks/{checkbox.records-jwUqoHaK.js → checkbox.records-CYYbBUNp.js} +2 -2
- package/dist/chunks/{checkbox.records-jwUqoHaK.js.map → checkbox.records-CYYbBUNp.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CaHesQT7.js → checkboxGroup.component-DwICStpY.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-CaHesQT7.js.map → checkboxGroup.component-DwICStpY.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CQEwY2Fu.js → checkboxGroup.component-v0mNVsPd.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-CQEwY2Fu.js.map → checkboxGroup.component-v0mNVsPd.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-C_gj2TZd.js → conversationCard.component-BERwqiS-.js} +7 -7
- package/dist/chunks/{conversationCard.component-C_gj2TZd.js.map → conversationCard.component-BERwqiS-.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-p1vrl1L3.js → conversationCard.component-CTRfZQCI.js} +2 -2
- package/dist/chunks/{conversationCard.component-p1vrl1L3.js.map → conversationCard.component-CTRfZQCI.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CwQ7lbgj.js → datePicker.component-DN3Vb2hm.js} +2 -2
- package/dist/chunks/{datePicker.component-CwQ7lbgj.js.map → datePicker.component-DN3Vb2hm.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DLbm9VYf.js → datePicker.component-PImZR-B6.js} +4 -4
- package/dist/chunks/{datePicker.component-DLbm9VYf.js.map → datePicker.component-PImZR-B6.js.map} +1 -1
- package/dist/chunks/{heading.component--ic7O4CR.js → heading.component-CgsSnBVo.js} +2 -2
- package/dist/chunks/{heading.component--ic7O4CR.js.map → heading.component-CgsSnBVo.js.map} +1 -1
- package/dist/chunks/{heading.component-E5shs3Uo.js → heading.component-DIST7ncC.js} +2 -2
- package/dist/chunks/{heading.component-E5shs3Uo.js.map → heading.component-DIST7ncC.js.map} +1 -1
- package/dist/chunks/{index-sVj7ynbl.js → index-ByhnCBwf.js} +2 -2
- package/dist/chunks/{index-sVj7ynbl.js.map → index-ByhnCBwf.js.map} +1 -1
- package/dist/chunks/{index-CX6Jo_Vb.js → index-DKKJDbpe.js} +2 -2
- package/dist/chunks/{index-CX6Jo_Vb.js.map → index-DKKJDbpe.js.map} +1 -1
- package/dist/chunks/{link.component-CSyWrGG3.js → link.component-CRVhyVdO.js} +2 -2
- package/dist/chunks/{link.component-CSyWrGG3.js.map → link.component-CRVhyVdO.js.map} +1 -1
- package/dist/chunks/{link.component-ucfag2-g.js → link.component-DYNc5XEj.js} +2 -2
- package/dist/chunks/{link.component-ucfag2-g.js.map → link.component-DYNc5XEj.js.map} +1 -1
- package/dist/chunks/{menu.component-toq-fDY8.js → menu.component-CTze16Re.js} +142 -141
- package/dist/chunks/{menu.component-toq-fDY8.js.map → menu.component-CTze16Re.js.map} +1 -1
- package/dist/chunks/menu.component-DfMZGgCy.js +2 -0
- package/dist/chunks/{menu.component-D_eoL8VD.js.map → menu.component-DfMZGgCy.js.map} +1 -1
- package/dist/chunks/modal.types-DYbLPZKq.js +197 -0
- package/dist/chunks/modal.types-DYbLPZKq.js.map +1 -0
- package/dist/chunks/modal.types-Dt-zDnrS.js +2 -0
- package/dist/chunks/modal.types-Dt-zDnrS.js.map +1 -0
- package/dist/chunks/{pinInput.types-GAEfMLAv.js → pinInput.types-CU3UyhyT.js} +2 -2
- package/dist/chunks/{pinInput.types-GAEfMLAv.js.map → pinInput.types-CU3UyhyT.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BPnWNbwp.js → pinInput.types-Ov7NqPQG.js} +2 -2
- package/dist/chunks/{pinInput.types-BPnWNbwp.js.map → pinInput.types-Ov7NqPQG.js.map} +1 -1
- package/dist/chunks/{popover.component-CewrKFIu.js → popover.component-DU-JJabq.js} +2 -2
- package/dist/chunks/{popover.component-CewrKFIu.js.map → popover.component-DU-JJabq.js.map} +1 -1
- package/dist/chunks/{popover.component-8ETQVr48.js → popover.component-LH8cQ5xp.js} +3 -3
- package/dist/chunks/{popover.component-8ETQVr48.js.map → popover.component-LH8cQ5xp.js.map} +1 -1
- package/dist/chunks/{radio.records-CsyF_2pW.js → radio.records-BEcLVP_S.js} +2 -2
- package/dist/chunks/{radio.records-CsyF_2pW.js.map → radio.records-BEcLVP_S.js.map} +1 -1
- package/dist/chunks/{radio.records-U-7SH4rq.js → radio.records-CnQniSEw.js} +2 -2
- package/dist/chunks/{radio.records-U-7SH4rq.js.map → radio.records-CnQniSEw.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DyE_o-Fx.js → radioGroup.component-BijXqMDe.js} +5 -5
- package/dist/chunks/{radioGroup.component-DyE_o-Fx.js.map → radioGroup.component-BijXqMDe.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-B3pl5h2h.js → radioGroup.component-D9lKUJfv.js} +2 -2
- package/dist/chunks/{radioGroup.component-B3pl5h2h.js.map → radioGroup.component-D9lKUJfv.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C8eBoN9v.js → ratingDots.component-CdawEWbl.js} +2 -2
- package/dist/chunks/{ratingDots.component-C8eBoN9v.js.map → ratingDots.component-CdawEWbl.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BesDpg8x.js → ratingDots.component-CgBG_tvz.js} +3 -3
- package/dist/chunks/{ratingDots.component-BesDpg8x.js.map → ratingDots.component-CgBG_tvz.js.map} +1 -1
- package/dist/chunks/select.component-9-2Fo505.js +2 -0
- package/dist/chunks/{select.component-BCFraNbc.js.map → select.component-9-2Fo505.js.map} +1 -1
- package/dist/chunks/select.component-C4Kx68wP.js +345 -0
- package/dist/chunks/{select.component-GTm2laeB.js.map → select.component-C4Kx68wP.js.map} +1 -1
- package/dist/chunks/{sortableList.component-COofj0TO.js → sortableList.component-BRToMbfY.js} +2 -2
- package/dist/chunks/{sortableList.component-COofj0TO.js.map → sortableList.component-BRToMbfY.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B8ch3VZ9.js → sortableList.component-Engs9U32.js} +2 -2
- package/dist/chunks/{sortableList.component-B8ch3VZ9.js.map → sortableList.component-Engs9U32.js.map} +1 -1
- package/dist/chunks/{spinner.component-DjiFeql5.js → spinner.component-BuNeiOw3.js} +2 -2
- package/dist/chunks/{spinner.component-DjiFeql5.js.map → spinner.component-BuNeiOw3.js.map} +1 -1
- package/dist/chunks/{spinner.component-DRQDBF8j.js → spinner.component-DCSsW51J.js} +2 -2
- package/dist/chunks/{spinner.component-DRQDBF8j.js.map → spinner.component-DCSsW51J.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-Cq3BLvCU.js → styledAvatar.types-BT8cujaA.js} +2 -2
- package/dist/chunks/{styledAvatar.types-Cq3BLvCU.js.map → styledAvatar.types-BT8cujaA.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-cc6fpkt6.js → styledAvatar.types-b9eWaeJ6.js} +2 -2
- package/dist/chunks/{styledAvatar.types-cc6fpkt6.js.map → styledAvatar.types-b9eWaeJ6.js.map} +1 -1
- package/dist/chunks/{switch.component-CSGFEF3I.js → switch.component-B2vWRrP_.js} +3 -3
- package/dist/chunks/{switch.component-CSGFEF3I.js.map → switch.component-B2vWRrP_.js.map} +1 -1
- package/dist/chunks/{switch.component-DjHknb_4.js → switch.component-QSVPRhDJ.js} +2 -2
- package/dist/chunks/{switch.component-DjHknb_4.js.map → switch.component-QSVPRhDJ.js.map} +1 -1
- package/dist/chunks/{tabs.component-B365dz_T.js → tabs.component-Cy7BLGXM.js} +2 -2
- package/dist/chunks/{tabs.component-B365dz_T.js.map → tabs.component-Cy7BLGXM.js.map} +1 -1
- package/dist/chunks/{tabs.component-D5tE6-_n.js → tabs.component-DlaP-qhJ.js} +2 -2
- package/dist/chunks/{tabs.component-D5tE6-_n.js.map → tabs.component-DlaP-qhJ.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BWbEe9VL.js → tagBlock.component-CNWy7Cz4.js} +2 -2
- package/dist/chunks/{tagBlock.component-BWbEe9VL.js.map → tagBlock.component-CNWy7Cz4.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DGGkSE8s.js → tagBlock.component-Cn6vRcHX.js} +5 -5
- package/dist/chunks/{tagBlock.component-DGGkSE8s.js.map → tagBlock.component-Cn6vRcHX.js.map} +1 -1
- package/dist/chunks/{text.component-DZkwd4C0.js → text.component-D3E0SdX1.js} +2 -2
- package/dist/chunks/{text.component-DZkwd4C0.js.map → text.component-D3E0SdX1.js.map} +1 -1
- package/dist/chunks/{text.component-C_Zg4dMh.js → text.component-Dcx3RoTp.js} +2 -2
- package/dist/chunks/{text.component-C_Zg4dMh.js.map → text.component-Dcx3RoTp.js.map} +1 -1
- package/dist/chunks/{textInput.component-db5JWDOn.js → textInput.component-BjQgcjCW.js} +2 -2
- package/dist/chunks/{textInput.component-db5JWDOn.js.map → textInput.component-BjQgcjCW.js.map} +1 -1
- package/dist/chunks/{textInput.component-D2StzwsH.js → textInput.component-BpCIE07n.js} +3 -3
- package/dist/chunks/{textInput.component-D2StzwsH.js.map → textInput.component-BpCIE07n.js.map} +1 -1
- package/dist/chunks/{textarea.component-DvA5vzjS.js → textarea.component-B5AsA90v.js} +3 -3
- package/dist/chunks/{textarea.component-DvA5vzjS.js.map → textarea.component-B5AsA90v.js.map} +1 -1
- package/dist/chunks/{textarea.component-VN5A4zVD.js → textarea.component-BXtiF_l4.js} +2 -2
- package/dist/chunks/{textarea.component-VN5A4zVD.js.map → textarea.component-BXtiF_l4.js.map} +1 -1
- package/dist/chunks/{theme.provider-CW14mtF4.js → theme.provider-B8KfvKCf.js} +2 -2
- package/dist/chunks/{theme.provider-CW14mtF4.js.map → theme.provider-B8KfvKCf.js.map} +1 -1
- package/dist/chunks/{theme.provider-Im9VeW3I.js → theme.provider-CnlvRUbx.js} +6 -6
- package/dist/chunks/{theme.provider-Im9VeW3I.js.map → theme.provider-CnlvRUbx.js.map} +1 -1
- package/dist/chunks/{timePicker.component-sttSyiVV.js → timePicker.component-BFa1h4Gv.js} +3 -3
- package/dist/chunks/{timePicker.component-sttSyiVV.js.map → timePicker.component-BFa1h4Gv.js.map} +1 -1
- package/dist/chunks/{timePicker.component-Cm2roPxJ.js → timePicker.component-Bk5xtY7m.js} +2 -2
- package/dist/chunks/{timePicker.component-Cm2roPxJ.js.map → timePicker.component-Bk5xtY7m.js.map} +1 -1
- package/dist/chunks/{timeRange.component-BuLsK6ed.js → timeRange.component-CWbreNV8.js} +2 -2
- package/dist/chunks/{timeRange.component-BuLsK6ed.js.map → timeRange.component-CWbreNV8.js.map} +1 -1
- package/dist/chunks/{timeRange.component-OH7hVSwj.js → timeRange.component-DuKclNl6.js} +2 -2
- package/dist/chunks/{timeRange.component-OH7hVSwj.js.map → timeRange.component-DuKclNl6.js.map} +1 -1
- package/dist/chunks/{timestamp.component-p5tMHeq4.js → timestamp.component-6Yax0uEP.js} +2 -2
- package/dist/chunks/{timestamp.component-p5tMHeq4.js.map → timestamp.component-6Yax0uEP.js.map} +1 -1
- package/dist/chunks/{timestamp.component-C51FWMrY.js → timestamp.component-BouqsJZM.js} +3 -3
- package/dist/chunks/{timestamp.component-C51FWMrY.js.map → timestamp.component-BouqsJZM.js.map} +1 -1
- package/dist/chunks/tooltip.component-C7RpuMiK.js +2 -0
- package/dist/chunks/tooltip.component-C7RpuMiK.js.map +1 -0
- package/dist/chunks/{tooltip.component-DsowDvmZ.js → tooltip.component-DYBYGsfe.js} +226 -219
- package/dist/chunks/tooltip.component-DYBYGsfe.js.map +1 -0
- package/dist/chunks/{withFormControl-Chelruxy.js → withFormControl-Vf_flDYv.js} +2 -2
- package/dist/chunks/{withFormControl-Chelruxy.js.map → withFormControl-Vf_flDYv.js.map} +1 -1
- package/dist/chunks/{withFormControl-CvsBPk94.js → withFormControl-YVXep-WE.js} +2 -2
- package/dist/chunks/{withFormControl-CvsBPk94.js.map → withFormControl-YVXep-WE.js.map} +1 -1
- package/dist/chunks/{withTruncation-Cca8DRk_.js → withTruncation-BNm_JUdt.js} +2 -2
- package/dist/chunks/{withTruncation-Cca8DRk_.js.map → withTruncation-BNm_JUdt.js.map} +1 -1
- package/dist/chunks/{withTruncation-C7erdGm7.js → withTruncation-D0DUT56h.js} +2 -2
- package/dist/chunks/{withTruncation-C7erdGm7.js.map → withTruncation-D0DUT56h.js.map} +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- 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/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/components/Modal/context/modal.context.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/menu.component-D_eoL8VD.js +0 -2
- package/dist/chunks/modal.types-BhM9guMA.js +0 -2
- package/dist/chunks/modal.types-BhM9guMA.js.map +0 -1
- package/dist/chunks/modal.types-Dz2IFuc7.js +0 -193
- package/dist/chunks/modal.types-Dz2IFuc7.js.map +0 -1
- package/dist/chunks/select.component-BCFraNbc.js +0 -2
- package/dist/chunks/select.component-GTm2laeB.js +0 -344
- package/dist/chunks/tooltip.component-DsowDvmZ.js.map +0 -1
- package/dist/chunks/tooltip.component-HHJpC9zD.js +0 -2
- package/dist/chunks/tooltip.component-HHJpC9zD.js.map +0 -1
|
@@ -1,119 +1,119 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { forwardRef as L, useId as Le } from "react";
|
|
3
|
-
import { a as
|
|
4
|
-
import { c as
|
|
5
|
-
import { U as E, _ as j, a2 as J, au as
|
|
6
|
-
const [pe,
|
|
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 Re, c as xe, d as ee, i as Ve, j as _e, k as Ie, n as Ne, s as ae, l as le, m as ce, P as Fe } from "./use-locale-context-zakBNK5b.js";
|
|
4
|
+
import { c as Ke } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
5
|
+
import { U as E, _ as j, a2 as J, au as $e, g as de, av as We, f as Be, e as ze, c as Ge, a as Ue, Y as B, aw as qe, x as He } from "./index-DLvqBeH6.js";
|
|
6
|
+
const [pe, x] = Ae({
|
|
7
7
|
name: "TooltipContext",
|
|
8
8
|
hookName: "useTooltipContext",
|
|
9
9
|
providerName: "<TooltipProvider />"
|
|
10
|
-
}), ue = L((e,
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */ f.jsx(
|
|
10
|
+
}), ue = L((e, t) => {
|
|
11
|
+
const o = x(), n = E(o.getArrowProps(), e);
|
|
12
|
+
return /* @__PURE__ */ f.jsx(R.div, { ...n, ref: t });
|
|
13
13
|
});
|
|
14
14
|
ue.displayName = "TooltipArrow";
|
|
15
|
-
const fe = L((e,
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */ f.jsx(
|
|
15
|
+
const fe = L((e, t) => {
|
|
16
|
+
const o = x(), n = E(o.getArrowTipProps(), e);
|
|
17
|
+
return /* @__PURE__ */ f.jsx(R.div, { ...n, ref: t });
|
|
18
18
|
});
|
|
19
19
|
fe.displayName = "TooltipArrowTip";
|
|
20
|
-
const ge = L((e,
|
|
21
|
-
const
|
|
22
|
-
return n.unmounted ? null : /* @__PURE__ */ f.jsx(
|
|
20
|
+
const ge = L((e, t) => {
|
|
21
|
+
const o = x(), n = ie(), r = E(o.getContentProps(), n.getPresenceProps(), e);
|
|
22
|
+
return n.unmounted ? null : /* @__PURE__ */ f.jsx(R.div, { ...r, ref: je(n.ref, t) });
|
|
23
23
|
});
|
|
24
24
|
ge.displayName = "TooltipContent";
|
|
25
|
-
const ve = L((e,
|
|
26
|
-
const
|
|
27
|
-
return ie().unmounted ? null : /* @__PURE__ */ f.jsx(
|
|
25
|
+
const ve = L((e, t) => {
|
|
26
|
+
const o = x(), n = E(o.getPositionerProps(), e);
|
|
27
|
+
return ie().unmounted ? null : /* @__PURE__ */ f.jsx(R.div, { ...n, ref: t });
|
|
28
28
|
});
|
|
29
29
|
ve.displayName = "TooltipPositioner";
|
|
30
|
-
function
|
|
31
|
-
return !(e.metaKey || !
|
|
30
|
+
function Ye(e) {
|
|
31
|
+
return !(e.metaKey || !We() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
const n =
|
|
36
|
-
return e = e || n instanceof r.HTMLInputElement && !
|
|
33
|
+
var Je = /* @__PURE__ */ new Set(["checkbox", "radio", "range", "color", "file", "image", "button", "submit", "reset"]);
|
|
34
|
+
function Qe(e, t, o) {
|
|
35
|
+
const n = o ? de(o) : null, r = j(n);
|
|
36
|
+
return e = e || n instanceof r.HTMLInputElement && !Je.has(n?.type) || n instanceof r.HTMLTextAreaElement || n instanceof r.HTMLElement && n.isContentEditable, !(e && t === "keyboard" && o instanceof r.KeyboardEvent && !Reflect.has(Xe, o.key));
|
|
37
37
|
}
|
|
38
|
-
var T = null, G = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Map(), k = !1, U = !1,
|
|
38
|
+
var T = null, G = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Map(), k = !1, U = !1, Xe = {
|
|
39
39
|
Tab: !0,
|
|
40
40
|
Escape: !0
|
|
41
41
|
};
|
|
42
|
-
function $(e,
|
|
43
|
-
for (let
|
|
44
|
-
|
|
42
|
+
function $(e, t) {
|
|
43
|
+
for (let o of G)
|
|
44
|
+
o(e, t);
|
|
45
45
|
}
|
|
46
46
|
function F(e) {
|
|
47
|
-
k = !0,
|
|
47
|
+
k = !0, Ye(e) && (T = "keyboard", $("keyboard", e));
|
|
48
48
|
}
|
|
49
49
|
function P(e) {
|
|
50
50
|
T = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (k = !0, $("pointer", e));
|
|
51
51
|
}
|
|
52
52
|
function ye(e) {
|
|
53
|
-
|
|
53
|
+
$e(e) && (k = !0, T = "virtual");
|
|
54
54
|
}
|
|
55
55
|
function me(e) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const t = de(e);
|
|
57
|
+
t === j(t) || t === J(t) || (!k && !U && (T = "virtual", $("virtual", e)), k = !1, U = !1);
|
|
58
58
|
}
|
|
59
59
|
function Pe() {
|
|
60
60
|
k = !1, U = !0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ze(e) {
|
|
63
63
|
if (typeof window > "u" || A.get(j(e)))
|
|
64
64
|
return;
|
|
65
|
-
const
|
|
66
|
-
let n =
|
|
67
|
-
|
|
65
|
+
const t = j(e), o = J(e);
|
|
66
|
+
let n = t.HTMLElement.prototype.focus;
|
|
67
|
+
t.HTMLElement.prototype.focus = function() {
|
|
68
68
|
T = "virtual", $("virtual", null), k = !0, n.apply(this, arguments);
|
|
69
|
-
},
|
|
69
|
+
}, o.addEventListener("keydown", F, !0), o.addEventListener("keyup", F, !0), o.addEventListener("click", ye, !0), t.addEventListener("focus", me, !0), t.addEventListener("blur", Pe, !1), typeof t.PointerEvent < "u" ? (o.addEventListener("pointerdown", P, !0), o.addEventListener("pointermove", P, !0), o.addEventListener("pointerup", P, !0)) : (o.addEventListener("mousedown", P, !0), o.addEventListener("mousemove", P, !0), o.addEventListener("mouseup", P, !0)), t.addEventListener(
|
|
70
70
|
"beforeunload",
|
|
71
71
|
() => {
|
|
72
|
-
|
|
72
|
+
et(e);
|
|
73
73
|
},
|
|
74
74
|
{ once: !0 }
|
|
75
|
-
), A.set(
|
|
75
|
+
), A.set(t, { focus: n });
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
const
|
|
79
|
-
A.has(
|
|
77
|
+
var et = (e, t) => {
|
|
78
|
+
const o = j(e), n = J(e);
|
|
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
81
|
function q() {
|
|
82
82
|
return T === "keyboard";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
const { isTextInput:
|
|
86
|
-
|
|
87
|
-
const c = (
|
|
88
|
-
|
|
84
|
+
function tt(e = {}) {
|
|
85
|
+
const { isTextInput: t, autoFocus: o, onChange: n, root: r } = e;
|
|
86
|
+
Ze(r), n?.({ isFocusVisible: o || q(), modality: T });
|
|
87
|
+
const c = (p, a) => {
|
|
88
|
+
Qe(!!t, p, a) && n?.({ isFocusVisible: q(), modality: p });
|
|
89
89
|
};
|
|
90
90
|
return G.add(c), () => {
|
|
91
91
|
G.delete(c);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
H.set(e,
|
|
94
|
+
const ot = Symbol(), te = Object.getPrototypeOf, H = /* @__PURE__ */ new WeakMap(), nt = (e) => e && (H.has(e) ? H.get(e) : te(e) === Object.prototype || te(e) === Array.prototype), rt = (e) => nt(e) && e[ot] || null, oe = (e, t = !0) => {
|
|
95
|
+
H.set(e, t);
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function st() {
|
|
98
98
|
if (typeof globalThis < "u") return globalThis;
|
|
99
99
|
if (typeof self < "u") return self;
|
|
100
100
|
if (typeof window < "u") return window;
|
|
101
101
|
if (typeof global < "u") return global;
|
|
102
102
|
}
|
|
103
|
-
function Oe(e,
|
|
104
|
-
const
|
|
105
|
-
return
|
|
103
|
+
function Oe(e, t) {
|
|
104
|
+
const o = st();
|
|
105
|
+
return o ? (o[e] || (o[e] = t()), o[e]) : t();
|
|
106
106
|
}
|
|
107
|
-
var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()),
|
|
108
|
-
const g =
|
|
107
|
+
var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), it = (e) => typeof e == "object" && e !== null && "$$typeof" in e && "props" in e, at = (e) => typeof e == "object" && e !== null && "__v_isVNode" in e, lt = (e) => typeof e == "object" && e !== null && "nodeType" in e && typeof e.nodeName == "string", ct = (e) => it(e) || at(e) || lt(e), Y = (e) => e !== null && typeof e == "object", ne = (e) => Y(e) && !N.has(e) && (Array.isArray(e) || !(Symbol.iterator in e)) && !ct(e) && !(e instanceof WeakMap) && !(e instanceof WeakSet) && !(e instanceof Error) && !(e instanceof Number) && !(e instanceof Date) && !(e instanceof String) && !(e instanceof RegExp) && !(e instanceof ArrayBuffer) && !(e instanceof Promise), K = () => process.env.NODE_ENV !== "production", b = Oe("__zag__proxyStateMap", () => /* @__PURE__ */ new WeakMap()), dt = (e = Object.is, t = (a, y) => new Proxy(a, y), o = /* @__PURE__ */ new WeakMap(), n = (a, y) => {
|
|
108
|
+
const g = o.get(a);
|
|
109
109
|
if (g?.[0] === y)
|
|
110
110
|
return g[1];
|
|
111
111
|
const u = Array.isArray(a) ? [] : Object.create(Object.getPrototypeOf(a));
|
|
112
|
-
return oe(u, !0),
|
|
112
|
+
return oe(u, !0), o.set(a, [y, u]), Reflect.ownKeys(a).forEach((O) => {
|
|
113
113
|
const m = Reflect.get(a, O);
|
|
114
|
-
N.has(m) ? (oe(m, !1), u[O] = m) : b.has(m) ? u[O] =
|
|
114
|
+
N.has(m) ? (oe(m, !1), u[O] = m) : b.has(m) ? u[O] = ft(m) : u[O] = m;
|
|
115
115
|
}), Object.freeze(u);
|
|
116
|
-
}, r = /* @__PURE__ */ new WeakMap(), c = [1, 1],
|
|
116
|
+
}, r = /* @__PURE__ */ new WeakMap(), c = [1, 1], p = (a) => {
|
|
117
117
|
if (!Y(a))
|
|
118
118
|
throw new Error("object required");
|
|
119
119
|
const y = r.get(a);
|
|
@@ -124,33 +124,33 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), rt = (e) => ty
|
|
|
124
124
|
g !== s && (g = s, u.forEach((l) => l(i, s)));
|
|
125
125
|
};
|
|
126
126
|
let m = c[1];
|
|
127
|
-
const w = (i = ++c[1]) => (m !== i && !u.size && (m = i,
|
|
127
|
+
const w = (i = ++c[1]) => (m !== i && !u.size && (m = i, d.forEach(([s]) => {
|
|
128
128
|
const l = s[1](i);
|
|
129
129
|
l > g && (g = l);
|
|
130
130
|
})), g), C = (i) => (s, l) => {
|
|
131
131
|
const v = [...s];
|
|
132
132
|
v[1] = [i, ...v[1]], O(v, l);
|
|
133
|
-
},
|
|
134
|
-
if (K() &&
|
|
133
|
+
}, d = /* @__PURE__ */ new Map(), Q = (i, s) => {
|
|
134
|
+
if (K() && d.has(i))
|
|
135
135
|
throw new Error("prop listener already exists");
|
|
136
136
|
if (u.size) {
|
|
137
137
|
const l = s[3](C(i));
|
|
138
|
-
|
|
138
|
+
d.set(i, [s, l]);
|
|
139
139
|
} else
|
|
140
|
-
|
|
140
|
+
d.set(i, [s]);
|
|
141
141
|
}, X = (i) => {
|
|
142
|
-
const s =
|
|
143
|
-
s && (
|
|
144
|
-
}, Ce = (i) => (u.add(i), u.size === 1 &&
|
|
142
|
+
const s = d.get(i);
|
|
143
|
+
s && (d.delete(i), s[1]?.());
|
|
144
|
+
}, Ce = (i) => (u.add(i), u.size === 1 && d.forEach(([l, v], M) => {
|
|
145
145
|
if (K() && v)
|
|
146
146
|
throw new Error("remove already exists");
|
|
147
147
|
const S = l[3](C(M));
|
|
148
|
-
|
|
148
|
+
d.set(M, [l, S]);
|
|
149
149
|
}), () => {
|
|
150
|
-
u.delete(i), u.size === 0 &&
|
|
151
|
-
v && (v(),
|
|
150
|
+
u.delete(i), u.size === 0 && d.forEach(([l, v], M) => {
|
|
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)), _ = t(W, {
|
|
154
154
|
deleteProperty(i, s) {
|
|
155
155
|
const l = Reflect.get(i, s);
|
|
156
156
|
X(s);
|
|
@@ -161,99 +161,99 @@ var N = Oe("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), rt = (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
|
-
X(s), Y(l) && (l =
|
|
165
|
-
let
|
|
164
|
+
X(s), Y(l) && (l = rt(l) || l);
|
|
165
|
+
let I = l;
|
|
166
166
|
if (!Object.getOwnPropertyDescriptor(i, s)?.set) {
|
|
167
|
-
!b.has(l) && ne(l) && (
|
|
168
|
-
const Z = !N.has(
|
|
167
|
+
!b.has(l) && ne(l) && (I = we(l));
|
|
168
|
+
const Z = !N.has(I) && b.get(I);
|
|
169
169
|
Z && Q(s, Z);
|
|
170
170
|
}
|
|
171
|
-
return Reflect.set(i, s,
|
|
171
|
+
return Reflect.set(i, s, I, v), O(["set", [s], l, S]), !0;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
r.set(a,
|
|
174
|
+
r.set(a, _);
|
|
175
175
|
const Me = [W, w, n, Ce];
|
|
176
|
-
return b.set(
|
|
176
|
+
return b.set(_, 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] = a[i];
|
|
179
|
+
}), _;
|
|
180
180
|
}) => [
|
|
181
181
|
// public functions
|
|
182
|
-
|
|
182
|
+
p,
|
|
183
183
|
// shared state
|
|
184
184
|
b,
|
|
185
185
|
N,
|
|
186
186
|
// internal things
|
|
187
187
|
e,
|
|
188
|
-
o,
|
|
189
|
-
ne,
|
|
190
188
|
t,
|
|
189
|
+
ne,
|
|
190
|
+
o,
|
|
191
191
|
n,
|
|
192
192
|
r,
|
|
193
193
|
c
|
|
194
|
-
], [
|
|
194
|
+
], [pt] = dt();
|
|
195
195
|
function we(e = {}) {
|
|
196
|
-
return
|
|
196
|
+
return pt(e);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ut(e, t, o) {
|
|
199
199
|
const n = b.get(e);
|
|
200
200
|
K() && !n && console.warn("Please use proxy object");
|
|
201
201
|
let r;
|
|
202
|
-
const c = [],
|
|
202
|
+
const c = [], p = n[3];
|
|
203
203
|
let a = !1;
|
|
204
|
-
const g =
|
|
204
|
+
const g = p((u) => {
|
|
205
205
|
c.push(u), r || (r = Promise.resolve().then(() => {
|
|
206
|
-
r = void 0, a &&
|
|
206
|
+
r = void 0, a && t(c.splice(0));
|
|
207
207
|
}));
|
|
208
208
|
});
|
|
209
209
|
return a = !0, () => {
|
|
210
210
|
a = !1, g();
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
K() && !
|
|
216
|
-
const [
|
|
217
|
-
return r(
|
|
213
|
+
function ft(e) {
|
|
214
|
+
const t = b.get(e);
|
|
215
|
+
K() && !t && console.warn("Please use proxy object");
|
|
216
|
+
const [o, n, r] = t;
|
|
217
|
+
return r(o, n());
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
const { state:
|
|
222
|
-
...
|
|
219
|
+
var gt = Be("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
|
+
function mt(e, t) {
|
|
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
|
+
...p("positioning"),
|
|
223
223
|
placement: n.get("currentPlacement")
|
|
224
224
|
});
|
|
225
225
|
return {
|
|
226
226
|
open: u,
|
|
227
|
-
setOpen(
|
|
228
|
-
|
|
227
|
+
setOpen(d) {
|
|
228
|
+
o.matches("open", "closing") !== d && r({ type: d ? "open" : "close" });
|
|
229
229
|
},
|
|
230
|
-
reposition(
|
|
231
|
-
r({ type: "positioning.set", options:
|
|
230
|
+
reposition(d = {}) {
|
|
231
|
+
r({ type: "positioning.set", options: d });
|
|
232
232
|
},
|
|
233
233
|
getTriggerProps() {
|
|
234
|
-
return
|
|
234
|
+
return t.button({
|
|
235
235
|
...D.trigger.attrs,
|
|
236
236
|
id: O,
|
|
237
|
-
dir:
|
|
238
|
-
"data-expanded":
|
|
237
|
+
dir: p("dir"),
|
|
238
|
+
"data-expanded": ze(u),
|
|
239
239
|
"data-state": u ? "open" : "closed",
|
|
240
240
|
"aria-describedby": u ? m : void 0,
|
|
241
|
-
onClick(
|
|
242
|
-
|
|
241
|
+
onClick(d) {
|
|
242
|
+
d.defaultPrevented || w || p("closeOnClick") && r({ type: "close", src: "trigger.click" });
|
|
243
243
|
},
|
|
244
|
-
onFocus(
|
|
244
|
+
onFocus(d) {
|
|
245
245
|
queueMicrotask(() => {
|
|
246
|
-
|
|
246
|
+
d.defaultPrevented || w || a.src !== "trigger.pointerdown" && q() && r({ type: "open", src: "trigger.focus" });
|
|
247
247
|
});
|
|
248
248
|
},
|
|
249
|
-
onBlur(
|
|
250
|
-
|
|
249
|
+
onBlur(d) {
|
|
250
|
+
d.defaultPrevented || w || y === h.id && r({ type: "close", src: "trigger.blur" });
|
|
251
251
|
},
|
|
252
|
-
onPointerDown(
|
|
253
|
-
|
|
252
|
+
onPointerDown(d) {
|
|
253
|
+
d.defaultPrevented || w || p("closeOnPointerDown") && y === h.id && r({ type: "close", src: "trigger.pointerdown" });
|
|
254
254
|
},
|
|
255
|
-
onPointerMove(
|
|
256
|
-
|
|
255
|
+
onPointerMove(d) {
|
|
256
|
+
d.defaultPrevented || w || d.pointerType !== "touch" && r({ type: "pointer.move" });
|
|
257
257
|
},
|
|
258
258
|
onPointerLeave() {
|
|
259
259
|
w || r({ type: "pointer.leave" });
|
|
@@ -264,32 +264,32 @@ function vt(e, o) {
|
|
|
264
264
|
});
|
|
265
265
|
},
|
|
266
266
|
getArrowProps() {
|
|
267
|
-
return
|
|
268
|
-
id:
|
|
267
|
+
return t.element({
|
|
268
|
+
id: yt(c),
|
|
269
269
|
...D.arrow.attrs,
|
|
270
|
-
dir:
|
|
270
|
+
dir: p("dir"),
|
|
271
271
|
style: C.arrow
|
|
272
272
|
});
|
|
273
273
|
},
|
|
274
274
|
getArrowTipProps() {
|
|
275
|
-
return
|
|
275
|
+
return t.element({
|
|
276
276
|
...D.arrowTip.attrs,
|
|
277
|
-
dir:
|
|
277
|
+
dir: p("dir"),
|
|
278
278
|
style: C.arrowTip
|
|
279
279
|
});
|
|
280
280
|
},
|
|
281
281
|
getPositionerProps() {
|
|
282
|
-
return
|
|
282
|
+
return t.element({
|
|
283
283
|
id: be(c),
|
|
284
284
|
...D.positioner.attrs,
|
|
285
|
-
dir:
|
|
285
|
+
dir: p("dir"),
|
|
286
286
|
style: C.floating
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
289
|
getContentProps() {
|
|
290
|
-
return
|
|
290
|
+
return t.element({
|
|
291
291
|
...D.content.attrs,
|
|
292
|
-
dir:
|
|
292
|
+
dir: p("dir"),
|
|
293
293
|
hidden: !u,
|
|
294
294
|
"data-state": u ? "open" : "closed",
|
|
295
295
|
role: g ? void 0 : "tooltip",
|
|
@@ -302,13 +302,13 @@ function vt(e, o) {
|
|
|
302
302
|
r({ type: "content.pointer.leave" });
|
|
303
303
|
},
|
|
304
304
|
style: {
|
|
305
|
-
pointerEvents:
|
|
305
|
+
pointerEvents: p("interactive") ? "auto" : "none"
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var { and:
|
|
311
|
+
var { and: Pt, not: se } = Ue(), Ot = Ge({
|
|
312
312
|
initialState: ({ prop: e }) => e("open") || e("defaultOpen") ? "open" : "closed",
|
|
313
313
|
props({ props: e }) {
|
|
314
314
|
return {
|
|
@@ -333,11 +333,11 @@ var { and: yt, not: se } = ze(), mt = Be({
|
|
|
333
333
|
currentPlacement: e(() => ({ defaultValue: void 0 })),
|
|
334
334
|
hasPointerMoveOpened: e(() => ({ defaultValue: !1 }))
|
|
335
335
|
}),
|
|
336
|
-
watch({ track: e, action:
|
|
337
|
-
e([() =>
|
|
338
|
-
|
|
339
|
-
}), e([() =>
|
|
340
|
-
|
|
336
|
+
watch({ track: e, action: t, prop: o }) {
|
|
337
|
+
e([() => o("disabled")], () => {
|
|
338
|
+
t(["closeIfDisabled"]);
|
|
339
|
+
}), e([() => o("open")], () => {
|
|
340
|
+
t(["toggleVisibility"]);
|
|
341
341
|
});
|
|
342
342
|
},
|
|
343
343
|
states: {
|
|
@@ -362,7 +362,7 @@ var { and: yt, not: se } = ze(), mt = Be({
|
|
|
362
362
|
},
|
|
363
363
|
"pointer.move": [
|
|
364
364
|
{
|
|
365
|
-
guard:
|
|
365
|
+
guard: Pt("noVisibleTooltip", se("hasPointerMoveOpened")),
|
|
366
366
|
target: "opening"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
@@ -539,15 +539,15 @@ var { and: yt, not: se } = ze(), mt = Be({
|
|
|
539
539
|
invokeOnClose: ({ prop: e }) => {
|
|
540
540
|
e("onOpenChange")?.({ open: !1 });
|
|
541
541
|
},
|
|
542
|
-
closeIfDisabled: ({ prop: e, send:
|
|
543
|
-
e("disabled") &&
|
|
542
|
+
closeIfDisabled: ({ prop: e, send: t }) => {
|
|
543
|
+
e("disabled") && t({ type: "close", src: "disabled.change" });
|
|
544
544
|
},
|
|
545
|
-
reposition: ({ context: e, event:
|
|
546
|
-
if (
|
|
545
|
+
reposition: ({ context: e, event: t, prop: o, scope: n }) => {
|
|
546
|
+
if (t.type !== "positioning.set") return;
|
|
547
547
|
const r = () => re(n);
|
|
548
548
|
return ee(z(n), r, {
|
|
549
|
-
...
|
|
550
|
-
...
|
|
549
|
+
...o("positioning"),
|
|
550
|
+
...t.options,
|
|
551
551
|
defer: !0,
|
|
552
552
|
listeners: !1,
|
|
553
553
|
onComplete(c) {
|
|
@@ -555,11 +555,11 @@ var { and: yt, not: se } = ze(), mt = Be({
|
|
|
555
555
|
}
|
|
556
556
|
});
|
|
557
557
|
},
|
|
558
|
-
toggleVisibility: ({ prop: e, event:
|
|
558
|
+
toggleVisibility: ({ prop: e, event: t, send: o }) => {
|
|
559
559
|
queueMicrotask(() => {
|
|
560
|
-
|
|
560
|
+
o({
|
|
561
561
|
type: e("open") ? "controlled.open" : "controlled.close",
|
|
562
|
-
previousEvent:
|
|
562
|
+
previousEvent: t
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
},
|
|
@@ -571,63 +571,63 @@ var { and: yt, not: se } = ze(), mt = Be({
|
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
573
|
effects: {
|
|
574
|
-
trackFocusVisible: ({ scope: e }) =>
|
|
575
|
-
trackPositioning: ({ context: e, prop:
|
|
576
|
-
e.get("currentPlacement") || e.set("currentPlacement",
|
|
577
|
-
const n = () => re(
|
|
578
|
-
return ee(z(
|
|
579
|
-
...
|
|
574
|
+
trackFocusVisible: ({ scope: e }) => tt({ root: e.getRootNode?.() }),
|
|
575
|
+
trackPositioning: ({ context: e, prop: t, scope: o }) => {
|
|
576
|
+
e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement);
|
|
577
|
+
const n = () => re(o);
|
|
578
|
+
return ee(z(o), n, {
|
|
579
|
+
...t("positioning"),
|
|
580
580
|
defer: !0,
|
|
581
581
|
onComplete(r) {
|
|
582
582
|
e.set("currentPlacement", r.placement);
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
},
|
|
586
|
-
trackPointerlockChange: ({ send: e, scope:
|
|
587
|
-
const
|
|
588
|
-
return B(
|
|
586
|
+
trackPointerlockChange: ({ send: e, scope: t }) => {
|
|
587
|
+
const o = t.getDoc();
|
|
588
|
+
return B(o, "pointerlockchange", () => e({ type: "close", src: "pointerlock:change" }), !1);
|
|
589
589
|
},
|
|
590
|
-
trackScroll: ({ send: e, prop:
|
|
591
|
-
if (!
|
|
592
|
-
const n = z(
|
|
590
|
+
trackScroll: ({ send: e, prop: t, scope: o }) => {
|
|
591
|
+
if (!t("closeOnScroll")) return;
|
|
592
|
+
const n = z(o);
|
|
593
593
|
if (!n) return;
|
|
594
|
-
const c =
|
|
594
|
+
const c = qe(n).map((p) => B(p, "scroll", () => {
|
|
595
595
|
e({ type: "close", src: "scroll" });
|
|
596
596
|
}, {
|
|
597
597
|
passive: !0,
|
|
598
598
|
capture: !0
|
|
599
599
|
}));
|
|
600
600
|
return () => {
|
|
601
|
-
c.forEach((
|
|
601
|
+
c.forEach((p) => p?.());
|
|
602
602
|
};
|
|
603
603
|
},
|
|
604
|
-
trackStore: ({ prop: e, send:
|
|
605
|
-
let
|
|
604
|
+
trackStore: ({ prop: e, send: t }) => {
|
|
605
|
+
let o;
|
|
606
606
|
return queueMicrotask(() => {
|
|
607
|
-
|
|
608
|
-
h.id !== e("id") &&
|
|
607
|
+
o = ut(h, () => {
|
|
608
|
+
h.id !== e("id") && t({ type: "close", src: "id.change" });
|
|
609
609
|
});
|
|
610
|
-
}), () =>
|
|
610
|
+
}), () => o?.();
|
|
611
611
|
},
|
|
612
|
-
trackEscapeKey: ({ send: e, prop:
|
|
613
|
-
|
|
612
|
+
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? B(document, "keydown", (n) => {
|
|
613
|
+
He(n) || n.key === "Escape" && (n.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
|
|
614
614
|
}, !0) : void 0,
|
|
615
|
-
waitForOpenDelay: ({ send: e, prop:
|
|
616
|
-
const
|
|
615
|
+
waitForOpenDelay: ({ send: e, prop: t }) => {
|
|
616
|
+
const o = setTimeout(() => {
|
|
617
617
|
e({ type: "after.openDelay" });
|
|
618
|
-
},
|
|
619
|
-
return () => clearTimeout(
|
|
618
|
+
}, t("openDelay"));
|
|
619
|
+
return () => clearTimeout(o);
|
|
620
620
|
},
|
|
621
|
-
waitForCloseDelay: ({ send: e, prop:
|
|
622
|
-
const
|
|
621
|
+
waitForCloseDelay: ({ send: e, prop: t }) => {
|
|
622
|
+
const o = setTimeout(() => {
|
|
623
623
|
e({ type: "after.closeDelay" });
|
|
624
|
-
},
|
|
625
|
-
return () => clearTimeout(
|
|
624
|
+
}, t("closeDelay"));
|
|
625
|
+
return () => clearTimeout(o);
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
|
|
630
|
+
xe()([
|
|
631
631
|
"aria-label",
|
|
632
632
|
"closeDelay",
|
|
633
633
|
"closeOnEscape",
|
|
@@ -646,80 +646,85 @@ je()([
|
|
|
646
646
|
"openDelay",
|
|
647
647
|
"positioning"
|
|
648
648
|
]);
|
|
649
|
-
const
|
|
650
|
-
const
|
|
651
|
-
id:
|
|
649
|
+
const wt = (e) => {
|
|
650
|
+
const t = Le(), { getRootNode: o } = Ve(), { dir: n } = _e(), r = {
|
|
651
|
+
id: t,
|
|
652
652
|
dir: n,
|
|
653
|
-
getRootNode:
|
|
653
|
+
getRootNode: o,
|
|
654
654
|
...e
|
|
655
|
-
}, c =
|
|
656
|
-
return
|
|
657
|
-
},
|
|
658
|
-
const [
|
|
659
|
-
return /* @__PURE__ */ f.jsx(pe, { value: r, children: /* @__PURE__ */ f.jsx(ce, { value: c, children:
|
|
660
|
-
},
|
|
661
|
-
const [
|
|
662
|
-
return /* @__PURE__ */ f.jsx(pe, { value:
|
|
663
|
-
}, ke = L((e,
|
|
664
|
-
const
|
|
665
|
-
return /* @__PURE__ */ f.jsx(
|
|
655
|
+
}, c = Ie(Ot, r);
|
|
656
|
+
return mt(c, Ne);
|
|
657
|
+
}, ht = (e) => {
|
|
658
|
+
const [t, { children: o, ...n }] = ae(e), r = wt(n), c = le(E({ present: r.open }, t));
|
|
659
|
+
return /* @__PURE__ */ f.jsx(pe, { value: r, children: /* @__PURE__ */ f.jsx(ce, { value: c, children: o }) });
|
|
660
|
+
}, bt = (e) => {
|
|
661
|
+
const [t, { value: o, children: n }] = ae(e), r = le(E({ present: o.open }, t));
|
|
662
|
+
return /* @__PURE__ */ f.jsx(pe, { value: o, children: /* @__PURE__ */ f.jsx(ce, { value: r, children: n }) });
|
|
663
|
+
}, ke = L((e, t) => {
|
|
664
|
+
const o = x(), n = E(o.getTriggerProps(), e);
|
|
665
|
+
return /* @__PURE__ */ f.jsx(R.button, { ...n, ref: t });
|
|
666
666
|
});
|
|
667
667
|
ke.displayName = "TooltipTrigger";
|
|
668
668
|
const {
|
|
669
669
|
withRootProvider: Ee,
|
|
670
|
-
withContext:
|
|
671
|
-
} =
|
|
670
|
+
withContext: V
|
|
671
|
+
} = Ke({ key: "tooltip" });
|
|
672
672
|
Ee(
|
|
673
|
-
|
|
673
|
+
bt
|
|
674
674
|
);
|
|
675
|
-
const
|
|
675
|
+
const kt = Ee(ht, {
|
|
676
676
|
defaultProps: { lazyMount: !0, unmountOnExit: !0 }
|
|
677
|
-
}),
|
|
677
|
+
}), Et = V(ke, "trigger", { forwardAsChild: !0 }), Tt = V(ve, "positioner", { forwardAsChild: !0 }), Ct = V(
|
|
678
678
|
ge,
|
|
679
679
|
"content",
|
|
680
680
|
{ forwardAsChild: !0 }
|
|
681
|
-
), Te =
|
|
681
|
+
), Te = V(fe, "arrowTip", { forwardAsChild: !0 }), Mt = V(
|
|
682
682
|
ue,
|
|
683
683
|
"arrow",
|
|
684
684
|
{ forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ f.jsx(Te, {}) } }
|
|
685
|
-
),
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
685
|
+
), Lt = Se(
|
|
686
|
+
void 0
|
|
687
|
+
), St = () => {
|
|
688
|
+
const e = De(Lt);
|
|
689
|
+
return e === void 0 ? { contentRef: null } : e;
|
|
690
|
+
}, Dt = L(
|
|
691
|
+
(e, t) => {
|
|
692
|
+
const { contentRef: o } = St(), {
|
|
693
|
+
children: n,
|
|
694
|
+
disabled: r = !1,
|
|
695
|
+
openDelay: c = 350,
|
|
696
|
+
placement: p = "top",
|
|
697
|
+
positioning: a,
|
|
698
|
+
portalled: y = !0,
|
|
699
|
+
label: g,
|
|
700
|
+
...u
|
|
696
701
|
} = e;
|
|
697
|
-
return
|
|
698
|
-
|
|
702
|
+
return n ? r ? n : /* @__PURE__ */ f.jsxs(
|
|
703
|
+
kt,
|
|
699
704
|
{
|
|
700
705
|
positioning: {
|
|
701
|
-
...
|
|
702
|
-
placement:
|
|
706
|
+
...a,
|
|
707
|
+
placement: a?.placement || p
|
|
703
708
|
},
|
|
704
|
-
openDelay:
|
|
705
|
-
...
|
|
709
|
+
openDelay: c,
|
|
710
|
+
...u,
|
|
706
711
|
children: [
|
|
707
712
|
/* @__PURE__ */ f.jsx(
|
|
708
|
-
|
|
713
|
+
Et,
|
|
709
714
|
{
|
|
710
715
|
className: "Tooltip__Trigger",
|
|
711
716
|
"data-testid": "kibble-tooltip-trigger",
|
|
712
717
|
display: "inline-block",
|
|
713
718
|
asChild: !0,
|
|
714
|
-
children:
|
|
719
|
+
children: n
|
|
715
720
|
}
|
|
716
721
|
),
|
|
717
|
-
/* @__PURE__ */ f.jsx(
|
|
718
|
-
|
|
722
|
+
/* @__PURE__ */ f.jsx(Fe, { disabled: !y, container: o || void 0, children: /* @__PURE__ */ f.jsx(Tt, { className: "Tooltip", "data-testid": "kibble-tooltip", children: /* @__PURE__ */ f.jsxs(
|
|
723
|
+
Ct,
|
|
719
724
|
{
|
|
720
725
|
className: "Tooltip__Content",
|
|
721
726
|
"data-testid": "kibble-tooltip-content",
|
|
722
|
-
ref:
|
|
727
|
+
ref: t,
|
|
723
728
|
fontSize: "sm",
|
|
724
729
|
p: 2,
|
|
725
730
|
color: "text.contrast",
|
|
@@ -727,7 +732,7 @@ const ht = Ee(Ot, {
|
|
|
727
732
|
zIndex: "tooltipExtra",
|
|
728
733
|
children: [
|
|
729
734
|
/* @__PURE__ */ f.jsx(
|
|
730
|
-
|
|
735
|
+
Mt,
|
|
731
736
|
{
|
|
732
737
|
className: "Tooltip__Arrow",
|
|
733
738
|
"data-testid": "kibble-tooltip-arrow",
|
|
@@ -735,7 +740,7 @@ const ht = Ee(Ot, {
|
|
|
735
740
|
children: /* @__PURE__ */ f.jsx(Te, {})
|
|
736
741
|
}
|
|
737
742
|
),
|
|
738
|
-
|
|
743
|
+
g
|
|
739
744
|
]
|
|
740
745
|
}
|
|
741
746
|
) }) })
|
|
@@ -744,11 +749,13 @@ const ht = Ee(Ot, {
|
|
|
744
749
|
) : /* @__PURE__ */ f.jsx(f.Fragment, {});
|
|
745
750
|
}
|
|
746
751
|
);
|
|
747
|
-
|
|
752
|
+
Dt.displayName = "Tooltip";
|
|
748
753
|
export {
|
|
749
|
-
|
|
750
|
-
|
|
754
|
+
Lt as M,
|
|
755
|
+
Dt as T,
|
|
756
|
+
gt as a,
|
|
751
757
|
q as i,
|
|
752
|
-
|
|
758
|
+
tt as t,
|
|
759
|
+
St as u
|
|
753
760
|
};
|
|
754
|
-
//# sourceMappingURL=tooltip.component-
|
|
761
|
+
//# sourceMappingURL=tooltip.component-DYBYGsfe.js.map
|