@televet/kibble-ui 4.0.0-beta.50 → 4.0.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{alert.component-xIg594Bw.js → alert.component-g3HPaEm9.js} +3 -3
- package/dist/chunks/{alert.component-xIg594Bw.js.map → alert.component-g3HPaEm9.js.map} +1 -1
- package/dist/chunks/{avatar.component-B7rggLqO.js → avatar.component-oOJ66hzm.js} +11 -11
- package/dist/chunks/{avatar.component-B7rggLqO.js.map → avatar.component-oOJ66hzm.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BxK-Fntw.js → avatarGroup.component-BOzKnzZu.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BxK-Fntw.js.map → avatarGroup.component-BOzKnzZu.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-B_5ioQ76.js → buttonGroup.component-CdJUMIP-.js} +2 -2
- package/dist/chunks/{buttonGroup.component-B_5ioQ76.js.map → buttonGroup.component-CdJUMIP-.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BLjEEBle.js → buttonGroup.component-Sr6-2Vc6.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BLjEEBle.js.map → buttonGroup.component-Sr6-2Vc6.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Bmd3imRK.js → characterCounter.component-BFw6saPi.js} +2 -2
- package/dist/chunks/{characterCounter.component-Bmd3imRK.js.map → characterCounter.component-BFw6saPi.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C99uwLFM.js → checkbox.component-D08XXKS7.js} +90 -88
- package/dist/chunks/{checkbox.component-C99uwLFM.js.map → checkbox.component-D08XXKS7.js.map} +1 -1
- package/dist/chunks/checkbox.component-n9iftNxn.js +2 -0
- package/dist/chunks/{checkbox.component-jKQDjGYQ.js.map → checkbox.component-n9iftNxn.js.map} +1 -1
- package/dist/chunks/{checkbox.records-BBV1vniy.js → checkbox.records-7WQ70CZr.js} +4 -4
- package/dist/chunks/{checkbox.records-BBV1vniy.js.map → checkbox.records-7WQ70CZr.js.map} +1 -1
- package/dist/chunks/checkboxGroup.component-BG4HiBZ6.js +52 -0
- package/dist/chunks/{checkboxGroup.component-DwICStpY.js.map → checkboxGroup.component-BG4HiBZ6.js.map} +1 -1
- package/dist/chunks/checkboxGroup.component-BNmruJSQ.js +2 -0
- package/dist/chunks/{checkboxGroup.component-v0mNVsPd.js.map → checkboxGroup.component-BNmruJSQ.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CFok-8U0.js → conversationCard.component-B7k9ZUSM.js} +2 -2
- package/dist/chunks/{conversationCard.component-CFok-8U0.js.map → conversationCard.component-B7k9ZUSM.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CiDSMTUO.js → conversationCard.component-BnwJO_zP.js} +7 -7
- package/dist/chunks/{conversationCard.component-CiDSMTUO.js.map → conversationCard.component-BnwJO_zP.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DKDgsGci.js → datePicker.component-BTWiLugt.js} +7 -7
- package/dist/chunks/{datePicker.component-DKDgsGci.js.map → datePicker.component-BTWiLugt.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BvJzhMIq.js → datePicker.component-hLHLI87m.js} +2 -2
- package/dist/chunks/{datePicker.component-BvJzhMIq.js.map → datePicker.component-hLHLI87m.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-sGBMGLMB.js → dialog-trigger-CKEZLJZ6.js} +13 -13
- package/dist/chunks/{dialog-trigger-sGBMGLMB.js.map → dialog-trigger-CKEZLJZ6.js.map} +1 -1
- package/dist/chunks/{heading.component-DIST7ncC.js → heading.component-CVm2LGDL.js} +2 -2
- package/dist/chunks/{heading.component-DIST7ncC.js.map → heading.component-CVm2LGDL.js.map} +1 -1
- package/dist/chunks/{index-DLvqBeH6.js → index-B8d8Hi2Q.js} +35 -35
- package/dist/chunks/{index-DLvqBeH6.js.map → index-B8d8Hi2Q.js.map} +1 -1
- package/dist/chunks/{index-ByhnCBwf.js → index-BE2MBRYo.js} +4 -4
- package/dist/chunks/{index-ByhnCBwf.js.map → index-BE2MBRYo.js.map} +1 -1
- package/dist/chunks/{index-Dn2nvQ5m.js → index-BavQMU2I.js} +4 -4
- package/dist/chunks/{index-Dn2nvQ5m.js.map → index-BavQMU2I.js.map} +1 -1
- package/dist/chunks/{index-sWaESJRS.js → index-BsfW-qzE.js} +35 -35
- package/dist/chunks/{index-sWaESJRS.js.map → index-BsfW-qzE.js.map} +1 -1
- package/dist/chunks/{index-D79JhErY.js → index-CJ_SaUFt.js} +7 -7
- package/dist/chunks/{index-D79JhErY.js.map → index-CJ_SaUFt.js.map} +1 -1
- package/dist/chunks/{index-63NGUyr9.js → index-COcjj2r_.js} +4 -4
- package/dist/chunks/{index-63NGUyr9.js.map → index-COcjj2r_.js.map} +1 -1
- package/dist/chunks/{index-C3d8HKg_.js → index-CVMzOz4r.js} +7 -7
- package/dist/chunks/{index-C3d8HKg_.js.map → index-CVMzOz4r.js.map} +1 -1
- package/dist/chunks/{index-C1_01X--.js → index-Dw9PbX_m.js} +80 -80
- package/dist/chunks/{index-C1_01X--.js.map → index-Dw9PbX_m.js.map} +1 -1
- package/dist/chunks/{index-Bcp83GlU.js → index-X8K9tzgE.js} +10 -10
- package/dist/chunks/{index-Bcp83GlU.js.map → index-X8K9tzgE.js.map} +1 -1
- package/dist/chunks/{index-Kw3RO_3f.js → index-bYxdnAxK.js} +3 -3
- package/dist/chunks/{index-Kw3RO_3f.js.map → index-bYxdnAxK.js.map} +1 -1
- package/dist/chunks/{index-Cz4pncg8.js → index-xa8tmbbH.js} +25 -25
- package/dist/chunks/{index-Cz4pncg8.js.map → index-xa8tmbbH.js.map} +1 -1
- package/dist/chunks/{link.component-DYNc5XEj.js → link.component-B8MuH7tM.js} +2 -2
- package/dist/chunks/{link.component-DYNc5XEj.js.map → link.component-B8MuH7tM.js.map} +1 -1
- package/dist/chunks/{menu.component-DbVIiM3g.js → menu.component-BIQYdh3w.js} +22 -22
- package/dist/chunks/{menu.component-DbVIiM3g.js.map → menu.component-BIQYdh3w.js.map} +1 -1
- package/dist/chunks/{menu.component-Bi2JPazM.js → menu.component-CUgSsflu.js} +2 -2
- package/dist/chunks/{menu.component-Bi2JPazM.js.map → menu.component-CUgSsflu.js.map} +1 -1
- package/dist/chunks/{modal.types-CdZepugS.js → modal.types-3KGURq43.js} +5 -5
- package/dist/chunks/{modal.types-CdZepugS.js.map → modal.types-3KGURq43.js.map} +1 -1
- package/dist/chunks/{pinInput.types-CU3UyhyT.js → pinInput.types-DGq4AUsB.js} +2 -2
- package/dist/chunks/{pinInput.types-CU3UyhyT.js.map → pinInput.types-DGq4AUsB.js.map} +1 -1
- package/dist/chunks/{pinInput.types-Ov7NqPQG.js → pinInput.types-Dz0csZHn.js} +8 -8
- package/dist/chunks/{pinInput.types-Ov7NqPQG.js.map → pinInput.types-Dz0csZHn.js.map} +1 -1
- package/dist/chunks/{popover-Q1b5Ou9h.js → popover-BBhgGw0a.js} +12 -12
- package/dist/chunks/{popover-Q1b5Ou9h.js.map → popover-BBhgGw0a.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-_dExZRNY.js → popover-root-provider-CKQPoRvU.js} +8 -8
- package/dist/chunks/{popover-root-provider-_dExZRNY.js.map → popover-root-provider-CKQPoRvU.js.map} +1 -1
- package/dist/chunks/{popover.component-LH8cQ5xp.js → popover.component-D-UQ63DB.js} +15 -15
- package/dist/chunks/{popover.component-LH8cQ5xp.js.map → popover.component-D-UQ63DB.js.map} +1 -1
- package/dist/chunks/{popover.recipe-BwEAIvNr.js → popover.recipe-BVdiJdJk.js} +6 -6
- package/dist/chunks/{popover.recipe-BwEAIvNr.js.map → popover.recipe-BVdiJdJk.js.map} +1 -1
- package/dist/chunks/{radio.records-BEcLVP_S.js → radio.records-EtuVQX6z.js} +4 -4
- package/dist/chunks/{radio.records-BEcLVP_S.js.map → radio.records-EtuVQX6z.js.map} +1 -1
- package/dist/chunks/radioGroup.component-C07hSoK_.js +2 -0
- package/dist/chunks/{radioGroup.component-cFpOM0dT.js.map → radioGroup.component-C07hSoK_.js.map} +1 -1
- package/dist/chunks/radioGroup.component-YuqCXd9N.js +267 -0
- package/dist/chunks/{radioGroup.component-VgKW4-P2.js.map → radioGroup.component-YuqCXd9N.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CdawEWbl.js → ratingDots.component-BV7FvAtk.js} +2 -2
- package/dist/chunks/{ratingDots.component-CdawEWbl.js.map → ratingDots.component-BV7FvAtk.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CgBG_tvz.js → ratingDots.component-bRNtQP9O.js} +3 -3
- package/dist/chunks/{ratingDots.component-CgBG_tvz.js.map → ratingDots.component-bRNtQP9O.js.map} +1 -1
- package/dist/chunks/{render-strategy-Cr139kIz.js → render-strategy-DBmKAZIM.js} +2 -2
- package/dist/chunks/{render-strategy-Cr139kIz.js.map → render-strategy-DBmKAZIM.js.map} +1 -1
- package/dist/chunks/{select.component-BmFg6qwz.js → select.component-BA3X-v2U.js} +25 -25
- package/dist/chunks/{select.component-BmFg6qwz.js.map → select.component-BA3X-v2U.js.map} +1 -1
- package/dist/chunks/{select.component-C9Vj7Sk7.js → select.component-BsxkV8Vw.js} +2 -2
- package/dist/chunks/{select.component-C9Vj7Sk7.js.map → select.component-BsxkV8Vw.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BRToMbfY.js → sortableList.component-BEc4_tAM.js} +3 -3
- package/dist/chunks/{sortableList.component-BRToMbfY.js.map → sortableList.component-BEc4_tAM.js.map} +1 -1
- package/dist/chunks/{spinner.component-DCSsW51J.js → spinner.component-DNrNcGw9.js} +2 -2
- package/dist/chunks/{spinner.component-DCSsW51J.js.map → spinner.component-DNrNcGw9.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-b9eWaeJ6.js → styledAvatar.types-DgeupAct.js} +2 -2
- package/dist/chunks/{styledAvatar.types-b9eWaeJ6.js.map → styledAvatar.types-DgeupAct.js.map} +1 -1
- package/dist/chunks/{switch.component-QSVPRhDJ.js → switch.component-Cn4tMUnr.js} +2 -2
- package/dist/chunks/{switch.component-QSVPRhDJ.js.map → switch.component-Cn4tMUnr.js.map} +1 -1
- package/dist/chunks/{switch.component-B2vWRrP_.js → switch.component-c8nXep47.js} +9 -9
- package/dist/chunks/{switch.component-B2vWRrP_.js.map → switch.component-c8nXep47.js.map} +1 -1
- package/dist/chunks/{tabs.component-DlaP-qhJ.js → tabs.component-BuknlGMy.js} +41 -41
- package/dist/chunks/{tabs.component-DlaP-qhJ.js.map → tabs.component-BuknlGMy.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-C0LIdK0o.js → tagBlock.component-BWOzDOXu.js} +2 -2
- package/dist/chunks/{tagBlock.component-C0LIdK0o.js.map → tagBlock.component-BWOzDOXu.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DpcWXFLP.js → tagBlock.component-C9-GYeEN.js} +5 -5
- package/dist/chunks/{tagBlock.component-DpcWXFLP.js.map → tagBlock.component-C9-GYeEN.js.map} +1 -1
- package/dist/chunks/{text.component-D3E0SdX1.js → text.component-ByshUroO.js} +2 -2
- package/dist/chunks/{text.component-D3E0SdX1.js.map → text.component-ByshUroO.js.map} +1 -1
- package/dist/chunks/{textInput.component-BpCIE07n.js → textInput.component-kvKxz33p.js} +12 -12
- package/dist/chunks/{textInput.component-BpCIE07n.js.map → textInput.component-kvKxz33p.js.map} +1 -1
- package/dist/chunks/{textInput.component-BjQgcjCW.js → textInput.component-z9E8kUsZ.js} +2 -2
- package/dist/chunks/{textInput.component-BjQgcjCW.js.map → textInput.component-z9E8kUsZ.js.map} +1 -1
- package/dist/chunks/{textarea.component-BXtiF_l4.js → textarea.component-BFDGgi4k.js} +2 -2
- package/dist/chunks/{textarea.component-BXtiF_l4.js.map → textarea.component-BFDGgi4k.js.map} +1 -1
- package/dist/chunks/{textarea.component-B5AsA90v.js → textarea.component-oH0HkBbz.js} +6 -6
- package/dist/chunks/{textarea.component-B5AsA90v.js.map → textarea.component-oH0HkBbz.js.map} +1 -1
- package/dist/chunks/{theme.provider-DOj3vPkk.js → theme.provider-BrR7a4Qv.js} +3 -3
- package/dist/chunks/{theme.provider-DOj3vPkk.js.map → theme.provider-BrR7a4Qv.js.map} +1 -1
- package/dist/chunks/{theme.provider-B9PPowSI.js → theme.provider-_AjaCLru.js} +35 -25
- package/dist/chunks/{theme.provider-B9PPowSI.js.map → theme.provider-_AjaCLru.js.map} +1 -1
- package/dist/chunks/{timePicker.component-BFa1h4Gv.js → timePicker.component-Bkqufqi7.js} +3 -3
- package/dist/chunks/{timePicker.component-BFa1h4Gv.js.map → timePicker.component-Bkqufqi7.js.map} +1 -1
- package/dist/chunks/{timePicker.component-Bk5xtY7m.js → timePicker.component-C2XDU_7Q.js} +2 -2
- package/dist/chunks/{timePicker.component-Bk5xtY7m.js.map → timePicker.component-C2XDU_7Q.js.map} +1 -1
- package/dist/chunks/{timeRange.component-CWbreNV8.js → timeRange.component-Dh4kFTxD.js} +2 -2
- package/dist/chunks/{timeRange.component-CWbreNV8.js.map → timeRange.component-Dh4kFTxD.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DuKclNl6.js → timeRange.component-cT8BwcXk.js} +2 -2
- package/dist/chunks/{timeRange.component-DuKclNl6.js.map → timeRange.component-cT8BwcXk.js.map} +1 -1
- package/dist/chunks/{timestamp.component-BouqsJZM.js → timestamp.component-CA-gdN9e.js} +3 -3
- package/dist/chunks/{timestamp.component-BouqsJZM.js.map → timestamp.component-CA-gdN9e.js.map} +1 -1
- package/dist/chunks/{toaster.records-BTc-Lbzv.js → toaster.records-Bkt2-n5c.js} +2 -2
- package/dist/chunks/{toaster.records-BTc-Lbzv.js.map → toaster.records-Bkt2-n5c.js.map} +1 -1
- package/dist/chunks/{toaster.records-BSRUGTiS.js → toaster.records-oUlJ-9y-.js} +11 -12
- package/dist/chunks/{toaster.records-BSRUGTiS.js.map → toaster.records-oUlJ-9y-.js.map} +1 -1
- package/dist/chunks/{tooltip.component-DYBYGsfe.js → tooltip.component-B0iqN7WJ.js} +40 -40
- package/dist/chunks/{tooltip.component-DYBYGsfe.js.map → tooltip.component-B0iqN7WJ.js.map} +1 -1
- package/dist/chunks/{typography.records-DA6XZIsX.js → typography.records-BS1CFpJg.js} +2 -2
- package/dist/chunks/{typography.records-DA6XZIsX.js.map → typography.records-BS1CFpJg.js.map} +1 -1
- package/dist/chunks/{use-field-context-B8ygn96q.js → use-field-context-Bxg2bkx0.js} +2 -2
- package/dist/chunks/{use-field-context-B8ygn96q.js.map → use-field-context-Bxg2bkx0.js.map} +1 -1
- package/dist/chunks/{use-locale-context-zakBNK5b.js → use-locale-context-BnlMA8su.js} +58 -58
- package/dist/chunks/{use-locale-context-zakBNK5b.js.map → use-locale-context-BnlMA8su.js.map} +1 -1
- package/dist/chunks/withFormControl-DoOQ6oLs.js +2 -0
- package/dist/chunks/{withFormControl-YVXep-WE.js.map → withFormControl-DoOQ6oLs.js.map} +1 -1
- package/dist/chunks/withFormControl-YhSGmDSm.js +376 -0
- package/dist/chunks/withFormControl-YhSGmDSm.js.map +1 -0
- package/dist/chunks/{withTruncation-BNm_JUdt.js → withTruncation-C3gfaeh3.js} +2 -2
- package/dist/chunks/{withTruncation-BNm_JUdt.js.map → withTruncation-C3gfaeh3.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/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/Menu/index.cjs +1 -1
- package/dist/cjs/components/PinInput/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/Switch/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/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/Toast/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +115 -114
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +31 -31
- package/dist/esm/index.js +32 -32
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/chakra/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/hocs/withFormControl/withFormControl.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/checkbox.component-jKQDjGYQ.js +0 -2
- package/dist/chunks/checkboxGroup.component-DwICStpY.js +0 -51
- package/dist/chunks/checkboxGroup.component-v0mNVsPd.js +0 -2
- package/dist/chunks/radioGroup.component-VgKW4-P2.js +0 -266
- package/dist/chunks/radioGroup.component-cFpOM0dT.js +0 -2
- package/dist/chunks/withFormControl-Vf_flDYv.js +0 -375
- package/dist/chunks/withFormControl-Vf_flDYv.js.map +0 -1
- package/dist/chunks/withFormControl-YVXep-WE.js +0 -2
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { w as k } from "./withFormControl-Vf_flDYv.js";
|
|
3
|
-
import y, { forwardRef as p, useId as M } from "react";
|
|
4
|
-
import { C as V, a as B } from "./card.component-6TV04UQT.js";
|
|
5
|
-
import { m as F, c as Y, R as O, a as U } from "./radio.records-BEcLVP_S.js";
|
|
6
|
-
import { W as q } from "./text.component-D3E0SdX1.js";
|
|
7
|
-
import { c as D } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
8
|
-
import { d as g } from "./attr-sm10PXOd.js";
|
|
9
|
-
import { a as J } from "./empty-BU2EAux9.js";
|
|
10
|
-
import { c as K } from "./factory-gZxMesut.js";
|
|
11
|
-
import { u as Q } from "./use-recipe-B7BYguEn.js";
|
|
12
|
-
import { a as v, b as C, f as u, i as X, j as Z, k as z, n as oo } from "./use-locale-context-zakBNK5b.js";
|
|
13
|
-
import { U as m } from "./index-DLvqBeH6.js";
|
|
14
|
-
import { B as to } from "./buttonGroup.component-B_5ioQ76.js";
|
|
15
|
-
import { S as eo } from "./stack-B6Qs7bq9.js";
|
|
16
|
-
const [N, P] = v({
|
|
17
|
-
name: "RadioGroupContext",
|
|
18
|
-
hookName: "useRadioGroupContext",
|
|
19
|
-
providerName: "<RadioGroupProvider />"
|
|
20
|
-
}), [ro, ao] = v({
|
|
21
|
-
name: "RadioGroupItemContext",
|
|
22
|
-
hookName: "useRadioGroupItemContext",
|
|
23
|
-
providerName: "<RadioGroupItemProvider />"
|
|
24
|
-
}), [so, j] = v({
|
|
25
|
-
name: "RadioGroupItemPropsContext",
|
|
26
|
-
hookName: "useRadioGroupItemPropsContext",
|
|
27
|
-
providerName: "<RadioGroupItemPropsProvider />"
|
|
28
|
-
}), w = p((o, t) => {
|
|
29
|
-
const [r, a] = C()(o, ["value", "disabled", "invalid"]), s = P(), d = m(s.getItemProps(r), a), i = s.getItemState(r);
|
|
30
|
-
return /* @__PURE__ */ e.jsx(ro, { value: i, children: /* @__PURE__ */ e.jsx(so, { value: r, children: /* @__PURE__ */ e.jsx(u.label, { ...d, ref: t }) }) });
|
|
31
|
-
});
|
|
32
|
-
w.displayName = "RadioGroupItem";
|
|
33
|
-
const io = (o) => o.children(ao()), b = p((o, t) => {
|
|
34
|
-
const r = P(), a = j(), s = m(r.getItemControlProps(a), o);
|
|
35
|
-
return /* @__PURE__ */ e.jsx(u.div, { ...s, ref: t });
|
|
36
|
-
});
|
|
37
|
-
b.displayName = "RadioGroupItemControl";
|
|
38
|
-
const S = p((o, t) => {
|
|
39
|
-
const r = P(), a = j(), s = m(r.getItemHiddenInputProps(a), o);
|
|
40
|
-
return /* @__PURE__ */ e.jsx(u.input, { ...s, ref: t });
|
|
41
|
-
});
|
|
42
|
-
S.displayName = "RadioGroupItemHiddenInput";
|
|
43
|
-
const _ = p((o, t) => {
|
|
44
|
-
const r = P(), a = j(), s = m(r.getItemTextProps(a), o);
|
|
45
|
-
return /* @__PURE__ */ e.jsx(u.span, { ...s, ref: t });
|
|
46
|
-
});
|
|
47
|
-
_.displayName = "RadioGroupItemText";
|
|
48
|
-
const T = p((o, t) => {
|
|
49
|
-
const r = P(), a = m(r.getLabelProps(), o);
|
|
50
|
-
return /* @__PURE__ */ e.jsx(u.label, { ...a, ref: t });
|
|
51
|
-
});
|
|
52
|
-
T.displayName = "RadioGroupLabel";
|
|
53
|
-
const no = (o) => {
|
|
54
|
-
const t = M(), { getRootNode: r } = X(), { dir: a } = Z(), s = {
|
|
55
|
-
id: t,
|
|
56
|
-
dir: a,
|
|
57
|
-
getRootNode: r,
|
|
58
|
-
...o
|
|
59
|
-
}, d = z(F, s);
|
|
60
|
-
return Y(d, oo);
|
|
61
|
-
}, A = p((o, t) => {
|
|
62
|
-
const [r, a] = C()(o, [
|
|
63
|
-
"defaultValue",
|
|
64
|
-
"disabled",
|
|
65
|
-
"form",
|
|
66
|
-
"id",
|
|
67
|
-
"ids",
|
|
68
|
-
"name",
|
|
69
|
-
"onValueChange",
|
|
70
|
-
"orientation",
|
|
71
|
-
"readOnly",
|
|
72
|
-
"value"
|
|
73
|
-
]), s = no(r), d = m(s.getRootProps(), a);
|
|
74
|
-
return /* @__PURE__ */ e.jsx(N, { value: s, children: /* @__PURE__ */ e.jsx(u.div, { ...d, ref: t }) });
|
|
75
|
-
});
|
|
76
|
-
A.displayName = "RadioGroupRoot";
|
|
77
|
-
const $ = p((o, t) => {
|
|
78
|
-
const [{ value: r }, a] = C()(o, ["value"]), s = m(r.getRootProps(), a);
|
|
79
|
-
return /* @__PURE__ */ e.jsx(N, { value: r, children: /* @__PURE__ */ e.jsx(u.div, { ...s, ref: t }) });
|
|
80
|
-
});
|
|
81
|
-
$.displayName = "RadioGroupRootProvider";
|
|
82
|
-
const po = p(
|
|
83
|
-
function(t, r) {
|
|
84
|
-
const a = Q({ key: "radiomark", recipe: t.recipe }), [s, d] = a.splitVariantProps(t), { checked: i, disabled: c, unstyled: l, children: R, ...x } = d, G = l ? J : a(s), h = {
|
|
85
|
-
ref: r,
|
|
86
|
-
"data-checked": g(i),
|
|
87
|
-
"data-disabled": g(c),
|
|
88
|
-
...x,
|
|
89
|
-
css: [G, t.css]
|
|
90
|
-
};
|
|
91
|
-
return /* @__PURE__ */ e.jsx(K.span, { ...h, children: i && /* @__PURE__ */ e.jsx("span", { className: "dot" }) });
|
|
92
|
-
}
|
|
93
|
-
), {
|
|
94
|
-
withProvider: W,
|
|
95
|
-
withContext: f,
|
|
96
|
-
useStyles: co
|
|
97
|
-
} = D({ key: "radioGroup" });
|
|
98
|
-
W($, "root", { forwardAsChild: !0 });
|
|
99
|
-
const uo = W(
|
|
100
|
-
A,
|
|
101
|
-
"root",
|
|
102
|
-
{ forwardAsChild: !0 }
|
|
103
|
-
);
|
|
104
|
-
f(T, "label", { forwardAsChild: !0 });
|
|
105
|
-
const mo = f(
|
|
106
|
-
w,
|
|
107
|
-
"item",
|
|
108
|
-
{ forwardAsChild: !0 }
|
|
109
|
-
), lo = f(_, "itemText", { forwardAsChild: !0 });
|
|
110
|
-
f(b, "itemControl", { forwardAsChild: !0 });
|
|
111
|
-
const Ro = p(function(t, r) {
|
|
112
|
-
const a = co();
|
|
113
|
-
return /* @__PURE__ */ e.jsx(io, { children: (s) => /* @__PURE__ */ e.jsx(b, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
114
|
-
po,
|
|
115
|
-
{
|
|
116
|
-
ref: r,
|
|
117
|
-
unstyled: !0,
|
|
118
|
-
...t,
|
|
119
|
-
checked: s.checked,
|
|
120
|
-
disabled: s.disabled,
|
|
121
|
-
css: [a.itemControl, t.css]
|
|
122
|
-
}
|
|
123
|
-
) }) });
|
|
124
|
-
}), xo = S, Go = k(
|
|
125
|
-
({
|
|
126
|
-
children: o,
|
|
127
|
-
checked: t = !1,
|
|
128
|
-
disabled: r = !1,
|
|
129
|
-
invalid: a = !1,
|
|
130
|
-
onContrast: s = !1,
|
|
131
|
-
radioRef: d,
|
|
132
|
-
size: i = "md",
|
|
133
|
-
withCard: c = !1,
|
|
134
|
-
...l
|
|
135
|
-
}) => {
|
|
136
|
-
const R = c ? (x) => {
|
|
137
|
-
const G = (O[i] + U[i] + B[i]) * 4;
|
|
138
|
-
return /* @__PURE__ */ e.jsx(
|
|
139
|
-
V,
|
|
140
|
-
{
|
|
141
|
-
className: "Radio__Card",
|
|
142
|
-
"data-testid": "kibble-radio-card",
|
|
143
|
-
...!r && {
|
|
144
|
-
interactive: !0,
|
|
145
|
-
invalid: a,
|
|
146
|
-
active: !!t
|
|
147
|
-
},
|
|
148
|
-
onContrast: s,
|
|
149
|
-
size: i,
|
|
150
|
-
fullWidth: !0,
|
|
151
|
-
display: "flex",
|
|
152
|
-
...typeof o == "string" && { alignItems: "center" },
|
|
153
|
-
width: "inherit",
|
|
154
|
-
pr: `${G}px`,
|
|
155
|
-
children: x.children
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
} : y.Fragment;
|
|
159
|
-
return /* @__PURE__ */ e.jsx(
|
|
160
|
-
mo,
|
|
161
|
-
{
|
|
162
|
-
className: "Radio",
|
|
163
|
-
"data-testid": "kibble-radio",
|
|
164
|
-
invalid: a,
|
|
165
|
-
disabled: r,
|
|
166
|
-
ref: d,
|
|
167
|
-
...l,
|
|
168
|
-
children: /* @__PURE__ */ e.jsxs(R, { children: [
|
|
169
|
-
/* @__PURE__ */ e.jsx(
|
|
170
|
-
xo,
|
|
171
|
-
{
|
|
172
|
-
className: "Radio__Input",
|
|
173
|
-
"data-testid": "kibble-radio-input"
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ e.jsx(
|
|
177
|
-
Ro,
|
|
178
|
-
{
|
|
179
|
-
className: "Radio__Indicator",
|
|
180
|
-
"data-testid": "kibble-radio-indicator"
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
o && /* @__PURE__ */ e.jsx(
|
|
184
|
-
lo,
|
|
185
|
-
{
|
|
186
|
-
className: "Radio__Text",
|
|
187
|
-
"data-testid": "kibble-radio-label",
|
|
188
|
-
...c && typeof o != "string" && { mt: "-3px" },
|
|
189
|
-
children: typeof o == "string" ? /* @__PURE__ */ e.jsx(q, { size: i, children: o }) : o
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
] })
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
), L = y.forwardRef(
|
|
197
|
-
(o, t) => /* @__PURE__ */ e.jsx(Go, { radioRef: t, ...o })
|
|
198
|
-
);
|
|
199
|
-
L.displayName = "Radio";
|
|
200
|
-
const E = ({
|
|
201
|
-
radios: o,
|
|
202
|
-
defaultValue: t,
|
|
203
|
-
direction: r = "column",
|
|
204
|
-
disabled: a,
|
|
205
|
-
invalid: s,
|
|
206
|
-
onContrast: d,
|
|
207
|
-
onChange: i,
|
|
208
|
-
size: c = "md",
|
|
209
|
-
radioType: l = "default",
|
|
210
|
-
value: R,
|
|
211
|
-
gap: x = 2,
|
|
212
|
-
...G
|
|
213
|
-
}) => {
|
|
214
|
-
const h = d ? "onContrast" : "default";
|
|
215
|
-
return /* @__PURE__ */ e.jsxs(
|
|
216
|
-
uo,
|
|
217
|
-
{
|
|
218
|
-
className: "RadioGroup",
|
|
219
|
-
"data-testid": "kibble-radio-group",
|
|
220
|
-
disabled: a,
|
|
221
|
-
defaultValue: t,
|
|
222
|
-
value: R,
|
|
223
|
-
onValueChange: ({ value: n }) => i?.(n),
|
|
224
|
-
size: c,
|
|
225
|
-
variant: h,
|
|
226
|
-
...G,
|
|
227
|
-
children: [
|
|
228
|
-
l === "default" && /* @__PURE__ */ e.jsx(eo, { gap: x, direction: r, children: o.map((n, I) => /* @__PURE__ */ e.jsx(
|
|
229
|
-
L,
|
|
230
|
-
{
|
|
231
|
-
invalid: s,
|
|
232
|
-
disabled: a,
|
|
233
|
-
checked: t === n.value || R === n.value,
|
|
234
|
-
size: c,
|
|
235
|
-
...n
|
|
236
|
-
},
|
|
237
|
-
`radio-${I}`
|
|
238
|
-
)) }),
|
|
239
|
-
l === "buttons" && /* @__PURE__ */ e.jsx(
|
|
240
|
-
to,
|
|
241
|
-
{
|
|
242
|
-
onContrast: d,
|
|
243
|
-
variant: "secondarySubtle",
|
|
244
|
-
size: c,
|
|
245
|
-
buttons: o.map((n, I) => {
|
|
246
|
-
const H = t === n.value || R === n.value;
|
|
247
|
-
return {
|
|
248
|
-
key: `button-radio-${I}`,
|
|
249
|
-
children: n.children,
|
|
250
|
-
active: H,
|
|
251
|
-
disabled: a,
|
|
252
|
-
onClick: () => i?.(n.value)
|
|
253
|
-
};
|
|
254
|
-
})
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
);
|
|
260
|
-
};
|
|
261
|
-
E.displayName = "CheckboxGroup";
|
|
262
|
-
const To = k(E);
|
|
263
|
-
export {
|
|
264
|
-
To as W
|
|
265
|
-
};
|
|
266
|
-
//# sourceMappingURL=radioGroup.component-VgKW4-P2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),E=require("./withFormControl-YVXep-WE.js"),u=require("react"),g=require("./card.component-nehAyK91.js"),P=require("./radio.records-CnQniSEw.js"),W=require("./text.component-Dcx3RoTp.js"),F=require("./create-slot-recipe-context-D-pJ8fgs.js"),k=require("./attr-BMs6szZx.js"),H=require("./empty-B5_AO6Pg.js"),V=require("./factory-CkTX_WOU.js"),Y=require("./use-recipe-N0abcau6.js"),i=require("./use-locale-context-BdqHZ8L8.js"),m=require("./index-CZ42b9rT.js"),B=require("./buttonGroup.component-BLjEEBle.js"),D=require("./stack-CtSNpuJq.js"),O=e=>e&&e.__esModule?e:{default:e},b=O(u),[y,G]=i.createContext({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),[J,K]=i.createContext({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[Q,I]=i.createContext({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),N=u.forwardRef((e,o)=>{const[r,s]=i.createSplitProps()(e,["value","disabled","invalid"]),a=G(),d=m.mergeProps(a.getItemProps(r),s),n=a.getItemState(r);return t.jsxRuntimeExports.jsx(J,{value:n,children:t.jsxRuntimeExports.jsx(Q,{value:r,children:t.jsxRuntimeExports.jsx(i.ark.label,{...d,ref:o})})})});N.displayName="RadioGroupItem";const U=e=>e.children(K()),v=u.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemControlProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.div,{...a,ref:o})});v.displayName="RadioGroupItemControl";const w=u.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemHiddenInputProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.input,{...a,ref:o})});w.displayName="RadioGroupItemHiddenInput";const _=u.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemTextProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.span,{...a,ref:o})});_.displayName="RadioGroupItemText";const q=u.forwardRef((e,o)=>{const r=G(),s=m.mergeProps(r.getLabelProps(),e);return t.jsxRuntimeExports.jsx(i.ark.label,{...s,ref:o})});q.displayName="RadioGroupLabel";const X=e=>{const o=u.useId(),{getRootNode:r}=i.useEnvironmentContext(),{dir:s}=i.useLocaleContext(),a={id:o,dir:s,getRootNode:r,...e},d=i.useMachine(P.machine,a);return P.connect(d,i.normalizeProps)},S=u.forwardRef((e,o)=>{const[r,s]=i.createSplitProps()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),a=X(r),d=m.mergeProps(a.getRootProps(),s);return t.jsxRuntimeExports.jsx(y,{value:a,children:t.jsxRuntimeExports.jsx(i.ark.div,{...d,ref:o})})});S.displayName="RadioGroupRoot";const T=u.forwardRef((e,o)=>{const[{value:r},s]=i.createSplitProps()(e,["value"]),a=m.mergeProps(r.getRootProps(),s);return t.jsxRuntimeExports.jsx(y,{value:r,children:t.jsxRuntimeExports.jsx(i.ark.div,{...a,ref:o})})});T.displayName="RadioGroupRootProvider";const Z=u.forwardRef(function(o,r){const s=Y.useRecipe({key:"radiomark",recipe:o.recipe}),[a,d]=s.splitVariantProps(o),{checked:n,disabled:c,unstyled:l,children:x,...R}=d,j=l?H.EMPTY_STYLES:s(a),h={ref:r,"data-checked":k.dataAttr(n),"data-disabled":k.dataAttr(c),...R,css:[j,o.css]};return t.jsxRuntimeExports.jsx(V.chakra.span,{...h,children:n&&t.jsxRuntimeExports.jsx("span",{className:"dot"})})}),{withProvider:A,withContext:f,useStyles:z}=F.createSlotRecipeContext({key:"radioGroup"});A(T,"root",{forwardAsChild:!0});const ee=A(S,"root",{forwardAsChild:!0});f(q,"label",{forwardAsChild:!0});const oe=f(N,"item",{forwardAsChild:!0}),te=f(_,"itemText",{forwardAsChild:!0});f(v,"itemControl",{forwardAsChild:!0});const re=u.forwardRef(function(o,r){const s=z();return t.jsxRuntimeExports.jsx(U,{children:a=>t.jsxRuntimeExports.jsx(v,{asChild:!0,children:t.jsxRuntimeExports.jsx(Z,{ref:r,unstyled:!0,...o,checked:a.checked,disabled:a.disabled,css:[s.itemControl,o.css]})})})}),se=w,ae=E.withFormControl(({children:e,checked:o=!1,disabled:r=!1,invalid:s=!1,onContrast:a=!1,radioRef:d,size:n="md",withCard:c=!1,...l})=>{const x=c?R=>{const j=(P.RadioSizeMap[n]+P.RadioTextSpacing[n]+g.CardPaddingMap[n])*4;return t.jsxRuntimeExports.jsx(g.Card,{className:"Radio__Card","data-testid":"kibble-radio-card",...!r&&{interactive:!0,invalid:s,active:!!o},onContrast:a,size:n,fullWidth:!0,display:"flex",...typeof e=="string"&&{alignItems:"center"},width:"inherit",pr:`${j}px`,children:R.children})}:b.default.Fragment;return t.jsxRuntimeExports.jsx(oe,{className:"Radio","data-testid":"kibble-radio",invalid:s,disabled:r,ref:d,...l,children:t.jsxRuntimeExports.jsxs(x,{children:[t.jsxRuntimeExports.jsx(se,{className:"Radio__Input","data-testid":"kibble-radio-input"}),t.jsxRuntimeExports.jsx(re,{className:"Radio__Indicator","data-testid":"kibble-radio-indicator"}),e&&t.jsxRuntimeExports.jsx(te,{className:"Radio__Text","data-testid":"kibble-radio-label",...c&&typeof e!="string"&&{mt:"-3px"},children:typeof e=="string"?t.jsxRuntimeExports.jsx(W.WrappedText,{size:n,children:e}):e})]})})}),$=b.default.forwardRef((e,o)=>t.jsxRuntimeExports.jsx(ae,{radioRef:o,...e}));$.displayName="Radio";const L=({radios:e,defaultValue:o,direction:r="column",disabled:s,invalid:a,onContrast:d,onChange:n,size:c="md",radioType:l="default",value:x,gap:R=2,...j})=>{const h=d?"onContrast":"default";return t.jsxRuntimeExports.jsxs(ee,{className:"RadioGroup","data-testid":"kibble-radio-group",disabled:s,defaultValue:o,value:x,onValueChange:({value:p})=>n?.(p),size:c,variant:h,...j,children:[l==="default"&&t.jsxRuntimeExports.jsx(D.Stack,{gap:R,direction:r,children:e.map((p,C)=>t.jsxRuntimeExports.jsx($,{invalid:a,disabled:s,checked:o===p.value||x===p.value,size:c,...p},`radio-${C}`))}),l==="buttons"&&t.jsxRuntimeExports.jsx(B.ButtonGroup,{onContrast:d,variant:"secondarySubtle",size:c,buttons:e.map((p,C)=>{const M=o===p.value||x===p.value;return{key:`button-radio-${C}`,children:p.children,active:M,disabled:s,onClick:()=>n?.(p.value)}})})]})};L.displayName="CheckboxGroup";const ie=E.withFormControl(L);exports.WrappedRadioGroup=ie;
|
|
2
|
-
//# sourceMappingURL=radioGroup.component-cFpOM0dT.js.map
|
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { W as K } from "./text.component-D3E0SdX1.js";
|
|
3
|
-
import { p as g, f as Q } from "./typography.records-DA6XZIsX.js";
|
|
4
|
-
import { I as V } from "./icon.component-BmcWaysM.js";
|
|
5
|
-
import { F as k } from "./flex-C2d2LH-K.js";
|
|
6
|
-
import * as X from "react";
|
|
7
|
-
import { forwardRef as P, useLayoutEffect as Y, useEffect as ee, useState as q, useId as te, useRef as re, useMemo as m, Children as se } from "react";
|
|
8
|
-
import { c as L, b as M } from "./factory-gZxMesut.js";
|
|
9
|
-
import { c as oe } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
10
|
-
import { c as ae } from "./create-recipe-context-BcvaE0iS.js";
|
|
11
|
-
import { u as v, F as le } from "./use-field-context-B8ygn96q.js";
|
|
12
|
-
import { f as I, a as ne, b as ie, h as de } from "./use-locale-context-zakBNK5b.js";
|
|
13
|
-
import { U as j, _ as ce, e as u, u as fe } from "./index-DLvqBeH6.js";
|
|
14
|
-
const B = P((l, t) => {
|
|
15
|
-
const r = v(), e = j(r.getErrorTextProps(), l);
|
|
16
|
-
return r?.invalid ? /* @__PURE__ */ o.jsx(I.span, { ...e, ref: t }) : null;
|
|
17
|
-
});
|
|
18
|
-
B.displayName = "FieldErrorText";
|
|
19
|
-
const O = P((l, t) => {
|
|
20
|
-
const r = v(), e = j(r?.getHelperTextProps(), l);
|
|
21
|
-
return /* @__PURE__ */ o.jsx(I.span, { ...e, ref: t });
|
|
22
|
-
});
|
|
23
|
-
O.displayName = "FieldHelperText";
|
|
24
|
-
const W = P((l, t) => {
|
|
25
|
-
const r = v(), e = j(r?.getLabelProps(), l);
|
|
26
|
-
return /* @__PURE__ */ o.jsx(I.label, { ...e, ref: t });
|
|
27
|
-
});
|
|
28
|
-
W.displayName = "FieldLabel";
|
|
29
|
-
const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
30
|
-
name: "FieldsetContext",
|
|
31
|
-
hookName: "useFieldsetContext",
|
|
32
|
-
providerName: "<FieldsetProvider />",
|
|
33
|
-
strict: !1
|
|
34
|
-
}), pe = (l = {}) => {
|
|
35
|
-
const t = ue(), { ids: r, disabled: e = !!t?.disabled, invalid: s = !1, readOnly: a = !1, required: n = !1 } = l, [i, F] = q(!1), [T, N] = q(!1), d = l.id ?? te(), f = re(null), C = r?.control ?? `field::${d}`, c = r?.errorText ?? `field::${d}::error-text`, p = r?.helperText ?? `field::${d}::helper-text`, h = r?.label ?? `field::${d}::label`;
|
|
36
|
-
me(() => {
|
|
37
|
-
const b = f.current;
|
|
38
|
-
if (!b) return;
|
|
39
|
-
const S = ce(b), A = S.document, H = () => {
|
|
40
|
-
F(!!A.getElementById(c)), N(!!A.getElementById(p));
|
|
41
|
-
};
|
|
42
|
-
H();
|
|
43
|
-
const $ = new S.MutationObserver(H);
|
|
44
|
-
return $.observe(b, { childList: !0, subtree: !0 }), () => $.disconnect();
|
|
45
|
-
}, [c, p]);
|
|
46
|
-
const y = m(() => {
|
|
47
|
-
const b = [];
|
|
48
|
-
return i && s && b.push(c), T && b.push(p), b.join(" ") || void 0;
|
|
49
|
-
}, [s, c, p, i, T]), w = m(
|
|
50
|
-
() => () => ({
|
|
51
|
-
...g.root.attrs,
|
|
52
|
-
id: C,
|
|
53
|
-
ref: f,
|
|
54
|
-
role: "group",
|
|
55
|
-
"data-disabled": u(e),
|
|
56
|
-
"data-invalid": u(s),
|
|
57
|
-
"data-readonly": u(a)
|
|
58
|
-
}),
|
|
59
|
-
[e, s, a, C]
|
|
60
|
-
), R = m(
|
|
61
|
-
() => () => ({
|
|
62
|
-
...g.label.attrs,
|
|
63
|
-
id: h,
|
|
64
|
-
"data-disabled": u(e),
|
|
65
|
-
"data-invalid": u(s),
|
|
66
|
-
"data-readonly": u(a),
|
|
67
|
-
htmlFor: d
|
|
68
|
-
}),
|
|
69
|
-
[e, s, a, d, h]
|
|
70
|
-
), x = m(
|
|
71
|
-
() => () => ({
|
|
72
|
-
"aria-describedby": y,
|
|
73
|
-
"aria-invalid": fe(s),
|
|
74
|
-
"data-invalid": u(s),
|
|
75
|
-
"data-required": u(n),
|
|
76
|
-
"data-readonly": u(a),
|
|
77
|
-
id: d,
|
|
78
|
-
required: n,
|
|
79
|
-
disabled: e,
|
|
80
|
-
readOnly: a
|
|
81
|
-
}),
|
|
82
|
-
[y, s, n, a, d, e]
|
|
83
|
-
), E = m(
|
|
84
|
-
() => () => ({
|
|
85
|
-
...x(),
|
|
86
|
-
...g.input.attrs
|
|
87
|
-
}),
|
|
88
|
-
[x]
|
|
89
|
-
), D = m(
|
|
90
|
-
() => () => ({
|
|
91
|
-
...x(),
|
|
92
|
-
...g.textarea.attrs
|
|
93
|
-
}),
|
|
94
|
-
[x]
|
|
95
|
-
), Z = m(
|
|
96
|
-
() => () => ({
|
|
97
|
-
...x(),
|
|
98
|
-
...g.select.attrs
|
|
99
|
-
}),
|
|
100
|
-
[x]
|
|
101
|
-
), U = m(
|
|
102
|
-
() => () => ({
|
|
103
|
-
id: p,
|
|
104
|
-
...g.helperText.attrs,
|
|
105
|
-
"data-disabled": u(e)
|
|
106
|
-
}),
|
|
107
|
-
[e, p]
|
|
108
|
-
), G = m(
|
|
109
|
-
() => () => ({
|
|
110
|
-
id: c,
|
|
111
|
-
...g.errorText.attrs,
|
|
112
|
-
"aria-live": "polite"
|
|
113
|
-
}),
|
|
114
|
-
[c]
|
|
115
|
-
), J = m(
|
|
116
|
-
() => () => ({
|
|
117
|
-
"aria-hidden": !0,
|
|
118
|
-
...g.requiredIndicator.attrs
|
|
119
|
-
}),
|
|
120
|
-
[]
|
|
121
|
-
);
|
|
122
|
-
return {
|
|
123
|
-
ariaDescribedby: y,
|
|
124
|
-
ids: {
|
|
125
|
-
root: C,
|
|
126
|
-
control: d,
|
|
127
|
-
label: h,
|
|
128
|
-
errorText: c,
|
|
129
|
-
helperText: p
|
|
130
|
-
},
|
|
131
|
-
refs: {
|
|
132
|
-
rootRef: f
|
|
133
|
-
},
|
|
134
|
-
disabled: e,
|
|
135
|
-
invalid: s,
|
|
136
|
-
readOnly: a,
|
|
137
|
-
required: n,
|
|
138
|
-
getLabelProps: R,
|
|
139
|
-
getRootProps: w,
|
|
140
|
-
getInputProps: E,
|
|
141
|
-
getTextareaProps: D,
|
|
142
|
-
getSelectProps: Z,
|
|
143
|
-
getHelperTextProps: U,
|
|
144
|
-
getErrorTextProps: G,
|
|
145
|
-
getRequiredIndicatorProps: J
|
|
146
|
-
};
|
|
147
|
-
}, z = P((l, t) => {
|
|
148
|
-
const [r, e] = ie()(l, [
|
|
149
|
-
"id",
|
|
150
|
-
"ids",
|
|
151
|
-
"disabled",
|
|
152
|
-
"invalid",
|
|
153
|
-
"readOnly",
|
|
154
|
-
"required"
|
|
155
|
-
]), s = pe(r), a = j(s.getRootProps(), e);
|
|
156
|
-
return /* @__PURE__ */ o.jsx(le, { value: s, children: /* @__PURE__ */ o.jsx(I.div, { ...a, ref: de(t, s.refs.rootRef) }) });
|
|
157
|
-
});
|
|
158
|
-
z.displayName = "FieldRoot";
|
|
159
|
-
const { useRecipeResult: xe } = ae({ key: "icon" }), he = X.forwardRef(
|
|
160
|
-
function(t, r) {
|
|
161
|
-
const {
|
|
162
|
-
styles: e,
|
|
163
|
-
className: s,
|
|
164
|
-
props: a
|
|
165
|
-
} = xe({ asChild: !t.as, ...t });
|
|
166
|
-
return /* @__PURE__ */ o.jsx(
|
|
167
|
-
L.svg,
|
|
168
|
-
{
|
|
169
|
-
ref: r,
|
|
170
|
-
focusable: !1,
|
|
171
|
-
"aria-hidden": "true",
|
|
172
|
-
...a,
|
|
173
|
-
css: [e, t.css],
|
|
174
|
-
className: M(s, t.className)
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
function ge(l) {
|
|
180
|
-
const {
|
|
181
|
-
viewBox: t = "0 0 24 24",
|
|
182
|
-
d: r,
|
|
183
|
-
displayName: e,
|
|
184
|
-
defaultProps: s = {}
|
|
185
|
-
} = l, a = se.toArray(l.path), n = P((i, F) => /* @__PURE__ */ o.jsx(
|
|
186
|
-
he,
|
|
187
|
-
{
|
|
188
|
-
ref: F,
|
|
189
|
-
asChild: !1,
|
|
190
|
-
viewBox: t,
|
|
191
|
-
...s,
|
|
192
|
-
...i,
|
|
193
|
-
children: a.length ? a : /* @__PURE__ */ o.jsx("path", { fill: "currentColor", d: r })
|
|
194
|
-
}
|
|
195
|
-
));
|
|
196
|
-
return n.displayName = e, n;
|
|
197
|
-
}
|
|
198
|
-
const {
|
|
199
|
-
withProvider: Fe,
|
|
200
|
-
withContext: _,
|
|
201
|
-
useStyles: be,
|
|
202
|
-
useClassNames: Te
|
|
203
|
-
} = oe({ key: "field" }), Ce = Fe(
|
|
204
|
-
z,
|
|
205
|
-
"root",
|
|
206
|
-
{ forwardAsChild: !0 }
|
|
207
|
-
), Pe = _(
|
|
208
|
-
W,
|
|
209
|
-
"label",
|
|
210
|
-
{ forwardAsChild: !0 }
|
|
211
|
-
), ye = _(O, "helperText", { forwardAsChild: !0 }), Ne = _(
|
|
212
|
-
B,
|
|
213
|
-
"errorText",
|
|
214
|
-
{ forwardAsChild: !0 }
|
|
215
|
-
);
|
|
216
|
-
ge({
|
|
217
|
-
d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"
|
|
218
|
-
});
|
|
219
|
-
const ve = P(function(t, r) {
|
|
220
|
-
const { fallback: e, children: s = "*", ...a } = t, n = v(), i = Te(), F = be();
|
|
221
|
-
return n?.required ? /* @__PURE__ */ o.jsx(
|
|
222
|
-
L.span,
|
|
223
|
-
{
|
|
224
|
-
ref: r,
|
|
225
|
-
"aria-hidden": "true",
|
|
226
|
-
...a,
|
|
227
|
-
className: M(i.requiredIndicator, t.className),
|
|
228
|
-
css: [F.requiredIndicator, t.css],
|
|
229
|
-
children: s
|
|
230
|
-
}
|
|
231
|
-
) : e;
|
|
232
|
-
}), Ie = {
|
|
233
|
-
sm: 10,
|
|
234
|
-
md: 12,
|
|
235
|
-
lg: 14
|
|
236
|
-
}, Be = (l) => {
|
|
237
|
-
const t = ({
|
|
238
|
-
disabled: r = !1,
|
|
239
|
-
errorText: e = "Field is invalid",
|
|
240
|
-
formControlStyle: s,
|
|
241
|
-
helperText: a,
|
|
242
|
-
inlineField: n = !1,
|
|
243
|
-
invalid: i = !1,
|
|
244
|
-
invalidIconColor: F = "warning",
|
|
245
|
-
label: T,
|
|
246
|
-
labelPosition: N = "start",
|
|
247
|
-
labelStyle: d,
|
|
248
|
-
onContrast: f = !1,
|
|
249
|
-
readOnly: C = !1,
|
|
250
|
-
required: c = !1,
|
|
251
|
-
showOptionalElement: p = !1,
|
|
252
|
-
size: h = "md",
|
|
253
|
-
useInvalidIcon: y = !1,
|
|
254
|
-
useInvalidText: w = !0,
|
|
255
|
-
...R
|
|
256
|
-
}) => {
|
|
257
|
-
const x = /* @__PURE__ */ o.jsxs(
|
|
258
|
-
Pe,
|
|
259
|
-
{
|
|
260
|
-
className: "FormControl__Label",
|
|
261
|
-
color: f ? "text.contrast" : "text",
|
|
262
|
-
fontSize: Q[h],
|
|
263
|
-
...d,
|
|
264
|
-
onClick: (E) => {
|
|
265
|
-
E.stopPropagation();
|
|
266
|
-
},
|
|
267
|
-
children: [
|
|
268
|
-
T,
|
|
269
|
-
/* @__PURE__ */ o.jsx(
|
|
270
|
-
ve,
|
|
271
|
-
{
|
|
272
|
-
className: "FormControl__RequiredIndicator",
|
|
273
|
-
color: f ? "text.danger.contrast" : "text.danger",
|
|
274
|
-
...!c && {
|
|
275
|
-
fallback: p ? /* @__PURE__ */ o.jsxs(
|
|
276
|
-
K,
|
|
277
|
-
{
|
|
278
|
-
variant: f ? "subtleOnContrast" : "subtle",
|
|
279
|
-
fontSize: Ie[h],
|
|
280
|
-
children: [
|
|
281
|
-
" ",
|
|
282
|
-
"(Optional)"
|
|
283
|
-
]
|
|
284
|
-
}
|
|
285
|
-
) : /* @__PURE__ */ o.jsx(o.Fragment, {})
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
)
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
);
|
|
292
|
-
return /* @__PURE__ */ o.jsxs(
|
|
293
|
-
Ce,
|
|
294
|
-
{
|
|
295
|
-
className: "FormControl group",
|
|
296
|
-
disabled: r,
|
|
297
|
-
invalid: i,
|
|
298
|
-
readOnly: C,
|
|
299
|
-
required: c,
|
|
300
|
-
width: "auto",
|
|
301
|
-
...s,
|
|
302
|
-
children: [
|
|
303
|
-
/* @__PURE__ */ o.jsxs(
|
|
304
|
-
k,
|
|
305
|
-
{
|
|
306
|
-
className: "FormControl__Container",
|
|
307
|
-
flexDirection: n ? "row" : "column",
|
|
308
|
-
w: n ? "max-content" : "100%",
|
|
309
|
-
gap: 2,
|
|
310
|
-
children: [
|
|
311
|
-
T && N === "start" && x,
|
|
312
|
-
/* @__PURE__ */ o.jsxs(
|
|
313
|
-
k,
|
|
314
|
-
{
|
|
315
|
-
className: "FormControl__Content",
|
|
316
|
-
alignItems: "center",
|
|
317
|
-
gap: 2,
|
|
318
|
-
w: n ? "max-content" : "100%",
|
|
319
|
-
children: [
|
|
320
|
-
/* @__PURE__ */ o.jsx(
|
|
321
|
-
l,
|
|
322
|
-
{
|
|
323
|
-
disabled: r,
|
|
324
|
-
invalid: i,
|
|
325
|
-
onContrast: f,
|
|
326
|
-
readOnly: C,
|
|
327
|
-
required: c,
|
|
328
|
-
size: h,
|
|
329
|
-
...R
|
|
330
|
-
}
|
|
331
|
-
),
|
|
332
|
-
y && i && /* @__PURE__ */ o.jsx(
|
|
333
|
-
V,
|
|
334
|
-
{
|
|
335
|
-
className: "FormControl__InvalidIcon",
|
|
336
|
-
name: "warningSign",
|
|
337
|
-
variant: F,
|
|
338
|
-
size: h
|
|
339
|
-
}
|
|
340
|
-
)
|
|
341
|
-
]
|
|
342
|
-
}
|
|
343
|
-
),
|
|
344
|
-
T && N === "end" && x
|
|
345
|
-
]
|
|
346
|
-
}
|
|
347
|
-
),
|
|
348
|
-
w && i && /* @__PURE__ */ o.jsx(
|
|
349
|
-
Ne,
|
|
350
|
-
{
|
|
351
|
-
className: "FormControl__ErrorText",
|
|
352
|
-
fontSize: "xs",
|
|
353
|
-
color: f ? "text.danger.contrast" : "text.danger",
|
|
354
|
-
children: e
|
|
355
|
-
}
|
|
356
|
-
),
|
|
357
|
-
a && /* @__PURE__ */ o.jsx(
|
|
358
|
-
ye,
|
|
359
|
-
{
|
|
360
|
-
className: "FormControl__HelperText",
|
|
361
|
-
fontSize: "xs",
|
|
362
|
-
color: f ? "text.subtle.contrast" : "text.subtle",
|
|
363
|
-
children: a
|
|
364
|
-
}
|
|
365
|
-
)
|
|
366
|
-
]
|
|
367
|
-
}
|
|
368
|
-
);
|
|
369
|
-
};
|
|
370
|
-
return t.displayName = `withFormControl(${l.displayName || l.name}`, t;
|
|
371
|
-
};
|
|
372
|
-
export {
|
|
373
|
-
Be as w
|
|
374
|
-
};
|
|
375
|
-
//# sourceMappingURL=withFormControl-Vf_flDYv.js.map
|