@televet/kibble-ui 4.0.0-beta.66 → 4.0.0-beta.68
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-DbqCOYr5.js → alert.types-B3CIqC3D.js} +2 -2
- package/dist/chunks/{alert.types-DbqCOYr5.js.map → alert.types-B3CIqC3D.js.map} +1 -1
- package/dist/chunks/{alert.types-DYf5xFEG.js → alert.types-D-Nx7EKC.js} +3 -3
- package/dist/chunks/{alert.types-DYf5xFEG.js.map → alert.types-D-Nx7EKC.js.map} +1 -1
- package/dist/chunks/{avatar.component-Bk8VVA0l.js → avatar.component-5acA2X5n.js} +14 -14
- package/dist/chunks/{avatar.component-Bk8VVA0l.js.map → avatar.component-5acA2X5n.js.map} +1 -1
- package/dist/chunks/avatar.component-BBewTMu9.js +2 -0
- package/dist/chunks/{avatar.component-TAfT1LM1.js.map → avatar.component-BBewTMu9.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BGF4gl5d.js → avatarGroup.component-Cyoh97E9.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BGF4gl5d.js.map → avatarGroup.component-Cyoh97E9.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CZnhQOWy.js → avatarGroup.component-lvFlOaqP.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CZnhQOWy.js.map → avatarGroup.component-lvFlOaqP.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CGxtwaQg.js → buttonGroup.component-B21h-pcF.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CGxtwaQg.js.map → buttonGroup.component-B21h-pcF.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-IGM-yn-V.js → buttonGroup.component-CwN1OcaS.js} +2 -2
- package/dist/chunks/{buttonGroup.component-IGM-yn-V.js.map → buttonGroup.component-CwN1OcaS.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-CWDjnYNU.js → characterCounter.component-B0MF_ObL.js} +3 -3
- package/dist/chunks/{characterCounter.component-CWDjnYNU.js.map → characterCounter.component-B0MF_ObL.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-WOgGxKRq.js → characterCounter.component-MBtgMpUc.js} +2 -2
- package/dist/chunks/{characterCounter.component-WOgGxKRq.js.map → characterCounter.component-MBtgMpUc.js.map} +1 -1
- package/dist/chunks/{checkbox.component-nkydue0g.js → checkbox.component-CWN9kU5p.js} +2 -2
- package/dist/chunks/{checkbox.component-nkydue0g.js.map → checkbox.component-CWN9kU5p.js.map} +1 -1
- package/dist/chunks/{checkbox.component-B6-MOy86.js → checkbox.component-HWkdi-Dt.js} +10 -10
- package/dist/chunks/{checkbox.component-B6-MOy86.js.map → checkbox.component-HWkdi-Dt.js.map} +1 -1
- package/dist/chunks/checkbox.records-djqGyo0P.js +2 -0
- package/dist/chunks/{checkbox.records-wbkLltak.js.map → checkbox.records-djqGyo0P.js.map} +1 -1
- package/dist/chunks/{checkbox.records-BtLBaHBy.js → checkbox.records-kuynkQ3J.js} +12 -12
- package/dist/chunks/{checkbox.records-BtLBaHBy.js.map → checkbox.records-kuynkQ3J.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js → checkboxGroup.component-CMyApVxs.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js.map → checkboxGroup.component-CMyApVxs.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js → checkboxGroup.component-DYiLp3m_.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js.map → checkboxGroup.component-DYiLp3m_.js.map} +1 -1
- package/dist/chunks/{config-B1FINd7s.js → config-DVtggL6z.js} +6 -6
- package/dist/chunks/{config-B1FINd7s.js.map → config-DVtggL6z.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-Uv0-JSnX.js → conversationCard.component-BirDNlVs.js} +18 -17
- package/dist/chunks/{conversationCard.component-Uv0-JSnX.js.map → conversationCard.component-BirDNlVs.js.map} +1 -1
- package/dist/chunks/conversationCard.component-CMI6oti9.js +2 -0
- package/dist/chunks/{conversationCard.component-2jO70XtY.js.map → conversationCard.component-CMI6oti9.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CM8TIMiW.js → datePicker.component-DSGJKErd.js} +3 -3
- package/dist/chunks/{datePicker.component-CM8TIMiW.js.map → datePicker.component-DSGJKErd.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DeOquWMk.js → datePicker.component-Wac_ZnvV.js} +8 -8
- package/dist/chunks/{datePicker.component-DeOquWMk.js.map → datePicker.component-Wac_ZnvV.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-BCeZGpGO.js → dialog-trigger-6j0ZA8bc.js} +2 -2
- package/dist/chunks/{dialog-trigger-BCeZGpGO.js.map → dialog-trigger-6j0ZA8bc.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-D2uDgMJr.js → dialog-trigger-rbYorcnG.js} +9 -9
- package/dist/chunks/{dialog-trigger-D2uDgMJr.js.map → dialog-trigger-rbYorcnG.js.map} +1 -1
- package/dist/chunks/{heading.component-Bu1JbEVn.js → heading.component-Cum2BALi.js} +2 -2
- package/dist/chunks/{heading.component-Bu1JbEVn.js.map → heading.component-Cum2BALi.js.map} +1 -1
- package/dist/chunks/{heading.component-wD7BkQLG.js → heading.component-a6IrCj7l.js} +2 -2
- package/dist/chunks/{heading.component-wD7BkQLG.js.map → heading.component-a6IrCj7l.js.map} +1 -1
- package/dist/chunks/index-B3Uf1AVX.js +3 -0
- package/dist/chunks/index-B3Uf1AVX.js.map +1 -0
- package/dist/chunks/index-B4rwgehU.js +2 -0
- package/dist/chunks/{index-B4fjIWcA.js.map → index-B4rwgehU.js.map} +1 -1
- package/dist/chunks/{index-Dq91nN6-.js → index-BQusETZC.js} +3 -3
- package/dist/chunks/{index-Dq91nN6-.js.map → index-BQusETZC.js.map} +1 -1
- package/dist/chunks/{index-Dx94WMw1.js → index-BmJA4z7Y.js} +44 -43
- package/dist/chunks/{index-Dx94WMw1.js.map → index-BmJA4z7Y.js.map} +1 -1
- package/dist/chunks/{index-BfD9Ne2e.js → index-C-VkceKb.js} +2 -2
- package/dist/chunks/{index-BfD9Ne2e.js.map → index-C-VkceKb.js.map} +1 -1
- package/dist/chunks/{index-CZPHIn6T.js → index-C4xXAinc.js} +3 -3
- package/dist/chunks/{index-CZPHIn6T.js.map → index-C4xXAinc.js.map} +1 -1
- package/dist/chunks/{index-D5Dscg8T.js → index-CBVOChyW.js} +49 -48
- package/dist/chunks/{index-D5Dscg8T.js.map → index-CBVOChyW.js.map} +1 -1
- package/dist/chunks/{index-f4Ba8Pq7.js → index-CL5b64u0.js} +15 -15
- package/dist/chunks/{index-f4Ba8Pq7.js.map → index-CL5b64u0.js.map} +1 -1
- package/dist/chunks/{index-DMSZTX7A.js → index-CWZQythd.js} +9 -9
- package/dist/chunks/{index-DMSZTX7A.js.map → index-CWZQythd.js.map} +1 -1
- package/dist/chunks/index-Cd776OkZ.js +2 -0
- package/dist/chunks/index-Cd776OkZ.js.map +1 -0
- package/dist/chunks/{index-Cuu1x05z.js → index-Csfb-K1K.js} +17 -16
- package/dist/chunks/{index-Cuu1x05z.js.map → index-Csfb-K1K.js.map} +1 -1
- package/dist/chunks/index-Cw75JjHp.js +2 -0
- package/dist/chunks/{index-CEYJbpt4.js.map → index-Cw75JjHp.js.map} +1 -1
- package/dist/chunks/index-Cwl9h4X_.js +2 -0
- package/dist/chunks/{index-BmcSWiFh.js.map → index-Cwl9h4X_.js.map} +1 -1
- package/dist/chunks/index-D8ghhfzK.js +322 -0
- package/dist/chunks/index-D8ghhfzK.js.map +1 -0
- package/dist/chunks/index-DUEcH1Ul.js +2 -0
- package/dist/chunks/{index-5cRW642o.js.map → index-DUEcH1Ul.js.map} +1 -1
- package/dist/chunks/index-DX-8RG9n.js +8 -0
- package/dist/chunks/{index-CedYIQt5.js.map → index-DX-8RG9n.js.map} +1 -1
- package/dist/chunks/{index-DZGYG5M4.js → index-PD_OmAnh.js} +2 -2
- package/dist/chunks/{index-DZGYG5M4.js.map → index-PD_OmAnh.js.map} +1 -1
- package/dist/chunks/{index-hGlTuPbK.js → index-U8SN9h_h.js} +2 -2
- package/dist/chunks/{index-hGlTuPbK.js.map → index-U8SN9h_h.js.map} +1 -1
- package/dist/chunks/index-c2eCwOCU.js +1018 -0
- package/dist/chunks/index-c2eCwOCU.js.map +1 -0
- package/dist/chunks/index-iPTsth-y.js +2 -0
- package/dist/chunks/{index-CFnNmQf0.js.map → index-iPTsth-y.js.map} +1 -1
- package/dist/chunks/{index-Cqwkg1hU.js → index-vVG7UN0y.js} +106 -105
- package/dist/chunks/{index-Cqwkg1hU.js.map → index-vVG7UN0y.js.map} +1 -1
- package/dist/chunks/{index-CBh9RZVL.js → index-zgGK8otr.js} +18 -17
- package/dist/chunks/{index-CBh9RZVL.js.map → index-zgGK8otr.js.map} +1 -1
- package/dist/chunks/{logo.types-CXQsathd.js → logo.types-DVfuQmDd.js} +2 -2
- package/dist/chunks/{logo.types-CXQsathd.js.map → logo.types-DVfuQmDd.js.map} +1 -1
- package/dist/chunks/{menu.component-BKY1dybr.js → menu.component-ColftkpF.js} +26 -26
- package/dist/chunks/{menu.component-BKY1dybr.js.map → menu.component-ColftkpF.js.map} +1 -1
- package/dist/chunks/{menu.component-DllVICUa.js → menu.component-Ct_9TaWj.js} +2 -2
- package/dist/chunks/{menu.component-DllVICUa.js.map → menu.component-Ct_9TaWj.js.map} +1 -1
- package/dist/chunks/{modal.types-CRH5aJ0U.js → modal.types-BJDq3ofH.js} +4 -4
- package/dist/chunks/{modal.types-CRH5aJ0U.js.map → modal.types-BJDq3ofH.js.map} +1 -1
- package/dist/chunks/{modal.types-Bsq-uLZ0.js → modal.types-CsGdjZZf.js} +2 -2
- package/dist/chunks/{modal.types-Bsq-uLZ0.js.map → modal.types-CsGdjZZf.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js → notificationCounter.component-CHlLTEiF.js} +2 -2
- package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js.map → notificationCounter.component-CHlLTEiF.js.map} +1 -1
- package/dist/chunks/{pinInput.types-tJTQQJxe.js → pinInput.types-GznuQbzY.js} +2 -2
- package/dist/chunks/{pinInput.types-tJTQQJxe.js.map → pinInput.types-GznuQbzY.js.map} +1 -1
- package/dist/chunks/{pinInput.types-B-BknmcG.js → pinInput.types-k-MTZ5SR.js} +8 -8
- package/dist/chunks/{pinInput.types-B-BknmcG.js.map → pinInput.types-k-MTZ5SR.js.map} +1 -1
- package/dist/chunks/{popover-D0QoPsrG.js → popover-JzE_u7E-.js} +26 -26
- package/dist/chunks/{popover-D0QoPsrG.js.map → popover-JzE_u7E-.js.map} +1 -1
- package/dist/chunks/{popover-DPEovmxh.js → popover-ZImHeDTu.js} +2 -2
- package/dist/chunks/{popover-DPEovmxh.js.map → popover-ZImHeDTu.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-BYJE5I-P.js → popover-root-provider-RWj-0mRI.js} +2 -2
- package/dist/chunks/{popover-root-provider-BYJE5I-P.js.map → popover-root-provider-RWj-0mRI.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-Dt02njg5.js → popover-root-provider-S83-0n0E.js} +8 -8
- package/dist/chunks/{popover-root-provider-Dt02njg5.js.map → popover-root-provider-S83-0n0E.js.map} +1 -1
- package/dist/chunks/popover.component-Bh32Kl6i.js +322 -0
- package/dist/chunks/popover.component-Bh32Kl6i.js.map +1 -0
- package/dist/chunks/popover.component-D4NdsCQv.js +2 -0
- package/dist/chunks/popover.component-D4NdsCQv.js.map +1 -0
- package/dist/chunks/popover.recipe-D7Q80iWn.js +2 -0
- package/dist/chunks/popover.recipe-D7Q80iWn.js.map +1 -0
- package/dist/chunks/popover.recipe-DhQtUTnw.js +479 -0
- package/dist/chunks/popover.recipe-DhQtUTnw.js.map +1 -0
- package/dist/chunks/{portal-D2KZrSzZ.js → portal-C7cdrplU.js} +427 -427
- package/dist/chunks/portal-C7cdrplU.js.map +1 -0
- package/dist/chunks/portal-JkodPmk7.js +22 -0
- package/dist/chunks/portal-JkodPmk7.js.map +1 -0
- package/dist/chunks/{radio.records-CzNYznSb.js → radio.records-BD5zaE5E.js} +16 -16
- package/dist/chunks/{radio.records-CzNYznSb.js.map → radio.records-BD5zaE5E.js.map} +1 -1
- package/dist/chunks/radio.records-BKkl9Mk4.js +2 -0
- package/dist/chunks/{radio.records-CEgwvLIL.js.map → radio.records-BKkl9Mk4.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DAGmgDZ2.js → radioGroup.component-C6wU0Srn.js} +2 -2
- package/dist/chunks/{radioGroup.component-DAGmgDZ2.js.map → radioGroup.component-C6wU0Srn.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DEPDXEhQ.js → radioGroup.component-DbslYk4o.js} +11 -11
- package/dist/chunks/{radioGroup.component-DEPDXEhQ.js.map → radioGroup.component-DbslYk4o.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C32gNAmO.js → ratingDots.component-B2jdV6Uk.js} +4 -4
- package/dist/chunks/{ratingDots.component-C32gNAmO.js.map → ratingDots.component-B2jdV6Uk.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BB7vPYdN.js → ratingDots.component-DV7pmIJJ.js} +2 -2
- package/dist/chunks/{ratingDots.component-BB7vPYdN.js.map → ratingDots.component-DV7pmIJJ.js.map} +1 -1
- package/dist/chunks/{render-strategy-CdSSbgPU.js → render-strategy-BCWksbL8.js} +2 -2
- package/dist/chunks/{render-strategy-CdSSbgPU.js.map → render-strategy-BCWksbL8.js.map} +1 -1
- package/dist/chunks/{render-strategy-ql9Qx5Cz.js → render-strategy-DaeRfJpM.js} +2 -2
- package/dist/chunks/{render-strategy-ql9Qx5Cz.js.map → render-strategy-DaeRfJpM.js.map} +1 -1
- package/dist/chunks/{select.component-DfkLDyYt.js → select.component-CRmnH0Ty.js} +43 -43
- package/dist/chunks/{select.component-DfkLDyYt.js.map → select.component-CRmnH0Ty.js.map} +1 -1
- package/dist/chunks/{select.component-BtBJUTF2.js → select.component-DDRV0zBf.js} +2 -2
- package/dist/chunks/{select.component-BtBJUTF2.js.map → select.component-DDRV0zBf.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B0lnVMXW.js → sortableList.component-B59RwzTi.js} +3 -3
- package/dist/chunks/{sortableList.component-B0lnVMXW.js.map → sortableList.component-B59RwzTi.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B88NRcwx.js → sortableList.component-Dlq8P2tc.js} +3 -3
- package/dist/chunks/{sortableList.component-B88NRcwx.js.map → sortableList.component-Dlq8P2tc.js.map} +1 -1
- package/dist/chunks/{spinner.component-DVjwuOVs.js → spinner.component-DBCa-ZPE.js} +2 -2
- package/dist/chunks/{spinner.component-DVjwuOVs.js.map → spinner.component-DBCa-ZPE.js.map} +1 -1
- package/dist/chunks/{spinner.component-DWh3YuBJ.js → spinner.component-DsDyKpq2.js} +3 -3
- package/dist/chunks/{spinner.component-DWh3YuBJ.js.map → spinner.component-DsDyKpq2.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-ClVT0QDd.js → styledAvatar.types-BUyxKyGa.js} +2 -2
- package/dist/chunks/{styledAvatar.types-ClVT0QDd.js.map → styledAvatar.types-BUyxKyGa.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DamSY23W.js → styledAvatar.types-X9FV2vOM.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DamSY23W.js.map → styledAvatar.types-X9FV2vOM.js.map} +1 -1
- package/dist/chunks/{swatch.types-B8OSJZ-a.js → swatch.types-Dsv11aQw.js} +2 -2
- package/dist/chunks/{swatch.types-B8OSJZ-a.js.map → swatch.types-Dsv11aQw.js.map} +1 -1
- package/dist/chunks/{switch.component-DjbXfvMa.js → switch.component-BZh12RCT.js} +2 -2
- package/dist/chunks/{switch.component-DjbXfvMa.js.map → switch.component-BZh12RCT.js.map} +1 -1
- package/dist/chunks/{switch.component-BEkYEUKY.js → switch.component-DR4jYcSz.js} +11 -11
- package/dist/chunks/{switch.component-BEkYEUKY.js.map → switch.component-DR4jYcSz.js.map} +1 -1
- package/dist/chunks/{tabs.component-Bmg0kB-p.js → tabs.component-C_4sO8kW.js} +48 -48
- package/dist/chunks/{tabs.component-Bmg0kB-p.js.map → tabs.component-C_4sO8kW.js.map} +1 -1
- package/dist/chunks/{tabs.component-Bn_7bf0X.js → tabs.component-CzyTXhJp.js} +2 -2
- package/dist/chunks/{tabs.component-Bn_7bf0X.js.map → tabs.component-CzyTXhJp.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-x3oh7uht.js → tagBlock.component-BI1AmbDR.js} +2 -2
- package/dist/chunks/{tagBlock.component-x3oh7uht.js.map → tagBlock.component-BI1AmbDR.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-3ypfB6tz.js → tagBlock.component-B_dQ7rGS.js} +5 -5
- package/dist/chunks/{tagBlock.component-3ypfB6tz.js.map → tagBlock.component-B_dQ7rGS.js.map} +1 -1
- package/dist/chunks/text.component-BA-9q9gX.js +12 -0
- package/dist/chunks/text.component-BA-9q9gX.js.map +1 -0
- package/dist/chunks/text.component-ColgFnqE.js +2 -0
- package/dist/chunks/text.component-ColgFnqE.js.map +1 -0
- package/dist/chunks/{textInput.component-D9Dl8cP3.js → textInput.component-BttHjzdC.js} +12 -12
- package/dist/chunks/{textInput.component-D9Dl8cP3.js.map → textInput.component-BttHjzdC.js.map} +1 -1
- package/dist/chunks/{textInput.component-B1--78Mp.js → textInput.component-cFmQkIXY.js} +2 -2
- package/dist/chunks/{textInput.component-B1--78Mp.js.map → textInput.component-cFmQkIXY.js.map} +1 -1
- package/dist/chunks/{textarea.component-DZXDIbZg.js → textarea.component-DKiTZ2bP.js} +7 -7
- package/dist/chunks/{textarea.component-DZXDIbZg.js.map → textarea.component-DKiTZ2bP.js.map} +1 -1
- package/dist/chunks/{textarea.component-BxC5lB4t.js → textarea.component-cEtZ6ReA.js} +2 -2
- package/dist/chunks/{textarea.component-BxC5lB4t.js.map → textarea.component-cEtZ6ReA.js.map} +1 -1
- package/dist/chunks/{theme.provider-DmGvaymX.js → theme.provider-Dd0L8qXA.js} +3200 -3331
- package/dist/chunks/theme.provider-Dd0L8qXA.js.map +1 -0
- package/dist/chunks/theme.provider-Dh_N0A6U.js +26 -0
- package/dist/chunks/theme.provider-Dh_N0A6U.js.map +1 -0
- package/dist/chunks/{timePicker.component-F9o8MNWu.js → timePicker.component-CegBtxsl.js} +2 -2
- package/dist/chunks/{timePicker.component-F9o8MNWu.js.map → timePicker.component-CegBtxsl.js.map} +1 -1
- package/dist/chunks/{timePicker.component-DnFPWIcy.js → timePicker.component-D0WsvkI5.js} +4 -4
- package/dist/chunks/{timePicker.component-DnFPWIcy.js.map → timePicker.component-D0WsvkI5.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Bh2FiRi8.js → timeRange.component-C1p0bfmg.js} +2 -2
- package/dist/chunks/{timeRange.component-Bh2FiRi8.js.map → timeRange.component-C1p0bfmg.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Bj-9ynHS.js → timeRange.component-Cc3ZfoeN.js} +2 -2
- package/dist/chunks/{timeRange.component-Bj-9ynHS.js.map → timeRange.component-Cc3ZfoeN.js.map} +1 -1
- package/dist/chunks/timestamp.component-CZGCU-JV.js +54 -0
- package/dist/chunks/{timestamp.component-BKr4dkxB.js.map → timestamp.component-CZGCU-JV.js.map} +1 -1
- package/dist/chunks/timestamp.component-ZDbg3G8Z.js +2 -0
- package/dist/chunks/{timestamp.component-CfjeVkJs.js.map → timestamp.component-ZDbg3G8Z.js.map} +1 -1
- package/dist/chunks/toaster.records-3VWRSgsn.js +2 -0
- package/dist/chunks/{toaster.records-CGym-iT-.js.map → toaster.records-3VWRSgsn.js.map} +1 -1
- package/dist/chunks/{toaster.records-Cf8bpHo8.js → toaster.records-DeXyJQpa.js} +22 -21
- package/dist/chunks/{toaster.records-Cf8bpHo8.js.map → toaster.records-DeXyJQpa.js.map} +1 -1
- package/dist/chunks/tooltip.component-BiDAtm5N.js +2 -0
- package/dist/chunks/tooltip.component-BiDAtm5N.js.map +1 -0
- package/dist/chunks/tooltip.component-C5FgUWfB.js +713 -0
- package/dist/chunks/tooltip.component-C5FgUWfB.js.map +1 -0
- package/dist/chunks/{typography.records-BeoK0Uyj.js → typography.records-CIqVDP87.js} +2 -2
- package/dist/chunks/{typography.records-BeoK0Uyj.js.map → typography.records-CIqVDP87.js.map} +1 -1
- package/dist/chunks/{typography.records-Xg59taw9.js → typography.records-QKCR4PDO.js} +2 -2
- package/dist/chunks/{typography.records-Xg59taw9.js.map → typography.records-QKCR4PDO.js.map} +1 -1
- package/dist/chunks/{use-field-context-xBX4EpFz.js → use-field-context-BJ7xh7mY.js} +2 -2
- package/dist/chunks/{use-field-context-xBX4EpFz.js.map → use-field-context-BJ7xh7mY.js.map} +1 -1
- package/dist/chunks/{use-field-context-C4IwmN39.js → use-field-context-PoccdU55.js} +2 -2
- package/dist/chunks/{use-field-context-C4IwmN39.js.map → use-field-context-PoccdU55.js.map} +1 -1
- package/dist/chunks/{withFormControl-KA9fAHrR.js → withFormControl-DA1TgH2T.js} +49 -49
- package/dist/chunks/{withFormControl-KA9fAHrR.js.map → withFormControl-DA1TgH2T.js.map} +1 -1
- package/dist/chunks/{withFormControl-BHjeRAfg.js → withFormControl-PaMa_BVC.js} +2 -2
- package/dist/chunks/{withFormControl-BHjeRAfg.js.map → withFormControl-PaMa_BVC.js.map} +1 -1
- package/dist/chunks/withTruncation-GECNx84Z.js +67 -0
- package/dist/chunks/withTruncation-GECNx84Z.js.map +1 -0
- package/dist/chunks/withTruncation-lxIe2bbU.js +2 -0
- package/dist/chunks/withTruncation-lxIe2bbU.js.map +1 -0
- package/dist/chunks/{wrap-CYgSj8wY.js → wrap-Dk19PFnP.js} +2 -2
- package/dist/chunks/{wrap-CYgSj8wY.js.map → wrap-Dk19PFnP.js.map} +1 -1
- 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 +69 -69
- 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/Logo/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/NotificationCounter/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/Swatch/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 +42 -41
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +61 -60
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Button/button.recipe.d.ts +1 -1
- package/dist/types/components/Logo/logo.recipe.d.ts +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/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +8 -6
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +7 -7
- package/package.json +1 -1
- package/dist/chunks/avatar.component-TAfT1LM1.js +0 -2
- package/dist/chunks/checkbox.records-wbkLltak.js +0 -2
- package/dist/chunks/conversationCard.component-2jO70XtY.js +0 -2
- package/dist/chunks/index-5cRW642o.js +0 -2
- package/dist/chunks/index-B4fjIWcA.js +0 -2
- package/dist/chunks/index-BlGAWSIX.js +0 -3
- package/dist/chunks/index-BlGAWSIX.js.map +0 -1
- package/dist/chunks/index-BmcSWiFh.js +0 -2
- package/dist/chunks/index-C323eOJV.js +0 -1328
- package/dist/chunks/index-C323eOJV.js.map +0 -1
- package/dist/chunks/index-CEYJbpt4.js +0 -2
- package/dist/chunks/index-CFnNmQf0.js +0 -2
- package/dist/chunks/index-CedYIQt5.js +0 -8
- package/dist/chunks/index-Fztcdoo_.js +0 -2
- package/dist/chunks/index-Fztcdoo_.js.map +0 -1
- package/dist/chunks/index-WyVSig7F.js +0 -70
- package/dist/chunks/index-WyVSig7F.js.map +0 -1
- package/dist/chunks/popover.component-CLMQkEDo.js +0 -2
- package/dist/chunks/popover.component-CLMQkEDo.js.map +0 -1
- package/dist/chunks/popover.component-MbM0Ajnr.js +0 -264
- package/dist/chunks/popover.component-MbM0Ajnr.js.map +0 -1
- package/dist/chunks/popover.recipe-BLsWPsAa.js +0 -124
- package/dist/chunks/popover.recipe-BLsWPsAa.js.map +0 -1
- package/dist/chunks/popover.recipe-av5Jdn1r.js +0 -2
- package/dist/chunks/popover.recipe-av5Jdn1r.js.map +0 -1
- package/dist/chunks/portal-D2KZrSzZ.js.map +0 -1
- package/dist/chunks/portal-TWtD47zg.js +0 -22
- package/dist/chunks/portal-TWtD47zg.js.map +0 -1
- package/dist/chunks/radio.records-CEgwvLIL.js +0 -2
- package/dist/chunks/theme.provider-CpxxMiXd.js +0 -26
- package/dist/chunks/theme.provider-CpxxMiXd.js.map +0 -1
- package/dist/chunks/theme.provider-DmGvaymX.js.map +0 -1
- package/dist/chunks/timestamp.component-BKr4dkxB.js +0 -53
- package/dist/chunks/timestamp.component-CfjeVkJs.js +0 -2
- package/dist/chunks/toaster.records-CGym-iT-.js +0 -2
- package/dist/chunks/withTruncation-CQUQzrTa.js +0 -561
- package/dist/chunks/withTruncation-CQUQzrTa.js.map +0 -1
- package/dist/chunks/withTruncation-DguVvIAI.js +0 -2
- package/dist/chunks/withTruncation-DguVvIAI.js.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { useMemo as f } from "react";
|
|
3
|
-
import { T as p, W as u } from "./withTruncation-CQUQzrTa.js";
|
|
4
|
-
import { c as i, n as x, s as n, f as l } from "./format-DgHM6wFr.js";
|
|
5
|
-
function T(t) {
|
|
6
|
-
return i(t, Date.now());
|
|
7
|
-
}
|
|
8
|
-
function b(t, s, r) {
|
|
9
|
-
const [a, e] = x(
|
|
10
|
-
r?.in,
|
|
11
|
-
t,
|
|
12
|
-
s
|
|
13
|
-
);
|
|
14
|
-
return +n(a) == +n(e);
|
|
15
|
-
}
|
|
16
|
-
function d(t, s) {
|
|
17
|
-
return b(
|
|
18
|
-
i(t, t),
|
|
19
|
-
T(t)
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
const y = ({
|
|
23
|
-
date: t,
|
|
24
|
-
timeFormat: s = "h:mma",
|
|
25
|
-
dateFormat: r = "M/d/yy",
|
|
26
|
-
shouldTodayDisplayTimeOnly: a = !0,
|
|
27
|
-
tooltipLabel: e,
|
|
28
|
-
textProps: m
|
|
29
|
-
}) => {
|
|
30
|
-
const c = f(
|
|
31
|
-
() => l(
|
|
32
|
-
t,
|
|
33
|
-
d(t) && a ? s : r
|
|
34
|
-
),
|
|
35
|
-
[t, r, a, s]
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ o.jsx(p, { disabled: !e, label: e || "", children: /* @__PURE__ */ o.jsx(
|
|
38
|
-
u,
|
|
39
|
-
{
|
|
40
|
-
className: "Timestamp",
|
|
41
|
-
"data-testid": "kibble-timestamp",
|
|
42
|
-
variant: "subtle",
|
|
43
|
-
size: "xs",
|
|
44
|
-
textTransform: "lowercase",
|
|
45
|
-
...m,
|
|
46
|
-
children: c
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
y as T
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=timestamp.component-BKr4dkxB.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-BjDatQAs.js"),m=require("react"),a=require("./withTruncation-DguVvIAI.js"),s=require("./format-BRt-TIiQ.js");function x(t){return s.constructFrom(t,Date.now())}function f(t,e,r){const[n,i]=s.normalizeDates(r?.in,t,e);return+s.startOfDay(n)==+s.startOfDay(i)}function p(t,e){return f(s.constructFrom(t,t),x(t))}const l=({date:t,timeFormat:e="h:mma",dateFormat:r="M/d/yy",shouldTodayDisplayTimeOnly:n=!0,tooltipLabel:i,textProps:c})=>{const u=m.useMemo(()=>s.format(t,p(t)&&n?e:r),[t,r,n,e]);return o.jsxRuntimeExports.jsx(a.Tooltip,{disabled:!i,label:i||"",children:o.jsxRuntimeExports.jsx(a.WrappedText,{className:"Timestamp","data-testid":"kibble-timestamp",variant:"subtle",size:"xs",textTransform:"lowercase",...c,children:u})})};exports.Timestamp=l;
|
|
2
|
-
//# sourceMappingURL=timestamp.component-CfjeVkJs.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./index-BlGAWSIX.js");var K=c.createAnatomy("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),D=K.build(),W=t=>`toast-group:${t}`,L=(t,e)=>t.getById(`toast-group:${e}`),B=t=>`toast:${t.id}`,H=t=>t.getById(B(t)),U=t=>`toast:${t.id}:title`,V=t=>`toast:${t.id}:description`,j=t=>`toast${t.id}:close`,G={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function w(t,e){return t??G[e]??G.DEFAULT}var q=t=>typeof t=="string"?{left:t,right:t,bottom:t,top:t}:t;function X(t,e){const{prop:o,computed:s,context:i}=t,{offsets:r,gap:l}=o("store").attrs,u=i.get("heights"),g=q(r),v=o("dir")==="rtl",d=e.replace("-start",v?"-right":"-left").replace("-end",v?"-left":"-right"),m=d.includes("right"),E=d.includes("left"),f={position:"fixed",pointerEvents:s("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${l}px`,"--first-height":`${u[0]?.height||0}px`,zIndex:c.MAX_Z_INDEX};let h="center";if(m&&(h="flex-end"),E&&(h="flex-start"),f.alignItems=h,d.includes("top")){const y=g.top;f.top=`max(env(safe-area-inset-top, 0px), ${y})`}if(d.includes("bottom")){const y=g.bottom;f.bottom=`max(env(safe-area-inset-bottom, 0px), ${y})`}if(!d.includes("left")){const y=g.right;f.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${y})`}if(!d.includes("right")){const y=g.left;f.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${y})`}return f}function Q(t,e){const{prop:o,context:s,computed:i}=t,r=o("parent"),l=r.computed("placement"),{gap:u}=r.prop("store").attrs,[g]=l.split("-"),v=s.get("mounted"),d=s.get("remainingTime"),m=i("height"),E=i("frontmost"),f=!E,h=!o("stacked"),y=o("stacked"),M=o("type")==="loading"?Number.MAX_SAFE_INTEGER:d,A=i("heightIndex")*u+i("heightBefore"),k={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${o("removeDelay")}ms`,"--duration":`${M}ms`,"--initial-height":`${m}px`,"--offset":`${A}px`,"--index":o("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},p=N=>Object.assign(k,N);return g==="top"?p({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):g==="bottom"&&p({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),v&&(p({"--y":"0","--opacity":"1"}),y&&p({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),e||p({"--opacity":"0",pointerEvents:"none"}),f&&h&&(p({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),e||p({"--y":"calc(var(--sign) * 40%)"})),f&&y&&!e&&p({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),E&&!e&&p({"--y":"calc(var(--lift) * -100%)"}),k}function Y(t,e){const{computed:o}=t,s={position:"absolute",inset:"0",scale:"1 2",pointerEvents:e?"none":"auto"},i=r=>Object.assign(s,r);return o("frontmost")&&!e&&i({height:"calc(var(--initial-height) + 80%)"}),s}function Z(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function J(t,e){const{context:o,prop:s,send:i,refs:r,computed:l}=t;return{getCount(){return o.get("toasts").length},getToasts(){return o.get("toasts")},getGroupProps(u={}){const{label:g="Notifications"}=u,{hotkey:v}=s("store").attrs,d=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=l("placement"),[E,f="center"]=m.split("-");return e.element({...D.group.attrs,dir:s("dir"),tabIndex:-1,"aria-label":`${m} ${g} ${d}`,id:W(m),"data-placement":m,"data-side":E,"data-align":f,"aria-live":"polite",role:"region",style:X(t,m),onMouseMove(){i({type:"REGION.POINTER_ENTER",placement:m})},onMouseLeave(){i({type:"REGION.POINTER_LEAVE",placement:m})},onFocus(h){i({type:"REGION.FOCUS",target:h.relatedTarget})},onBlur(h){r.get("isFocusWithin")&&!c.contains(h.currentTarget,h.relatedTarget)&&queueMicrotask(()=>i({type:"REGION.BLUR"}))}})},subscribe(u){return s("store").subscribe(()=>u(o.get("toasts")))}}}var z=c.createMachine({props({props:t}){return{dir:"ltr",id:c.uuid(),...t,store:t.store}},initialState({prop:t}){return t("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}},context({bindable:t}){return{toasts:t(()=>({defaultValue:[],sync:!0,hash:e=>e.map(o=>o.id).join(",")})),heights:t(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:t})=>t.get("toasts").length,overlap:({prop:t})=>t("store").attrs.overlap,placement:({prop:t})=>t("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:t,context:e,action:o}){t([()=>e.hash("toasts")],()=>{queueMicrotask(()=>{o(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:t})=>t("overlap")},effects:{subscribeToStore({context:t,prop:e}){return e("store").subscribe(o=>{if(o.dismiss){t.set("toasts",s=>s.filter(i=>i.id!==o.id));return}t.set("toasts",s=>{const i=s.findIndex(r=>r.id===o.id);return i!==-1?[...s.slice(0,i),{...s[i],...o},...s.slice(i+1)]:[o,...s]})})},trackHotKeyPress({prop:t,send:e}){const o=s=>{const{hotkey:i}=t("store").attrs;i.every(l=>s[l]||s.code===l)&&e({type:"DOC.HOTKEY"})};return c.addDomEvent(document,"keydown",o,{capture:!0})},trackDocumentVisibility({prop:t,send:e,scope:o}){const{pauseOnPageIdle:s}=t("store").attrs;if(!s)return;const i=o.getDoc();return c.addDomEvent(i,"visibilitychange",()=>{const r=i.visibilityState==="hidden";e({type:r?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:t,context:e,computed:o,scope:s}){const i=e.get("toasts"),r=o("placement"),l=i.length>0;if(!l){t.get("dismissableCleanup")?.();return}if(l&&t.get("dismissableCleanup"))return;const u=()=>L(s,r),g=c.trackDismissableBranch(u,{defer:!0});t.set("dismissableCleanup",g)},clearDismissableBranch({refs:t}){t.get("dismissableCleanup")?.()},focusRegionEl({scope:t,computed:e}){queueMicrotask(()=>{L(t,e("placement"))?.focus()})},pauseToasts({prop:t}){t("store").pause()},resumeToasts({prop:t}){t("store").resume()},expandToasts({prop:t}){t("store").expand()},collapseToasts({prop:t}){t("store").collapse()},removeToast({prop:t,event:e}){t("store").remove(e.id)},removeHeight({event:t,context:e}){t?.id!=null&&queueMicrotask(()=>{e.set("heights",o=>o.filter(s=>s.id!==t.id))})},collapsedIfEmpty({send:t,computed:e}){!e("overlap")||e("count")>1||t({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:t,event:e}){t.get("isFocusWithin")||!e.target||(t.set("isFocusWithin",!0),t.set("lastFocusedEl",e.target))},restoreLastFocusedEl({refs:t}){t.get("lastFocusedEl")&&(t.get("lastFocusedEl")?.focus({preventScroll:!0}),t.set("lastFocusedEl",null),t.set("isFocusWithin",!1))},clearLastFocusedEl({refs:t}){t.get("lastFocusedEl")&&(t.get("lastFocusedEl")?.focus({preventScroll:!0}),t.set("lastFocusedEl",null),t.set("isFocusWithin",!1))}}}});function tt(t,e){const{state:o,send:s,prop:i,scope:r,context:l,computed:u}=t,g=o.hasTag("visible"),v=o.hasTag("paused"),d=l.get("mounted"),m=u("frontmost"),E=i("parent").computed("placement"),f=i("type"),h=i("stacked"),y=i("title"),F=i("description"),M=i("action"),[A,k="center"]=E.split("-");return{type:f,title:y,description:F,placement:E,visible:g,paused:v,closable:!!i("closable"),pause(){s({type:"PAUSE"})},resume(){s({type:"RESUME"})},dismiss(){s({type:"DISMISS",src:"programmatic"})},getRootProps(){return e.element({...D.root.attrs,dir:i("dir"),id:B(r),"data-state":g?"open":"closed","data-type":f,"data-placement":E,"data-align":k,"data-side":A,"data-mounted":c.dataAttr(d),"data-paused":c.dataAttr(v),"data-first":c.dataAttr(m),"data-sibling":c.dataAttr(!m),"data-stack":c.dataAttr(h),"data-overlap":c.dataAttr(!h),role:"status","aria-atomic":"true","aria-describedby":F?V(r):void 0,"aria-labelledby":y?U(r):void 0,tabIndex:0,style:Q(t,g),onKeyDown(p){p.defaultPrevented||p.key=="Escape"&&(s({type:"DISMISS",src:"keyboard"}),p.preventDefault())}})},getGhostBeforeProps(){return e.element({"data-ghost":"before",style:Y(t,g)})},getGhostAfterProps(){return e.element({"data-ghost":"after",style:Z()})},getTitleProps(){return e.element({...D.title.attrs,id:U(r)})},getDescriptionProps(){return e.element({...D.description.attrs,id:V(r)})},getActionTriggerProps(){return e.button({...D.actionTrigger.attrs,type:"button",onClick(p){p.defaultPrevented||(M?.onClick?.(),s({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return e.button({id:j(r),...D.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(p){p.defaultPrevented||s({type:"DISMISS",src:"user"})}})}}}var{not:et}=c.createGuards(),st=c.createMachine({props({props:t}){return c.ensureProps(t,["id","type","parent","removeDelay"],"toast"),{closable:!0,...t,duration:w(t.duration,t.type)}},initialState({prop:t}){return t("type")==="loading"||t("duration")===1/0?"visible:persist":"visible"},context({prop:t,bindable:e}){return{remainingTime:e(()=>({defaultValue:w(t("duration"),t("type"))})),createdAt:e(()=>({defaultValue:Date.now()})),mounted:e(()=>({defaultValue:!1})),initialHeight:e(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:t})=>{const e=t("parent").context.get("toasts"),o=e.findIndex(s=>s.id===t("id"));return e.length-o},height:({prop:t})=>t("parent").context.get("heights").find(s=>s.id===t("id"))?.height??0,heightIndex:({prop:t})=>t("parent").context.get("heights").findIndex(o=>o.id===t("id")),frontmost:({prop:t})=>t("index")===0,heightBefore:({prop:t})=>{const e=t("parent").context.get("heights"),o=e.findIndex(s=>s.id===t("id"));return e.reduce((s,i,r)=>r>=o?s:s+i.height,0)},shouldPersist:({prop:t})=>t("type")==="loading"||t("duration")===1/0},watch({track:t,prop:e,send:o}){t([()=>e("message")],()=>{const s=e("message");s&&o({type:s,src:"programmatic"})}),t([()=>e("type"),()=>e("duration")],()=>{o({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:et("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:t,send:e}){return c.setRafTimeout(()=>{e({type:"REMOVE",src:"timer"})},t("removeDelay"))},waitForDuration({send:t,context:e,computed:o}){if(!o("shouldPersist"))return c.setRafTimeout(()=>{t({type:"DISMISS",src:"timer"})},e.get("remainingTime"))},waitForNextTick({send:t}){return c.setRafTimeout(()=>{t({type:"SHOW",src:"timer"})},0)},trackHeight({scope:t,prop:e}){let o;return c.raf(()=>{const s=H(t);if(!s)return;const i=()=>{const u=s.style.height;s.style.height="auto";const g=s.getBoundingClientRect().height;s.style.height=u;const v={id:e("id"),height:g};$(e("parent"),v)},r=t.getWin(),l=new r.MutationObserver(i);l.observe(s,{childList:!0,subtree:!0,characterData:!0}),o=()=>l.disconnect()}),()=>o?.()}},guards:{isLoadingType:({prop:t})=>t("type")==="loading",shouldPersist:({computed:t})=>t("shouldPersist")},actions:{setMounted({context:t}){c.raf(()=>{t.set("mounted",!0)})},measureHeight({scope:t,prop:e,context:o}){queueMicrotask(()=>{const s=H(t);if(!s)return;const i=s.style.height;s.style.height="auto";const r=s.getBoundingClientRect().height;s.style.height=i,o.set("initialHeight",r);const l={id:e("id"),height:r};$(e("parent"),l)})},setCloseTimer({refs:t}){t.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:t,refs:e,prop:o}){e.set("closeTimerStartTime",Date.now()),t.set("remainingTime",w(o("duration"),o("type")))},syncRemainingTime({context:t,refs:e}){t.set("remainingTime",o=>{const s=e.get("closeTimerStartTime"),i=Date.now()-s;return e.set("lastCloseStartTimerStartTime",Date.now()),o-i})},notifyParentToRemove({prop:t}){t("parent").send({type:"TOAST.REMOVE",id:t("id")})},invokeOnDismiss({prop:t,event:e}){t("onStatusChange")?.({status:"dismissing",src:e.src})},invokeOnUnmount({prop:t}){t("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:t}){t("onStatusChange")?.({status:"visible"})}}}});function $(t,e){const{id:o,height:s}=e;t.context.set("heights",i=>i.find(l=>l.id===o)?i.map(l=>l.id===o?{...l,height:s}:l):[{id:o,height:s},...i])}var ot=(t,e)=>({...e,...c.compact(t)});function nt(t){const e=ot(t,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let o=[],s=[],i=new Set,r=[];const l=n=>(o.push(n),()=>{const a=o.indexOf(n);o.splice(a,1)}),u=n=>(o.forEach(a=>a(n)),n),g=n=>{if(s.length>=e.max){r.push(n);return}u(n),s.unshift(n)},v=()=>{for(;r.length>0&&s.length<e.max;){const n=r.shift();n&&(u(n),s.unshift(n))}},d=n=>{const a=n.id??`toast:${c.uuid()}`,S=s.find(T=>T.id===a);return i.has(a)&&i.delete(a),S?s=s.map(T=>T.id===a?u({...T,...n,id:a}):T):g({id:a,duration:e.duration,removeDelay:e.removeDelay,type:"info",...n,stacked:!e.overlap,gap:e.gap}),a},m=n=>(i.add(n),n?(o.forEach(a=>a({id:n,dismiss:!0})),s=s.filter(a=>a.id!==n),v()):(s.forEach(a=>{o.forEach(S=>S({id:a.id,dismiss:!0}))}),s=[],r=[]),n);return{attrs:e,subscribe:l,create:d,update:(n,a)=>d({id:n,...a}),remove:m,dismiss:n=>{n!=null?s=s.map(a=>a.id===n?u({...a,message:"DISMISS"}):a):s=s.map(a=>u({...a,message:"DISMISS"}))},error:n=>d({...n,type:"error"}),success:n=>d({...n,type:"success"}),info:n=>d({...n,type:"info"}),warning:n=>d({...n,type:"warning"}),loading:n=>d({...n,type:"loading"}),getVisibleToasts:()=>s.filter(n=>!i.has(n.id)),getCount:()=>s.length,promise:(n,a,S={})=>{if(!a)return;let T;a.loading!==void 0&&(T=d({...S,...a.loading,promise:n,type:"loading"}));let C=T!==void 0,P;const _=c.runIfFn(n).then(async b=>{if(P=["resolve",b],it(b)&&!b.ok){C=!1;const I=c.runIfFn(a.error,`HTTP Error! status: ${b.status}`);d({...S,...I,id:T,type:"error"})}else if(a.success!==void 0){C=!1;const I=c.runIfFn(a.success,b);d({...S,...I,id:T,type:"success"})}}).catch(async b=>{if(P=["reject",b],a.error!==void 0){C=!1;const I=c.runIfFn(a.error,b);d({...S,...I,id:T,type:"error"})}}).finally(()=>{C&&(m(T),T=void 0),a.finally?.()});return{id:T,unwrap:()=>new Promise((b,I)=>_.then(()=>P[0]==="reject"?I(P[1]):b(P[1])).catch(I))}},pause:n=>{n!=null?s=s.map(a=>a.id===n?u({...a,message:"PAUSE"}):a):s=s.map(a=>u({...a,message:"PAUSE"}))},resume:n=>{n!=null?s=s.map(a=>a.id===n?u({...a,message:"RESUME"}):a):s=s.map(a=>u({...a,message:"RESUME"}))},isVisible:n=>!i.has(n)&&!!s.find(a=>a.id===n),isDismissed:n=>i.has(n),expand:()=>{s=s.map(n=>u({...n,stacked:!0}))},collapse:()=>{s=s.map(n=>u({...n,stacked:!1}))}}}var it=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",at={connect:J,machine:z};const O=t=>nt(t),x={duration:5e3,hotkey:void 0,max:24,offsets:"1rem",overlap:!1,pauseOnPageIdle:!0,removeDelay:0},R={bottom:{...x,placement:"bottom"},"bottom-end":{...x,placement:"bottom-end"},"bottom-start":{...x,placement:"bottom-start"},top:{...x,placement:"top"},"top-end":{...x,placement:"top-end"},"top-start":{...x,placement:"top-start"}},rt=O(R.bottom),ct=O(R["bottom-end"]),lt=O(R["bottom-start"]),ut=O(R.top),dt=O(R["top-end"]),gt=O(R["top-start"]);exports.bottomEndToaster=ct;exports.bottomStartToaster=lt;exports.bottomToaster=rt;exports.connect=tt;exports.defaultToasterConfig=x;exports.group=at;exports.machine=st;exports.topEndToaster=dt;exports.topStartToaster=gt;exports.topToaster=ut;
|
|
2
|
-
//# sourceMappingURL=toaster.records-CGym-iT-.js.map
|
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { forwardRef as g, useId as Y, memo as y, useState as z, useRef as N, useCallback as q, useEffect as J } from "react";
|
|
3
|
-
import { B as K } from "./box-Ck9I7FYv.js";
|
|
4
|
-
import { c as Q } from "./create-recipe-context-D7FewUR4.js";
|
|
5
|
-
import { c as X, f as O, u as k, h as Z, g as x, d as ee, b as te, i as oe, j as re, k as ne, n as se, s as L, l as I, m as H, P as ie } from "./portal-D2KZrSzZ.js";
|
|
6
|
-
import { c as ae } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
7
|
-
import { a1 as u, c as ce, z as le, t as de, b as pe } from "./index-C323eOJV.js";
|
|
8
|
-
const { withContext: ue } = Q({
|
|
9
|
-
key: "text"
|
|
10
|
-
}), ge = ue("p"), [D, C] = X({
|
|
11
|
-
name: "HoverCardContext",
|
|
12
|
-
hookName: "useHoverCardContext",
|
|
13
|
-
providerName: "<HoverCardProvider />"
|
|
14
|
-
}), _ = g((e, t) => {
|
|
15
|
-
const o = C(), r = u(o.getArrowProps(), e);
|
|
16
|
-
return /* @__PURE__ */ s.jsx(O.div, { ...r, ref: t });
|
|
17
|
-
});
|
|
18
|
-
_.displayName = "HoverCardArrow";
|
|
19
|
-
const j = g((e, t) => {
|
|
20
|
-
const o = C(), r = u(o.getArrowTipProps(), e);
|
|
21
|
-
return /* @__PURE__ */ s.jsx(O.div, { ...r, ref: t });
|
|
22
|
-
});
|
|
23
|
-
j.displayName = "HoverCardArrowTip";
|
|
24
|
-
const A = g((e, t) => {
|
|
25
|
-
const o = C(), r = k(), n = u(o.getContentProps(), r.getPresenceProps(), e);
|
|
26
|
-
return r.unmounted ? null : /* @__PURE__ */ s.jsx(O.div, { ...n, ref: Z(r.ref, t) });
|
|
27
|
-
});
|
|
28
|
-
A.displayName = "HoverCardContent";
|
|
29
|
-
const Ce = (e) => e.children(C()), S = g((e, t) => {
|
|
30
|
-
const o = C(), r = u(o.getPositionerProps(), e);
|
|
31
|
-
return k().unmounted ? null : /* @__PURE__ */ s.jsx(O.div, { ...r, ref: t });
|
|
32
|
-
});
|
|
33
|
-
S.displayName = "HoverCardPositioner";
|
|
34
|
-
var Pe = pe("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content"), v = Pe.build(), $ = (e) => e.ids?.trigger ?? `hover-card:${e.id}:trigger`, G = (e) => e.ids?.content ?? `hover-card:${e.id}:content`, F = (e) => e.ids?.positioner ?? `hover-card:${e.id}:popper`, ve = (e) => e.ids?.arrow ?? `hover-card:${e.id}:arrow`, w = (e) => e.getById($(e)), Oe = (e) => e.getById(G(e)), R = (e) => e.getById(F(e));
|
|
35
|
-
function me(e, t) {
|
|
36
|
-
const { state: o, send: r, prop: n, context: a, scope: c } = e, l = o.hasTag("open"), d = ee({
|
|
37
|
-
...n("positioning"),
|
|
38
|
-
placement: a.get("currentPlacement")
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
open: l,
|
|
42
|
-
setOpen(i) {
|
|
43
|
-
o.hasTag("open") !== i && r({ type: i ? "OPEN" : "CLOSE" });
|
|
44
|
-
},
|
|
45
|
-
reposition(i = {}) {
|
|
46
|
-
r({ type: "POSITIONING.SET", options: i });
|
|
47
|
-
},
|
|
48
|
-
getArrowProps() {
|
|
49
|
-
return t.element({
|
|
50
|
-
id: ve(c),
|
|
51
|
-
...v.arrow.attrs,
|
|
52
|
-
dir: n("dir"),
|
|
53
|
-
style: d.arrow
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
getArrowTipProps() {
|
|
57
|
-
return t.element({
|
|
58
|
-
...v.arrowTip.attrs,
|
|
59
|
-
dir: n("dir"),
|
|
60
|
-
style: d.arrowTip
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
getTriggerProps() {
|
|
64
|
-
return t.element({
|
|
65
|
-
...v.trigger.attrs,
|
|
66
|
-
dir: n("dir"),
|
|
67
|
-
"data-placement": a.get("currentPlacement"),
|
|
68
|
-
id: $(c),
|
|
69
|
-
"data-state": l ? "open" : "closed",
|
|
70
|
-
onPointerEnter(i) {
|
|
71
|
-
i.pointerType !== "touch" && r({ type: "POINTER_ENTER", src: "trigger" });
|
|
72
|
-
},
|
|
73
|
-
onPointerLeave(i) {
|
|
74
|
-
i.pointerType !== "touch" && r({ type: "POINTER_LEAVE", src: "trigger" });
|
|
75
|
-
},
|
|
76
|
-
onFocus() {
|
|
77
|
-
r({ type: "TRIGGER_FOCUS" });
|
|
78
|
-
},
|
|
79
|
-
onBlur() {
|
|
80
|
-
r({ type: "TRIGGER_BLUR" });
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
},
|
|
84
|
-
getPositionerProps() {
|
|
85
|
-
return t.element({
|
|
86
|
-
id: F(c),
|
|
87
|
-
...v.positioner.attrs,
|
|
88
|
-
dir: n("dir"),
|
|
89
|
-
style: d.floating
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
getContentProps() {
|
|
93
|
-
return t.element({
|
|
94
|
-
...v.content.attrs,
|
|
95
|
-
dir: n("dir"),
|
|
96
|
-
id: G(c),
|
|
97
|
-
hidden: !l,
|
|
98
|
-
tabIndex: -1,
|
|
99
|
-
"data-state": l ? "open" : "closed",
|
|
100
|
-
"data-placement": a.get("currentPlacement"),
|
|
101
|
-
onPointerEnter(i) {
|
|
102
|
-
i.pointerType !== "touch" && r({ type: "POINTER_ENTER", src: "content" });
|
|
103
|
-
},
|
|
104
|
-
onPointerLeave(i) {
|
|
105
|
-
i.pointerType !== "touch" && r({ type: "POINTER_LEAVE", src: "content" });
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
var { not: E, and: b } = le(), Te = ce({
|
|
112
|
-
props({ props: e }) {
|
|
113
|
-
return {
|
|
114
|
-
openDelay: 700,
|
|
115
|
-
closeDelay: 300,
|
|
116
|
-
...e,
|
|
117
|
-
positioning: {
|
|
118
|
-
placement: "bottom",
|
|
119
|
-
...e.positioning
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
initialState({ prop: e }) {
|
|
124
|
-
return e("open") || e("defaultOpen") ? "open" : "closed";
|
|
125
|
-
},
|
|
126
|
-
context({ prop: e, bindable: t }) {
|
|
127
|
-
return {
|
|
128
|
-
open: t(() => ({
|
|
129
|
-
defaultValue: e("defaultOpen"),
|
|
130
|
-
value: e("open"),
|
|
131
|
-
onChange(o) {
|
|
132
|
-
e("onOpenChange")?.({ open: o });
|
|
133
|
-
}
|
|
134
|
-
})),
|
|
135
|
-
currentPlacement: t(() => ({
|
|
136
|
-
defaultValue: void 0
|
|
137
|
-
})),
|
|
138
|
-
isPointer: t(() => ({
|
|
139
|
-
defaultValue: !1
|
|
140
|
-
}))
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
watch({ track: e, context: t, action: o }) {
|
|
144
|
-
e([() => t.get("open")], () => {
|
|
145
|
-
o(["toggleVisibility"]);
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
states: {
|
|
149
|
-
closed: {
|
|
150
|
-
tags: ["closed"],
|
|
151
|
-
entry: ["clearIsPointer"],
|
|
152
|
-
on: {
|
|
153
|
-
"CONTROLLED.OPEN": {
|
|
154
|
-
target: "open"
|
|
155
|
-
},
|
|
156
|
-
POINTER_ENTER: {
|
|
157
|
-
target: "opening",
|
|
158
|
-
actions: ["setIsPointer"]
|
|
159
|
-
},
|
|
160
|
-
TRIGGER_FOCUS: {
|
|
161
|
-
target: "opening"
|
|
162
|
-
},
|
|
163
|
-
OPEN: {
|
|
164
|
-
target: "opening"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
opening: {
|
|
169
|
-
tags: ["closed"],
|
|
170
|
-
effects: ["waitForOpenDelay"],
|
|
171
|
-
on: {
|
|
172
|
-
OPEN_DELAY: [
|
|
173
|
-
{
|
|
174
|
-
guard: "isOpenControlled",
|
|
175
|
-
actions: ["invokeOnOpen"]
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
target: "open",
|
|
179
|
-
actions: ["invokeOnOpen"]
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"CONTROLLED.OPEN": {
|
|
183
|
-
target: "open"
|
|
184
|
-
},
|
|
185
|
-
"CONTROLLED.CLOSE": {
|
|
186
|
-
target: "closed"
|
|
187
|
-
},
|
|
188
|
-
POINTER_LEAVE: [
|
|
189
|
-
{
|
|
190
|
-
guard: "isOpenControlled",
|
|
191
|
-
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
192
|
-
actions: ["invokeOnClose", "toggleVisibility"]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
target: "closed",
|
|
196
|
-
actions: ["invokeOnClose"]
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
TRIGGER_BLUR: [
|
|
200
|
-
{
|
|
201
|
-
guard: b("isOpenControlled", E("isPointer")),
|
|
202
|
-
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
203
|
-
actions: ["invokeOnClose", "toggleVisibility"]
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
guard: E("isPointer"),
|
|
207
|
-
target: "closed",
|
|
208
|
-
actions: ["invokeOnClose"]
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
CLOSE: [
|
|
212
|
-
{
|
|
213
|
-
guard: "isOpenControlled",
|
|
214
|
-
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
215
|
-
actions: ["invokeOnClose", "toggleVisibility"]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
target: "closed",
|
|
219
|
-
actions: ["invokeOnClose"]
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
open: {
|
|
225
|
-
tags: ["open"],
|
|
226
|
-
effects: ["trackDismissableElement", "trackPositioning"],
|
|
227
|
-
on: {
|
|
228
|
-
"CONTROLLED.CLOSE": {
|
|
229
|
-
target: "closed"
|
|
230
|
-
},
|
|
231
|
-
POINTER_ENTER: {
|
|
232
|
-
actions: ["setIsPointer"]
|
|
233
|
-
},
|
|
234
|
-
POINTER_LEAVE: {
|
|
235
|
-
target: "closing"
|
|
236
|
-
},
|
|
237
|
-
CLOSE: [
|
|
238
|
-
{
|
|
239
|
-
guard: "isOpenControlled",
|
|
240
|
-
actions: ["invokeOnClose"]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
target: "closed",
|
|
244
|
-
actions: ["invokeOnClose"]
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
TRIGGER_BLUR: [
|
|
248
|
-
{
|
|
249
|
-
guard: b("isOpenControlled", E("isPointer")),
|
|
250
|
-
actions: ["invokeOnClose"]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
guard: E("isPointer"),
|
|
254
|
-
target: "closed",
|
|
255
|
-
actions: ["invokeOnClose"]
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"POSITIONING.SET": {
|
|
259
|
-
actions: ["reposition"]
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
closing: {
|
|
264
|
-
tags: ["open"],
|
|
265
|
-
effects: ["trackPositioning", "waitForCloseDelay"],
|
|
266
|
-
on: {
|
|
267
|
-
CLOSE_DELAY: [
|
|
268
|
-
{
|
|
269
|
-
guard: "isOpenControlled",
|
|
270
|
-
actions: ["invokeOnClose"]
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
target: "closed",
|
|
274
|
-
actions: ["invokeOnClose"]
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"CONTROLLED.CLOSE": {
|
|
278
|
-
target: "closed"
|
|
279
|
-
},
|
|
280
|
-
"CONTROLLED.OPEN": {
|
|
281
|
-
target: "open"
|
|
282
|
-
},
|
|
283
|
-
POINTER_ENTER: {
|
|
284
|
-
target: "open",
|
|
285
|
-
// no need to invokeOnOpen here because it's still open (but about to close)
|
|
286
|
-
actions: ["setIsPointer"]
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
implementations: {
|
|
292
|
-
guards: {
|
|
293
|
-
isPointer: ({ context: e }) => !!e.get("isPointer"),
|
|
294
|
-
isOpenControlled: ({ prop: e }) => e("open") != null
|
|
295
|
-
},
|
|
296
|
-
effects: {
|
|
297
|
-
waitForOpenDelay({ send: e, prop: t }) {
|
|
298
|
-
const o = setTimeout(() => {
|
|
299
|
-
e({ type: "OPEN_DELAY" });
|
|
300
|
-
}, t("openDelay"));
|
|
301
|
-
return () => clearTimeout(o);
|
|
302
|
-
},
|
|
303
|
-
waitForCloseDelay({ send: e, prop: t }) {
|
|
304
|
-
const o = setTimeout(() => {
|
|
305
|
-
e({ type: "CLOSE_DELAY" });
|
|
306
|
-
}, t("closeDelay"));
|
|
307
|
-
return () => clearTimeout(o);
|
|
308
|
-
},
|
|
309
|
-
trackPositioning({ context: e, prop: t, scope: o }) {
|
|
310
|
-
e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement);
|
|
311
|
-
const r = () => R(o);
|
|
312
|
-
return x(w(o), r, {
|
|
313
|
-
...t("positioning"),
|
|
314
|
-
defer: !0,
|
|
315
|
-
onComplete(n) {
|
|
316
|
-
e.set("currentPlacement", n.placement);
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
},
|
|
320
|
-
trackDismissableElement({ send: e, scope: t, prop: o }) {
|
|
321
|
-
return de(() => Oe(t), {
|
|
322
|
-
defer: !0,
|
|
323
|
-
exclude: [w(t)],
|
|
324
|
-
onDismiss() {
|
|
325
|
-
e({ type: "CLOSE", src: "interact-outside" });
|
|
326
|
-
},
|
|
327
|
-
onInteractOutside: o("onInteractOutside"),
|
|
328
|
-
onPointerDownOutside: o("onPointerDownOutside"),
|
|
329
|
-
onFocusOutside(n) {
|
|
330
|
-
n.preventDefault(), o("onFocusOutside")?.(n);
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
actions: {
|
|
336
|
-
invokeOnClose({ prop: e }) {
|
|
337
|
-
e("onOpenChange")?.({ open: !1 });
|
|
338
|
-
},
|
|
339
|
-
invokeOnOpen({ prop: e }) {
|
|
340
|
-
e("onOpenChange")?.({ open: !0 });
|
|
341
|
-
},
|
|
342
|
-
setIsPointer({ context: e }) {
|
|
343
|
-
e.set("isPointer", !0);
|
|
344
|
-
},
|
|
345
|
-
clearIsPointer({ context: e }) {
|
|
346
|
-
e.set("isPointer", !1);
|
|
347
|
-
},
|
|
348
|
-
reposition({ context: e, prop: t, scope: o, event: r }) {
|
|
349
|
-
const n = () => R(o);
|
|
350
|
-
x(w(o), n, {
|
|
351
|
-
...t("positioning"),
|
|
352
|
-
...r.options,
|
|
353
|
-
defer: !0,
|
|
354
|
-
listeners: !1,
|
|
355
|
-
onComplete(a) {
|
|
356
|
-
e.set("currentPlacement", a.placement);
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
},
|
|
360
|
-
toggleVisibility({ prop: e, event: t, send: o }) {
|
|
361
|
-
queueMicrotask(() => {
|
|
362
|
-
o({ type: e("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: t });
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
te()([
|
|
369
|
-
"closeDelay",
|
|
370
|
-
"dir",
|
|
371
|
-
"getRootNode",
|
|
372
|
-
"id",
|
|
373
|
-
"ids",
|
|
374
|
-
"onOpenChange",
|
|
375
|
-
"defaultOpen",
|
|
376
|
-
"open",
|
|
377
|
-
"openDelay",
|
|
378
|
-
"positioning",
|
|
379
|
-
"onInteractOutside",
|
|
380
|
-
"onPointerDownOutside",
|
|
381
|
-
"onFocusOutside"
|
|
382
|
-
]);
|
|
383
|
-
const Ee = (e) => {
|
|
384
|
-
const t = Y(), { getRootNode: o } = oe(), { dir: r } = re(), n = {
|
|
385
|
-
id: t,
|
|
386
|
-
dir: r,
|
|
387
|
-
getRootNode: o,
|
|
388
|
-
...e
|
|
389
|
-
}, a = ne(Te, n);
|
|
390
|
-
return me(a, se);
|
|
391
|
-
}, fe = (e) => {
|
|
392
|
-
const [t, { children: o, ...r }] = L(e), n = Ee(r), a = I(u({ present: n.open }, t));
|
|
393
|
-
return /* @__PURE__ */ s.jsx(D, { value: n, children: /* @__PURE__ */ s.jsx(H, { value: a, children: o }) });
|
|
394
|
-
}, he = (e) => {
|
|
395
|
-
const [t, { value: o, children: r }] = L(e), n = I(u({ present: o.open }, t));
|
|
396
|
-
return /* @__PURE__ */ s.jsx(D, { value: o, children: /* @__PURE__ */ s.jsx(H, { value: n, children: r }) });
|
|
397
|
-
}, V = g((e, t) => {
|
|
398
|
-
const o = C(), r = u(o.getTriggerProps(), e);
|
|
399
|
-
return /* @__PURE__ */ s.jsx(O.button, { ...r, ref: t });
|
|
400
|
-
});
|
|
401
|
-
V.displayName = "HoverCardTrigger";
|
|
402
|
-
const {
|
|
403
|
-
withRootProvider: B,
|
|
404
|
-
withContext: m,
|
|
405
|
-
PropsProvider: we
|
|
406
|
-
} = ae({ key: "hoverCard" }), $e = B(he), ye = B(
|
|
407
|
-
fe
|
|
408
|
-
), Ge = we, Ne = m(V, "trigger", { forwardAsChild: !0 }), xe = m(S, "positioner", { forwardAsChild: !0 }), Re = m(A, "content", { forwardAsChild: !0 }), U = m(j, "arrowTip", { forwardAsChild: !0 }), be = m(
|
|
409
|
-
_,
|
|
410
|
-
"arrow",
|
|
411
|
-
{
|
|
412
|
-
forwardAsChild: !0,
|
|
413
|
-
defaultProps: { children: /* @__PURE__ */ s.jsx(U, {}) }
|
|
414
|
-
}
|
|
415
|
-
), Fe = Ce, M = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx(ge, { className: "Text", "data-testid": "kibble-text", ...t, children: e });
|
|
416
|
-
M.displayName = "Text";
|
|
417
|
-
const ke = Le(M), W = g(
|
|
418
|
-
(e, t) => {
|
|
419
|
-
const {
|
|
420
|
-
children: o,
|
|
421
|
-
disabled: r = !1,
|
|
422
|
-
openDelay: n = 350,
|
|
423
|
-
placement: a = "top",
|
|
424
|
-
positioning: c,
|
|
425
|
-
portalled: l = !0,
|
|
426
|
-
label: d,
|
|
427
|
-
...i
|
|
428
|
-
} = e;
|
|
429
|
-
return r ? o : /* @__PURE__ */ s.jsxs(
|
|
430
|
-
ye,
|
|
431
|
-
{
|
|
432
|
-
openDelay: n,
|
|
433
|
-
positioning: {
|
|
434
|
-
...c,
|
|
435
|
-
placement: c?.placement || a
|
|
436
|
-
},
|
|
437
|
-
...i,
|
|
438
|
-
children: [
|
|
439
|
-
/* @__PURE__ */ s.jsx(
|
|
440
|
-
Ne,
|
|
441
|
-
{
|
|
442
|
-
asChild: !0,
|
|
443
|
-
className: "Tooltip__Trigger",
|
|
444
|
-
"data-testid": "kibble-tooltip-trigger",
|
|
445
|
-
display: "inline-block",
|
|
446
|
-
children: o
|
|
447
|
-
}
|
|
448
|
-
),
|
|
449
|
-
/* @__PURE__ */ s.jsx(ie, { disabled: !l, children: /* @__PURE__ */ s.jsx(
|
|
450
|
-
xe,
|
|
451
|
-
{
|
|
452
|
-
className: "Tooltip",
|
|
453
|
-
"data-testid": "kibble-tooltip",
|
|
454
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
455
|
-
Re,
|
|
456
|
-
{
|
|
457
|
-
className: "Tooltip__Content",
|
|
458
|
-
"data-testid": "kibble-tooltip-content",
|
|
459
|
-
ref: t,
|
|
460
|
-
p: 2,
|
|
461
|
-
w: "auto",
|
|
462
|
-
border: "none",
|
|
463
|
-
boxShadow: "none",
|
|
464
|
-
children: [
|
|
465
|
-
/* @__PURE__ */ s.jsx(
|
|
466
|
-
be,
|
|
467
|
-
{
|
|
468
|
-
className: "Tooltip__Arrow",
|
|
469
|
-
"data-testid": "kibble-tooltip-arrow",
|
|
470
|
-
css: { "--arrow-size": "10px" },
|
|
471
|
-
children: /* @__PURE__ */ s.jsx(U, { border: "none" })
|
|
472
|
-
}
|
|
473
|
-
),
|
|
474
|
-
/* @__PURE__ */ s.jsx(ke, { variant: "onContrast", size: "sm", truncate: !1, children: d })
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
)
|
|
478
|
-
}
|
|
479
|
-
) })
|
|
480
|
-
]
|
|
481
|
-
}
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
);
|
|
485
|
-
W.displayName = "Tooltip";
|
|
486
|
-
const Le = (e) => {
|
|
487
|
-
const t = y(e);
|
|
488
|
-
function o({
|
|
489
|
-
truncated: r = !1,
|
|
490
|
-
noOfLines: n = 1,
|
|
491
|
-
children: a,
|
|
492
|
-
tooltipProps: c,
|
|
493
|
-
...l
|
|
494
|
-
}) {
|
|
495
|
-
const [d, i] = z(!1), p = N(null), T = N(null), f = q(() => {
|
|
496
|
-
if (p.current) {
|
|
497
|
-
const P = p.current?.children[0].scrollHeight || 0, h = p.current?.offsetHeight || 0;
|
|
498
|
-
i(P > h);
|
|
499
|
-
}
|
|
500
|
-
}, []);
|
|
501
|
-
return J(() => {
|
|
502
|
-
if (r && p.current) {
|
|
503
|
-
let P;
|
|
504
|
-
const h = () => {
|
|
505
|
-
window.clearTimeout(P), P = window.setTimeout(f, 100);
|
|
506
|
-
};
|
|
507
|
-
return T.current = new ResizeObserver(() => {
|
|
508
|
-
h();
|
|
509
|
-
}), T.current.observe(p.current), f(), () => {
|
|
510
|
-
window.clearTimeout(P), T.current && T.current.disconnect();
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
}, [r, f]), r ? /* @__PURE__ */ s.jsx(
|
|
514
|
-
W,
|
|
515
|
-
{
|
|
516
|
-
...c,
|
|
517
|
-
label: c?.label || a?.toLocaleString() || "",
|
|
518
|
-
disabled: !d,
|
|
519
|
-
"data-testid": "kibble-truncated-text-tooltip",
|
|
520
|
-
children: /* @__PURE__ */ s.jsx(
|
|
521
|
-
K,
|
|
522
|
-
{
|
|
523
|
-
ref: p,
|
|
524
|
-
display: "inline-block",
|
|
525
|
-
position: "relative",
|
|
526
|
-
className: "TruncatedText__Wrapper",
|
|
527
|
-
"data-testid": "kibble-truncated-text-wrapper",
|
|
528
|
-
children: /* @__PURE__ */ s.jsx(
|
|
529
|
-
t,
|
|
530
|
-
{
|
|
531
|
-
className: "TruncatedText__TextContent",
|
|
532
|
-
"data-testid": "kibble-truncated-text-content",
|
|
533
|
-
lineClamp: n,
|
|
534
|
-
...l,
|
|
535
|
-
children: a
|
|
536
|
-
}
|
|
537
|
-
)
|
|
538
|
-
}
|
|
539
|
-
)
|
|
540
|
-
}
|
|
541
|
-
) : /* @__PURE__ */ s.jsx(t, { ...l, children: a });
|
|
542
|
-
}
|
|
543
|
-
return o.displayName = `withTruncation(${e.displayName || e.name}`, y(o);
|
|
544
|
-
};
|
|
545
|
-
export {
|
|
546
|
-
be as H,
|
|
547
|
-
W as T,
|
|
548
|
-
ke as W,
|
|
549
|
-
U as a,
|
|
550
|
-
Re as b,
|
|
551
|
-
Fe as c,
|
|
552
|
-
xe as d,
|
|
553
|
-
Ge as e,
|
|
554
|
-
ye as f,
|
|
555
|
-
$e as g,
|
|
556
|
-
Ne as h,
|
|
557
|
-
Pe as i,
|
|
558
|
-
C as u,
|
|
559
|
-
Le as w
|
|
560
|
-
};
|
|
561
|
-
//# sourceMappingURL=withTruncation-CQUQzrTa.js.map
|