@televet/kibble-ui 4.0.0-beta.131 → 4.0.0-beta.134
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-DMRaA_Ku.js → alert.types-BRxpwd_5.js} +3 -3
- package/dist/chunks/{alert.types-DMRaA_Ku.js.map → alert.types-BRxpwd_5.js.map} +1 -1
- package/dist/chunks/{alert.types-CEvBY7aM.js → alert.types-BxcEdB-B.js} +2 -2
- package/dist/chunks/{alert.types-CEvBY7aM.js.map → alert.types-BxcEdB-B.js.map} +1 -1
- package/dist/chunks/{avatar.component-Dv96XFOF.js → avatar.component-D1IGlf-n.js} +2 -2
- package/dist/chunks/{avatar.component-Dv96XFOF.js.map → avatar.component-D1IGlf-n.js.map} +1 -1
- package/dist/chunks/{avatar.component-9ntfFFdO.js → avatar.component-t20g65LX.js} +2 -2
- package/dist/chunks/{avatar.component-9ntfFFdO.js.map → avatar.component-t20g65LX.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CfSBCJKG.js → avatarGroup.component-CckGYgzu.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CfSBCJKG.js.map → avatarGroup.component-CckGYgzu.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-D3hnTX1G.js → avatarGroup.component-DJClgcgm.js} +2 -2
- package/dist/chunks/{avatarGroup.component-D3hnTX1G.js.map → avatarGroup.component-DJClgcgm.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-B6Ebjoh6.js → buttonGroup.component-Di3zoWvP.js} +2 -2
- package/dist/chunks/{buttonGroup.component-B6Ebjoh6.js.map → buttonGroup.component-Di3zoWvP.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BHDnteYx.js → buttonGroup.component-b4-ff-uM.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BHDnteYx.js.map → buttonGroup.component-b4-ff-uM.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DXmly18j.js → characterCounter.component-C2DpeJWu.js} +2 -2
- package/dist/chunks/{characterCounter.component-DXmly18j.js.map → characterCounter.component-C2DpeJWu.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-vK94fENA.js → characterCounter.component-D5Vrhr71.js} +2 -2
- package/dist/chunks/{characterCounter.component-vK94fENA.js.map → characterCounter.component-D5Vrhr71.js.map} +1 -1
- package/dist/chunks/{checkbox.component-u7MR3n4o.js → checkbox.component-DCUo_hAT.js} +2 -2
- package/dist/chunks/{checkbox.component-u7MR3n4o.js.map → checkbox.component-DCUo_hAT.js.map} +1 -1
- package/dist/chunks/{checkbox.component-BR65eR9h.js → checkbox.component-DVeu8B0E.js} +3 -3
- package/dist/chunks/{checkbox.component-BR65eR9h.js.map → checkbox.component-DVeu8B0E.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Ch2eLuiA.js → checkboxGroup.component-Dth4Sqjc.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-Ch2eLuiA.js.map → checkboxGroup.component-Dth4Sqjc.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CNnlDoOR.js → checkboxGroup.component-o0s7wP7x.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-CNnlDoOR.js.map → checkboxGroup.component-o0s7wP7x.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-D5UsucDp.js → conversationCard.component-D4HeTkLX.js} +2 -2
- package/dist/chunks/{conversationCard.component-D5UsucDp.js.map → conversationCard.component-D4HeTkLX.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-DQqpy-FX.js → conversationCard.component-DMYj2XZc.js} +7 -7
- package/dist/chunks/{conversationCard.component-DQqpy-FX.js.map → conversationCard.component-DMYj2XZc.js.map} +1 -1
- package/dist/chunks/{datePicker.component-CBYLerCE.js → datePicker.component-C6LntUtz.js} +2 -2
- package/dist/chunks/{datePicker.component-CBYLerCE.js.map → datePicker.component-C6LntUtz.js.map} +1 -1
- package/dist/chunks/{datePicker.component-Dwu1QDNa.js → datePicker.component-DYu6SSIX.js} +4 -4
- package/dist/chunks/{datePicker.component-Dwu1QDNa.js.map → datePicker.component-DYu6SSIX.js.map} +1 -1
- package/dist/chunks/{heading.component-BMvc5kM8.js → heading.component-CHLHRKDB.js} +2 -2
- package/dist/chunks/{heading.component-BMvc5kM8.js.map → heading.component-CHLHRKDB.js.map} +1 -1
- package/dist/chunks/{heading.component-D02MeQPl.js → heading.component-kqI1DBZE.js} +2 -2
- package/dist/chunks/{heading.component-D02MeQPl.js.map → heading.component-kqI1DBZE.js.map} +1 -1
- package/dist/chunks/{menu.component-fFdY9cMO.js → menu.component-BK1M30xH.js} +6 -6
- package/dist/chunks/menu.component-BK1M30xH.js.map +1 -0
- package/dist/chunks/{menu.component-OwlCMqw2.js → menu.component-DH4feCzP.js} +2 -2
- package/dist/chunks/menu.component-DH4feCzP.js.map +1 -0
- package/dist/chunks/{modal.types-BiEPKa2t.js → modal.types-D29fi5zu.js} +2 -2
- package/dist/chunks/{modal.types-BiEPKa2t.js.map → modal.types-D29fi5zu.js.map} +1 -1
- package/dist/chunks/{modal.types-DxZhJFBH.js → modal.types-DF3q1i5z.js} +2 -2
- package/dist/chunks/{modal.types-DxZhJFBH.js.map → modal.types-DF3q1i5z.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DoQJLvWY.js → pinInput.types-BIHcm101.js} +2 -2
- package/dist/chunks/{pinInput.types-DoQJLvWY.js.map → pinInput.types-BIHcm101.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BW8TUMvl.js → pinInput.types-CyfOtjwO.js} +2 -2
- package/dist/chunks/{pinInput.types-BW8TUMvl.js.map → pinInput.types-CyfOtjwO.js.map} +1 -1
- package/dist/chunks/{popover.component-DlFFiYME.js → popover.component-BLU9p9Ik.js} +4 -4
- package/dist/chunks/{popover.component-DlFFiYME.js.map → popover.component-BLU9p9Ik.js.map} +1 -1
- package/dist/chunks/{popover.component-B1NHpxuL.js → popover.component-CKlrnSJh.js} +2 -2
- package/dist/chunks/{popover.component-B1NHpxuL.js.map → popover.component-CKlrnSJh.js.map} +1 -1
- package/dist/chunks/radioGroup.types-Cj0aLFgy.js +2 -0
- package/dist/chunks/{radioGroup.types-BEoAR6eX.js.map → radioGroup.types-Cj0aLFgy.js.map} +1 -1
- package/dist/chunks/{radioGroup.types-DbEeYA9c.js → radioGroup.types-DLVQkeXl.js} +76 -81
- package/dist/chunks/{radioGroup.types-DbEeYA9c.js.map → radioGroup.types-DLVQkeXl.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-TPth4wKQ.js → ratingDots.component-BFbDO9eK.js} +2 -2
- package/dist/chunks/{ratingDots.component-TPth4wKQ.js.map → ratingDots.component-BFbDO9eK.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CuKKpqru.js → ratingDots.component-DNnA7Vrs.js} +3 -3
- package/dist/chunks/{ratingDots.component-CuKKpqru.js.map → ratingDots.component-DNnA7Vrs.js.map} +1 -1
- package/dist/chunks/{select.component-DEf5MiUc.js → select.component-BTGRKWpb.js} +51 -48
- package/dist/chunks/select.component-BTGRKWpb.js.map +1 -0
- package/dist/chunks/select.component-CPqlL2fx.js +2 -0
- package/dist/chunks/select.component-CPqlL2fx.js.map +1 -0
- package/dist/chunks/{sortableList.component-CPYA3KKy.js → sortableList.component-BuvvwDxk.js} +2 -2
- package/dist/chunks/{sortableList.component-CPYA3KKy.js.map → sortableList.component-BuvvwDxk.js.map} +1 -1
- package/dist/chunks/{sortableList.component-DW832-HJ.js → sortableList.component-zN2O9sXF.js} +2 -2
- package/dist/chunks/{sortableList.component-DW832-HJ.js.map → sortableList.component-zN2O9sXF.js.map} +1 -1
- package/dist/chunks/{spinner.component-CzOv8dIY.js → spinner.component-DdpNwbwT.js} +2 -2
- package/dist/chunks/{spinner.component-CzOv8dIY.js.map → spinner.component-DdpNwbwT.js.map} +1 -1
- package/dist/chunks/{spinner.component-BcOsuuIq.js → spinner.component-GcArnFOI.js} +2 -2
- package/dist/chunks/{spinner.component-BcOsuuIq.js.map → spinner.component-GcArnFOI.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DuRUjNh6.js → styledAvatar.types-D89P8pb1.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DuRUjNh6.js.map → styledAvatar.types-D89P8pb1.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-9huVpPvU.js → styledAvatar.types-tXAXwF4E.js} +2 -2
- package/dist/chunks/{styledAvatar.types-9huVpPvU.js.map → styledAvatar.types-tXAXwF4E.js.map} +1 -1
- package/dist/chunks/{switch.component-CJ3nDOQj.js → switch.component-Dcd-8UR1.js} +2 -2
- package/dist/chunks/{switch.component-CJ3nDOQj.js.map → switch.component-Dcd-8UR1.js.map} +1 -1
- package/dist/chunks/{switch.component-NP_hIh2c.js → switch.component-DmwbaIE3.js} +2 -2
- package/dist/chunks/{switch.component-NP_hIh2c.js.map → switch.component-DmwbaIE3.js.map} +1 -1
- package/dist/chunks/{tab.types-DjQ-zWh3.js → tab.types-Buy2NAgh.js} +2 -2
- package/dist/chunks/{tab.types-DjQ-zWh3.js.map → tab.types-Buy2NAgh.js.map} +1 -1
- package/dist/chunks/{tab.types-D2Y_KCOG.js → tab.types-hEU9_QfO.js} +2 -2
- package/dist/chunks/{tab.types-D2Y_KCOG.js.map → tab.types-hEU9_QfO.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-jWG9O22v.js → tagBlock.component-BA-IYu3L.js} +5 -5
- package/dist/chunks/{tagBlock.component-jWG9O22v.js.map → tagBlock.component-BA-IYu3L.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-lQeyNLgK.js → tagBlock.component-YlQVV7pg.js} +2 -2
- package/dist/chunks/{tagBlock.component-lQeyNLgK.js.map → tagBlock.component-YlQVV7pg.js.map} +1 -1
- package/dist/chunks/{text.component-BthmuMFV.js → text.component-CGNUrKE-.js} +2 -2
- package/dist/chunks/text.component-CGNUrKE-.js.map +1 -0
- package/dist/chunks/{text.component-waIIFgwB.js → text.component-DIB7PmtU.js} +2 -2
- package/dist/chunks/text.component-DIB7PmtU.js.map +1 -0
- package/dist/chunks/{textInput.component-C8R6bZLW.js → textInput.component-BFSm3-Y2.js} +3 -3
- package/dist/chunks/{textInput.component-C8R6bZLW.js.map → textInput.component-BFSm3-Y2.js.map} +1 -1
- package/dist/chunks/{textInput.component-Bw1lEr8q.js → textInput.component-DUl5SKSN.js} +2 -2
- package/dist/chunks/{textInput.component-Bw1lEr8q.js.map → textInput.component-DUl5SKSN.js.map} +1 -1
- package/dist/chunks/{textarea.component-DMisQzyb.js → textarea.component-D-c-uOYe.js} +3 -3
- package/dist/chunks/{textarea.component-DMisQzyb.js.map → textarea.component-D-c-uOYe.js.map} +1 -1
- package/dist/chunks/{textarea.component-DDYGwqlz.js → textarea.component-D2-JxWH3.js} +2 -2
- package/dist/chunks/{textarea.component-DDYGwqlz.js.map → textarea.component-D2-JxWH3.js.map} +1 -1
- package/dist/chunks/{theme.provider-DJQeMr5K.js → theme.provider-B9wNBHRg.js} +39 -8
- package/dist/chunks/{theme.provider-DJQeMr5K.js.map → theme.provider-B9wNBHRg.js.map} +1 -1
- package/dist/chunks/{theme.provider-fEXubEDT.js → theme.provider-aHkb52sp.js} +2 -2
- package/dist/chunks/{theme.provider-fEXubEDT.js.map → theme.provider-aHkb52sp.js.map} +1 -1
- package/dist/chunks/{timePicker.component-B8Md1wxz.js → timePicker.component-3p4hTRxq.js} +3 -3
- package/dist/chunks/{timePicker.component-B8Md1wxz.js.map → timePicker.component-3p4hTRxq.js.map} +1 -1
- package/dist/chunks/{timePicker.component-3lHlD-Sl.js → timePicker.component-BwVSLw_K.js} +2 -2
- package/dist/chunks/{timePicker.component-3lHlD-Sl.js.map → timePicker.component-BwVSLw_K.js.map} +1 -1
- package/dist/chunks/{timeRange.component-l8jhl4Vv.js → timeRange.component-EaAG1cMr.js} +2 -2
- package/dist/chunks/{timeRange.component-l8jhl4Vv.js.map → timeRange.component-EaAG1cMr.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DtNIkrsw.js → timeRange.component-fvD_eZip.js} +2 -2
- package/dist/chunks/{timeRange.component-DtNIkrsw.js.map → timeRange.component-fvD_eZip.js.map} +1 -1
- package/dist/chunks/{timestamp.component-B1UUyLk6.js → timestamp.component-BpTRC7gp.js} +2 -2
- package/dist/chunks/{timestamp.component-B1UUyLk6.js.map → timestamp.component-BpTRC7gp.js.map} +1 -1
- package/dist/chunks/{timestamp.component-NeJlrbsQ.js → timestamp.component-D9UV1jd1.js} +3 -3
- package/dist/chunks/{timestamp.component-NeJlrbsQ.js.map → timestamp.component-D9UV1jd1.js.map} +1 -1
- package/dist/chunks/{tooltip.component-BlX3B2Di.js → tooltip.component-BNwwL09H.js} +2 -2
- package/dist/chunks/{tooltip.component-BlX3B2Di.js.map → tooltip.component-BNwwL09H.js.map} +1 -1
- package/dist/chunks/{tooltip.component-B15VGEn1.js → tooltip.component-DSLRoLG4.js} +2 -1
- package/dist/chunks/{tooltip.component-B15VGEn1.js.map → tooltip.component-DSLRoLG4.js.map} +1 -1
- package/dist/chunks/{withFormControl-CCJImQAG.js → withFormControl-DKfKOxqY.js} +2 -2
- package/dist/chunks/{withFormControl-CCJImQAG.js.map → withFormControl-DKfKOxqY.js.map} +1 -1
- package/dist/chunks/{withFormControl-COwU1OTv.js → withFormControl-UUUhZt1R.js} +2 -2
- package/dist/chunks/{withFormControl-COwU1OTv.js.map → withFormControl-UUUhZt1R.js.map} +1 -1
- package/dist/chunks/{withTruncation-BY4-q1lB.js → withTruncation-BA1YkhIR.js} +2 -2
- package/dist/chunks/{withTruncation-BY4-q1lB.js.map → withTruncation-BA1YkhIR.js.map} +1 -1
- package/dist/chunks/{withTruncation-DgpjWopq.js → withTruncation-BmhcSdt_.js} +2 -2
- package/dist/chunks/{withTruncation-DgpjWopq.js.map → withTruncation-BmhcSdt_.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/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 +4 -3
- 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 +72 -71
- package/dist/esm/index.js +91 -90
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +0 -1
- package/dist/types/components/RadioGroup/radioGroup.component.d.ts +2 -1
- package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +17 -0
- package/dist/types/components/RadioGroup/radioGroup.types.d.ts +2 -0
- package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +1 -1
- package/dist/types/components/Text/text.component.d.ts +1 -1
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunks/menu.component-OwlCMqw2.js.map +0 -1
- package/dist/chunks/menu.component-fFdY9cMO.js.map +0 -1
- package/dist/chunks/radioGroup.types-BEoAR6eX.js +0 -2
- package/dist/chunks/select.component-91EorPLw.js +0 -2
- package/dist/chunks/select.component-91EorPLw.js.map +0 -1
- package/dist/chunks/select.component-DEf5MiUc.js.map +0 -1
- package/dist/chunks/text.component-BthmuMFV.js.map +0 -1
- package/dist/chunks/text.component-waIIFgwB.js.map +0 -1
package/dist/chunks/{textInput.component-Bw1lEr8q.js.map → textInput.component-DUl5SKSN.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.component-Bw1lEr8q.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 { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps, InputGroup } 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.Ref<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(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,EAA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B,EAAmBc,CAAuB,EAChD,QAAQ,eACR,QAASE,EACT,SAAS,OAAA,CACX,GAIE,MAAAE,EAAmBC,UAAQ,IAAMJ,GAAO,YAAY,QAAU,EAAG,CAACA,CAAK,CAAC,EAE9E,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,GAAcvC,wBAAA0D,EAAAA,iBAAA,CAAiB,UAAW,GAAM,MAAOnB,EAAW,aAAce,CAAkB,CAAA,CAAA,EACvG,CAAA,CAGN,EAEAjB,EAAU,YAAc,YAClB,MAAAsB,EAAmBC,kBAAgCvB,CAAS","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"textInput.component-DUl5SKSN.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 { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps, InputGroup } 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.Ref<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(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,EA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EACA,SAAAT,EACC,GAAIE,GAAW,CAAE,eAAgB,EAAK,EACvC,QAASI,EAAa,aAAe,UACpC,GAAGnB,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACW,GAAcvC,wBAAA0D,EAAAA,iBAAA,CAAiB,UAAW,GAAM,MAAOnB,EAAW,aAAce,CAAkB,CAAA,CAAA,EACvG,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-DKfKOxqY.js";
|
|
4
|
+
import { C as w } from "./characterCounter.component-D5Vrhr71.js";
|
|
5
5
|
import { F as b } from "./flex-smlF8uQG.js";
|
|
6
6
|
import { c as y } from "./create-recipe-context-D7FewUR4.js";
|
|
7
7
|
import { e as F, H as C, I as T, a1 as j } from "./index-1syExFDc.js";
|
|
@@ -76,4 +76,4 @@ const B = h(f);
|
|
|
76
76
|
export {
|
|
77
77
|
B as W
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=textarea.component-
|
|
79
|
+
//# sourceMappingURL=textarea.component-D-c-uOYe.js.map
|
package/dist/chunks/{textarea.component-DMisQzyb.js.map → textarea.component-D-c-uOYe.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-DMisQzyb.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, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } 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?: React.Ref<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,CAAM;AACzC,QAAME,IAAmB,OAAO,eAAeT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aAAAgB,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAWF;AAAA,EACfG;AACF,GCGMD,IAAWE,EAAM;AAAA,EACrB,CACE,EAAE,WAAAC,IAAY,QAAW,SAAAC,GAAS,YAAAC,GAAY,QAAA7B,IAAS,QAAQ,aAAAY,GAAa,OAAAkB,GAAO,GAAGC,EAAA,GACtFtB,MACsB;AAChB,UAAAuB,IAAmBH,IAAa,eAAe,WAE/CI,IAAmBC,EAAQ,MAAMJ,GAAO,YAAY,UAAU,GAAG,CAACA,CAAK,CAAC;AAE9E,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,KAAcR,gBAAAA,MAAAkB,GAAA,EAAiB,WAAW,IAAM,OAAOV,GAAW,cAAcM,EAAkB,CAAA;AAAA,IAAA,GACvG;AAAA,EAAA;AAGN;AAEAT,EAAS,cAAc;AACjB,MAAAc,IAAkBC,EAA+Bf,CAAQ;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"textarea.component-D-c-uOYe.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, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } 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?: React.Ref<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,CAAM;AACzC,QAAME,IAAmB,OAAO,eAAeT,CAAE,GAC3CU,IAAa,OAAO,yBAAyBD,GAAkB,OAAO;AAC5E,SAAO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C,IAAWF;AAAA,EACfG;AACF,GCGMD,IAAWE,EAAM;AAAA,EACrB,CACE,EAAE,WAAAC,IAAY,QAAW,SAAAC,GAAS,YAAAC,GAAY,QAAA7B,IAAS,QAAQ,aAAAY,GAAa,OAAAkB,GAAO,GAAGC,EAAA,GACtFtB,MACsB;AAChB,UAAAuB,IAAmBH,IAAa,eAAe,WAE/CI,IAAmBC,EAAQ,MAAMJ,GAAO,YAAY,UAAU,GAAG,CAACA,CAAK,CAAC;AAE9E,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,KAAcR,gBAAAA,MAAAkB,GAAA,EAAiB,WAAW,IAAM,OAAOV,GAAW,cAAcM,EAAkB,CAAA;AAAA,IAAA,GACvG;AAAA,EAAA;AAGN;AAEAT,EAAS,cAAc;AACjB,MAAAc,IAAkBC,EAA+Bf,CAAQ;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const p=require("./jsx-runtime-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-UUUhZt1R.js"),v=require("./characterCounter.component-C2DpeJWu.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-D2-JxWH3.js.map
|
package/dist/chunks/{textarea.component-DDYGwqlz.js.map → textarea.component-D2-JxWH3.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-DDYGwqlz.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, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } 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?: React.Ref<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,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AA,EACvG,CAAA,CAGN,EAEAT,EAAS,YAAc,WACjB,MAAAc,EAAkBC,kBAA+Bf,CAAQ","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"textarea.component-D2-JxWH3.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, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } 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?: React.Ref<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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,WA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,CACD,EACDO,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAKR,EACL,OAAOlB,EAAmBoB,EAAY,OAAO,CACjD,EAAK,CAACF,CAAU,CAAC,EACQS,wBAAIC,EAAAA,IAAI,SAAU,CAAE,GAAGJ,EAAa,IAAKK,cAAYZ,EAAKG,CAAW,EAAG,CACjG,CAAC,EACDN,EAAc,YAAc,gBCnB5B,KAAM,CAAE,YAAAgB,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,UACP,CAAC,EACKC,EAAWF,EACfG,CACF,ECGMD,EAAWE,EAAM,QAAA,WACrB,CACE,CAAE,UAAAC,EAAY,OAAW,QAAAC,EAAS,WAAAC,EAAY,OAAA7B,EAAS,OAAQ,YAAAY,EAAa,MAAAkB,EAAO,GAAGC,CAAA,EACtFtB,IACsB,CAChB,MAAAuB,EAAmBH,EAAa,aAAe,UAE/CI,EAAmBC,UAAQ,IAAMJ,GAAO,YAAY,QAAU,EAAG,CAACA,CAAK,CAAC,EAE9E,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,GAAcR,wBAAAkB,EAAAA,iBAAA,CAAiB,UAAW,GAAM,MAAOV,EAAW,aAAcM,CAAkB,CAAA,CAAA,EACvG,CAAA,CAGN,EAEAT,EAAS,YAAc,WACjB,MAAAc,EAAkBC,kBAA+Bf,CAAQ","x_google_ignoreList":[0,1,2]}
|
|
@@ -13,7 +13,7 @@ import { a as qt, b as Xt, f as Kt, c as Jt, l as Qt, d as Zt } from "./typograp
|
|
|
13
13
|
import { a as Ze } from "./index-C2oFXalq.js";
|
|
14
14
|
import { a as eo } from "./index-DT2ktill.js";
|
|
15
15
|
import { c as to } from "./checkbox.anatomy-DCCPwuXc.js";
|
|
16
|
-
import { i as oo } from "./tooltip.component-
|
|
16
|
+
import { i as oo } from "./tooltip.component-DSLRoLG4.js";
|
|
17
17
|
import { a as ro } from "./index-O8mh7GXa.js";
|
|
18
18
|
import { coreColors as o } from "../esm/theme/tokens/colors/index.js";
|
|
19
19
|
import { i as l } from "./invertToken-DkyAF_BY.js";
|
|
@@ -24,7 +24,7 @@ import { B as et } from "./button.component-Br9jCpBx.js";
|
|
|
24
24
|
import { I as no } from "./icon.component-S_qFWBRf.js";
|
|
25
25
|
import { B as tt } from "./box-Ck9I7FYv.js";
|
|
26
26
|
import { StatusIconMap as lo } from "../esm/shared/records/index.js";
|
|
27
|
-
import { W as ze } from "./text.component-
|
|
27
|
+
import { W as ze } from "./text.component-CGNUrKE-.js";
|
|
28
28
|
import { F as co } from "./flex-smlF8uQG.js";
|
|
29
29
|
import { c as uo } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
30
30
|
import { c as po } from "./factory-Ctbv0Ozn.js";
|
|
@@ -11193,12 +11193,30 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
|
|
|
11193
11193
|
}
|
|
11194
11194
|
},
|
|
11195
11195
|
false: {}
|
|
11196
|
+
},
|
|
11197
|
+
radioAlignment: {
|
|
11198
|
+
start: {
|
|
11199
|
+
itemControl: {
|
|
11200
|
+
alignSelf: "start"
|
|
11201
|
+
}
|
|
11202
|
+
},
|
|
11203
|
+
center: {
|
|
11204
|
+
itemControl: {
|
|
11205
|
+
alignSelf: "center"
|
|
11206
|
+
}
|
|
11207
|
+
},
|
|
11208
|
+
end: {
|
|
11209
|
+
itemControl: {
|
|
11210
|
+
alignSelf: "end"
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11196
11213
|
}
|
|
11197
11214
|
},
|
|
11198
11215
|
defaultVariants: {
|
|
11199
11216
|
size: "md",
|
|
11200
11217
|
variant: "default",
|
|
11201
|
-
withCard: !1
|
|
11218
|
+
withCard: !1,
|
|
11219
|
+
radioAlignment: "start"
|
|
11202
11220
|
},
|
|
11203
11221
|
compoundVariants: [
|
|
11204
11222
|
{
|
|
@@ -11725,9 +11743,7 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
|
|
|
11725
11743
|
justifyContent: "flex-start"
|
|
11726
11744
|
},
|
|
11727
11745
|
valueText: {
|
|
11728
|
-
|
|
11729
|
-
display: "flex",
|
|
11730
|
-
gap: 2
|
|
11746
|
+
w: "100%"
|
|
11731
11747
|
},
|
|
11732
11748
|
positioner: {
|
|
11733
11749
|
zIndex: "1401 !important"
|
|
@@ -11813,11 +11829,26 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
|
|
|
11813
11829
|
...N.lg
|
|
11814
11830
|
}
|
|
11815
11831
|
}
|
|
11832
|
+
},
|
|
11833
|
+
shouldTruncateText: {
|
|
11834
|
+
true: {
|
|
11835
|
+
valueText: {
|
|
11836
|
+
w: "100%"
|
|
11837
|
+
}
|
|
11838
|
+
},
|
|
11839
|
+
false: {
|
|
11840
|
+
valueText: {
|
|
11841
|
+
alignItems: "center",
|
|
11842
|
+
display: "flex",
|
|
11843
|
+
gap: 0
|
|
11844
|
+
}
|
|
11845
|
+
}
|
|
11816
11846
|
}
|
|
11817
11847
|
},
|
|
11818
11848
|
defaultVariants: {
|
|
11819
11849
|
size: "md",
|
|
11820
|
-
variant: "default"
|
|
11850
|
+
variant: "default",
|
|
11851
|
+
shouldTruncateText: !0
|
|
11821
11852
|
}
|
|
11822
11853
|
}), Ts = ["root", "indicator", "content", "title", "description"], As = {
|
|
11823
11854
|
default: {
|
|
@@ -12264,4 +12295,4 @@ export {
|
|
|
12264
12295
|
Ls as k,
|
|
12265
12296
|
Fs as s
|
|
12266
12297
|
};
|
|
12267
|
-
//# sourceMappingURL=theme.provider-
|
|
12298
|
+
//# sourceMappingURL=theme.provider-B9wNBHRg.js.map
|