@televet/kibble-ui 4.0.0-beta.85 → 4.0.0-beta.87
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-BoVquQLV.js → alert.types-DTNR8_C-.js} +2 -2
- package/dist/chunks/{alert.types-BoVquQLV.js.map → alert.types-DTNR8_C-.js.map} +1 -1
- package/dist/chunks/{alert.types-DPhgsCv5.js → alert.types-QEeDYCAD.js} +3 -3
- package/dist/chunks/{alert.types-DPhgsCv5.js.map → alert.types-QEeDYCAD.js.map} +1 -1
- package/dist/chunks/{avatar.component-C5SZVG16.js → avatar.component-qXhLVNzG.js} +2 -2
- package/dist/chunks/{avatar.component-C5SZVG16.js.map → avatar.component-qXhLVNzG.js.map} +1 -1
- package/dist/chunks/{avatar.component-1VnTGefU.js → avatar.component-yAhlBo_d.js} +2 -2
- package/dist/chunks/{avatar.component-1VnTGefU.js.map → avatar.component-yAhlBo_d.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-3tZR7cET.js → avatarGroup.component-T3cUc5XX.js} +2 -2
- package/dist/chunks/{avatarGroup.component-3tZR7cET.js.map → avatarGroup.component-T3cUc5XX.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-pSM7Kbli.js → avatarGroup.component-bImv23vg.js} +2 -2
- package/dist/chunks/{avatarGroup.component-pSM7Kbli.js.map → avatarGroup.component-bImv23vg.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-YRADr8Ih.js → buttonGroup.component-0iZj3N28.js} +2 -2
- package/dist/chunks/{buttonGroup.component-YRADr8Ih.js.map → buttonGroup.component-0iZj3N28.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-C0yhMC9f.js → buttonGroup.component-BuF41rNB.js} +2 -2
- package/dist/chunks/{buttonGroup.component-C0yhMC9f.js.map → buttonGroup.component-BuF41rNB.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-CleCgrM2.js → characterCounter.component-Cvw7D33c.js} +2 -2
- package/dist/chunks/{characterCounter.component-CleCgrM2.js.map → characterCounter.component-Cvw7D33c.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DPDfdrN8.js → characterCounter.component-DCSJKVZn.js} +2 -2
- package/dist/chunks/{characterCounter.component-DPDfdrN8.js.map → characterCounter.component-DCSJKVZn.js.map} +1 -1
- package/dist/chunks/{checkbox.component-lMOGjCYC.js → checkbox.component-BoaV-gQi.js} +2 -2
- package/dist/chunks/{checkbox.component-lMOGjCYC.js.map → checkbox.component-BoaV-gQi.js.map} +1 -1
- package/dist/chunks/{checkbox.component-BlsLcspc.js → checkbox.component-CT344a1o.js} +3 -3
- package/dist/chunks/{checkbox.component-BlsLcspc.js.map → checkbox.component-CT344a1o.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DLYU9ENF.js → checkboxGroup.component-CVRj2S5m.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DLYU9ENF.js.map → checkboxGroup.component-CVRj2S5m.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-_0rAYGE9.js → checkboxGroup.component-X2cU2KU-.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-_0rAYGE9.js.map → checkboxGroup.component-X2cU2KU-.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-C8IIc07P.js → conversationCard.component-CkmCkM8o.js} +2 -2
- package/dist/chunks/{conversationCard.component-C8IIc07P.js.map → conversationCard.component-CkmCkM8o.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-BDy_K3a2.js → conversationCard.component-u6I8Phyu.js} +7 -7
- package/dist/chunks/{conversationCard.component-BDy_K3a2.js.map → conversationCard.component-u6I8Phyu.js.map} +1 -1
- package/dist/chunks/datePicker.component-B_wuoiPP.js +15 -0
- package/dist/chunks/{datePicker.component-C6lCcMe6.js.map → datePicker.component-B_wuoiPP.js.map} +1 -1
- package/dist/chunks/{datePicker.component-_6xDNedH.js → datePicker.component-Cger9TA5.js} +177 -176
- package/dist/chunks/{datePicker.component-_6xDNedH.js.map → datePicker.component-Cger9TA5.js.map} +1 -1
- package/dist/chunks/{heading.component-BX2ec0zU.js → heading.component-Cf58bZa1.js} +2 -2
- package/dist/chunks/{heading.component-BX2ec0zU.js.map → heading.component-Cf58bZa1.js.map} +1 -1
- package/dist/chunks/{heading.component-B5WajDE0.js → heading.component-DNsKd4Gh.js} +2 -2
- package/dist/chunks/{heading.component-B5WajDE0.js.map → heading.component-DNsKd4Gh.js.map} +1 -1
- package/dist/chunks/{menu.component-C90cnsKe.js → menu.component-4gKH4f5l.js} +5 -5
- package/dist/chunks/{menu.component-C90cnsKe.js.map → menu.component-4gKH4f5l.js.map} +1 -1
- package/dist/chunks/{menu.component-a9CU6Xdc.js → menu.component-C5NwkXGO.js} +2 -2
- package/dist/chunks/{menu.component-a9CU6Xdc.js.map → menu.component-C5NwkXGO.js.map} +1 -1
- package/dist/chunks/{modal.types-COCCoM45.js → modal.types-DDwG7coD.js} +2 -2
- package/dist/chunks/{modal.types-COCCoM45.js.map → modal.types-DDwG7coD.js.map} +1 -1
- package/dist/chunks/{modal.types-Bz9iDbzg.js → modal.types-DIDn6Pz1.js} +2 -2
- package/dist/chunks/{modal.types-Bz9iDbzg.js.map → modal.types-DIDn6Pz1.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DFAg0pcH.js → pinInput.types-Bv67lyfg.js} +2 -2
- package/dist/chunks/{pinInput.types-DFAg0pcH.js.map → pinInput.types-Bv67lyfg.js.map} +1 -1
- package/dist/chunks/{pinInput.types-6wtKOTSv.js → pinInput.types-DbKKHEtF.js} +2 -2
- package/dist/chunks/{pinInput.types-6wtKOTSv.js.map → pinInput.types-DbKKHEtF.js.map} +1 -1
- package/dist/chunks/{popover.component-CEgqymGx.js → popover.component-CS8UY9_W.js} +2 -2
- package/dist/chunks/{popover.component-CEgqymGx.js.map → popover.component-CS8UY9_W.js.map} +1 -1
- package/dist/chunks/{popover.component-mpL0KcDz.js → popover.component-D2-w2fSE.js} +4 -4
- package/dist/chunks/{popover.component-mpL0KcDz.js.map → popover.component-D2-w2fSE.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-L6mmgjJV.js → radioGroup.component-DlLvSRNH.js} +4 -4
- package/dist/chunks/{radioGroup.component-L6mmgjJV.js.map → radioGroup.component-DlLvSRNH.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-CwPoKOrk.js → radioGroup.component-e6LsfYzG.js} +2 -2
- package/dist/chunks/{radioGroup.component-CwPoKOrk.js.map → radioGroup.component-e6LsfYzG.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-D7WpH-ln.js → ratingDots.component-B_a_qO9L.js} +2 -2
- package/dist/chunks/{ratingDots.component-D7WpH-ln.js.map → ratingDots.component-B_a_qO9L.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BuxEbJLF.js → ratingDots.component-BzxT-9pH.js} +3 -3
- package/dist/chunks/{ratingDots.component-BuxEbJLF.js.map → ratingDots.component-BzxT-9pH.js.map} +1 -1
- package/dist/chunks/{select.component-DYLk5hRh.js → select.component-CPMIVkRk.js} +2 -2
- package/dist/chunks/{select.component-DYLk5hRh.js.map → select.component-CPMIVkRk.js.map} +1 -1
- package/dist/chunks/{select.component-CmG-5MFZ.js → select.component-DrZOaMq1.js} +5 -5
- package/dist/chunks/{select.component-CmG-5MFZ.js.map → select.component-DrZOaMq1.js.map} +1 -1
- package/dist/chunks/{sortableList.component-SD4XVxo_.js → sortableList.component-DEMqxtiq.js} +2 -2
- package/dist/chunks/{sortableList.component-SD4XVxo_.js.map → sortableList.component-DEMqxtiq.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B4m7mF30.js → sortableList.component-iVWhEIAT.js} +2 -2
- package/dist/chunks/{sortableList.component-B4m7mF30.js.map → sortableList.component-iVWhEIAT.js.map} +1 -1
- package/dist/chunks/{spinner.component-DLmqMH1X.js → spinner.component-BM2OwxA7.js} +2 -2
- package/dist/chunks/{spinner.component-DLmqMH1X.js.map → spinner.component-BM2OwxA7.js.map} +1 -1
- package/dist/chunks/{spinner.component-ByAZ85b0.js → spinner.component-lZds47YM.js} +2 -2
- package/dist/chunks/{spinner.component-ByAZ85b0.js.map → spinner.component-lZds47YM.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DN31UUxr.js → styledAvatar.types-DaESk8Cq.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DN31UUxr.js.map → styledAvatar.types-DaESk8Cq.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-ITDQ7mOq.js → styledAvatar.types-zeF6AQ1t.js} +2 -2
- package/dist/chunks/{styledAvatar.types-ITDQ7mOq.js.map → styledAvatar.types-zeF6AQ1t.js.map} +1 -1
- package/dist/chunks/{switch.component-BtiTaRED.js → switch.component-C4tJUYg9.js} +2 -2
- package/dist/chunks/{switch.component-BtiTaRED.js.map → switch.component-C4tJUYg9.js.map} +1 -1
- package/dist/chunks/{switch.component-BXDOMTzk.js → switch.component-D93JI_c1.js} +2 -2
- package/dist/chunks/{switch.component-BXDOMTzk.js.map → switch.component-D93JI_c1.js.map} +1 -1
- package/dist/chunks/{tabs.component-BdGlS5MX.js → tabs.component-DUUXdx2e.js} +2 -2
- package/dist/chunks/{tabs.component-BdGlS5MX.js.map → tabs.component-DUUXdx2e.js.map} +1 -1
- package/dist/chunks/{tabs.component-nYhuZwIl.js → tabs.component-caMRtfBi.js} +2 -2
- package/dist/chunks/{tabs.component-nYhuZwIl.js.map → tabs.component-caMRtfBi.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BRHnXvSa.js → tagBlock.component-CC4azYDm.js} +2 -2
- package/dist/chunks/{tagBlock.component-BRHnXvSa.js.map → tagBlock.component-CC4azYDm.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-C4v3cZHR.js → tagBlock.component-DmNtxTyX.js} +5 -5
- package/dist/chunks/{tagBlock.component-C4v3cZHR.js.map → tagBlock.component-DmNtxTyX.js.map} +1 -1
- package/dist/chunks/{text.component-CcMdvaZu.js → text.component-C501PJrN.js} +2 -2
- package/dist/chunks/{text.component-CcMdvaZu.js.map → text.component-C501PJrN.js.map} +1 -1
- package/dist/chunks/{text.component-C9eIXYn5.js → text.component-z4cNuAAI.js} +2 -2
- package/dist/chunks/{text.component-C9eIXYn5.js.map → text.component-z4cNuAAI.js.map} +1 -1
- package/dist/chunks/{textInput.component-DVGEbAZW.js → textInput.component-BK5TEpr3.js} +3 -3
- package/dist/chunks/{textInput.component-DVGEbAZW.js.map → textInput.component-BK5TEpr3.js.map} +1 -1
- package/dist/chunks/{textInput.component-B3fTdDHM.js → textInput.component-o3OfBL3Y.js} +2 -2
- package/dist/chunks/{textInput.component-B3fTdDHM.js.map → textInput.component-o3OfBL3Y.js.map} +1 -1
- package/dist/chunks/{textarea.component-Bfu6gH08.js → textarea.component-A8ebDcnw.js} +3 -3
- package/dist/chunks/{textarea.component-Bfu6gH08.js.map → textarea.component-A8ebDcnw.js.map} +1 -1
- package/dist/chunks/{textarea.component-Dwb7sCt5.js → textarea.component-DDz3lXs_.js} +2 -2
- package/dist/chunks/{textarea.component-Dwb7sCt5.js.map → textarea.component-DDz3lXs_.js.map} +1 -1
- package/dist/chunks/{theme.provider-I45hIZ38.js → theme.provider-CbB3DTaK.js} +3 -3
- package/dist/chunks/{theme.provider-I45hIZ38.js.map → theme.provider-CbB3DTaK.js.map} +1 -1
- package/dist/chunks/{theme.provider-CRQB6gnt.js → theme.provider-DHy8ThEw.js} +2 -2
- package/dist/chunks/{theme.provider-CRQB6gnt.js.map → theme.provider-DHy8ThEw.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CPAwAqZz.js → timePicker.component-BVCoTSf0.js} +2 -2
- package/dist/chunks/{timePicker.component-CPAwAqZz.js.map → timePicker.component-BVCoTSf0.js.map} +1 -1
- package/dist/chunks/{timePicker.component-BdjeeKLB.js → timePicker.component-ZFIT5aB6.js} +3 -3
- package/dist/chunks/{timePicker.component-BdjeeKLB.js.map → timePicker.component-ZFIT5aB6.js.map} +1 -1
- package/dist/chunks/{timeRange.component--KYrOpO6.js → timeRange.component-BSPEZDvW.js} +2 -2
- package/dist/chunks/{timeRange.component--KYrOpO6.js.map → timeRange.component-BSPEZDvW.js.map} +1 -1
- package/dist/chunks/{timeRange.component-A6MsbQya.js → timeRange.component-JhMCHzyM.js} +2 -2
- package/dist/chunks/{timeRange.component-A6MsbQya.js.map → timeRange.component-JhMCHzyM.js.map} +1 -1
- package/dist/chunks/{timestamp.component-jMwqadDM.js → timestamp.component-DAakI_Tt.js} +3 -3
- package/dist/chunks/{timestamp.component-jMwqadDM.js.map → timestamp.component-DAakI_Tt.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DyVh49xt.js → timestamp.component-DNYI2gVi.js} +2 -2
- package/dist/chunks/{timestamp.component-DyVh49xt.js.map → timestamp.component-DNYI2gVi.js.map} +1 -1
- package/dist/chunks/{tooltip.component-9qe1CRgu.js → tooltip.component-BSomeipc.js} +4 -7
- package/dist/chunks/{tooltip.component-9qe1CRgu.js.map → tooltip.component-BSomeipc.js.map} +1 -1
- package/dist/chunks/{tooltip.component-DlxNjrpO.js → tooltip.component-CIUcGhxw.js} +2 -2
- package/dist/chunks/{tooltip.component-DlxNjrpO.js.map → tooltip.component-CIUcGhxw.js.map} +1 -1
- package/dist/chunks/withDarkMode-B9LErG-p.js +2 -0
- package/dist/chunks/withDarkMode-B9LErG-p.js.map +1 -0
- package/dist/chunks/withDarkMode-DBAFsemJ.js +23 -0
- package/dist/chunks/withDarkMode-DBAFsemJ.js.map +1 -0
- package/dist/chunks/{withFormControl-D7WX39-P.js → withFormControl-DBaRp5Zy.js} +2 -2
- package/dist/chunks/{withFormControl-D7WX39-P.js.map → withFormControl-DBaRp5Zy.js.map} +1 -1
- package/dist/chunks/{withFormControl-C4OizqXz.js → withFormControl-syyL9lWW.js} +2 -2
- package/dist/chunks/{withFormControl-C4OizqXz.js.map → withFormControl-syyL9lWW.js.map} +1 -1
- package/dist/chunks/withLightMode-C4WljRNZ.js +22 -0
- package/dist/chunks/withLightMode-C4WljRNZ.js.map +1 -0
- package/dist/chunks/withLightMode-fys9Cbqw.js +2 -0
- package/dist/chunks/withLightMode-fys9Cbqw.js.map +1 -0
- package/dist/chunks/{withTruncation-kHq-K8i9.js → withTruncation-B6vA2g0w.js} +2 -2
- package/dist/chunks/{withTruncation-kHq-K8i9.js.map → withTruncation-B6vA2g0w.js.map} +1 -1
- package/dist/chunks/{withTruncation-D28HXn8p.js → withTruncation-C7AAl87b.js} +2 -2
- package/dist/chunks/{withTruncation-D28HXn8p.js.map → withTruncation-C7AAl87b.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/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/hocs/index.cjs +1 -1
- package/dist/cjs/hocs/withDarkMode/index.cjs +2 -0
- package/dist/cjs/hocs/withDarkMode/index.cjs.map +1 -0
- package/dist/cjs/hocs/withLightMode/index.cjs +2 -0
- package/dist/cjs/hocs/withLightMode/index.cjs.map +1 -0
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/useColorMode/index.cjs +2 -0
- package/dist/cjs/hooks/useColorMode/index.cjs.map +1 -0
- package/dist/cjs/hooks/useColorModeValue/index.cjs +2 -0
- package/dist/cjs/hooks/useColorModeValue/index.cjs.map +1 -0
- 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/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 +30 -30
- package/dist/esm/hocs/index.js +3 -2
- package/dist/esm/hocs/index.js.map +1 -1
- package/dist/esm/hocs/withDarkMode/index.js +5 -0
- package/dist/esm/hocs/withDarkMode/index.js.map +1 -0
- package/dist/esm/hocs/withLightMode/index.js +5 -0
- package/dist/esm/hocs/withLightMode/index.js.map +1 -0
- package/dist/esm/hooks/index.js +6 -5
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/{chunks/index-CgivotaP.js → esm/hooks/useColorMode/index.js} +4 -8
- package/dist/esm/hooks/useColorMode/index.js.map +1 -0
- package/dist/esm/hooks/useColorModeValue/index.js +9 -0
- package/dist/esm/hooks/useColorModeValue/index.js.map +1 -0
- package/dist/esm/index.js +61 -59
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/hocs/withDarkMode/index.d.ts +1 -2
- package/dist/types/hocs/withDarkMode/withDarkMode.d.ts +2 -0
- package/dist/types/hocs/withLightMode/index.d.ts +1 -2
- package/dist/types/hocs/withLightMode/withLightMode.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/datePicker.component-C6lCcMe6.js +0 -15
- package/dist/chunks/index-BknUKotT.js +0 -38
- package/dist/chunks/index-BknUKotT.js.map +0 -1
- package/dist/chunks/index-CgivotaP.js.map +0 -1
- package/dist/chunks/index-CkYZf9Pm.js +0 -2
- package/dist/chunks/index-CkYZf9Pm.js.map +0 -1
- package/dist/chunks/index-iyefwwxw.js +0 -2
- package/dist/chunks/index-iyefwwxw.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),y=require("./withFormControl-
|
|
2
|
-
//# sourceMappingURL=textInput.component-
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),y=require("./withFormControl-DBaRp5Zy.js"),P=require("./button.component-Dd9AfGox.js"),b=require("./characterCounter.component-Cvw7D33c.js"),T=require("./box-Baq7UBls.js"),k=require("./empty-B5_AO6Pg.js"),C=require("./factory-D6tdBUPG.js"),w=require("./use-recipe-DaPWl_pL.js"),A=require("./group-Cv7AQw1b.js"),v=require("./create-recipe-context-sESms8Eo.js"),N=require("./use-locale-context-D0LByRu9.js"),S=require("./use-field-context-CArmgHPP.js"),F=require("./index-CHIISuTq.js"),B=e=>e&&e.__esModule?e:{default:e},G=B(u),_=u.forwardRef((e,o)=>{const n=S.useFieldContext(),r=F.mergeProps(n?.getInputProps(),e);return t.jsxRuntimeExports.jsx(N.ark.input,{...r,ref:o})});_.displayName="FieldInput";const{withContext:M}=v.createRecipeContext({key:"input"}),z=M(_),R=u.forwardRef(function({unstyled:o,...n},r){const p=w.useRecipe({key:"inputAddon",recipe:n.recipe}),[i,a]=p.splitVariantProps(n),s=o?k.EMPTY_SLOT_STYLES:p(i);return t.jsxRuntimeExports.jsx(C.chakra.div,{ref:r,...a,css:[s,n.css]})}),I=C.chakra("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),D=u.forwardRef(function(o,n){const{startElement:r,startElementProps:p,endElement:i,endElementProps:a,startAddon:s,startAddonProps:m,endAddon:d,endAddonProps:x,children:l,startOffset:c="0px",endOffset:f="0px",...h}=o,j=u.Children.only(l),E=!!(s||d);return t.jsxRuntimeExports.jsxs(A.Group,{width:"full",ref:n,attached:E,skip:q=>q.type===I,...h,children:[s&&t.jsxRuntimeExports.jsx(R,{...m,children:s}),r&&t.jsxRuntimeExports.jsx(I,{pointerEvents:"none",...p,children:r}),u.cloneElement(j,{...r&&{ps:`calc(var(--input-height) - ${c})`},...i&&{pe:`calc(var(--input-height) - ${f})`},...l.props}),i&&t.jsxRuntimeExports.jsx(I,{placement:"end",...a,children:i}),d&&t.jsxRuntimeExports.jsx(R,{...x,children:d})]})}),L={sm:"xs",md:"sm",lg:"md"},g=G.default.forwardRef(({charLimit:e=void 0,clearable:o=!1,disabled:n=!1,inputRef:r,invalid:p,leftAddon:i,leftElement:a,onClear:s,onContrast:m,rightAddon:d,rightElement:x,size:l="md",value:c,...f},h)=>{const j=()=>{s&&s(c||"")};o&&c&&!n&&(x=t.jsxRuntimeExports.jsx(P.Button,{className:"TextInput__ClearButton","data-testid":"kibble-text-input-clear-button",size:L[l],variant:"ghostNeutral",onClick:j,iconName:"close"}));const E=u.useMemo(()=>c?.toString()?.length||0,[c]);return t.jsxRuntimeExports.jsxs(T.Box,{className:"TextInput__Wrapper",position:"relative",w:"100%",children:[t.jsxRuntimeExports.jsx(D,{className:"TextInput__InputGroup","data-testid":"kibble-text-input-group",startElement:a,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:x,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:i,endAddon:d,children:t.jsxRuntimeExports.jsx(z,{"data-testid":"kibble-text-input",className:"TextInput",ref:r||h,value:c,size:l,disabled:n,...p&&{"aria-invalid":!0},variant:m?"onContrast":"default",...f})}),!!e&&t.jsxRuntimeExports.jsx(b.CharacterCounter,{withLimit:!0,limit:e,currentCount:E})]})});g.displayName="TextInput";const O=y.withFormControl(g);exports.WrappedTextInput=O;
|
|
2
|
+
//# sourceMappingURL=textInput.component-o3OfBL3Y.js.map
|
package/dist/chunks/{textInput.component-B3fTdDHM.js.map → textInput.component-o3OfBL3Y.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.component-B3fTdDHM.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-addon.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-element.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-group.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst InputAddon = forwardRef(\n function InputAddon2({ unstyled, ...props }, ref) {\n const recipe = useRecipe({ key: \"inputAddon\", recipe: props.recipe });\n const [variantProps, localProps] = recipe.splitVariantProps(props);\n const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);\n return /* @__PURE__ */ jsx(chakra.div, { ref, ...localProps, css: [styles, props.css] });\n }\n);\n\nexport { InputAddon };\n","\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst InputElement = chakra(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n zIndex: 2,\n color: \"fg.muted\",\n height: \"full\",\n fontSize: \"sm\",\n px: \"3\"\n },\n variants: {\n placement: {\n start: {\n insetInlineStart: \"0\"\n },\n end: {\n insetInlineEnd: \"0\"\n }\n }\n }\n});\n\nexport { InputElement };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, Children, cloneElement } from 'react';\nimport { InputAddon } from './input-addon.js';\nimport { InputElement } from './input-element.js';\nimport { Group } from '../group/group.js';\n\nconst InputGroup = forwardRef(\n function InputGroup2(props, ref) {\n const {\n startElement,\n startElementProps,\n endElement,\n endElementProps,\n startAddon,\n startAddonProps,\n endAddon,\n endAddonProps,\n children,\n startOffset = \"0px\",\n endOffset = \"0px\",\n ...rest\n } = props;\n const child = Children.only(children);\n const attached = Boolean(startAddon || endAddon);\n return /* @__PURE__ */ jsxs(\n Group,\n {\n width: \"full\",\n ref,\n attached,\n skip: (el) => el.type === InputElement,\n ...rest,\n children: [\n startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),\n startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: \"none\", ...startElementProps, children: startElement }),\n cloneElement(child, {\n ...startElement && {\n ps: `calc(var(--input-height) - ${startOffset})`\n },\n ...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },\n ...children.props\n }),\n endElement && /* @__PURE__ */ jsx(InputElement, { placement: \"end\", ...endElementProps, children: endElement }),\n endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })\n ]\n }\n );\n }\n);\n\nexport { InputGroup };\n","import { ButtonSize } from \"components/Button/button.types\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: \"xs\",\n md: \"sm\",\n lg: \"md\",\n};\n","import React, { useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} from \"@chakra-ui/react/input\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { Button } from \"components/Button/button.component\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\nimport { closeButtonSizeMap } from \"./textInput.records\";\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n charLimit?: number;\n inputRef?: React.RefObject<HTMLInputElement | null>;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\n onContrast?: boolean;\n rightAddon?: React.ReactNode;\n rightElement?: React.ReactNode;\n size?: FormControlSize;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n clearable?: never;\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n clearable?: boolean;\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n (\n {\n charLimit = undefined,\n clearable = false,\n disabled = false,\n inputRef,\n invalid,\n leftAddon,\n leftElement,\n onClear,\n onContrast,\n rightAddon,\n rightElement,\n size = \"md\",\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const handleClear = (): void => {\n if (onClear) {\n onClear(value || \"\");\n }\n };\n\n if (clearable && !!value && !disabled) {\n rightElement = (\n <Button\n className=\"TextInput__ClearButton\"\n data-testid=\"kibble-text-input-clear-button\"\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Box className=\"TextInput__Wrapper\" position=\"relative\" w=\"100%\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid=\"kibble-text-input-group\"\n startElement={leftElement}\n startElementProps={{\n color: \"inherit\",\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: \"inherit\",\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid=\"kibble-text-input\"\n className=\"TextInput\"\n ref={inputRef || ref}\n value={value}\n size={size}\n disabled={disabled}\n {...(invalid && { \"aria-invalid\": true })}\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...rest}\n />\n </InputGroup>\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nTextInput.displayName = \"TextInput\";\nconst WrappedTextInput = withFormControl<TextInputProps>(TextInput);\n\nexport { WrappedTextInput as TextInput };\n"],"names":["FieldInput","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","withContext","createRecipeContext","Input","Field.Input","InputAddon","unstyled","recipe","useRecipe","variantProps","localProps","styles","EMPTY_SLOT_STYLES","chakra","InputElement","InputGroup","startElement","startElementProps","endElement","endElementProps","startAddon","startAddonProps","endAddon","endAddonProps","children","startOffset","endOffset","rest","child","Children","attached","jsxs","Group","el","cloneElement","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":"2lBAOMA,EAAaC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC5C,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAAO,cAAa,EAAIF,CAAK,EAC5D,OAAuBM,EAAAA,k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EA,gCACGK,MAAI,CAAA,UAAU,qBAAqB,SAAS,WAAW,EAAE,OACxD,SAAA,CAAAxD,EAAA,kBAAA,IAACgB,EAAA,CACC,UAAU,wBACV,cAAY,0BACZ,aAAc6B,EACd,kBAAmB,CACjB,MAAO,UACP,eAAgB,CAAE,QAAS,EAAI,CACjC,EACA,WAAYI,EACZ,gBAAiB,CACf,MAAO,UACP,cAAe,IACf,eAAgB,CAAE,QAAS,EAAI,CACjC,EACA,WAAYL,EACZ,SAAUI,EAEV,SAAAhD,EAAA,kBAAA,IAACyD,EAAA,CACC,cAAY,oBACZ,UAAU,YACV,IAAKf,GAAY/C,EACjB,MAAAwD,EACA,KAAAD,EACA,SAAAT,EACC,GAAIE,GAAW,CAAE,eAAgB,EAAK,EACvC,QAASI,EAAa,aAAe,UACpC,GAAGnB,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACW,GACDvC,EAAA,kBAAA,IAAC0D,EAAA,iBAAA,CACC,UAAW,GACX,MAAOnB,EACP,aAAce,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAjB,EAAU,YAAc,YAClB,MAAAsB,EAAmBC,kBAAgCvB,CAAS","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"textInput.component-o3OfBL3Y.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-addon.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-element.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-group.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst InputAddon = forwardRef(\n function InputAddon2({ unstyled, ...props }, ref) {\n const recipe = useRecipe({ key: \"inputAddon\", recipe: props.recipe });\n const [variantProps, localProps] = recipe.splitVariantProps(props);\n const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);\n return /* @__PURE__ */ jsx(chakra.div, { ref, ...localProps, css: [styles, props.css] });\n }\n);\n\nexport { InputAddon };\n","\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst InputElement = chakra(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n zIndex: 2,\n color: \"fg.muted\",\n height: \"full\",\n fontSize: \"sm\",\n px: \"3\"\n },\n variants: {\n placement: {\n start: {\n insetInlineStart: \"0\"\n },\n end: {\n insetInlineEnd: \"0\"\n }\n }\n }\n});\n\nexport { InputElement };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, Children, cloneElement } from 'react';\nimport { InputAddon } from './input-addon.js';\nimport { InputElement } from './input-element.js';\nimport { Group } from '../group/group.js';\n\nconst InputGroup = forwardRef(\n function InputGroup2(props, ref) {\n const {\n startElement,\n startElementProps,\n endElement,\n endElementProps,\n startAddon,\n startAddonProps,\n endAddon,\n endAddonProps,\n children,\n startOffset = \"0px\",\n endOffset = \"0px\",\n ...rest\n } = props;\n const child = Children.only(children);\n const attached = Boolean(startAddon || endAddon);\n return /* @__PURE__ */ jsxs(\n Group,\n {\n width: \"full\",\n ref,\n attached,\n skip: (el) => el.type === InputElement,\n ...rest,\n children: [\n startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),\n startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: \"none\", ...startElementProps, children: startElement }),\n cloneElement(child, {\n ...startElement && {\n ps: `calc(var(--input-height) - ${startOffset})`\n },\n ...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },\n ...children.props\n }),\n endElement && /* @__PURE__ */ jsx(InputElement, { placement: \"end\", ...endElementProps, children: endElement }),\n endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })\n ]\n }\n );\n }\n);\n\nexport { InputGroup };\n","import { ButtonSize } from \"components/Button/button.types\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: \"xs\",\n md: \"sm\",\n lg: \"md\",\n};\n","import React, { useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} from \"@chakra-ui/react/input\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { Button } from \"components/Button/button.component\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\nimport { closeButtonSizeMap } from \"./textInput.records\";\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n charLimit?: number;\n inputRef?: React.RefObject<HTMLInputElement | null>;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\n onContrast?: boolean;\n rightAddon?: React.ReactNode;\n rightElement?: React.ReactNode;\n size?: FormControlSize;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n clearable?: never;\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n clearable?: boolean;\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n (\n {\n charLimit = undefined,\n clearable = false,\n disabled = false,\n inputRef,\n invalid,\n leftAddon,\n leftElement,\n onClear,\n onContrast,\n rightAddon,\n rightElement,\n size = \"md\",\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const handleClear = (): void => {\n if (onClear) {\n onClear(value || \"\");\n }\n };\n\n if (clearable && !!value && !disabled) {\n rightElement = (\n <Button\n className=\"TextInput__ClearButton\"\n data-testid=\"kibble-text-input-clear-button\"\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Box className=\"TextInput__Wrapper\" position=\"relative\" w=\"100%\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid=\"kibble-text-input-group\"\n startElement={leftElement}\n startElementProps={{\n color: \"inherit\",\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: \"inherit\",\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid=\"kibble-text-input\"\n className=\"TextInput\"\n ref={inputRef || ref}\n value={value}\n size={size}\n disabled={disabled}\n {...(invalid && { \"aria-invalid\": true })}\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...rest}\n />\n </InputGroup>\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nTextInput.displayName = \"TextInput\";\nconst WrappedTextInput = withFormControl<TextInputProps>(TextInput);\n\nexport { WrappedTextInput as TextInput };\n"],"names":["FieldInput","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","withContext","createRecipeContext","Input","Field.Input","InputAddon","unstyled","recipe","useRecipe","variantProps","localProps","styles","EMPTY_SLOT_STYLES","chakra","InputElement","InputGroup","startElement","startElementProps","endElement","endElementProps","startAddon","startAddonProps","endAddon","endAddonProps","children","startOffset","endOffset","rest","child","Children","attached","jsxs","Group","el","cloneElement","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":"2lBAOMA,EAAaC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC5C,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAAO,cAAa,EAAIF,CAAK,EAC5D,OAAuBM,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,MAAO,CAAE,GAAGH,EAAa,IAAAH,EAAK,CAC/D,CAAC,EACDH,EAAW,YAAc,aCPzB,KAAM,CAAE,YAAAU,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,OACP,CAAC,EACKC,EAAQF,EAAYG,CAAW,ECA/BC,EAAab,EAAU,WAC3B,SAAqB,CAAE,SAAAc,EAAU,GAAGb,CAAK,EAAIC,EAAK,CAChD,MAAMa,EAASC,EAAS,UAAC,CAAE,IAAK,aAAc,OAAQf,EAAM,OAAQ,EAC9D,CAACgB,EAAcC,CAAU,EAAIH,EAAO,kBAAkBd,CAAK,EAC3DkB,EAASL,EAAWM,oBAAoBL,EAAOE,CAAY,EACjE,OAAuBV,wBAAIc,EAAAA,OAAO,I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AAa,aAAe,UACpC,GAAGnB,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACW,GACDvC,EAAA,kBAAA,IAAC0D,EAAA,iBAAA,CACC,UAAW,GACX,MAAOnB,EACP,aAAce,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAjB,EAAU,YAAc,YAClB,MAAAsB,EAAmBC,kBAAgCvB,CAAS","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import u, { forwardRef as l, useRef as x, useEffect as v, useMemo as g } from "react";
|
|
3
|
-
import { w as h } from "./withFormControl-
|
|
4
|
-
import { C as w } from "./characterCounter.component-
|
|
3
|
+
import { w as h } from "./withFormControl-syyL9lWW.js";
|
|
4
|
+
import { C as w } from "./characterCounter.component-DCSJKVZn.js";
|
|
5
5
|
import { F as b } from "./flex-smlF8uQG.js";
|
|
6
6
|
import { c as F } from "./create-recipe-context-D7FewUR4.js";
|
|
7
7
|
import { e as y, F as C, G as T, a1 as j } from "./index-YtNA0Ueo.js";
|
|
@@ -94,4 +94,4 @@ const B = h(f);
|
|
|
94
94
|
export {
|
|
95
95
|
B as W
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=textarea.component-
|
|
97
|
+
//# sourceMappingURL=textarea.component-A8ebDcnw.js.map
|
package/dist/chunks/{textarea.component-Bfu6gH08.js.map → textarea.component-A8ebDcnw.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-Bfu6gH08.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = \"Textarea\";\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":";;;;;;;;;AAwCA,IAAIA,IAAqB,CAACC,MAAO;AAC/B,MAAI,CAACA,EAAI;AACT,QAAMC,IAAQC,EAAiBF,CAAE,GAC3BG,IAAMC,EAAUJ,CAAE,GAClBK,IAAMC,EAAYN,CAAE,GACpBO,IAAS,MAAM;AACnB,0BAAsB,MAAM;AAC1B,MAAAP,EAAG,MAAM,SAAS;AAClB,UAAIQ;AACJ,MAAIP,EAAM,cAAc,gBACtBO,IAAYR,EAAG,gBAAgB,WAAWC,EAAM,UAAU,IAAI,WAAWA,EAAM,aAAa,KAE5FO,IAAYR,EAAG,eAAe,WAAWC,EAAM,cAAc,IAAI,WAAWA,EAAM,iBAAiB,GAEjGA,EAAM,cAAc,UAAUO,IAAY,WAAWP,EAAM,SAAS,KAClEA,EAAM,cAAc,aACtBD,EAAG,MAAM,YAAY,WAEvBQ,IAAY,WAAWP,EAAM,SAAS,KAC7BA,EAAM,cAAc,aAC7BD,EAAG,MAAM,YAAY,WAEvBA,EAAG,MAAM,SAAS,GAAGQ,CAAS;AAAA,IACpC,CAAK;AAAA,EACF;AACD,EAAAR,EAAG,iBAAiB,SAASO,CAAM,GACnCP,EAAG,MAAM,iBAAiB,SAASO,CA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N,EAAc,cAAc;ACnB5B,MAAM,EAAE,aAAAgB,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAWF;AAAA,EACfG;AACF,GCSMD,IAAWE,EAAM;AAAA,EACrB,CACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAA7B,IAAS;AAAA,IACT,aAAAY;AAAA,IACA,OAAAkB;AAAA,IACA,GAAGC;AAAA,KAELtB,MACsB;AAChB,UAAAuB,IAAmBH,IAAa,eAAe,WAE/CI,IAAmBC;AAAA,MACvB,MAAMJ,GAAO,YAAY,UAAU;AAAA,MACnC,CAACA,CAAK;AAAA,IACR;AAEA,kCACGK,GAAK,EAAA,WAAU,qBAAoB,UAAS,YAAW,GAAE,QACxD,UAAA;AAAA,MAAAhB,gBAAAA,EAAA;AAAA,QAACiB;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,KAAKxB,KAAeH;AAAA,UACpB,QAAAT;AAAA,UACA,SAASgC;AAAA,UACT,OAAAF;AAAA,UACC,GAAIF,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACvC,MAAK;AAAA,UACJ,GAAGG;AAAA,QAAA;AAAA,MACN;AAAA,MACC,CAAC,CAACJ,KACDR,gBAAAA,EAAA;AAAA,QAACkB;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOV;AAAA,UACP,cAAcM;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN;AAEAT,EAAS,cAAc;AACjB,MAAAc,IAAkBC,EAA+Bf,CAAQ;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"textarea.component-A8ebDcnw.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = \"Textarea\";\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":";;;;;;;;;AAwCA,IAAIA,IAAqB,CAACC,MAAO;AAC/B,MAAI,CAACA,EAAI;AACT,QAAMC,IAAQC,EAAiBF,CAAE,GAC3BG,IAAMC,EAAUJ,CAAE,GAClBK,IAAMC,EAAYN,CAAE,GACpBO,IAAS,MAAM;AACnB,0BAAsB,MAAM;AAC1B,MAAAP,EAAG,MAAM,SAAS;AAClB,UAAIQ;AACJ,MAAIP,EAAM,cAAc,gBACtBO,IAAYR,EAAG,gBAAgB,WAAWC,EAAM,UAAU,IAAI,WAAWA,EAAM,aAAa,KAE5FO,IAAYR,EAAG,eAAe,WAAWC,EAAM,cAAc,IAAI,WAAWA,EAAM,iBAAiB,GAEjGA,EAAM,cAAc,UAAUO,IAAY,WAAWP,EAAM,SAAS,KAClEA,EAAM,cAAc,aACtBD,EAAG,MAAM,YAAY,WAEvBQ,IAAY,WAAWP,EAAM,SAAS,KAC7BA,EAAM,cAAc,aAC7BD,EAAG,MAAM,YAAY,WAEvBA,EAAG,MAAM,SAAS,GAAG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ime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-
|
|
2
|
-
//# sourceMappingURL=textarea.component-
|
|
1
|
+
"use strict";const p=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-DBaRp5Zy.js"),v=require("./characterCounter.component-Cvw7D33c.js"),g=require("./flex-D14H6HbP.js"),w=require("./create-recipe-context-sESms8Eo.js"),x=require("./index-CHIISuTq.js"),l=require("./use-locale-context-D0LByRu9.js"),b=require("./use-field-context-CArmgHPP.js"),C=e=>e&&e.__esModule?e:{default:e},F=C(c);var y=e=>{if(!e)return;const t=x.getComputedStyle(e),o=x.getWindow(e),a=x.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let s;t.boxSizing==="content-box"?s=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):s=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&s>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),s=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${s}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),i=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...i,set(){i?.set?.apply(this,arguments),r()}});const u=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});u.observe(e);const d=new o.MutationObserver(()=>r());return d.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),a.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),a.fonts?.removeEventListener("loadingdone",r),u.disconnect(),d.disconnect()}};const m=c.forwardRef((e,t)=>{const{autoresize:o,...a}=e,r=c.useRef(null),n=b.useFieldContext(),i=x.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},a);return c.useEffect(()=>{if(o)return y(r.current)},[o]),p.jsxRuntimeExports.jsx(l.ark.textarea,{...i,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:R}=w.createRecipeContext({key:"textarea"}),T=R(m),f=F.default.forwardRef(({charLimit:e=void 0,invalid:t,onContrast:o,resize:a="none",textareaRef:r,value:n,...i},u)=>{const d=o?"onContrast":"default",s=c.useMemo(()=>n?.toString()?.length||0,[n]);return p.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[p.jsxRuntimeExports.jsx(T,{className:"Textarea","data-testid":"kibble-textarea",ref:r||u,resize:a,variant:d,value:n,...t&&{"aria-invalid":!0},minH:"140px",...i}),!!e&&p.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:s})]})});f.displayName="Textarea";const j=h.withFormControl(f);exports.WrappedTextarea=j;
|
|
2
|
+
//# sourceMappingURL=textarea.component-DDz3lXs_.js.map
|
package/dist/chunks/{textarea.component-Dwb7sCt5.js.map → textarea.component-DDz3lXs_.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-Dwb7sCt5.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = \"Textarea\";\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":"qaAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EAAS,UAACJ,CAAE,EAClBK,EAAMC,EAAW,YAACN,CAAE,EACpBO,EAAS,IAAM,CACnB,sBAAsB,IAAM,CAC1BP,EAAG,MAAM,OAAS,OAClB,IAAIQ,EACAP,EAAM,YAAc,cACtBO,EAAYR,EAAG,cAAgB,WAAWC,EAAM,UAAU,EAAI,WAAWA,EAAM,aAAa,GAE5FO,EAAYR,EAAG,aAAe,WAAWC,EAAM,cAAc,EAAI,WAAWA,EAAM,iBAAiB,EAEjGA,EAAM,YAAc,QAAUO,EAAY,WAAWP,EAAM,SAAS,GAClEA,EAAM,YAAc,WACtBD,EAAG,MAAM,UAAY,UAEvBQ,EAAY,WAAWP,EAAM,SAAS,GAC7BA,EAAM,YAAc,WAC7BD,EAAG,MAAM,UAAY,UAEvBA,EAAG,MAAM,OAAS,GAAGQ,CAAS,IACpC,CAAK,CACF,EACDR,EAAG,iBAAiB,QAASO,CAAM,EACnCP,EAAG,MAAM,iBAAiB,QAASO,CAAM,EACzC,MAAME,EAAmB,OAAO,eAAeT,CAAE,EAC3CU,EAAa,OAAO,yBAAyBD,EAAkB,OAAO,EAC5E,OAAO,eAAeT,EAAI,QAAS,CACjC,GAAGU,EACH,KAAM,CACJA,GAAY,KAAK,MAAM,KAAM,SAAS,EACtCH,EAAQ,CACd,CACA,CAAG,EACD,MAAMI,EAAiB,IAAIR,EAAI,eAAe,IAAM,CAClD,sBAAsB,IAAMI,GAAQ,CACxC,CAAG,EACDI,EAAe,QAAQX,CAA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,CAAK,CACR,EAEA,gCACGK,OAAK,CAAA,UAAU,oBAAoB,SAAS,WAAW,EAAE,OACxD,SAAA,CAAAhB,EAAA,kBAAA,IAACiB,EAAA,CACC,UAAU,WACV,cAAY,kBACZ,IAAKxB,GAAeH,EACpB,OAAAT,EACA,QAASgC,EACT,MAAAF,EACC,GAAIF,GAAW,CAAE,eAAgB,EAAK,EACvC,KAAK,QACJ,GAAGG,CAAA,CACN,EACC,CAAC,CAACJ,GACDR,EAAA,kBAAA,IAACkB,EAAA,iBAAA,CACC,UAAW,GACX,MAAOV,EACP,aAAcM,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAT,EAAS,YAAc,WACjB,MAAAc,EAAkBC,kBAA+Bf,CAAQ","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"textarea.component-DDz3lXs_.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = \"Textarea\";\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","Wr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,QAASgC,EACT,MAAAF,EACC,GAAIF,GAAW,CAAE,eAAgB,EAAK,EACvC,KAAK,QACJ,GAAGG,CAAA,CACN,EACC,CAAC,CAACJ,GACDR,EAAA,kBAAA,IAACkB,EAAA,iBAAA,CACC,UAAW,GACX,MAAOV,EACP,aAAcM,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAT,EAAS,YAAc,WACjB,MAAAc,EAAkBC,kBAA+Bf,CAAQ","x_google_ignoreList":[0,1,2]}
|
|
@@ -16,7 +16,7 @@ import { a as Po, b as Wo, f as Io, c as Ao, l as Eo, d as Bo } from "./typograp
|
|
|
16
16
|
import { a as cr } from "./index-C_AXAeNS.js";
|
|
17
17
|
import { a as jo } from "./index-CJLttzPM.js";
|
|
18
18
|
import { c as Vo, b as qe, C as fe } from "./checkbox.records-CTlAD-2Q.js";
|
|
19
|
-
import { i as Do } from "./tooltip.component-
|
|
19
|
+
import { i as Do } from "./tooltip.component-BSomeipc.js";
|
|
20
20
|
import { a as Oo } from "./index-OpolRlgD.js";
|
|
21
21
|
import { coreColors as u } from "../esm/theme/tokens/colors/index.js";
|
|
22
22
|
import { f as dt, t as ut } from "./typography-Cqrokog3.js";
|
|
@@ -26,7 +26,7 @@ import { B as dr } from "./button.component-BpF3MzbZ.js";
|
|
|
26
26
|
import { I as Fo } from "./icon.component-DGNCL1Yc.js";
|
|
27
27
|
import { B as ur } from "./box-Ck9I7FYv.js";
|
|
28
28
|
import { StatusIconMap as $o } from "../esm/shared/records/index.js";
|
|
29
|
-
import { W as vt } from "./text.component-
|
|
29
|
+
import { W as vt } from "./text.component-z4cNuAAI.js";
|
|
30
30
|
import { F as Ho } from "./flex-smlF8uQG.js";
|
|
31
31
|
import { c as Go } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
32
32
|
import { C as Uo, W as xt, a as Yo } from "./icons-BXxdrBrf.js";
|
|
@@ -13693,4 +13693,4 @@ export {
|
|
|
13693
13693
|
fd as K,
|
|
13694
13694
|
jc as s
|
|
13695
13695
|
};
|
|
13696
|
-
//# sourceMappingURL=theme.provider-
|
|
13696
|
+
//# sourceMappingURL=theme.provider-CbB3DTaK.js.map
|