@televet/kibble-ui 4.0.0-beta.44 → 4.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{alert.component-D4KMig7W.js → alert.component-CjjsneE_.js} +2 -2
- package/dist/chunks/{alert.component-D4KMig7W.js.map → alert.component-CjjsneE_.js.map} +1 -1
- package/dist/chunks/{alert.component-BrnaAnby.js → alert.component-xIg594Bw.js} +3 -3
- package/dist/chunks/{alert.component-BrnaAnby.js.map → alert.component-xIg594Bw.js.map} +1 -1
- package/dist/chunks/{avatar.component-Bh0DFMwE.js → avatar.component-B7rggLqO.js} +2 -2
- package/dist/chunks/{avatar.component-Bh0DFMwE.js.map → avatar.component-B7rggLqO.js.map} +1 -1
- package/dist/chunks/{avatar.component-_Mqnl3-P.js → avatar.component-C0lDpuBh.js} +2 -2
- package/dist/chunks/{avatar.component-_Mqnl3-P.js.map → avatar.component-C0lDpuBh.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-oRjqOWEB.js → avatarGroup.component-BxK-Fntw.js} +2 -2
- package/dist/chunks/{avatarGroup.component-oRjqOWEB.js.map → avatarGroup.component-BxK-Fntw.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Bw5gczhh.js → avatarGroup.component-Cr2dLGn7.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Bw5gczhh.js.map → avatarGroup.component-Cr2dLGn7.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BCCxeFx_.js → buttonGroup.component-BllwiY24.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BCCxeFx_.js.map → buttonGroup.component-BllwiY24.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-Cpwnw5G3.js → buttonGroup.component-CyWOOEs3.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Cpwnw5G3.js.map → buttonGroup.component-CyWOOEs3.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Ww-ll5pL.js → characterCounter.component-Bmd3imRK.js} +2 -2
- package/dist/chunks/{characterCounter.component-Ww-ll5pL.js.map → characterCounter.component-Bmd3imRK.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BcKXSebL.js → characterCounter.component-L802Ir9b.js} +2 -2
- package/dist/chunks/{characterCounter.component-BcKXSebL.js.map → characterCounter.component-L802Ir9b.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C8IPf20R.js → checkbox.component-C99uwLFM.js} +3 -3
- package/dist/chunks/{checkbox.component-C8IPf20R.js.map → checkbox.component-C99uwLFM.js.map} +1 -1
- package/dist/chunks/{checkbox.component-CvuE1PVR.js → checkbox.component-jKQDjGYQ.js} +2 -2
- package/dist/chunks/{checkbox.component-CvuE1PVR.js.map → checkbox.component-jKQDjGYQ.js.map} +1 -1
- package/dist/chunks/{checkbox.records-ef7wOXPE.js → checkbox.records-BBV1vniy.js} +2 -2
- package/dist/chunks/{checkbox.records-ef7wOXPE.js.map → checkbox.records-BBV1vniy.js.map} +1 -1
- package/dist/chunks/{checkbox.records-jwUqoHaK.js → checkbox.records-CYYbBUNp.js} +2 -2
- package/dist/chunks/{checkbox.records-jwUqoHaK.js.map → checkbox.records-CYYbBUNp.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CaHesQT7.js → checkboxGroup.component-DwICStpY.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-CaHesQT7.js.map → checkboxGroup.component-DwICStpY.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CQEwY2Fu.js → checkboxGroup.component-v0mNVsPd.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-CQEwY2Fu.js.map → checkboxGroup.component-v0mNVsPd.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-C_gj2TZd.js → conversationCard.component-BERwqiS-.js} +7 -7
- package/dist/chunks/{conversationCard.component-C_gj2TZd.js.map → conversationCard.component-BERwqiS-.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-p1vrl1L3.js → conversationCard.component-CTRfZQCI.js} +2 -2
- package/dist/chunks/{conversationCard.component-p1vrl1L3.js.map → conversationCard.component-CTRfZQCI.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CwQ7lbgj.js → datePicker.component-DN3Vb2hm.js} +2 -2
- package/dist/chunks/{datePicker.component-CwQ7lbgj.js.map → datePicker.component-DN3Vb2hm.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DLbm9VYf.js → datePicker.component-PImZR-B6.js} +4 -4
- package/dist/chunks/{datePicker.component-DLbm9VYf.js.map → datePicker.component-PImZR-B6.js.map} +1 -1
- package/dist/chunks/{heading.component--ic7O4CR.js → heading.component-CgsSnBVo.js} +2 -2
- package/dist/chunks/{heading.component--ic7O4CR.js.map → heading.component-CgsSnBVo.js.map} +1 -1
- package/dist/chunks/{heading.component-E5shs3Uo.js → heading.component-DIST7ncC.js} +2 -2
- package/dist/chunks/{heading.component-E5shs3Uo.js.map → heading.component-DIST7ncC.js.map} +1 -1
- package/dist/chunks/{index-sVj7ynbl.js → index-ByhnCBwf.js} +2 -2
- package/dist/chunks/{index-sVj7ynbl.js.map → index-ByhnCBwf.js.map} +1 -1
- package/dist/chunks/{index-CX6Jo_Vb.js → index-DKKJDbpe.js} +2 -2
- package/dist/chunks/{index-CX6Jo_Vb.js.map → index-DKKJDbpe.js.map} +1 -1
- package/dist/chunks/{link.component-CSyWrGG3.js → link.component-CRVhyVdO.js} +2 -2
- package/dist/chunks/{link.component-CSyWrGG3.js.map → link.component-CRVhyVdO.js.map} +1 -1
- package/dist/chunks/{link.component-ucfag2-g.js → link.component-DYNc5XEj.js} +2 -2
- package/dist/chunks/{link.component-ucfag2-g.js.map → link.component-DYNc5XEj.js.map} +1 -1
- package/dist/chunks/{menu.component-toq-fDY8.js → menu.component-CTze16Re.js} +142 -141
- package/dist/chunks/{menu.component-toq-fDY8.js.map → menu.component-CTze16Re.js.map} +1 -1
- package/dist/chunks/menu.component-DfMZGgCy.js +2 -0
- package/dist/chunks/{menu.component-D_eoL8VD.js.map → menu.component-DfMZGgCy.js.map} +1 -1
- package/dist/chunks/modal.types-DYbLPZKq.js +197 -0
- package/dist/chunks/modal.types-DYbLPZKq.js.map +1 -0
- package/dist/chunks/modal.types-Dt-zDnrS.js +2 -0
- package/dist/chunks/modal.types-Dt-zDnrS.js.map +1 -0
- package/dist/chunks/{pinInput.types-GAEfMLAv.js → pinInput.types-CU3UyhyT.js} +2 -2
- package/dist/chunks/{pinInput.types-GAEfMLAv.js.map → pinInput.types-CU3UyhyT.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BPnWNbwp.js → pinInput.types-Ov7NqPQG.js} +2 -2
- package/dist/chunks/{pinInput.types-BPnWNbwp.js.map → pinInput.types-Ov7NqPQG.js.map} +1 -1
- package/dist/chunks/{popover.component-CewrKFIu.js → popover.component-DU-JJabq.js} +2 -2
- package/dist/chunks/{popover.component-CewrKFIu.js.map → popover.component-DU-JJabq.js.map} +1 -1
- package/dist/chunks/{popover.component-8ETQVr48.js → popover.component-LH8cQ5xp.js} +3 -3
- package/dist/chunks/{popover.component-8ETQVr48.js.map → popover.component-LH8cQ5xp.js.map} +1 -1
- package/dist/chunks/{radio.records-CsyF_2pW.js → radio.records-BEcLVP_S.js} +2 -2
- package/dist/chunks/{radio.records-CsyF_2pW.js.map → radio.records-BEcLVP_S.js.map} +1 -1
- package/dist/chunks/{radio.records-U-7SH4rq.js → radio.records-CnQniSEw.js} +2 -2
- package/dist/chunks/{radio.records-U-7SH4rq.js.map → radio.records-CnQniSEw.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DyE_o-Fx.js → radioGroup.component-BijXqMDe.js} +5 -5
- package/dist/chunks/{radioGroup.component-DyE_o-Fx.js.map → radioGroup.component-BijXqMDe.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-B3pl5h2h.js → radioGroup.component-D9lKUJfv.js} +2 -2
- package/dist/chunks/{radioGroup.component-B3pl5h2h.js.map → radioGroup.component-D9lKUJfv.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C8eBoN9v.js → ratingDots.component-CdawEWbl.js} +2 -2
- package/dist/chunks/{ratingDots.component-C8eBoN9v.js.map → ratingDots.component-CdawEWbl.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BesDpg8x.js → ratingDots.component-CgBG_tvz.js} +3 -3
- package/dist/chunks/{ratingDots.component-BesDpg8x.js.map → ratingDots.component-CgBG_tvz.js.map} +1 -1
- package/dist/chunks/select.component-9-2Fo505.js +2 -0
- package/dist/chunks/{select.component-BCFraNbc.js.map → select.component-9-2Fo505.js.map} +1 -1
- package/dist/chunks/select.component-C4Kx68wP.js +345 -0
- package/dist/chunks/{select.component-GTm2laeB.js.map → select.component-C4Kx68wP.js.map} +1 -1
- package/dist/chunks/{sortableList.component-COofj0TO.js → sortableList.component-BRToMbfY.js} +2 -2
- package/dist/chunks/{sortableList.component-COofj0TO.js.map → sortableList.component-BRToMbfY.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B8ch3VZ9.js → sortableList.component-Engs9U32.js} +2 -2
- package/dist/chunks/{sortableList.component-B8ch3VZ9.js.map → sortableList.component-Engs9U32.js.map} +1 -1
- package/dist/chunks/{spinner.component-DjiFeql5.js → spinner.component-BuNeiOw3.js} +2 -2
- package/dist/chunks/{spinner.component-DjiFeql5.js.map → spinner.component-BuNeiOw3.js.map} +1 -1
- package/dist/chunks/{spinner.component-DRQDBF8j.js → spinner.component-DCSsW51J.js} +2 -2
- package/dist/chunks/{spinner.component-DRQDBF8j.js.map → spinner.component-DCSsW51J.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-Cq3BLvCU.js → styledAvatar.types-BT8cujaA.js} +2 -2
- package/dist/chunks/{styledAvatar.types-Cq3BLvCU.js.map → styledAvatar.types-BT8cujaA.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-cc6fpkt6.js → styledAvatar.types-b9eWaeJ6.js} +2 -2
- package/dist/chunks/{styledAvatar.types-cc6fpkt6.js.map → styledAvatar.types-b9eWaeJ6.js.map} +1 -1
- package/dist/chunks/{switch.component-CSGFEF3I.js → switch.component-B2vWRrP_.js} +3 -3
- package/dist/chunks/{switch.component-CSGFEF3I.js.map → switch.component-B2vWRrP_.js.map} +1 -1
- package/dist/chunks/{switch.component-DjHknb_4.js → switch.component-QSVPRhDJ.js} +2 -2
- package/dist/chunks/{switch.component-DjHknb_4.js.map → switch.component-QSVPRhDJ.js.map} +1 -1
- package/dist/chunks/{tabs.component-B365dz_T.js → tabs.component-Cy7BLGXM.js} +2 -2
- package/dist/chunks/{tabs.component-B365dz_T.js.map → tabs.component-Cy7BLGXM.js.map} +1 -1
- package/dist/chunks/{tabs.component-D5tE6-_n.js → tabs.component-DlaP-qhJ.js} +2 -2
- package/dist/chunks/{tabs.component-D5tE6-_n.js.map → tabs.component-DlaP-qhJ.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BWbEe9VL.js → tagBlock.component-CNWy7Cz4.js} +2 -2
- package/dist/chunks/{tagBlock.component-BWbEe9VL.js.map → tagBlock.component-CNWy7Cz4.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DGGkSE8s.js → tagBlock.component-Cn6vRcHX.js} +5 -5
- package/dist/chunks/{tagBlock.component-DGGkSE8s.js.map → tagBlock.component-Cn6vRcHX.js.map} +1 -1
- package/dist/chunks/{text.component-DZkwd4C0.js → text.component-D3E0SdX1.js} +2 -2
- package/dist/chunks/{text.component-DZkwd4C0.js.map → text.component-D3E0SdX1.js.map} +1 -1
- package/dist/chunks/{text.component-C_Zg4dMh.js → text.component-Dcx3RoTp.js} +2 -2
- package/dist/chunks/{text.component-C_Zg4dMh.js.map → text.component-Dcx3RoTp.js.map} +1 -1
- package/dist/chunks/{textInput.component-db5JWDOn.js → textInput.component-BjQgcjCW.js} +2 -2
- package/dist/chunks/{textInput.component-db5JWDOn.js.map → textInput.component-BjQgcjCW.js.map} +1 -1
- package/dist/chunks/{textInput.component-D2StzwsH.js → textInput.component-BpCIE07n.js} +3 -3
- package/dist/chunks/{textInput.component-D2StzwsH.js.map → textInput.component-BpCIE07n.js.map} +1 -1
- package/dist/chunks/{textarea.component-DvA5vzjS.js → textarea.component-B5AsA90v.js} +3 -3
- package/dist/chunks/{textarea.component-DvA5vzjS.js.map → textarea.component-B5AsA90v.js.map} +1 -1
- package/dist/chunks/{textarea.component-VN5A4zVD.js → textarea.component-BXtiF_l4.js} +2 -2
- package/dist/chunks/{textarea.component-VN5A4zVD.js.map → textarea.component-BXtiF_l4.js.map} +1 -1
- package/dist/chunks/{theme.provider-CW14mtF4.js → theme.provider-B8KfvKCf.js} +2 -2
- package/dist/chunks/{theme.provider-CW14mtF4.js.map → theme.provider-B8KfvKCf.js.map} +1 -1
- package/dist/chunks/{theme.provider-Im9VeW3I.js → theme.provider-CnlvRUbx.js} +6 -6
- package/dist/chunks/{theme.provider-Im9VeW3I.js.map → theme.provider-CnlvRUbx.js.map} +1 -1
- package/dist/chunks/{timePicker.component-sttSyiVV.js → timePicker.component-BFa1h4Gv.js} +3 -3
- package/dist/chunks/{timePicker.component-sttSyiVV.js.map → timePicker.component-BFa1h4Gv.js.map} +1 -1
- package/dist/chunks/{timePicker.component-Cm2roPxJ.js → timePicker.component-Bk5xtY7m.js} +2 -2
- package/dist/chunks/{timePicker.component-Cm2roPxJ.js.map → timePicker.component-Bk5xtY7m.js.map} +1 -1
- package/dist/chunks/{timeRange.component-BuLsK6ed.js → timeRange.component-CWbreNV8.js} +2 -2
- package/dist/chunks/{timeRange.component-BuLsK6ed.js.map → timeRange.component-CWbreNV8.js.map} +1 -1
- package/dist/chunks/{timeRange.component-OH7hVSwj.js → timeRange.component-DuKclNl6.js} +2 -2
- package/dist/chunks/{timeRange.component-OH7hVSwj.js.map → timeRange.component-DuKclNl6.js.map} +1 -1
- package/dist/chunks/{timestamp.component-p5tMHeq4.js → timestamp.component-6Yax0uEP.js} +2 -2
- package/dist/chunks/{timestamp.component-p5tMHeq4.js.map → timestamp.component-6Yax0uEP.js.map} +1 -1
- package/dist/chunks/{timestamp.component-C51FWMrY.js → timestamp.component-BouqsJZM.js} +3 -3
- package/dist/chunks/{timestamp.component-C51FWMrY.js.map → timestamp.component-BouqsJZM.js.map} +1 -1
- package/dist/chunks/tooltip.component-C7RpuMiK.js +2 -0
- package/dist/chunks/tooltip.component-C7RpuMiK.js.map +1 -0
- package/dist/chunks/{tooltip.component-DsowDvmZ.js → tooltip.component-DYBYGsfe.js} +226 -219
- package/dist/chunks/tooltip.component-DYBYGsfe.js.map +1 -0
- package/dist/chunks/{withFormControl-Chelruxy.js → withFormControl-Vf_flDYv.js} +2 -2
- package/dist/chunks/{withFormControl-Chelruxy.js.map → withFormControl-Vf_flDYv.js.map} +1 -1
- package/dist/chunks/{withFormControl-CvsBPk94.js → withFormControl-YVXep-WE.js} +2 -2
- package/dist/chunks/{withFormControl-CvsBPk94.js.map → withFormControl-YVXep-WE.js.map} +1 -1
- package/dist/chunks/{withTruncation-Cca8DRk_.js → withTruncation-BNm_JUdt.js} +2 -2
- package/dist/chunks/{withTruncation-Cca8DRk_.js.map → withTruncation-BNm_JUdt.js.map} +1 -1
- package/dist/chunks/{withTruncation-C7erdGm7.js → withTruncation-D0DUT56h.js} +2 -2
- package/dist/chunks/{withTruncation-C7erdGm7.js.map → withTruncation-D0DUT56h.js.map} +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +31 -31
- package/dist/esm/index.js +32 -32
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Modal/context/modal.context.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/menu.component-D_eoL8VD.js +0 -2
- package/dist/chunks/modal.types-BhM9guMA.js +0 -2
- package/dist/chunks/modal.types-BhM9guMA.js.map +0 -1
- package/dist/chunks/modal.types-Dz2IFuc7.js +0 -193
- package/dist/chunks/modal.types-Dz2IFuc7.js.map +0 -1
- package/dist/chunks/select.component-BCFraNbc.js +0 -2
- package/dist/chunks/select.component-GTm2laeB.js +0 -344
- package/dist/chunks/tooltip.component-DsowDvmZ.js.map +0 -1
- package/dist/chunks/tooltip.component-HHJpC9zD.js +0 -2
- package/dist/chunks/tooltip.component-HHJpC9zD.js.map +0 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import
|
|
2
|
+
import Ee, { forwardRef as x, useEffect as B, useId as F, useRef as X, useCallback as b, useState as Y, useMemo as A } from "react";
|
|
3
3
|
import { B as L } from "./button.component-BWlRjD5a.js";
|
|
4
4
|
import { I as ne } from "./icon.component-BmcWaysM.js";
|
|
5
|
-
import { W as V } from "./text.component-
|
|
6
|
-
import { F as
|
|
7
|
-
import { W as
|
|
8
|
-
import { S as
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { W as V } from "./text.component-D3E0SdX1.js";
|
|
6
|
+
import { F as w } from "./flex-C2d2LH-K.js";
|
|
7
|
+
import { W as He } from "./textInput.component-BpCIE07n.js";
|
|
8
|
+
import { S as Ke } from "./spinner.component-DCSsW51J.js";
|
|
9
|
+
import { B as G } from "./box-y05hq0PT.js";
|
|
10
|
+
import { u as Ue } from "./tooltip.component-DYBYGsfe.js";
|
|
11
|
+
import { W as qe, u as Je } from "./checkbox.component-C99uwLFM.js";
|
|
12
|
+
import { a as S, f as g, b as N, u as z, h as Qe, i as Xe, j as Ye, k as Ze, n as et, s as oe, l as se, m as re, P as tt } from "./use-locale-context-zakBNK5b.js";
|
|
13
|
+
import { c as nt } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
14
|
+
import { b as ot } from "./icons-grAfs3Oz.js";
|
|
15
|
+
import { c as st, m as rt } from "./index-sWaESJRS.js";
|
|
15
16
|
import { U as d } from "./index-DLvqBeH6.js";
|
|
16
|
-
const [ae, m] =
|
|
17
|
+
const [ae, m] = S({
|
|
17
18
|
name: "MenuContext",
|
|
18
19
|
hookName: "useMenuContext",
|
|
19
20
|
providerName: "<MenuProvider />",
|
|
@@ -28,16 +29,16 @@ const ue = x((o, n) => {
|
|
|
28
29
|
return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
|
|
29
30
|
});
|
|
30
31
|
ue.displayName = "MenuArrowTip";
|
|
31
|
-
const [W,
|
|
32
|
+
const [W, Vt] = S({
|
|
32
33
|
name: "MenuItemContext",
|
|
33
34
|
hookName: "useMenuItemContext",
|
|
34
35
|
providerName: "<MenuItemProvider />"
|
|
35
|
-
}), [ie, le] =
|
|
36
|
+
}), [ie, le] = S({
|
|
36
37
|
name: "MenuOptionItemPropsContext",
|
|
37
38
|
hookName: "useMenuOptionItemPropsContext",
|
|
38
39
|
providerName: "<MenuOptionItemPropsProvider />"
|
|
39
40
|
}), de = x((o, n) => {
|
|
40
|
-
const [t, s] =
|
|
41
|
+
const [t, s] = N()(o, [
|
|
41
42
|
"checked",
|
|
42
43
|
"closeOnSelect",
|
|
43
44
|
"disabled",
|
|
@@ -53,7 +54,7 @@ const [W, Bt] = k({
|
|
|
53
54
|
de.displayName = "MenuCheckboxItem";
|
|
54
55
|
const me = x((o, n) => {
|
|
55
56
|
const t = m(), s = z(), r = d(t.getContentProps(), s.getPresenceProps(), o);
|
|
56
|
-
return s.unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...r, ref:
|
|
57
|
+
return s.unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...r, ref: Qe(s.ref, n) });
|
|
57
58
|
});
|
|
58
59
|
me.displayName = "MenuContent";
|
|
59
60
|
const pe = x((o, n) => {
|
|
@@ -67,7 +68,7 @@ const he = x((o, n) => {
|
|
|
67
68
|
});
|
|
68
69
|
he.displayName = "MenuIndicator";
|
|
69
70
|
const xe = x((o, n) => {
|
|
70
|
-
const [t, s] =
|
|
71
|
+
const [t, s] = N()(o, [
|
|
71
72
|
"closeOnSelect",
|
|
72
73
|
"disabled",
|
|
73
74
|
"value",
|
|
@@ -77,12 +78,12 @@ const xe = x((o, n) => {
|
|
|
77
78
|
return B(() => r.addItemListener({ id: c.id, onSelect: t.onSelect }), [c.id, t.onSelect]), /* @__PURE__ */ e.jsx(W, { value: c, children: /* @__PURE__ */ e.jsx(g.div, { ...u, ref: n }) });
|
|
78
79
|
});
|
|
79
80
|
xe.displayName = "MenuItem";
|
|
80
|
-
const [ge, Me] =
|
|
81
|
+
const [ge, Me] = S({
|
|
81
82
|
name: "MenuItemGroupContext",
|
|
82
83
|
hookName: "useMenuItemGroupContext",
|
|
83
84
|
providerName: "<MenuItemGroupProvider />"
|
|
84
85
|
}), fe = x((o, n) => {
|
|
85
|
-
const [t, s] =
|
|
86
|
+
const [t, s] = N()(o, ["id"]), r = m(), c = { id: F(), ...t }, l = d(r.getItemGroupProps(c), s);
|
|
86
87
|
return /* @__PURE__ */ e.jsx(ge, { value: c, children: /* @__PURE__ */ e.jsx(g.div, { ...l, ref: n }) });
|
|
87
88
|
});
|
|
88
89
|
fe.displayName = "MenuItemGroup";
|
|
@@ -107,7 +108,7 @@ const Ce = x((o, n) => {
|
|
|
107
108
|
});
|
|
108
109
|
Ce.displayName = "MenuPositioner";
|
|
109
110
|
const je = x((o, n) => {
|
|
110
|
-
const [t, s] =
|
|
111
|
+
const [t, s] = N()(o, [
|
|
111
112
|
"closeOnSelect",
|
|
112
113
|
"disabled",
|
|
113
114
|
"value",
|
|
@@ -122,7 +123,7 @@ const je = x((o, n) => {
|
|
|
122
123
|
});
|
|
123
124
|
je.displayName = "MenuRadioItem";
|
|
124
125
|
const be = x((o, n) => {
|
|
125
|
-
const [t, s] =
|
|
126
|
+
const [t, s] = N()(o, [
|
|
126
127
|
"id",
|
|
127
128
|
"onValueChange",
|
|
128
129
|
"value"
|
|
@@ -137,26 +138,26 @@ const ke = (o) => {
|
|
|
137
138
|
}), B(() => {
|
|
138
139
|
t.current !== !0 && (t.current = !0, n.current());
|
|
139
140
|
}, []);
|
|
140
|
-
},
|
|
141
|
-
const n = F(), { getRootNode: t } =
|
|
141
|
+
}, at = (o) => {
|
|
142
|
+
const n = F(), { getRootNode: t } = Xe(), { dir: s } = Ye(), r = {
|
|
142
143
|
id: n,
|
|
143
144
|
dir: s,
|
|
144
145
|
getRootNode: t,
|
|
145
146
|
...o
|
|
146
|
-
}, u =
|
|
147
|
-
return { api:
|
|
148
|
-
}, [Se, Ne] =
|
|
147
|
+
}, u = Ze(rt, r);
|
|
148
|
+
return { api: st(u, et), service: u };
|
|
149
|
+
}, [Se, Ne] = S({
|
|
149
150
|
name: "MenuMachineContext",
|
|
150
151
|
hookName: "useMenuMachineContext",
|
|
151
152
|
providerName: "<MenuMachineProvider />",
|
|
152
153
|
strict: !1
|
|
153
|
-
}), [Te,
|
|
154
|
+
}), [Te, ct] = S({
|
|
154
155
|
name: "MenuMachineContext",
|
|
155
156
|
hookName: "useMenuMachineContext",
|
|
156
157
|
providerName: "<MenuMachineProvider />",
|
|
157
158
|
strict: !1
|
|
158
|
-
}),
|
|
159
|
-
const [n, t] = oe(o), [s, r] =
|
|
159
|
+
}), ut = (o) => {
|
|
160
|
+
const [n, t] = oe(o), [s, r] = N()(t, [
|
|
160
161
|
"anchorPoint",
|
|
161
162
|
"aria-label",
|
|
162
163
|
"closeOnSelect",
|
|
@@ -178,19 +179,19 @@ const ke = (o) => {
|
|
|
178
179
|
"open",
|
|
179
180
|
"positioning",
|
|
180
181
|
"typeahead"
|
|
181
|
-
]), u = m(), c = Ne(), { api: l, service: M } =
|
|
182
|
+
]), u = m(), c = Ne(), { api: l, service: M } = at(s), P = se(d({ present: l.open }, n));
|
|
182
183
|
ke(() => {
|
|
183
184
|
c && u && (u.setChild(M), l.setParent(c));
|
|
184
185
|
});
|
|
185
|
-
const
|
|
186
|
-
return /* @__PURE__ */ e.jsx(Te, { value:
|
|
187
|
-
},
|
|
186
|
+
const j = b(() => u?.getTriggerItemProps(l), [l, u]);
|
|
187
|
+
return /* @__PURE__ */ e.jsx(Te, { value: j, children: /* @__PURE__ */ e.jsx(Se, { value: M, children: /* @__PURE__ */ e.jsx(ae, { value: l, children: /* @__PURE__ */ e.jsx(re, { value: P, ...r }) }) }) });
|
|
188
|
+
}, it = (o) => {
|
|
188
189
|
const n = m(), t = Ne(), [s, { value: r, children: u }] = oe(o), { api: c, service: l } = r, M = se(d({ present: c.open }, s));
|
|
189
190
|
ke(() => {
|
|
190
191
|
t && n && (n.setChild(l), c.setParent(t));
|
|
191
192
|
});
|
|
192
|
-
const
|
|
193
|
-
return /* @__PURE__ */ e.jsx(Te, { value:
|
|
193
|
+
const P = b(() => n?.getTriggerItemProps(c), [c, n]);
|
|
194
|
+
return /* @__PURE__ */ e.jsx(Te, { value: P, children: /* @__PURE__ */ e.jsx(Se, { value: l, children: /* @__PURE__ */ e.jsx(ae, { value: c, children: /* @__PURE__ */ e.jsx(re, { value: M, children: u }) }) }) });
|
|
194
195
|
}, we = x((o, n) => {
|
|
195
196
|
const t = m(), s = d(t.getSeparatorProps(), o);
|
|
196
197
|
return /* @__PURE__ */ e.jsx(g.hr, { ...s, ref: n });
|
|
@@ -208,26 +209,26 @@ const ye = x((o, n) => {
|
|
|
208
209
|
});
|
|
209
210
|
ye.displayName = "MenuTrigger";
|
|
210
211
|
const Ae = x((o, n) => {
|
|
211
|
-
const t =
|
|
212
|
+
const t = ct(), s = d(t?.() ?? {}, o);
|
|
212
213
|
return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
|
|
213
214
|
});
|
|
214
215
|
Ae.displayName = "MenuTriggerItem";
|
|
215
216
|
const {
|
|
216
217
|
withRootProvider: Ge,
|
|
217
218
|
withContext: p
|
|
218
|
-
} =
|
|
219
|
+
} = nt({ key: "menu" });
|
|
219
220
|
Ge(
|
|
220
|
-
|
|
221
|
+
it
|
|
221
222
|
);
|
|
222
|
-
const
|
|
223
|
+
const lt = Ge(ut, {
|
|
223
224
|
defaultProps: { lazyMount: !0, unmountOnExit: !0 }
|
|
224
|
-
}),
|
|
225
|
+
}), dt = p(
|
|
225
226
|
ye,
|
|
226
227
|
"trigger",
|
|
227
228
|
{ forwardAsChild: !0 }
|
|
228
229
|
);
|
|
229
230
|
p(pe, "contextTrigger", { forwardAsChild: !0 });
|
|
230
|
-
const
|
|
231
|
+
const mt = p(
|
|
231
232
|
Ce,
|
|
232
233
|
"positioner",
|
|
233
234
|
{ forwardAsChild: !0 }
|
|
@@ -237,11 +238,11 @@ p(
|
|
|
237
238
|
"separator",
|
|
238
239
|
{ forwardAsChild: !0 }
|
|
239
240
|
);
|
|
240
|
-
const
|
|
241
|
+
const pt = p(
|
|
241
242
|
me,
|
|
242
243
|
"content",
|
|
243
244
|
{ forwardAsChild: !0 }
|
|
244
|
-
),
|
|
245
|
+
), ht = p(
|
|
245
246
|
ue,
|
|
246
247
|
"arrowTip",
|
|
247
248
|
{ forwardAsChild: !0 }
|
|
@@ -249,22 +250,22 @@ const dt = p(
|
|
|
249
250
|
p(
|
|
250
251
|
ce,
|
|
251
252
|
"arrow",
|
|
252
|
-
{ forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ e.jsx(
|
|
253
|
+
{ forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ e.jsx(ht, {}) } }
|
|
253
254
|
);
|
|
254
255
|
p(
|
|
255
256
|
he,
|
|
256
257
|
"indicator",
|
|
257
258
|
{ forwardAsChild: !0 }
|
|
258
259
|
);
|
|
259
|
-
const
|
|
260
|
+
const xt = p(
|
|
260
261
|
fe,
|
|
261
262
|
"itemGroup",
|
|
262
263
|
{ forwardAsChild: !0 }
|
|
263
|
-
),
|
|
264
|
+
), gt = p(Pe, "itemGroupLabel", { forwardAsChild: !0 }), Mt = p(
|
|
264
265
|
xe,
|
|
265
266
|
"item",
|
|
266
267
|
{ forwardAsChild: !0 }
|
|
267
|
-
),
|
|
268
|
+
), ft = p(Ae, "item", { forwardAsChild: !0 });
|
|
268
269
|
p(
|
|
269
270
|
ve,
|
|
270
271
|
"itemText",
|
|
@@ -276,16 +277,16 @@ p(
|
|
|
276
277
|
);
|
|
277
278
|
p(Ie, "itemIndicator", {
|
|
278
279
|
forwardAsChild: !0,
|
|
279
|
-
defaultProps: { children: /* @__PURE__ */ e.jsx(
|
|
280
|
+
defaultProps: { children: /* @__PURE__ */ e.jsx(ot, { boxSize: "4" }) }
|
|
280
281
|
});
|
|
281
|
-
const
|
|
282
|
+
const Pt = p(de, "item", { forwardAsChild: !0 });
|
|
282
283
|
p(be, "itemGroup", { forwardAsChild: !0 });
|
|
283
284
|
p(
|
|
284
285
|
je,
|
|
285
286
|
"item",
|
|
286
287
|
{ forwardAsChild: !0 }
|
|
287
288
|
);
|
|
288
|
-
const
|
|
289
|
+
const It = ({
|
|
289
290
|
hideCaret: o = !1,
|
|
290
291
|
size: n = "md",
|
|
291
292
|
text: t,
|
|
@@ -315,7 +316,7 @@ const ft = ({
|
|
|
315
316
|
}
|
|
316
317
|
),
|
|
317
318
|
!o && /* @__PURE__ */ e.jsx(
|
|
318
|
-
|
|
319
|
+
w,
|
|
319
320
|
{
|
|
320
321
|
className: "Menu__ButtonCaret",
|
|
321
322
|
"data-testid": "kibble-menu-button-caret",
|
|
@@ -324,7 +325,7 @@ const ft = ({
|
|
|
324
325
|
)
|
|
325
326
|
]
|
|
326
327
|
}
|
|
327
|
-
),
|
|
328
|
+
), vt = ({
|
|
328
329
|
label: o,
|
|
329
330
|
leftElement: n,
|
|
330
331
|
onSelect: t,
|
|
@@ -333,16 +334,16 @@ const ft = ({
|
|
|
333
334
|
variant: u,
|
|
334
335
|
...c
|
|
335
336
|
}) => {
|
|
336
|
-
const l =
|
|
337
|
+
const l = b(() => {
|
|
337
338
|
t && t(c.value);
|
|
338
339
|
}, [t, c.value]);
|
|
339
340
|
if (r === "submenu") {
|
|
340
|
-
const { valueText: M, listProps:
|
|
341
|
+
const { valueText: M, listProps: P } = c;
|
|
341
342
|
return /* @__PURE__ */ e.jsx(
|
|
342
|
-
|
|
343
|
+
Ct,
|
|
343
344
|
{
|
|
344
345
|
submenuTrigger: /* @__PURE__ */ e.jsxs(
|
|
345
|
-
|
|
346
|
+
ft,
|
|
346
347
|
{
|
|
347
348
|
className: "Menu__Item--Submenu",
|
|
348
349
|
"data-testid": "kibble-menu-item-submenu",
|
|
@@ -363,25 +364,25 @@ const ft = ({
|
|
|
363
364
|
}
|
|
364
365
|
),
|
|
365
366
|
portalled: !0,
|
|
366
|
-
listProps:
|
|
367
|
+
listProps: P
|
|
367
368
|
}
|
|
368
369
|
);
|
|
369
370
|
}
|
|
370
371
|
if (r === "checkbox") {
|
|
371
|
-
const { checked: M, value:
|
|
372
|
+
const { checked: M, value: P, closeOnSelect: j, ...v } = c;
|
|
372
373
|
return /* @__PURE__ */ e.jsxs(
|
|
373
|
-
|
|
374
|
+
Pt,
|
|
374
375
|
{
|
|
375
376
|
className: "Menu__Item--Checkbox",
|
|
376
377
|
"data-testid": "kibble-menu-item-checkbox",
|
|
377
|
-
value:
|
|
378
|
+
value: P,
|
|
378
379
|
checked: !!M,
|
|
379
380
|
onCheckedChange: l,
|
|
380
|
-
closeOnSelect:
|
|
381
|
+
closeOnSelect: j || !1,
|
|
381
382
|
gap: 3,
|
|
382
|
-
...
|
|
383
|
+
...v,
|
|
383
384
|
children: [
|
|
384
|
-
/* @__PURE__ */ e.jsx(
|
|
385
|
+
/* @__PURE__ */ e.jsx(qe, { checked: !!M, size: "md" }),
|
|
385
386
|
/* @__PURE__ */ e.jsx(
|
|
386
387
|
$,
|
|
387
388
|
{
|
|
@@ -398,18 +399,18 @@ const ft = ({
|
|
|
398
399
|
if (r === "default") {
|
|
399
400
|
const {
|
|
400
401
|
selected: M = !1,
|
|
401
|
-
value:
|
|
402
|
-
...
|
|
402
|
+
value: P,
|
|
403
|
+
...j
|
|
403
404
|
} = c;
|
|
404
405
|
return /* @__PURE__ */ e.jsx(
|
|
405
|
-
|
|
406
|
+
Mt,
|
|
406
407
|
{
|
|
407
408
|
className: "Menu__Item--Default",
|
|
408
409
|
"data-testid": "kibble-menu-item-default",
|
|
409
|
-
value:
|
|
410
|
+
value: P,
|
|
410
411
|
onSelect: l,
|
|
411
412
|
...M && { bgColor: "background.secondaryAlpha.hover" },
|
|
412
|
-
...
|
|
413
|
+
...j,
|
|
413
414
|
children: /* @__PURE__ */ e.jsx(
|
|
414
415
|
$,
|
|
415
416
|
{
|
|
@@ -428,7 +429,7 @@ const ft = ({
|
|
|
428
429
|
leftElement: n,
|
|
429
430
|
shouldTruncateText: t,
|
|
430
431
|
variant: s
|
|
431
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
432
|
+
}) => /* @__PURE__ */ e.jsxs(w, { className: "Menu__ItemLabel", alignItems: "center", gap: 3, children: [
|
|
432
433
|
n,
|
|
433
434
|
typeof o == "string" ? /* @__PURE__ */ e.jsx(V, { size: "sm", truncated: t, variant: s, children: o }) : o
|
|
434
435
|
] }), Z = ({
|
|
@@ -438,7 +439,7 @@ const ft = ({
|
|
|
438
439
|
}) => {
|
|
439
440
|
const s = !!o;
|
|
440
441
|
return /* @__PURE__ */ e.jsx(
|
|
441
|
-
|
|
442
|
+
G,
|
|
442
443
|
{
|
|
443
444
|
className: "Menu__ToggleButtons",
|
|
444
445
|
"data-testid": "kibble-menu-toggle-buttons",
|
|
@@ -450,7 +451,7 @@ const ft = ({
|
|
|
450
451
|
groupName: o,
|
|
451
452
|
onToggle: t
|
|
452
453
|
}
|
|
453
|
-
) : /* @__PURE__ */ e.jsx(ee, { groupName: o, onToggle: t }) }) : /* @__PURE__ */ e.jsxs(
|
|
454
|
+
) : /* @__PURE__ */ e.jsx(ee, { groupName: o, onToggle: t }) }) : /* @__PURE__ */ e.jsxs(w, { justifyContent: "space-between", children: [
|
|
454
455
|
/* @__PURE__ */ e.jsx(ee, { groupName: o, onToggle: t }),
|
|
455
456
|
/* @__PURE__ */ e.jsx(
|
|
456
457
|
te,
|
|
@@ -488,121 +489,121 @@ const ft = ({
|
|
|
488
489
|
onClick: () => t({ groupName: n, clear: !0 }),
|
|
489
490
|
children: "Clear All"
|
|
490
491
|
}
|
|
491
|
-
),
|
|
492
|
+
), Ct = ({
|
|
492
493
|
buttonProps: o,
|
|
493
494
|
listProps: n,
|
|
494
495
|
portalled: t = !1,
|
|
495
496
|
submenuTrigger: s,
|
|
496
497
|
...r
|
|
497
498
|
}) => {
|
|
498
|
-
const {
|
|
499
|
-
canSelectAll:
|
|
500
|
-
canSelectGroups:
|
|
501
|
-
emptyStateText:
|
|
502
|
-
loading:
|
|
503
|
-
maxH:
|
|
504
|
-
menuItems:
|
|
505
|
-
minW:
|
|
499
|
+
const { contentRef: u } = Ue(), {
|
|
500
|
+
canSelectAll: c,
|
|
501
|
+
canSelectGroups: l,
|
|
502
|
+
emptyStateText: M = "No results found",
|
|
503
|
+
loading: P,
|
|
504
|
+
maxH: j = "480px",
|
|
505
|
+
menuItems: v = [],
|
|
506
|
+
minW: Oe = "240px",
|
|
506
507
|
onSearch: O,
|
|
507
508
|
onSelect: D,
|
|
508
509
|
onSelectAll: E,
|
|
509
510
|
searchable: H,
|
|
510
|
-
searchPlaceholder:
|
|
511
|
-
shouldTruncateText:
|
|
512
|
-
|
|
513
|
-
} = n || {}, [
|
|
511
|
+
searchPlaceholder: _e = "Search...",
|
|
512
|
+
shouldTruncateText: Re,
|
|
513
|
+
...$e
|
|
514
|
+
} = n || {}, [Be, _] = Y(""), [K, R] = Y(v), U = A(() => {
|
|
514
515
|
const a = {};
|
|
515
516
|
return K?.forEach((i) => {
|
|
516
517
|
const h = i.groupLabel || "default", f = i.type === "checkbox" ? "checkbox" : "default";
|
|
517
518
|
a[h] || (a[h] = {}), a[h][f] || (a[h][f] = []), a[h][f].push(i);
|
|
518
519
|
}), a;
|
|
519
|
-
}, [K]), q =
|
|
520
|
-
() =>
|
|
521
|
-
[
|
|
522
|
-
),
|
|
523
|
-
defaultValue:
|
|
524
|
-
}), J =
|
|
520
|
+
}, [K]), q = A(() => Object.entries(U), [U]), k = A(
|
|
521
|
+
() => v?.filter((a) => a.type === "checkbox") || [],
|
|
522
|
+
[v]
|
|
523
|
+
), Fe = A(() => (k?.filter((i) => i.checked) || []).map((i) => i.value), [k]), I = Je({
|
|
524
|
+
defaultValue: Fe
|
|
525
|
+
}), J = b(
|
|
525
526
|
(a) => {
|
|
526
527
|
const i = a.target.value;
|
|
527
528
|
if (_(i), O)
|
|
528
529
|
O(a);
|
|
529
530
|
else if (i === "" || !i)
|
|
530
|
-
R(
|
|
531
|
+
R(v);
|
|
531
532
|
else {
|
|
532
|
-
const h =
|
|
533
|
+
const h = v.filter((f) => !!(typeof f.label == "string" ? f.label : f.valueText)?.toLowerCase().includes(i.toLowerCase()));
|
|
533
534
|
R(h);
|
|
534
535
|
}
|
|
535
536
|
},
|
|
536
|
-
[
|
|
537
|
-
), Q =
|
|
537
|
+
[v, O]
|
|
538
|
+
), Q = b(
|
|
538
539
|
({ groupName: a, clear: i }) => {
|
|
539
540
|
let h = [];
|
|
540
541
|
if (a) {
|
|
541
|
-
const f =
|
|
542
|
-
h = i ?
|
|
542
|
+
const f = k.filter((C) => C.groupLabel === a).map((C) => C.value);
|
|
543
|
+
h = i ? I.value.filter((C) => !f.includes(C)) : [...I.value, ...f];
|
|
543
544
|
} else
|
|
544
|
-
h = i ? [] :
|
|
545
|
-
E?.(h),
|
|
545
|
+
h = i ? [] : k.map((f) => f.value);
|
|
546
|
+
E?.(h), I.setValue(h);
|
|
546
547
|
},
|
|
547
|
-
[
|
|
548
|
-
),
|
|
548
|
+
[k, E, I]
|
|
549
|
+
), Le = b(
|
|
549
550
|
(a) => {
|
|
550
551
|
a.onSelect?.(a.value);
|
|
551
|
-
const i =
|
|
552
|
+
const i = I.value, h = I.isChecked(a.value);
|
|
552
553
|
D?.(
|
|
553
554
|
a.value,
|
|
554
555
|
h ? i.filter((f) => f !== a.value) : [...i, a.value]
|
|
555
|
-
), a.type === "checkbox" &&
|
|
556
|
+
), a.type === "checkbox" && I.toggleValue(a.value);
|
|
556
557
|
},
|
|
557
|
-
[D,
|
|
558
|
-
),
|
|
558
|
+
[D, I]
|
|
559
|
+
), Ve = b(
|
|
559
560
|
(a) => {
|
|
560
|
-
a || (_(""), R(
|
|
561
|
+
a || (_(""), R(v));
|
|
561
562
|
},
|
|
562
|
-
[
|
|
563
|
+
[v]
|
|
563
564
|
);
|
|
564
565
|
return /* @__PURE__ */ e.jsxs(
|
|
565
|
-
|
|
566
|
+
lt,
|
|
566
567
|
{
|
|
567
568
|
...r,
|
|
568
569
|
onOpenChange: (a) => {
|
|
569
|
-
|
|
570
|
+
Ve(a.open), r.onOpenChange?.(a);
|
|
570
571
|
},
|
|
571
572
|
children: [
|
|
572
573
|
s || /* @__PURE__ */ e.jsx(
|
|
573
|
-
|
|
574
|
+
dt,
|
|
574
575
|
{
|
|
575
576
|
asChild: !0,
|
|
576
577
|
className: "Menu__Trigger",
|
|
577
578
|
"data-testid": "kibble-menu-trigger",
|
|
578
|
-
children: /* @__PURE__ */ e.jsx(
|
|
579
|
+
children: /* @__PURE__ */ e.jsx(It, { ...o })
|
|
579
580
|
}
|
|
580
581
|
),
|
|
581
|
-
/* @__PURE__ */ e.jsx(
|
|
582
|
-
|
|
582
|
+
/* @__PURE__ */ e.jsx(tt, { disabled: !t, container: u || void 0, children: /* @__PURE__ */ e.jsx(mt, { className: "Menu", "data-testid": "kibble-menu", children: /* @__PURE__ */ e.jsxs(
|
|
583
|
+
pt,
|
|
583
584
|
{
|
|
584
585
|
className: "Menu__Content",
|
|
585
586
|
"data-testid": "kibble-menu-content",
|
|
586
|
-
maxH:
|
|
587
|
-
minW:
|
|
588
|
-
|
|
587
|
+
maxH: j,
|
|
588
|
+
minW: Oe,
|
|
589
|
+
...$e,
|
|
589
590
|
children: [
|
|
590
|
-
(H ||
|
|
591
|
-
|
|
591
|
+
(H || c) && /* @__PURE__ */ e.jsxs(
|
|
592
|
+
G,
|
|
592
593
|
{
|
|
593
594
|
className: "Menu__Header",
|
|
594
595
|
"data-testid": "kibble-menu-header",
|
|
595
596
|
m: "0 12px 8px",
|
|
596
597
|
children: [
|
|
597
598
|
H && /* @__PURE__ */ e.jsx(
|
|
598
|
-
|
|
599
|
+
He,
|
|
599
600
|
{
|
|
600
601
|
className: "Menu__SearchBar",
|
|
601
602
|
"data-testid": "kibble-menu-search-bar",
|
|
602
|
-
placeholder:
|
|
603
|
+
placeholder: _e,
|
|
603
604
|
onChange: J,
|
|
604
605
|
size: "sm",
|
|
605
|
-
value:
|
|
606
|
+
value: Be,
|
|
606
607
|
clearable: !0,
|
|
607
608
|
onClear: () => {
|
|
608
609
|
_(""), J({
|
|
@@ -612,57 +613,57 @@ const ft = ({
|
|
|
612
613
|
formControlStyle: { mt: 1 }
|
|
613
614
|
}
|
|
614
615
|
),
|
|
615
|
-
|
|
616
|
+
c && !!k.length && /* @__PURE__ */ e.jsx(
|
|
616
617
|
Z,
|
|
617
618
|
{
|
|
618
619
|
onToggle: Q,
|
|
619
|
-
hasSelectedItems: !!
|
|
620
|
+
hasSelectedItems: !!I.value.length
|
|
620
621
|
}
|
|
621
622
|
)
|
|
622
623
|
]
|
|
623
624
|
}
|
|
624
625
|
),
|
|
625
|
-
|
|
626
|
-
const h = a === "default", f = Object.keys(i), C = h ?
|
|
627
|
-
(
|
|
626
|
+
P ? /* @__PURE__ */ e.jsx(w, { justifyContent: "center", py: 5, children: /* @__PURE__ */ e.jsx(Ke, {}) }) : /* @__PURE__ */ e.jsx(G, { className: "Menu__List", "data-testid": "kibble-menu-list", children: q.length ? /* @__PURE__ */ e.jsx(e.Fragment, { children: q.map(([a, i]) => {
|
|
627
|
+
const h = a === "default", f = Object.keys(i), C = h ? Ee.Fragment : xt, ze = i.checkbox?.map(
|
|
628
|
+
(T) => T.value
|
|
628
629
|
)?.some(
|
|
629
|
-
(
|
|
630
|
+
(T) => I.value.includes(T)
|
|
630
631
|
);
|
|
631
632
|
return /* @__PURE__ */ e.jsxs(C, { children: [
|
|
632
|
-
!h && /* @__PURE__ */ e.jsx(
|
|
633
|
-
|
|
633
|
+
!h && /* @__PURE__ */ e.jsx(gt, { children: /* @__PURE__ */ e.jsxs(
|
|
634
|
+
w,
|
|
634
635
|
{
|
|
635
636
|
alignItems: "center",
|
|
636
637
|
justifyContent: "space-between",
|
|
637
638
|
children: [
|
|
638
639
|
a,
|
|
639
|
-
|
|
640
|
+
l && f.includes("checkbox") && /* @__PURE__ */ e.jsx(
|
|
640
641
|
Z,
|
|
641
642
|
{
|
|
642
643
|
groupName: a,
|
|
643
644
|
onToggle: Q,
|
|
644
|
-
hasSelectedItems:
|
|
645
|
+
hasSelectedItems: ze
|
|
645
646
|
}
|
|
646
647
|
)
|
|
647
648
|
]
|
|
648
649
|
}
|
|
649
650
|
) }),
|
|
650
651
|
Object.entries(i).map(
|
|
651
|
-
([
|
|
652
|
-
|
|
652
|
+
([T, We]) => We.map((y, De) => /* @__PURE__ */ e.jsx(
|
|
653
|
+
vt,
|
|
653
654
|
{
|
|
654
|
-
...
|
|
655
|
-
shouldTruncateText:
|
|
656
|
-
...
|
|
657
|
-
checked:
|
|
655
|
+
...y,
|
|
656
|
+
shouldTruncateText: Re,
|
|
657
|
+
...y.type === "checkbox" && {
|
|
658
|
+
checked: I.isChecked(y.value)
|
|
658
659
|
},
|
|
659
|
-
onSelect: () =>
|
|
660
|
+
onSelect: () => Le(y)
|
|
660
661
|
},
|
|
661
|
-
`menu-item-${a}-${
|
|
662
|
+
`menu-item-${a}-${T}-${De}`
|
|
662
663
|
))
|
|
663
664
|
)
|
|
664
665
|
] }, a);
|
|
665
|
-
}) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
666
|
+
}) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(G, { textAlign: "center", p: 3, children: /* @__PURE__ */ e.jsx(V, { size: "sm", variant: "subtle", children: M }) }) }) })
|
|
666
667
|
]
|
|
667
668
|
}
|
|
668
669
|
) }) })
|
|
@@ -671,6 +672,6 @@ const ft = ({
|
|
|
671
672
|
);
|
|
672
673
|
};
|
|
673
674
|
export {
|
|
674
|
-
|
|
675
|
+
Ct as M
|
|
675
676
|
};
|
|
676
|
-
//# sourceMappingURL=menu.component-
|
|
677
|
+
//# sourceMappingURL=menu.component-CTze16Re.js.map
|