@televet/kibble-ui 4.0.0-beta.73 → 4.0.0-beta.76
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.types-Bxrz2UAB.js → alert.types-PdqwnPFk.js} +3 -3
- package/dist/chunks/{alert.types-Bxrz2UAB.js.map → alert.types-PdqwnPFk.js.map} +1 -1
- package/dist/chunks/{alert.types-Dl6ivTll.js → alert.types-nvUPBs5x.js} +2 -2
- package/dist/chunks/{alert.types-Dl6ivTll.js.map → alert.types-nvUPBs5x.js.map} +1 -1
- package/dist/chunks/avatar.component-CBN_huX5.js +2 -0
- package/dist/chunks/{avatar.component-BdkTgslj.js.map → avatar.component-CBN_huX5.js.map} +1 -1
- package/dist/chunks/{avatar.component-DPu-22kf.js → avatar.component-ChgtiH34.js} +13 -13
- package/dist/chunks/{avatar.component-DPu-22kf.js.map → avatar.component-ChgtiH34.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BW26RkqL.js → avatarGroup.component-BdS6rqSd.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BW26RkqL.js.map → avatarGroup.component-BdS6rqSd.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-DHhW8fL3.js → avatarGroup.component-DqY1U0nn.js} +2 -2
- package/dist/chunks/{avatarGroup.component-DHhW8fL3.js.map → avatarGroup.component-DqY1U0nn.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-B3nqpiRU.js → buttonGroup.component-B0YaQeld.js} +2 -2
- package/dist/chunks/{buttonGroup.component-B3nqpiRU.js.map → buttonGroup.component-B0YaQeld.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Q7Ul0yrS.js → buttonGroup.component-Dw1eWco8.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Q7Ul0yrS.js.map → buttonGroup.component-Dw1eWco8.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-D1qCNVkb.js → characterCounter.component-D2yESqaY.js} +2 -2
- package/dist/chunks/{characterCounter.component-D1qCNVkb.js.map → characterCounter.component-D2yESqaY.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-CNo6Xau3.js → characterCounter.component-DL4T3MCU.js} +2 -2
- package/dist/chunks/{characterCounter.component-CNo6Xau3.js.map → characterCounter.component-DL4T3MCU.js.map} +1 -1
- package/dist/chunks/{checkbox.component-CxnOW6Sj.js → checkbox.component-C9K_0aVs.js} +2 -2
- package/dist/chunks/{checkbox.component-CxnOW6Sj.js.map → checkbox.component-C9K_0aVs.js.map} +1 -1
- package/dist/chunks/{checkbox.component-GElI75y2.js → checkbox.component-Ctl_OMbe.js} +10 -10
- package/dist/chunks/{checkbox.component-GElI75y2.js.map → checkbox.component-Ctl_OMbe.js.map} +1 -1
- package/dist/chunks/{checkbox.records-4j704fMI.js → checkbox.records-CSpdkmTY.js} +12 -12
- package/dist/chunks/{checkbox.records-4j704fMI.js.map → checkbox.records-CSpdkmTY.js.map} +1 -1
- package/dist/chunks/checkbox.records-DQMCwuT0.js +2 -0
- package/dist/chunks/{checkbox.records-DI3mqSNf.js.map → checkbox.records-DQMCwuT0.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CvEAkFlp.js → checkboxGroup.component-BXOO72eO.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-CvEAkFlp.js.map → checkboxGroup.component-BXOO72eO.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Dc39GJV4.js → checkboxGroup.component-Bskd5dH5.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-Dc39GJV4.js.map → checkboxGroup.component-Bskd5dH5.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-DnIpQo_a.js → conversationCard.component-C-FkaUmK.js} +15 -16
- package/dist/chunks/{conversationCard.component-DnIpQo_a.js.map → conversationCard.component-C-FkaUmK.js.map} +1 -1
- package/dist/chunks/conversationCard.component-DzWJ5HQW.js +2 -0
- package/dist/chunks/{conversationCard.component-CHm8X5MK.js.map → conversationCard.component-DzWJ5HQW.js.map} +1 -1
- package/dist/chunks/{datePicker.component-27W5L9DI.js → datePicker.component-BBOkyyla.js} +8 -7
- package/dist/chunks/datePicker.component-BBOkyyla.js.map +1 -0
- package/dist/chunks/{datePicker.component-C7pwPHzo.js → datePicker.component-C9lbmDiW.js} +3 -3
- package/dist/chunks/datePicker.component-C9lbmDiW.js.map +1 -0
- package/dist/chunks/{dialog-trigger-MkOQUjzu.js → dialog-trigger-B5NK0lr-.js} +2 -2
- package/dist/chunks/{dialog-trigger-MkOQUjzu.js.map → dialog-trigger-B5NK0lr-.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-eqGXDXGQ.js → dialog-trigger-Qc_jF1sR.js} +9 -9
- package/dist/chunks/{dialog-trigger-eqGXDXGQ.js.map → dialog-trigger-Qc_jF1sR.js.map} +1 -1
- package/dist/chunks/{heading.component-C7W_ipcL.js → heading.component-BzNpnXHK.js} +2 -2
- package/dist/chunks/{heading.component-C7W_ipcL.js.map → heading.component-BzNpnXHK.js.map} +1 -1
- package/dist/chunks/{heading.component-dGH5sXSB.js → heading.component-D84GW8Ex.js} +2 -2
- package/dist/chunks/{heading.component-dGH5sXSB.js.map → heading.component-D84GW8Ex.js.map} +1 -1
- package/dist/chunks/{index-Cbkb_94C.js → index-B2pGzKof.js} +49 -48
- package/dist/chunks/{index-Cbkb_94C.js.map → index-B2pGzKof.js.map} +1 -1
- package/dist/chunks/{index-CtXUprYH.js → index-BBZxmcrY.js} +2 -2
- package/dist/chunks/{index-CtXUprYH.js.map → index-BBZxmcrY.js.map} +1 -1
- package/dist/chunks/index-BDnnTdaJ.js +2 -0
- package/dist/chunks/{index-CS8X6LiC.js.map → index-BDnnTdaJ.js.map} +1 -1
- package/dist/chunks/index-BGwwyukg.js +2 -0
- package/dist/chunks/index-BGwwyukg.js.map +1 -0
- package/dist/chunks/index-BIz6smcP.js +322 -0
- package/dist/chunks/index-BIz6smcP.js.map +1 -0
- package/dist/chunks/{index-C_AXAeNS.js → index-BRCoaB60.js} +17 -16
- package/dist/chunks/{index-C_AXAeNS.js.map → index-BRCoaB60.js.map} +1 -1
- package/dist/chunks/{index-DOXzraja.js → index-BYf7SZUC.js} +2 -2
- package/dist/chunks/{index-DOXzraja.js.map → index-BYf7SZUC.js.map} +1 -1
- package/dist/chunks/{index-OpolRlgD.js → index-BwIBc5Vr.js} +3 -3
- package/dist/chunks/{index-OpolRlgD.js.map → index-BwIBc5Vr.js.map} +1 -1
- package/dist/chunks/index-C4Skb3ZI.js +2 -0
- package/dist/chunks/{index-DBk0LkcO.js.map → index-C4Skb3ZI.js.map} +1 -1
- package/dist/chunks/{index-Bff1r_rH.js → index-C6cNrRSG.js} +15 -15
- package/dist/chunks/{index-Bff1r_rH.js.map → index-C6cNrRSG.js.map} +1 -1
- package/dist/chunks/{index-DowO8Ued.js → index-COoMV9Mh.js} +2 -2
- package/dist/chunks/{index-DowO8Ued.js.map → index-COoMV9Mh.js.map} +1 -1
- package/dist/chunks/index-CZ42b9rT.js +3 -0
- package/dist/chunks/index-CZ42b9rT.js.map +1 -0
- package/dist/chunks/index-CZz7hHWb.js +2 -0
- package/dist/chunks/{index-QTIBH1Or.js.map → index-CZz7hHWb.js.map} +1 -1
- package/dist/chunks/index-Czx27hGN.js +1018 -0
- package/dist/chunks/index-Czx27hGN.js.map +1 -0
- package/dist/chunks/{index-cSjUS7Xj.js → index-DwxB1_tE.js} +44 -43
- package/dist/chunks/{index-cSjUS7Xj.js.map → index-DwxB1_tE.js.map} +1 -1
- package/dist/chunks/{index-CJLttzPM.js → index-Im8BYbf9.js} +3 -3
- package/dist/chunks/{index-CJLttzPM.js.map → index-Im8BYbf9.js.map} +1 -1
- package/dist/chunks/{index-DUY19L6M.js → index-KOHUWYh0.js} +106 -105
- package/dist/chunks/{index-DUY19L6M.js.map → index-KOHUWYh0.js.map} +1 -1
- package/dist/chunks/index-MlhL0PDC.js +2 -0
- package/dist/chunks/{index-BR7peqZO.js.map → index-MlhL0PDC.js.map} +1 -1
- package/dist/chunks/{index-L197Dry5.js → index-Ootk-hWL.js} +18 -17
- package/dist/chunks/{index-L197Dry5.js.map → index-Ootk-hWL.js.map} +1 -1
- package/dist/chunks/index-UWtj4ULm.js +8 -0
- package/dist/chunks/{index-iaug4k6v.js.map → index-UWtj4ULm.js.map} +1 -1
- package/dist/chunks/index-ZaGEDS_0.js +2 -0
- package/dist/chunks/{index-DSedXH1s.js.map → index-ZaGEDS_0.js.map} +1 -1
- package/dist/chunks/{index-DVNjUEDJ.js → index-ftlwWpKA.js} +9 -9
- package/dist/chunks/{index-DVNjUEDJ.js.map → index-ftlwWpKA.js.map} +1 -1
- package/dist/chunks/{menu.component-CFYFhp7-.js → menu.component-C6JbDroI.js} +26 -26
- package/dist/chunks/{menu.component-CFYFhp7-.js.map → menu.component-C6JbDroI.js.map} +1 -1
- package/dist/chunks/{menu.component-BGGElaYy.js → menu.component-DHh_2Eme.js} +2 -2
- package/dist/chunks/{menu.component-BGGElaYy.js.map → menu.component-DHh_2Eme.js.map} +1 -1
- package/dist/chunks/{modal.types-Bpoq1pcb.js → modal.types-CmgKqsZR.js} +2 -2
- package/dist/chunks/{modal.types-Bpoq1pcb.js.map → modal.types-CmgKqsZR.js.map} +1 -1
- package/dist/chunks/{modal.types-CUUJVRPN.js → modal.types-nOPrSEJd.js} +4 -4
- package/dist/chunks/{modal.types-CUUJVRPN.js.map → modal.types-nOPrSEJd.js.map} +1 -1
- package/dist/chunks/{pinInput.types-OnwTDVZV.js → pinInput.types-CtFQbT8o.js} +2 -2
- package/dist/chunks/{pinInput.types-OnwTDVZV.js.map → pinInput.types-CtFQbT8o.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DX8ognpo.js → pinInput.types-W39JHqF7.js} +8 -8
- package/dist/chunks/{pinInput.types-DX8ognpo.js.map → pinInput.types-W39JHqF7.js.map} +1 -1
- package/dist/chunks/{popover-BSBYgvs4.js → popover-80QH8HEJ.js} +2 -2
- package/dist/chunks/{popover-BSBYgvs4.js.map → popover-80QH8HEJ.js.map} +1 -1
- package/dist/chunks/{popover-DNKVYG-J.js → popover-BpMSsJKD.js} +26 -26
- package/dist/chunks/{popover-DNKVYG-J.js.map → popover-BpMSsJKD.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-C2iwUZJn.js → popover-root-provider-DAMDDAHQ.js} +2 -2
- package/dist/chunks/{popover-root-provider-C2iwUZJn.js.map → popover-root-provider-DAMDDAHQ.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-BErev2-N.js → popover-root-provider-rmv9U0xr.js} +8 -8
- package/dist/chunks/{popover-root-provider-BErev2-N.js.map → popover-root-provider-rmv9U0xr.js.map} +1 -1
- package/dist/chunks/popover.component-C6ERLtW7.js +322 -0
- package/dist/chunks/popover.component-C6ERLtW7.js.map +1 -0
- package/dist/chunks/popover.component-XsWmj-kz.js +2 -0
- package/dist/chunks/popover.component-XsWmj-kz.js.map +1 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
- package/dist/chunks/{tooltip.component-BdlSO_v_.js → popover.recipe-_90TbZhK.js} +157 -169
- package/dist/chunks/popover.recipe-_90TbZhK.js.map +1 -0
- package/dist/chunks/{radio.records-4ih1q8nO.js → radio.records-DE0E27Oo.js} +16 -16
- package/dist/chunks/{radio.records-4ih1q8nO.js.map → radio.records-DE0E27Oo.js.map} +1 -1
- package/dist/chunks/radio.records-DyRupgeD.js +2 -0
- package/dist/chunks/{radio.records-j0JOqaJ4.js.map → radio.records-DyRupgeD.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-C8_NKfl7.js → radioGroup.component-C9G5TnKb.js} +2 -2
- package/dist/chunks/{radioGroup.component-C8_NKfl7.js.map → radioGroup.component-C9G5TnKb.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-yIs1Q3VP.js → radioGroup.component-CprwLxl1.js} +11 -11
- package/dist/chunks/{radioGroup.component-yIs1Q3VP.js.map → radioGroup.component-CprwLxl1.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CnCN-czr.js → ratingDots.component-DOB0-Fyl.js} +3 -3
- package/dist/chunks/{ratingDots.component-CnCN-czr.js.map → ratingDots.component-DOB0-Fyl.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-Dr2p3X9o.js → ratingDots.component-DbxCjCy6.js} +2 -2
- package/dist/chunks/{ratingDots.component-Dr2p3X9o.js.map → ratingDots.component-DbxCjCy6.js.map} +1 -1
- package/dist/chunks/{render-strategy-C_zp9LNQ.js → render-strategy-BmWbSgqh.js} +2 -2
- package/dist/chunks/{render-strategy-C_zp9LNQ.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
- package/dist/chunks/{render-strategy-CHp7lb6C.js → render-strategy-m3gtiO9A.js} +2 -2
- package/dist/chunks/{render-strategy-CHp7lb6C.js.map → render-strategy-m3gtiO9A.js.map} +1 -1
- package/dist/chunks/{select.component-DtvSUpfM.js → select.component-D_UomQ_K.js} +43 -43
- package/dist/chunks/{select.component-DtvSUpfM.js.map → select.component-D_UomQ_K.js.map} +1 -1
- package/dist/chunks/{select.component-l3N_dfXw.js → select.component-ZLlCuJkB.js} +2 -2
- package/dist/chunks/{select.component-l3N_dfXw.js.map → select.component-ZLlCuJkB.js.map} +1 -1
- package/dist/chunks/{sortableList.component-fhJaRd25.js → sortableList.component-BcP0nTpP.js} +3 -3
- package/dist/chunks/{sortableList.component-fhJaRd25.js.map → sortableList.component-BcP0nTpP.js.map} +1 -1
- package/dist/chunks/{sortableList.component-CNysbmV6.js → sortableList.component-Du0lV3PZ.js} +3 -3
- package/dist/chunks/{sortableList.component-CNysbmV6.js.map → sortableList.component-Du0lV3PZ.js.map} +1 -1
- package/dist/chunks/{spinner.component-oz9gjaVV.js → spinner.component-DQgAPRaP.js} +2 -2
- package/dist/chunks/{spinner.component-oz9gjaVV.js.map → spinner.component-DQgAPRaP.js.map} +1 -1
- package/dist/chunks/{spinner.component-BJ6rOgt8.js → spinner.component-DRjoEc9z.js} +2 -2
- package/dist/chunks/{spinner.component-BJ6rOgt8.js.map → spinner.component-DRjoEc9z.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-SAw52UC4.js → styledAvatar.types-BgSRTKhc.js} +2 -2
- package/dist/chunks/{styledAvatar.types-SAw52UC4.js.map → styledAvatar.types-BgSRTKhc.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BvW6YJrl.js → styledAvatar.types-Qai9NHfQ.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BvW6YJrl.js.map → styledAvatar.types-Qai9NHfQ.js.map} +1 -1
- package/dist/chunks/{switch.component-DFQ_b2At.js → switch.component-C_YkOZVM.js} +2 -2
- package/dist/chunks/{switch.component-DFQ_b2At.js.map → switch.component-C_YkOZVM.js.map} +1 -1
- package/dist/chunks/{switch.component-C1hrMzRm.js → switch.component-Dg54t6kn.js} +11 -11
- package/dist/chunks/{switch.component-C1hrMzRm.js.map → switch.component-Dg54t6kn.js.map} +1 -1
- package/dist/chunks/{tabs.component-CI6YyzcT.js → tabs.component-4zh8jiEy.js} +2 -2
- package/dist/chunks/{tabs.component-CI6YyzcT.js.map → tabs.component-4zh8jiEy.js.map} +1 -1
- package/dist/chunks/{tabs.component-CmBdxZ28.js → tabs.component-U9KpRJQV.js} +47 -47
- package/dist/chunks/{tabs.component-CmBdxZ28.js.map → tabs.component-U9KpRJQV.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-33yx8LBM.js → tagBlock.component-BZG468o5.js} +5 -5
- package/dist/chunks/{tagBlock.component-33yx8LBM.js.map → tagBlock.component-BZG468o5.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-p44L1Jc9.js → tagBlock.component-V_JWEe9n.js} +2 -2
- package/dist/chunks/{tagBlock.component-p44L1Jc9.js.map → tagBlock.component-V_JWEe9n.js.map} +1 -1
- package/dist/chunks/{textInput.component-Cla6KfBZ.js → textInput.component-BLK32hA7.js} +2 -2
- package/dist/chunks/{textInput.component-Cla6KfBZ.js.map → textInput.component-BLK32hA7.js.map} +1 -1
- package/dist/chunks/{textInput.component-CUKklyGx.js → textInput.component-CcyrHWXa.js} +12 -12
- package/dist/chunks/{textInput.component-CUKklyGx.js.map → textInput.component-CcyrHWXa.js.map} +1 -1
- package/dist/chunks/{textarea.component-BcL2jK0X.js → textarea.component-B_KAENP6.js} +7 -7
- package/dist/chunks/{textarea.component-BcL2jK0X.js.map → textarea.component-B_KAENP6.js.map} +1 -1
- package/dist/chunks/{textarea.component-XYJZDZmM.js → textarea.component-D3el9l9H.js} +2 -2
- package/dist/chunks/{textarea.component-XYJZDZmM.js.map → textarea.component-D3el9l9H.js.map} +1 -1
- package/dist/chunks/theme.provider-Bar-AuPo.js +26 -0
- package/dist/chunks/theme.provider-Bar-AuPo.js.map +1 -0
- package/dist/chunks/{theme.provider-FIFC-_Wf.js → theme.provider-px_2ytDm.js} +1716 -1828
- package/dist/chunks/theme.provider-px_2ytDm.js.map +1 -0
- package/dist/chunks/{timePicker.component-ClmXeH3U.js → timePicker.component-BDngkTzk.js} +2 -2
- package/dist/chunks/timePicker.component-BDngkTzk.js.map +1 -0
- package/dist/chunks/{timePicker.component-CMouXVow.js → timePicker.component-Co16Tl6i.js} +20 -19
- package/dist/chunks/timePicker.component-Co16Tl6i.js.map +1 -0
- package/dist/chunks/{timeRange.component-nrPWV1NY.js → timeRange.component-CFgHqQ-a.js} +2 -2
- package/dist/chunks/{timeRange.component-nrPWV1NY.js.map → timeRange.component-CFgHqQ-a.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DKkwvibd.js → timeRange.component-CXZA_5f5.js} +2 -2
- package/dist/chunks/{timeRange.component-DKkwvibd.js.map → timeRange.component-CXZA_5f5.js.map} +1 -1
- package/dist/chunks/timestamp.component-D1c35p1O.js +53 -0
- package/dist/chunks/{timestamp.component-Dtn5KtVA.js.map → timestamp.component-D1c35p1O.js.map} +1 -1
- package/dist/chunks/timestamp.component-xIXZ1QOP.js +2 -0
- package/dist/chunks/{timestamp.component-CNzJfora.js.map → timestamp.component-xIXZ1QOP.js.map} +1 -1
- package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
- package/dist/chunks/{toaster.records-zJfplz5w.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
- package/dist/chunks/{toaster.records-CcwOeMM7.js → toaster.records-Dp_v1E5T.js} +22 -21
- package/dist/chunks/{toaster.records-CcwOeMM7.js.map → toaster.records-Dp_v1E5T.js.map} +1 -1
- package/dist/chunks/{typography.records-H4aA5AOA.js → typography.records-BVjSfRuB.js} +2 -2
- package/dist/chunks/{typography.records-H4aA5AOA.js.map → typography.records-BVjSfRuB.js.map} +1 -1
- package/dist/chunks/{typography.records-CSy2LmDd.js → typography.records-C6G_65b4.js} +2 -2
- package/dist/chunks/{typography.records-CSy2LmDd.js.map → typography.records-C6G_65b4.js.map} +1 -1
- package/dist/chunks/{use-field-context-CArmgHPP.js → use-field-context--wBJQY1R.js} +2 -2
- package/dist/chunks/{use-field-context-CArmgHPP.js.map → use-field-context--wBJQY1R.js.map} +1 -1
- package/dist/chunks/{use-field-context-Cm3grEyV.js → use-field-context-xndZXNT4.js} +2 -2
- package/dist/chunks/{use-field-context-Cm3grEyV.js.map → use-field-context-xndZXNT4.js.map} +1 -1
- package/dist/chunks/{use-locale-context-D0LByRu9.js → use-locale-context-BdqHZ8L8.js} +2 -2
- package/dist/chunks/{use-locale-context-D0LByRu9.js.map → use-locale-context-BdqHZ8L8.js.map} +1 -1
- package/dist/chunks/{use-locale-context-BiiNTYMT.js → use-locale-context-KeBTTMq9.js} +29 -29
- package/dist/chunks/{use-locale-context-BiiNTYMT.js.map → use-locale-context-KeBTTMq9.js.map} +1 -1
- package/dist/chunks/{withFormControl-C8knrDok.js → withFormControl-BAEE7_5w.js} +2 -2
- package/dist/chunks/{withFormControl-C8knrDok.js.map → withFormControl-BAEE7_5w.js.map} +1 -1
- package/dist/chunks/{withFormControl-CwPfUb2g.js → withFormControl-C8abg91Q.js} +49 -49
- package/dist/chunks/{withFormControl-CwPfUb2g.js.map → withFormControl-C8abg91Q.js.map} +1 -1
- package/dist/chunks/withTruncation-BAxxp5gA.js +822 -0
- package/dist/chunks/withTruncation-BAxxp5gA.js.map +1 -0
- package/dist/chunks/withTruncation-FFeS8Bf1.js +2 -0
- package/dist/chunks/withTruncation-FFeS8Bf1.js.map +1 -0
- package/dist/cjs/chakra/index.cjs +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/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/Toast/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/chakra/index.js +8 -8
- 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/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 +38 -39
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +57 -58
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +2 -4
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -1
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunks/avatar.component-BdkTgslj.js +0 -2
- package/dist/chunks/checkbox.records-DI3mqSNf.js +0 -2
- package/dist/chunks/conversationCard.component-CHm8X5MK.js +0 -2
- package/dist/chunks/datePicker.component-27W5L9DI.js.map +0 -1
- package/dist/chunks/datePicker.component-C7pwPHzo.js.map +0 -1
- package/dist/chunks/index-BR7peqZO.js +0 -2
- package/dist/chunks/index-Bz8HDeWA.js +0 -70
- package/dist/chunks/index-Bz8HDeWA.js.map +0 -1
- package/dist/chunks/index-CHIISuTq.js +0 -3
- package/dist/chunks/index-CHIISuTq.js.map +0 -1
- package/dist/chunks/index-CS8X6LiC.js +0 -2
- package/dist/chunks/index-DBk0LkcO.js +0 -2
- package/dist/chunks/index-DSedXH1s.js +0 -2
- package/dist/chunks/index-DbTEJc-K.js +0 -2
- package/dist/chunks/index-DbTEJc-K.js.map +0 -1
- package/dist/chunks/index-QTIBH1Or.js +0 -2
- package/dist/chunks/index-YtNA0Ueo.js +0 -1328
- package/dist/chunks/index-YtNA0Ueo.js.map +0 -1
- package/dist/chunks/index-iaug4k6v.js +0 -8
- package/dist/chunks/popover.component-B1TLfpqD.js +0 -2
- package/dist/chunks/popover.component-B1TLfpqD.js.map +0 -1
- package/dist/chunks/popover.component-CDGsZ6d_.js +0 -387
- package/dist/chunks/popover.component-CDGsZ6d_.js.map +0 -1
- package/dist/chunks/radio.records-j0JOqaJ4.js +0 -2
- package/dist/chunks/text.component-Ck6rZy2v.js +0 -12
- package/dist/chunks/text.component-Ck6rZy2v.js.map +0 -1
- package/dist/chunks/text.component-H5f43IC6.js +0 -2
- package/dist/chunks/text.component-H5f43IC6.js.map +0 -1
- package/dist/chunks/theme.provider-FIFC-_Wf.js.map +0 -1
- package/dist/chunks/theme.provider-oCz4Rrwj.js +0 -26
- package/dist/chunks/theme.provider-oCz4Rrwj.js.map +0 -1
- package/dist/chunks/timePicker.component-CMouXVow.js.map +0 -1
- package/dist/chunks/timePicker.component-ClmXeH3U.js.map +0 -1
- package/dist/chunks/timestamp.component-CNzJfora.js +0 -2
- package/dist/chunks/timestamp.component-Dtn5KtVA.js +0 -54
- package/dist/chunks/toaster.records-zJfplz5w.js +0 -2
- package/dist/chunks/tooltip.component-BdlSO_v_.js.map +0 -1
- package/dist/chunks/tooltip.component-Dq7F5JIs.js +0 -2
- package/dist/chunks/tooltip.component-Dq7F5JIs.js.map +0 -1
- package/dist/chunks/withTruncation-C_btJ8Nx.js +0 -2
- package/dist/chunks/withTruncation-C_btJ8Nx.js.map +0 -1
- package/dist/chunks/withTruncation-D6letsku.js +0 -67
- package/dist/chunks/withTruncation-D6letsku.js.map +0 -1
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
import { j as f } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { forwardRef as L, useId as De, memo as ee, useState as Ae, useRef as te, useCallback as Re, useEffect as Ne } from "react";
|
|
3
|
+
import { B as _e } from "./box-Ck9I7FYv.js";
|
|
4
|
+
import { c as Ve } from "./create-recipe-context-D7FewUR4.js";
|
|
5
|
+
import { c as Ie, f as A, u as le, h as Fe, g as oe, d as We, b as $e, i as Ke, j as Be, k as ze, n as Ge, s as ce, l as de, m as pe, P as He } from "./use-locale-context-KeBTTMq9.js";
|
|
6
|
+
import { c as qe } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
7
|
+
import { Y as E, Z as D, a2 as Z, b2 as Ue, D as ue, b3 as Ye, c as Ze, y as Je, R as B, b4 as Qe, b as Xe, d as et, m as tt } from "./index-Czx27hGN.js";
|
|
8
|
+
const { withContext: ot } = Ve({
|
|
9
|
+
key: "text"
|
|
10
|
+
}), nt = ot("p"), [fe, R] = Ie({
|
|
11
|
+
name: "TooltipContext",
|
|
12
|
+
hookName: "useTooltipContext",
|
|
13
|
+
providerName: "<TooltipProvider />"
|
|
14
|
+
}), ge = L((e, t) => {
|
|
15
|
+
const o = R(), n = E(o.getArrowProps(), e);
|
|
16
|
+
return /* @__PURE__ */ f.jsx(A.div, { ...n, ref: t });
|
|
17
|
+
});
|
|
18
|
+
ge.displayName = "TooltipArrow";
|
|
19
|
+
const ve = L((e, t) => {
|
|
20
|
+
const o = R(), n = E(o.getArrowTipProps(), e);
|
|
21
|
+
return /* @__PURE__ */ f.jsx(A.div, { ...n, ref: t });
|
|
22
|
+
});
|
|
23
|
+
ve.displayName = "TooltipArrowTip";
|
|
24
|
+
const me = L((e, t) => {
|
|
25
|
+
const o = R(), n = le(), r = E(o.getContentProps(), n.getPresenceProps(), e);
|
|
26
|
+
return n.unmounted ? null : /* @__PURE__ */ f.jsx(A.div, { ...r, ref: Fe(n.ref, t) });
|
|
27
|
+
});
|
|
28
|
+
me.displayName = "TooltipContent";
|
|
29
|
+
const ye = L((e, t) => {
|
|
30
|
+
const o = R(), n = E(o.getPositionerProps(), e);
|
|
31
|
+
return le().unmounted ? null : /* @__PURE__ */ f.jsx(A.div, { ...n, ref: t });
|
|
32
|
+
});
|
|
33
|
+
ye.displayName = "TooltipPositioner";
|
|
34
|
+
function rt(e) {
|
|
35
|
+
return !(e.metaKey || !Ye() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
36
|
+
}
|
|
37
|
+
var it = /* @__PURE__ */ new Set(["checkbox", "radio", "range", "color", "file", "image", "button", "submit", "reset"]);
|
|
38
|
+
function st(e, t, o) {
|
|
39
|
+
const n = o ? ue(o) : null, r = D(n);
|
|
40
|
+
return e = e || n instanceof r.HTMLInputElement && !it.has(n?.type) || n instanceof r.HTMLTextAreaElement || n instanceof r.HTMLElement && n.isContentEditable, !(e && t === "keyboard" && o instanceof r.KeyboardEvent && !Reflect.has(at, o.key));
|
|
41
|
+
}
|
|
42
|
+
var C = null, G = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), k = !1, H = !1, at = {
|
|
43
|
+
Tab: !0,
|
|
44
|
+
Escape: !0
|
|
45
|
+
};
|
|
46
|
+
function $(e, t) {
|
|
47
|
+
for (let o of G)
|
|
48
|
+
o(e, t);
|
|
49
|
+
}
|
|
50
|
+
function F(e) {
|
|
51
|
+
k = !0, rt(e) && (C = "keyboard", $("keyboard", e));
|
|
52
|
+
}
|
|
53
|
+
function w(e) {
|
|
54
|
+
C = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (k = !0, $("pointer", e));
|
|
55
|
+
}
|
|
56
|
+
function Pe(e) {
|
|
57
|
+
Ue(e) && (k = !0, C = "virtual");
|
|
58
|
+
}
|
|
59
|
+
function Oe(e) {
|
|
60
|
+
const t = ue(e);
|
|
61
|
+
t === D(t) || t === Z(t) || (!k && !H && (C = "virtual", $("virtual", e)), k = !1, H = !1);
|
|
62
|
+
}
|
|
63
|
+
function we() {
|
|
64
|
+
k = !1, H = !0;
|
|
65
|
+
}
|
|
66
|
+
function lt(e) {
|
|
67
|
+
if (typeof window > "u" || j.get(D(e)))
|
|
68
|
+
return;
|
|
69
|
+
const t = D(e), o = Z(e);
|
|
70
|
+
let n = t.HTMLElement.prototype.focus;
|
|
71
|
+
t.HTMLElement.prototype.focus = function() {
|
|
72
|
+
C = "virtual", $("virtual", null), k = !0, n.apply(this, arguments);
|
|
73
|
+
}, o.addEventListener("keydown", F, !0), o.addEventListener("keyup", F, !0), o.addEventListener("click", Pe, !0), t.addEventListener("focus", Oe, !0), t.addEventListener("blur", we, !1), typeof t.PointerEvent < "u" ? (o.addEventListener("pointerdown", w, !0), o.addEventListener("pointermove", w, !0), o.addEventListener("pointerup", w, !0)) : (o.addEventListener("mousedown", w, !0), o.addEventListener("mousemove", w, !0), o.addEventListener("mouseup", w, !0)), t.addEventListener(
|
|
74
|
+
"beforeunload",
|
|
75
|
+
() => {
|
|
76
|
+
ct(e);
|
|
77
|
+
},
|
|
78
|
+
{ once: !0 }
|
|
79
|
+
), j.set(t, { focus: n });
|
|
80
|
+
}
|
|
81
|
+
var ct = (e, t) => {
|
|
82
|
+
const o = D(e), n = Z(e);
|
|
83
|
+
j.has(o) && (o.HTMLElement.prototype.focus = j.get(o).focus, n.removeEventListener("keydown", F, !0), n.removeEventListener("keyup", F, !0), n.removeEventListener("click", Pe, !0), o.removeEventListener("focus", Oe, !0), o.removeEventListener("blur", we, !1), typeof o.PointerEvent < "u" ? (n.removeEventListener("pointerdown", w, !0), n.removeEventListener("pointermove", w, !0), n.removeEventListener("pointerup", w, !0)) : (n.removeEventListener("mousedown", w, !0), n.removeEventListener("mousemove", w, !0), n.removeEventListener("mouseup", w, !0)), j.delete(o));
|
|
84
|
+
};
|
|
85
|
+
function q() {
|
|
86
|
+
return C === "keyboard";
|
|
87
|
+
}
|
|
88
|
+
function dt(e = {}) {
|
|
89
|
+
const { isTextInput: t, autoFocus: o, onChange: n, root: r } = e;
|
|
90
|
+
lt(r), n?.({ isFocusVisible: o || q(), modality: C });
|
|
91
|
+
const l = (d, s) => {
|
|
92
|
+
st(!!t, d, s) && n?.({ isFocusVisible: q(), modality: d });
|
|
93
|
+
};
|
|
94
|
+
return G.add(l), () => {
|
|
95
|
+
G.delete(l);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
const pt = Symbol(), ne = Object.getPrototypeOf, U = /* @__PURE__ */ new WeakMap(), ut = (e) => e && (U.has(e) ? U.get(e) : ne(e) === Object.prototype || ne(e) === Array.prototype), ft = (e) => ut(e) && e[pt] || null, re = (e, t = !0) => {
|
|
99
|
+
U.set(e, t);
|
|
100
|
+
};
|
|
101
|
+
function gt() {
|
|
102
|
+
if (typeof globalThis < "u") return globalThis;
|
|
103
|
+
if (typeof self < "u") return self;
|
|
104
|
+
if (typeof window < "u") return window;
|
|
105
|
+
if (typeof global < "u") return global;
|
|
106
|
+
}
|
|
107
|
+
function be(e, t) {
|
|
108
|
+
const o = gt();
|
|
109
|
+
return o ? (o[e] || (o[e] = t()), o[e]) : t();
|
|
110
|
+
}
|
|
111
|
+
var I = be("__zag__refSet", () => /* @__PURE__ */ new WeakSet()), vt = (e) => typeof e == "object" && e !== null && "$$typeof" in e && "props" in e, mt = (e) => typeof e == "object" && e !== null && "__v_isVNode" in e, yt = (e) => typeof e == "object" && e !== null && "nodeType" in e && typeof e.nodeName == "string", Pt = (e) => vt(e) || mt(e) || yt(e), Y = (e) => e !== null && typeof e == "object", ie = (e) => Y(e) && !I.has(e) && (Array.isArray(e) || !(Symbol.iterator in e)) && !Pt(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), W = () => process.env.NODE_ENV !== "production", T = be("__zag__proxyStateMap", () => /* @__PURE__ */ new WeakMap()), Ot = (e = Object.is, t = (s, m) => new Proxy(s, m), o = /* @__PURE__ */ new WeakMap(), n = (s, m) => {
|
|
112
|
+
const g = o.get(s);
|
|
113
|
+
if (g?.[0] === m)
|
|
114
|
+
return g[1];
|
|
115
|
+
const c = Array.isArray(s) ? [] : Object.create(Object.getPrototypeOf(s));
|
|
116
|
+
return re(c, !0), o.set(s, [m, c]), Reflect.ownKeys(s).forEach((y) => {
|
|
117
|
+
const v = Reflect.get(s, y);
|
|
118
|
+
I.has(v) ? (re(v, !1), c[y] = v) : T.has(v) ? c[y] = ht(v) : c[y] = v;
|
|
119
|
+
}), Object.freeze(c);
|
|
120
|
+
}, r = /* @__PURE__ */ new WeakMap(), l = [1, 1], d = (s) => {
|
|
121
|
+
if (!Y(s))
|
|
122
|
+
throw new Error("object required");
|
|
123
|
+
const m = r.get(s);
|
|
124
|
+
if (m)
|
|
125
|
+
return m;
|
|
126
|
+
let g = l[0];
|
|
127
|
+
const c = /* @__PURE__ */ new Set(), y = (a, i = ++l[0]) => {
|
|
128
|
+
g !== i && (g = i, c.forEach((p) => p(a, i)));
|
|
129
|
+
};
|
|
130
|
+
let v = l[1];
|
|
131
|
+
const P = (a = ++l[1]) => (v !== a && !c.size && (v = a, u.forEach(([i]) => {
|
|
132
|
+
const p = i[1](a);
|
|
133
|
+
p > g && (g = p);
|
|
134
|
+
})), g), b = (a) => (i, p) => {
|
|
135
|
+
const O = [...i];
|
|
136
|
+
O[1] = [a, ...O[1]], y(O, p);
|
|
137
|
+
}, u = /* @__PURE__ */ new Map(), J = (a, i) => {
|
|
138
|
+
if (W() && u.has(a))
|
|
139
|
+
throw new Error("prop listener already exists");
|
|
140
|
+
if (c.size) {
|
|
141
|
+
const p = i[3](b(a));
|
|
142
|
+
u.set(a, [i, p]);
|
|
143
|
+
} else
|
|
144
|
+
u.set(a, [i]);
|
|
145
|
+
}, Q = (a) => {
|
|
146
|
+
const i = u.get(a);
|
|
147
|
+
i && (u.delete(a), i[1]?.());
|
|
148
|
+
}, Se = (a) => (c.add(a), c.size === 1 && u.forEach(([p, O], M) => {
|
|
149
|
+
if (W() && O)
|
|
150
|
+
throw new Error("remove already exists");
|
|
151
|
+
const x = p[3](b(M));
|
|
152
|
+
u.set(M, [p, x]);
|
|
153
|
+
}), () => {
|
|
154
|
+
c.delete(a), c.size === 0 && u.forEach(([p, O], M) => {
|
|
155
|
+
O && (O(), u.set(M, [p]));
|
|
156
|
+
});
|
|
157
|
+
}), K = Array.isArray(s) ? [] : Object.create(Object.getPrototypeOf(s)), _ = t(K, {
|
|
158
|
+
deleteProperty(a, i) {
|
|
159
|
+
const p = Reflect.get(a, i);
|
|
160
|
+
Q(i);
|
|
161
|
+
const O = Reflect.deleteProperty(a, i);
|
|
162
|
+
return O && y(["delete", [i], p]), O;
|
|
163
|
+
},
|
|
164
|
+
set(a, i, p, O) {
|
|
165
|
+
const M = Reflect.has(a, i), x = Reflect.get(a, i, O);
|
|
166
|
+
if (M && (e(x, p) || r.has(p) && e(x, r.get(p))))
|
|
167
|
+
return !0;
|
|
168
|
+
Q(i), Y(p) && (p = ft(p) || p);
|
|
169
|
+
let V = p;
|
|
170
|
+
if (!Object.getOwnPropertyDescriptor(a, i)?.set) {
|
|
171
|
+
!T.has(p) && ie(p) && (V = he(p));
|
|
172
|
+
const X = !I.has(V) && T.get(V);
|
|
173
|
+
X && J(i, X);
|
|
174
|
+
}
|
|
175
|
+
return Reflect.set(a, i, V, O), y(["set", [i], p, x]), !0;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
r.set(s, _);
|
|
179
|
+
const je = [K, P, n, Se];
|
|
180
|
+
return T.set(_, je), Reflect.ownKeys(s).forEach((a) => {
|
|
181
|
+
const i = Object.getOwnPropertyDescriptor(s, a);
|
|
182
|
+
i.get || i.set ? Object.defineProperty(K, a, i) : _[a] = s[a];
|
|
183
|
+
}), _;
|
|
184
|
+
}) => [
|
|
185
|
+
// public functions
|
|
186
|
+
d,
|
|
187
|
+
// shared state
|
|
188
|
+
T,
|
|
189
|
+
I,
|
|
190
|
+
// internal things
|
|
191
|
+
e,
|
|
192
|
+
t,
|
|
193
|
+
ie,
|
|
194
|
+
o,
|
|
195
|
+
n,
|
|
196
|
+
r,
|
|
197
|
+
l
|
|
198
|
+
], [wt] = Ot();
|
|
199
|
+
function he(e = {}) {
|
|
200
|
+
return wt(e);
|
|
201
|
+
}
|
|
202
|
+
function bt(e, t, o) {
|
|
203
|
+
const n = T.get(e);
|
|
204
|
+
W() && !n && console.warn("Please use proxy object");
|
|
205
|
+
let r;
|
|
206
|
+
const l = [], d = n[3];
|
|
207
|
+
let s = !1;
|
|
208
|
+
const g = d((c) => {
|
|
209
|
+
l.push(c), r || (r = Promise.resolve().then(() => {
|
|
210
|
+
r = void 0, s && t(l.splice(0));
|
|
211
|
+
}));
|
|
212
|
+
});
|
|
213
|
+
return s = !0, () => {
|
|
214
|
+
s = !1, g();
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
function ht(e) {
|
|
218
|
+
const t = T.get(e);
|
|
219
|
+
W() && !t && console.warn("Please use proxy object");
|
|
220
|
+
const [o, n, r] = t;
|
|
221
|
+
return r(o, n());
|
|
222
|
+
}
|
|
223
|
+
var Tt = Xe("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content"), S = Tt.build(), Te = (e) => e.ids?.trigger ?? `tooltip:${e.id}:trigger`, kt = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, Et = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, ke = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, z = (e) => e.getById(Te(e)), se = (e) => e.getById(ke(e)), h = he({ id: null });
|
|
224
|
+
function Ct(e, t) {
|
|
225
|
+
const { state: o, context: n, send: r, scope: l, prop: d, event: s } = e, m = d("id"), g = !!d("aria-label"), c = o.matches("open", "closing"), y = Te(l), v = kt(l), P = d("disabled"), b = We({
|
|
226
|
+
...d("positioning"),
|
|
227
|
+
placement: n.get("currentPlacement")
|
|
228
|
+
});
|
|
229
|
+
return {
|
|
230
|
+
open: c,
|
|
231
|
+
setOpen(u) {
|
|
232
|
+
o.matches("open", "closing") !== u && r({ type: u ? "open" : "close" });
|
|
233
|
+
},
|
|
234
|
+
reposition(u = {}) {
|
|
235
|
+
r({ type: "positioning.set", options: u });
|
|
236
|
+
},
|
|
237
|
+
getTriggerProps() {
|
|
238
|
+
return t.button({
|
|
239
|
+
...S.trigger.attrs,
|
|
240
|
+
id: y,
|
|
241
|
+
dir: d("dir"),
|
|
242
|
+
"data-expanded": et(c),
|
|
243
|
+
"data-state": c ? "open" : "closed",
|
|
244
|
+
"aria-describedby": c ? v : void 0,
|
|
245
|
+
onClick(u) {
|
|
246
|
+
u.defaultPrevented || P || d("closeOnClick") && r({ type: "close", src: "trigger.click" });
|
|
247
|
+
},
|
|
248
|
+
onFocus(u) {
|
|
249
|
+
queueMicrotask(() => {
|
|
250
|
+
u.defaultPrevented || P || s.src !== "trigger.pointerdown" && q() && r({ type: "open", src: "trigger.focus" });
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
onBlur(u) {
|
|
254
|
+
u.defaultPrevented || P || m === h.id && r({ type: "close", src: "trigger.blur" });
|
|
255
|
+
},
|
|
256
|
+
onPointerDown(u) {
|
|
257
|
+
u.defaultPrevented || P || d("closeOnPointerDown") && m === h.id && r({ type: "close", src: "trigger.pointerdown" });
|
|
258
|
+
},
|
|
259
|
+
onPointerMove(u) {
|
|
260
|
+
u.defaultPrevented || P || u.pointerType !== "touch" && r({ type: "pointer.move" });
|
|
261
|
+
},
|
|
262
|
+
onPointerLeave() {
|
|
263
|
+
P || r({ type: "pointer.leave" });
|
|
264
|
+
},
|
|
265
|
+
onPointerCancel() {
|
|
266
|
+
P || r({ type: "pointer.leave" });
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
getArrowProps() {
|
|
271
|
+
return t.element({
|
|
272
|
+
id: Et(l),
|
|
273
|
+
...S.arrow.attrs,
|
|
274
|
+
dir: d("dir"),
|
|
275
|
+
style: b.arrow
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
|
+
getArrowTipProps() {
|
|
279
|
+
return t.element({
|
|
280
|
+
...S.arrowTip.attrs,
|
|
281
|
+
dir: d("dir"),
|
|
282
|
+
style: b.arrowTip
|
|
283
|
+
});
|
|
284
|
+
},
|
|
285
|
+
getPositionerProps() {
|
|
286
|
+
return t.element({
|
|
287
|
+
id: ke(l),
|
|
288
|
+
...S.positioner.attrs,
|
|
289
|
+
dir: d("dir"),
|
|
290
|
+
style: b.floating
|
|
291
|
+
});
|
|
292
|
+
},
|
|
293
|
+
getContentProps() {
|
|
294
|
+
return t.element({
|
|
295
|
+
...S.content.attrs,
|
|
296
|
+
dir: d("dir"),
|
|
297
|
+
hidden: !c,
|
|
298
|
+
"data-state": c ? "open" : "closed",
|
|
299
|
+
role: g ? void 0 : "tooltip",
|
|
300
|
+
id: g ? void 0 : v,
|
|
301
|
+
"data-placement": n.get("currentPlacement"),
|
|
302
|
+
onPointerEnter() {
|
|
303
|
+
r({ type: "content.pointer.move" });
|
|
304
|
+
},
|
|
305
|
+
onPointerLeave() {
|
|
306
|
+
r({ type: "content.pointer.leave" });
|
|
307
|
+
},
|
|
308
|
+
style: {
|
|
309
|
+
pointerEvents: d("interactive") ? "auto" : "none"
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
var { and: Mt, not: ae } = Je(), Lt = Ze({
|
|
316
|
+
initialState: ({ prop: e }) => e("open") || e("defaultOpen") ? "open" : "closed",
|
|
317
|
+
props({ props: e }) {
|
|
318
|
+
return {
|
|
319
|
+
id: "x",
|
|
320
|
+
openDelay: 1e3,
|
|
321
|
+
closeDelay: 500,
|
|
322
|
+
closeOnPointerDown: !0,
|
|
323
|
+
closeOnEscape: !0,
|
|
324
|
+
interactive: !1,
|
|
325
|
+
closeOnScroll: !0,
|
|
326
|
+
closeOnClick: !0,
|
|
327
|
+
disabled: !1,
|
|
328
|
+
...e,
|
|
329
|
+
positioning: {
|
|
330
|
+
placement: "bottom",
|
|
331
|
+
...e.positioning
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
effects: ["trackFocusVisible", "trackStore"],
|
|
336
|
+
context: ({ bindable: e }) => ({
|
|
337
|
+
currentPlacement: e(() => ({ defaultValue: void 0 })),
|
|
338
|
+
hasPointerMoveOpened: e(() => ({ defaultValue: !1 }))
|
|
339
|
+
}),
|
|
340
|
+
watch({ track: e, action: t, prop: o }) {
|
|
341
|
+
e([() => o("disabled")], () => {
|
|
342
|
+
t(["closeIfDisabled"]);
|
|
343
|
+
}), e([() => o("open")], () => {
|
|
344
|
+
t(["toggleVisibility"]);
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
states: {
|
|
348
|
+
closed: {
|
|
349
|
+
entry: ["clearGlobalId"],
|
|
350
|
+
on: {
|
|
351
|
+
"controlled.open": {
|
|
352
|
+
target: "open"
|
|
353
|
+
},
|
|
354
|
+
open: [
|
|
355
|
+
{
|
|
356
|
+
guard: "isOpenControlled",
|
|
357
|
+
actions: ["invokeOnOpen"]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
target: "open",
|
|
361
|
+
actions: ["invokeOnOpen"]
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"pointer.leave": {
|
|
365
|
+
actions: ["clearPointerMoveOpened"]
|
|
366
|
+
},
|
|
367
|
+
"pointer.move": [
|
|
368
|
+
{
|
|
369
|
+
guard: Mt("noVisibleTooltip", ae("hasPointerMoveOpened")),
|
|
370
|
+
target: "opening"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
guard: ae("hasPointerMoveOpened"),
|
|
374
|
+
target: "open",
|
|
375
|
+
actions: ["setPointerMoveOpened", "invokeOnOpen"]
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
opening: {
|
|
381
|
+
effects: ["trackScroll", "trackPointerlockChange", "waitForOpenDelay"],
|
|
382
|
+
on: {
|
|
383
|
+
"after.openDelay": [
|
|
384
|
+
{
|
|
385
|
+
guard: "isOpenControlled",
|
|
386
|
+
actions: ["setPointerMoveOpened", "invokeOnOpen"]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
target: "open",
|
|
390
|
+
actions: ["setPointerMoveOpened", "invokeOnOpen"]
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"controlled.open": {
|
|
394
|
+
target: "open"
|
|
395
|
+
},
|
|
396
|
+
"controlled.close": {
|
|
397
|
+
target: "closed"
|
|
398
|
+
},
|
|
399
|
+
open: [
|
|
400
|
+
{
|
|
401
|
+
guard: "isOpenControlled",
|
|
402
|
+
actions: ["invokeOnOpen"]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
target: "open",
|
|
406
|
+
actions: ["invokeOnOpen"]
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"pointer.leave": [
|
|
410
|
+
{
|
|
411
|
+
guard: "isOpenControlled",
|
|
412
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
413
|
+
actions: ["clearPointerMoveOpened", "invokeOnClose", "toggleVisibility"]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
target: "closed",
|
|
417
|
+
actions: ["clearPointerMoveOpened", "invokeOnClose"]
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
close: [
|
|
421
|
+
{
|
|
422
|
+
guard: "isOpenControlled",
|
|
423
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
424
|
+
actions: ["invokeOnClose", "toggleVisibility"]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
target: "closed",
|
|
428
|
+
actions: ["invokeOnClose"]
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
open: {
|
|
434
|
+
effects: ["trackEscapeKey", "trackScroll", "trackPointerlockChange", "trackPositioning"],
|
|
435
|
+
entry: ["setGlobalId"],
|
|
436
|
+
on: {
|
|
437
|
+
"controlled.close": {
|
|
438
|
+
target: "closed"
|
|
439
|
+
},
|
|
440
|
+
close: [
|
|
441
|
+
{
|
|
442
|
+
guard: "isOpenControlled",
|
|
443
|
+
actions: ["invokeOnClose"]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
target: "closed",
|
|
447
|
+
actions: ["invokeOnClose"]
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"pointer.leave": [
|
|
451
|
+
{
|
|
452
|
+
guard: "isVisible",
|
|
453
|
+
target: "closing",
|
|
454
|
+
actions: ["clearPointerMoveOpened"]
|
|
455
|
+
},
|
|
456
|
+
// == group ==
|
|
457
|
+
{
|
|
458
|
+
guard: "isOpenControlled",
|
|
459
|
+
actions: ["clearPointerMoveOpened", "invokeOnClose"]
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
target: "closed",
|
|
463
|
+
actions: ["clearPointerMoveOpened", "invokeOnClose"]
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
"content.pointer.leave": {
|
|
467
|
+
guard: "isInteractive",
|
|
468
|
+
target: "closing"
|
|
469
|
+
},
|
|
470
|
+
"positioning.set": {
|
|
471
|
+
actions: ["reposition"]
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
closing: {
|
|
476
|
+
effects: ["trackPositioning", "waitForCloseDelay"],
|
|
477
|
+
on: {
|
|
478
|
+
"after.closeDelay": [
|
|
479
|
+
{
|
|
480
|
+
guard: "isOpenControlled",
|
|
481
|
+
actions: ["invokeOnClose"]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
target: "closed",
|
|
485
|
+
actions: ["invokeOnClose"]
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"controlled.close": {
|
|
489
|
+
target: "closed"
|
|
490
|
+
},
|
|
491
|
+
"controlled.open": {
|
|
492
|
+
target: "open"
|
|
493
|
+
},
|
|
494
|
+
close: [
|
|
495
|
+
{
|
|
496
|
+
guard: "isOpenControlled",
|
|
497
|
+
actions: ["invokeOnClose"]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
target: "closed",
|
|
501
|
+
actions: ["invokeOnClose"]
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"pointer.move": [
|
|
505
|
+
{
|
|
506
|
+
guard: "isOpenControlled",
|
|
507
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
508
|
+
actions: ["setPointerMoveOpened", "invokeOnOpen", "toggleVisibility"]
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
target: "open",
|
|
512
|
+
actions: ["setPointerMoveOpened", "invokeOnOpen"]
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"content.pointer.move": {
|
|
516
|
+
guard: "isInteractive",
|
|
517
|
+
target: "open"
|
|
518
|
+
},
|
|
519
|
+
"positioning.set": {
|
|
520
|
+
actions: ["reposition"]
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
implementations: {
|
|
526
|
+
guards: {
|
|
527
|
+
noVisibleTooltip: () => h.id === null,
|
|
528
|
+
isVisible: ({ prop: e }) => e("id") === h.id,
|
|
529
|
+
isInteractive: ({ prop: e }) => !!e("interactive"),
|
|
530
|
+
hasPointerMoveOpened: ({ context: e }) => e.get("hasPointerMoveOpened"),
|
|
531
|
+
isOpenControlled: ({ prop: e }) => e("open") !== void 0
|
|
532
|
+
},
|
|
533
|
+
actions: {
|
|
534
|
+
setGlobalId: ({ prop: e }) => {
|
|
535
|
+
h.id = e("id");
|
|
536
|
+
},
|
|
537
|
+
clearGlobalId: ({ prop: e }) => {
|
|
538
|
+
e("id") === h.id && (h.id = null);
|
|
539
|
+
},
|
|
540
|
+
invokeOnOpen: ({ prop: e }) => {
|
|
541
|
+
e("onOpenChange")?.({ open: !0 });
|
|
542
|
+
},
|
|
543
|
+
invokeOnClose: ({ prop: e }) => {
|
|
544
|
+
e("onOpenChange")?.({ open: !1 });
|
|
545
|
+
},
|
|
546
|
+
closeIfDisabled: ({ prop: e, send: t }) => {
|
|
547
|
+
e("disabled") && t({ type: "close", src: "disabled.change" });
|
|
548
|
+
},
|
|
549
|
+
reposition: ({ context: e, event: t, prop: o, scope: n }) => {
|
|
550
|
+
if (t.type !== "positioning.set") return;
|
|
551
|
+
const r = () => se(n);
|
|
552
|
+
return oe(z(n), r, {
|
|
553
|
+
...o("positioning"),
|
|
554
|
+
...t.options,
|
|
555
|
+
defer: !0,
|
|
556
|
+
listeners: !1,
|
|
557
|
+
onComplete(l) {
|
|
558
|
+
e.set("currentPlacement", l.placement);
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
},
|
|
562
|
+
toggleVisibility: ({ prop: e, event: t, send: o }) => {
|
|
563
|
+
queueMicrotask(() => {
|
|
564
|
+
o({
|
|
565
|
+
type: e("open") ? "controlled.open" : "controlled.close",
|
|
566
|
+
previousEvent: t
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
setPointerMoveOpened: ({ context: e }) => {
|
|
571
|
+
e.set("hasPointerMoveOpened", !0);
|
|
572
|
+
},
|
|
573
|
+
clearPointerMoveOpened: ({ context: e }) => {
|
|
574
|
+
e.set("hasPointerMoveOpened", !1);
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
effects: {
|
|
578
|
+
trackFocusVisible: ({ scope: e }) => dt({ root: e.getRootNode?.() }),
|
|
579
|
+
trackPositioning: ({ context: e, prop: t, scope: o }) => {
|
|
580
|
+
e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement);
|
|
581
|
+
const n = () => se(o);
|
|
582
|
+
return oe(z(o), n, {
|
|
583
|
+
...t("positioning"),
|
|
584
|
+
defer: !0,
|
|
585
|
+
onComplete(r) {
|
|
586
|
+
e.set("currentPlacement", r.placement);
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
},
|
|
590
|
+
trackPointerlockChange: ({ send: e, scope: t }) => {
|
|
591
|
+
const o = t.getDoc();
|
|
592
|
+
return B(o, "pointerlockchange", () => e({ type: "close", src: "pointerlock:change" }), !1);
|
|
593
|
+
},
|
|
594
|
+
trackScroll: ({ send: e, prop: t, scope: o }) => {
|
|
595
|
+
if (!t("closeOnScroll")) return;
|
|
596
|
+
const n = z(o);
|
|
597
|
+
if (!n) return;
|
|
598
|
+
const l = Qe(n).map((d) => B(d, "scroll", () => {
|
|
599
|
+
e({ type: "close", src: "scroll" });
|
|
600
|
+
}, {
|
|
601
|
+
passive: !0,
|
|
602
|
+
capture: !0
|
|
603
|
+
}));
|
|
604
|
+
return () => {
|
|
605
|
+
l.forEach((d) => d?.());
|
|
606
|
+
};
|
|
607
|
+
},
|
|
608
|
+
trackStore: ({ prop: e, send: t }) => {
|
|
609
|
+
let o;
|
|
610
|
+
return queueMicrotask(() => {
|
|
611
|
+
o = bt(h, () => {
|
|
612
|
+
h.id !== e("id") && t({ type: "close", src: "id.change" });
|
|
613
|
+
});
|
|
614
|
+
}), () => o?.();
|
|
615
|
+
},
|
|
616
|
+
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? B(document, "keydown", (n) => {
|
|
617
|
+
tt(n) || n.key === "Escape" && (n.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
|
|
618
|
+
}, !0) : void 0,
|
|
619
|
+
waitForOpenDelay: ({ send: e, prop: t }) => {
|
|
620
|
+
const o = setTimeout(() => {
|
|
621
|
+
e({ type: "after.openDelay" });
|
|
622
|
+
}, t("openDelay"));
|
|
623
|
+
return () => clearTimeout(o);
|
|
624
|
+
},
|
|
625
|
+
waitForCloseDelay: ({ send: e, prop: t }) => {
|
|
626
|
+
const o = setTimeout(() => {
|
|
627
|
+
e({ type: "after.closeDelay" });
|
|
628
|
+
}, t("closeDelay"));
|
|
629
|
+
return () => clearTimeout(o);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
$e()([
|
|
635
|
+
"aria-label",
|
|
636
|
+
"closeDelay",
|
|
637
|
+
"closeOnEscape",
|
|
638
|
+
"closeOnPointerDown",
|
|
639
|
+
"closeOnScroll",
|
|
640
|
+
"closeOnClick",
|
|
641
|
+
"dir",
|
|
642
|
+
"disabled",
|
|
643
|
+
"getRootNode",
|
|
644
|
+
"id",
|
|
645
|
+
"ids",
|
|
646
|
+
"interactive",
|
|
647
|
+
"onOpenChange",
|
|
648
|
+
"defaultOpen",
|
|
649
|
+
"open",
|
|
650
|
+
"openDelay",
|
|
651
|
+
"positioning"
|
|
652
|
+
]);
|
|
653
|
+
const xt = (e) => {
|
|
654
|
+
const t = De(), { getRootNode: o } = Ke(), { dir: n } = Be(), r = {
|
|
655
|
+
id: t,
|
|
656
|
+
dir: n,
|
|
657
|
+
getRootNode: o,
|
|
658
|
+
...e
|
|
659
|
+
}, l = ze(Lt, r);
|
|
660
|
+
return Ct(l, Ge);
|
|
661
|
+
}, St = (e) => {
|
|
662
|
+
const [t, { children: o, ...n }] = ce(e), r = xt(n), l = de(E({ present: r.open }, t));
|
|
663
|
+
return /* @__PURE__ */ f.jsx(fe, { value: r, children: /* @__PURE__ */ f.jsx(pe, { value: l, children: o }) });
|
|
664
|
+
}, jt = (e) => {
|
|
665
|
+
const [t, { value: o, children: n }] = ce(e), r = de(E({ present: o.open }, t));
|
|
666
|
+
return /* @__PURE__ */ f.jsx(fe, { value: o, children: /* @__PURE__ */ f.jsx(pe, { value: r, children: n }) });
|
|
667
|
+
}, Ee = L((e, t) => {
|
|
668
|
+
const o = R(), n = E(o.getTriggerProps(), e);
|
|
669
|
+
return /* @__PURE__ */ f.jsx(A.button, { ...n, ref: t });
|
|
670
|
+
});
|
|
671
|
+
Ee.displayName = "TooltipTrigger";
|
|
672
|
+
const {
|
|
673
|
+
withRootProvider: Ce,
|
|
674
|
+
withContext: N
|
|
675
|
+
} = qe({ key: "tooltip" });
|
|
676
|
+
Ce(
|
|
677
|
+
jt
|
|
678
|
+
);
|
|
679
|
+
const Dt = Ce(St, {
|
|
680
|
+
defaultProps: { lazyMount: !0, unmountOnExit: !0 }
|
|
681
|
+
}), At = N(Ee, "trigger", { forwardAsChild: !0 }), Rt = N(ye, "positioner", { forwardAsChild: !0 }), Nt = N(
|
|
682
|
+
me,
|
|
683
|
+
"content",
|
|
684
|
+
{ forwardAsChild: !0 }
|
|
685
|
+
), Me = N(ve, "arrowTip", { forwardAsChild: !0 }), _t = N(
|
|
686
|
+
ge,
|
|
687
|
+
"arrow",
|
|
688
|
+
{ forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ f.jsx(Me, {}) } }
|
|
689
|
+
), Le = ({ children: e, ...t }) => /* @__PURE__ */ f.jsx(nt, { className: "Text", "data-testid": "kibble-text", ...t, children: e });
|
|
690
|
+
Le.displayName = "Text";
|
|
691
|
+
const Vt = It(Le), xe = L(
|
|
692
|
+
(e, t) => {
|
|
693
|
+
const {
|
|
694
|
+
children: o,
|
|
695
|
+
disabled: n = !1,
|
|
696
|
+
openDelay: r = 350,
|
|
697
|
+
placement: l = "top",
|
|
698
|
+
positioning: d,
|
|
699
|
+
portalled: s = !0,
|
|
700
|
+
label: m,
|
|
701
|
+
...g
|
|
702
|
+
} = e;
|
|
703
|
+
return o ? n ? o : /* @__PURE__ */ f.jsxs(
|
|
704
|
+
Dt,
|
|
705
|
+
{
|
|
706
|
+
positioning: {
|
|
707
|
+
...d,
|
|
708
|
+
placement: d?.placement || l
|
|
709
|
+
},
|
|
710
|
+
openDelay: r,
|
|
711
|
+
unmountOnExit: !1,
|
|
712
|
+
...g,
|
|
713
|
+
children: [
|
|
714
|
+
/* @__PURE__ */ f.jsx(
|
|
715
|
+
At,
|
|
716
|
+
{
|
|
717
|
+
asChild: !0,
|
|
718
|
+
className: "Tooltip__Trigger",
|
|
719
|
+
"data-testid": "kibble-tooltip-trigger",
|
|
720
|
+
display: "inline-block",
|
|
721
|
+
children: o
|
|
722
|
+
}
|
|
723
|
+
),
|
|
724
|
+
/* @__PURE__ */ f.jsx(
|
|
725
|
+
He,
|
|
726
|
+
{
|
|
727
|
+
disabled: !s,
|
|
728
|
+
children: /* @__PURE__ */ f.jsx(Rt, { className: "Tooltip", "data-testid": "kibble-tooltip", children: /* @__PURE__ */ f.jsxs(
|
|
729
|
+
Nt,
|
|
730
|
+
{
|
|
731
|
+
className: "Tooltip__Content",
|
|
732
|
+
"data-testid": "kibble-tooltip-content",
|
|
733
|
+
ref: t,
|
|
734
|
+
children: [
|
|
735
|
+
/* @__PURE__ */ f.jsx(
|
|
736
|
+
_t,
|
|
737
|
+
{
|
|
738
|
+
className: "Tooltip__Arrow",
|
|
739
|
+
"data-testid": "kibble-tooltip-arrow",
|
|
740
|
+
children: /* @__PURE__ */ f.jsx(Me, {})
|
|
741
|
+
}
|
|
742
|
+
),
|
|
743
|
+
/* @__PURE__ */ f.jsx(Vt, { truncated: !1, variant: "onContrast", size: "sm", children: m })
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
) })
|
|
747
|
+
}
|
|
748
|
+
)
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
) : /* @__PURE__ */ f.jsx(f.Fragment, {});
|
|
752
|
+
}
|
|
753
|
+
);
|
|
754
|
+
xe.displayName = "Tooltip";
|
|
755
|
+
const It = (e) => {
|
|
756
|
+
const t = ee(e);
|
|
757
|
+
function o({
|
|
758
|
+
truncated: n = !1,
|
|
759
|
+
noOfLines: r = 1,
|
|
760
|
+
children: l,
|
|
761
|
+
tooltipProps: d,
|
|
762
|
+
...s
|
|
763
|
+
}) {
|
|
764
|
+
const [m, g] = Ae(!1), c = te(null), y = te(null), v = Re(() => {
|
|
765
|
+
if (c.current) {
|
|
766
|
+
const P = c.current?.children[0].scrollHeight || 0, b = c.current?.offsetHeight || 0;
|
|
767
|
+
g(P > b);
|
|
768
|
+
}
|
|
769
|
+
}, []);
|
|
770
|
+
return Ne(() => {
|
|
771
|
+
if (n && c.current) {
|
|
772
|
+
let P;
|
|
773
|
+
const b = () => {
|
|
774
|
+
window.clearTimeout(P), P = window.setTimeout(v, 100);
|
|
775
|
+
};
|
|
776
|
+
return y.current = new ResizeObserver(() => {
|
|
777
|
+
b();
|
|
778
|
+
}), y.current.observe(c.current), v(), () => {
|
|
779
|
+
window.clearTimeout(P), y.current && y.current.disconnect();
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
}, [n, v]), n ? /* @__PURE__ */ f.jsx(
|
|
783
|
+
xe,
|
|
784
|
+
{
|
|
785
|
+
...d,
|
|
786
|
+
label: d?.label || l?.toLocaleString() || "",
|
|
787
|
+
disabled: !m,
|
|
788
|
+
"data-testid": "kibble-truncated-text-tooltip",
|
|
789
|
+
children: /* @__PURE__ */ f.jsx(
|
|
790
|
+
_e,
|
|
791
|
+
{
|
|
792
|
+
ref: c,
|
|
793
|
+
display: "inline-block",
|
|
794
|
+
position: "relative",
|
|
795
|
+
className: "TruncatedText__Wrapper",
|
|
796
|
+
"data-testid": "kibble-truncated-text-wrapper",
|
|
797
|
+
children: /* @__PURE__ */ f.jsx(
|
|
798
|
+
t,
|
|
799
|
+
{
|
|
800
|
+
className: "TruncatedText__TextContent",
|
|
801
|
+
"data-testid": "kibble-truncated-text-content",
|
|
802
|
+
lineClamp: r,
|
|
803
|
+
...s,
|
|
804
|
+
children: l
|
|
805
|
+
}
|
|
806
|
+
)
|
|
807
|
+
}
|
|
808
|
+
)
|
|
809
|
+
}
|
|
810
|
+
) : /* @__PURE__ */ f.jsx(t, { ...s, children: l });
|
|
811
|
+
}
|
|
812
|
+
return o.displayName = `withTruncation(${e.displayName || e.name}`, ee(o);
|
|
813
|
+
};
|
|
814
|
+
export {
|
|
815
|
+
xe as T,
|
|
816
|
+
Vt as W,
|
|
817
|
+
Tt as a,
|
|
818
|
+
q as i,
|
|
819
|
+
dt as t,
|
|
820
|
+
It as w
|
|
821
|
+
};
|
|
822
|
+
//# sourceMappingURL=withTruncation-BAxxp5gA.js.map
|