@commercetools/nimbus 0.0.0-canary-20251013071647 → 0.0.0-canary-20251014065943
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/accordion.d.ts +16 -49
- package/dist/alert.d.ts +22 -60
- package/dist/avatar.d.ts +19 -33
- package/dist/badge.d.ts +9 -61
- package/dist/box.d.ts +2 -2
- package/dist/button.d.ts +12 -9
- package/dist/calendar.d.ts +21 -9
- package/dist/card.d.ts +21 -83
- package/dist/checkbox.d.ts +14 -43
- package/dist/chunks/{Button-DbDspzBf.es.js → Button-Dx3xzN8n.es.js} +2 -2
- package/dist/chunks/{Button-DbDspzBf.es.js.map → Button-Dx3xzN8n.es.js.map} +1 -1
- package/dist/chunks/{DateField-BnqI8eDK.es.js → DateField-DZwn3cIj.es.js} +7 -7
- package/dist/chunks/{DateField-BnqI8eDK.es.js.map → DateField-DZwn3cIj.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-Df88_VwG.es.js → DatePicker-B2Nf_0Sq.es.js} +7 -7
- package/dist/chunks/{DatePicker-Df88_VwG.es.js.map → DatePicker-B2Nf_0Sq.es.js.map} +1 -1
- package/dist/chunks/{Dialog-FtshtbuD.es.js → Dialog-Qpq4hk89.es.js} +16 -16
- package/dist/chunks/{Dialog-FtshtbuD.es.js.map → Dialog-Qpq4hk89.es.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-cFujcZeA.es.js → DragAndDrop-BXEtfOEa.es.js} +2 -2
- package/dist/chunks/{DragAndDrop-cFujcZeA.es.js.map → DragAndDrop-BXEtfOEa.es.js.map} +1 -1
- package/dist/chunks/{Header-_Z7cZ9Ql.es.js → Header-DFcQWjkP.es.js} +3 -3
- package/dist/chunks/{Header-_Z7cZ9Ql.es.js.map → Header-DFcQWjkP.es.js.map} +1 -1
- package/dist/chunks/{Heading-D_yp5JbO.es.js → Heading-DFiVmZUR.es.js} +60 -60
- package/dist/chunks/{Heading-D_yp5JbO.es.js.map → Heading-DFiVmZUR.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CA_ARARw.es.js → ListBox-_1Uk-5-7.es.js} +7 -7
- package/dist/chunks/{ListBox-CA_ARARw.es.js.map → ListBox-_1Uk-5-7.es.js.map} +1 -1
- package/dist/chunks/{ListKeyboardDelegate-XLAitX9C.es.js → ListKeyboardDelegate-ByRdSpOe.es.js} +3 -3
- package/dist/chunks/{ListKeyboardDelegate-XLAitX9C.es.js.map → ListKeyboardDelegate-ByRdSpOe.es.js.map} +1 -1
- package/dist/chunks/{Modal-CVRxKbK2.es.js → Modal-DZrVgGsJ.es.js} +4 -4
- package/dist/chunks/{Modal-CVRxKbK2.es.js.map → Modal-DZrVgGsJ.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-C9i8k50b.es.js → SelectionManager-DMLLo5N3.es.js} +4 -4
- package/dist/chunks/{SelectionManager-C9i8k50b.es.js.map → SelectionManager-DMLLo5N3.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-C5u-GV4F.es.js → ToggleButton-881iW8P_.es.js} +2 -2
- package/dist/chunks/{ToggleButton-C5u-GV4F.es.js.map → ToggleButton-881iW8P_.es.js.map} +1 -1
- package/dist/chunks/accordion-B2FLWAh5.cjs.js +2 -0
- package/dist/chunks/accordion-B2FLWAh5.cjs.js.map +1 -0
- package/dist/chunks/{accordion-C4MjwWsC.es.js → accordion-CKDnNkVv.es.js} +16 -15
- package/dist/chunks/accordion-CKDnNkVv.es.js.map +1 -0
- package/dist/chunks/alert-D-1RFln1.cjs.js +2 -0
- package/dist/chunks/alert-D-1RFln1.cjs.js.map +1 -0
- package/dist/chunks/alert-u6zzGKKj.es.js +138 -0
- package/dist/chunks/alert-u6zzGKKj.es.js.map +1 -0
- package/dist/chunks/{avatar-Bu12OMzz.es.js → avatar-BfEMp9g8.es.js} +2 -2
- package/dist/chunks/avatar-BfEMp9g8.es.js.map +1 -0
- package/dist/chunks/avatar-_o-uSXYy.cjs.js +2 -0
- package/dist/chunks/avatar-_o-uSXYy.cjs.js.map +1 -0
- package/dist/chunks/badge-JEfh4EDj.es.js +15 -0
- package/dist/chunks/badge-JEfh4EDj.es.js.map +1 -0
- package/dist/chunks/badge-mMpNb3Qj.cjs.js +2 -0
- package/dist/chunks/badge-mMpNb3Qj.cjs.js.map +1 -0
- package/dist/chunks/badge.recipe-Cu6u9yqC.cjs.js +2 -0
- package/dist/chunks/badge.recipe-Cu6u9yqC.cjs.js.map +1 -0
- package/dist/chunks/{badge-qLydLdTu.es.js → badge.recipe-DsV4A_UD.es.js} +5 -14
- package/dist/chunks/badge.recipe-DsV4A_UD.es.js.map +1 -0
- package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
- package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
- package/dist/chunks/button-B5OOW-2z.cjs.js +2 -0
- package/dist/chunks/button-B5OOW-2z.cjs.js.map +1 -0
- package/dist/chunks/button-IZUJaJku.es.js +62 -0
- package/dist/chunks/button-IZUJaJku.es.js.map +1 -0
- package/dist/chunks/calendar-V0KeNCQ3.cjs.js +2 -0
- package/dist/chunks/calendar-V0KeNCQ3.cjs.js.map +1 -0
- package/dist/chunks/{calendar-C33Q6JGN.es.js → calendar-lD6G93R9.es.js} +19 -18
- package/dist/chunks/calendar-lD6G93R9.es.js.map +1 -0
- package/dist/chunks/card-BB_1xrND.es.js +78 -0
- package/dist/chunks/card-BB_1xrND.es.js.map +1 -0
- package/dist/chunks/card-BPEsGx1J.cjs.js +2 -0
- package/dist/chunks/card-BPEsGx1J.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-BKBd4kHr.es.js → checkbox-DII0AOBy.es.js} +46 -45
- package/dist/chunks/{checkbox-BKBd4kHr.es.js.map → checkbox-DII0AOBy.es.js.map} +1 -1
- package/dist/chunks/checkbox-Dod-yTj4.cjs.js +2 -0
- package/dist/chunks/{checkbox-Bh5DxcKC.cjs.js.map → checkbox-Dod-yTj4.cjs.js.map} +1 -1
- package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js +2 -0
- package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js.map +1 -0
- package/dist/chunks/{collapsible-motion-BSsz8na-.es.js → collapsible-motion-CSrKjF8X.es.js} +15 -15
- package/dist/chunks/collapsible-motion-CSrKjF8X.es.js.map +1 -0
- package/dist/chunks/{combobox-BghQKCQt.cjs.js → combobox-B5UxZWSX.cjs.js} +2 -2
- package/dist/chunks/{combobox-BghQKCQt.cjs.js.map → combobox-B5UxZWSX.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-D4M76aw1.es.js → combobox-CxEeal66.es.js} +323 -323
- package/dist/chunks/{combobox-D4M76aw1.es.js.map → combobox-CxEeal66.es.js.map} +1 -1
- package/dist/chunks/{data-table-0hNRYKT3.es.js → data-table-BGCmY93Q.es.js} +704 -720
- package/dist/chunks/data-table-BGCmY93Q.es.js.map +1 -0
- package/dist/chunks/data-table-C51WU0Cc.cjs.js +2 -0
- package/dist/chunks/data-table-C51WU0Cc.cjs.js.map +1 -0
- package/dist/chunks/date-input-Cap8-3zj.es.js +21 -0
- package/dist/chunks/date-input-Cap8-3zj.es.js.map +1 -0
- package/dist/chunks/date-input-DvOM0DLT.cjs.js +2 -0
- package/dist/chunks/date-input-DvOM0DLT.cjs.js.map +1 -0
- package/dist/chunks/date-picker-CZAoPNsT.cjs.js +2 -0
- package/dist/chunks/date-picker-CZAoPNsT.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-CT6jwApn.es.js → date-picker-ChZ8H-MT.es.js} +25 -24
- package/dist/chunks/date-picker-ChZ8H-MT.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-BICRnCsn.es.js → date-range-picker-DGWMdcAN.es.js} +62 -61
- package/dist/chunks/date-range-picker-DGWMdcAN.es.js.map +1 -0
- package/dist/chunks/date-range-picker-iENzosfN.cjs.js +2 -0
- package/dist/chunks/date-range-picker-iENzosfN.cjs.js.map +1 -0
- package/dist/chunks/{dialog-4Rx0vFFN.es.js → dialog-BwtIcIvd.es.js} +2 -2
- package/dist/chunks/{dialog-4Rx0vFFN.es.js.map → dialog-BwtIcIvd.es.js.map} +1 -1
- package/dist/chunks/{dialog-CDyF_zvK.cjs.js → dialog-CKwC3dk3.cjs.js} +2 -2
- package/dist/chunks/{dialog-CDyF_zvK.cjs.js.map → dialog-CKwC3dk3.cjs.js.map} +1 -1
- package/dist/chunks/dialog.title-CP_ZeiK4.es.js +152 -0
- package/dist/chunks/dialog.title-CP_ZeiK4.es.js.map +1 -0
- package/dist/chunks/dialog.title-DOPP47Zy.cjs.js +2 -0
- package/dist/chunks/{dialog.title-5mHI--iF.es.js.map → dialog.title-DOPP47Zy.cjs.js.map} +1 -1
- package/dist/chunks/draggable-list-Dv372xXb.es.js +4211 -0
- package/dist/chunks/draggable-list-Dv372xXb.es.js.map +1 -0
- package/dist/chunks/draggable-list-MGvr5-A-.cjs.js +3 -0
- package/dist/chunks/draggable-list-MGvr5-A-.cjs.js.map +1 -0
- package/dist/chunks/{drawer-wpiy6Y4h.es.js → drawer-BJ4qvGnj.es.js} +7 -7
- package/dist/chunks/{drawer-wpiy6Y4h.es.js.map → drawer-BJ4qvGnj.es.js.map} +1 -1
- package/dist/chunks/{drawer-DzYXHVbg.cjs.js → drawer-DzW9wBMk.cjs.js} +2 -2
- package/dist/chunks/{drawer-DzYXHVbg.cjs.js.map → drawer-DzW9wBMk.cjs.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-CNXOLneR.es.js → extractStyleProps-DYXEhLtq.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-CNXOLneR.es.js.map → extractStyleProps-DYXEhLtq.es.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-G58aSXl8.cjs.js → extractStyleProps-Dk3fpLyQ.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-G58aSXl8.cjs.js.map → extractStyleProps-Dk3fpLyQ.cjs.js.map} +1 -1
- package/dist/chunks/{field-errors-n9EuKYPI.es.js → field-errors-CHxHaB5C.es.js} +27 -40
- package/dist/chunks/field-errors-CHxHaB5C.es.js.map +1 -0
- package/dist/chunks/field-errors-D2re_C_c.cjs.js +2 -0
- package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +1 -0
- package/dist/chunks/form-field-BYlpCXdY.es.js +231 -0
- package/dist/chunks/form-field-BYlpCXdY.es.js.map +1 -0
- package/dist/chunks/form-field-CIGQxVVS.cjs.js +2 -0
- package/dist/chunks/form-field-CIGQxVVS.cjs.js.map +1 -0
- package/dist/chunks/{getScrollParent-3egW3tgP.es.js → getScrollParent-BS4bncfK.es.js} +2 -2
- package/dist/chunks/{getScrollParent-3egW3tgP.es.js.map → getScrollParent-BS4bncfK.es.js.map} +1 -1
- package/dist/chunks/grid-Chuw1xje.cjs.js.map +1 -1
- package/dist/chunks/grid-De8qjf98.es.js.map +1 -1
- package/dist/chunks/group-BqUFlw5R.cjs.js +2 -0
- package/dist/chunks/group-BqUFlw5R.cjs.js.map +1 -0
- package/dist/chunks/group-CWADf2vF.es.js +13 -0
- package/dist/chunks/group-CWADf2vF.es.js.map +1 -0
- package/dist/chunks/heading-BTacGwo9.cjs.js.map +1 -1
- package/dist/chunks/heading-BtazVUd5.es.js.map +1 -1
- package/dist/chunks/icon-D39U--jA.cjs.js +2 -0
- package/dist/chunks/icon-D39U--jA.cjs.js.map +1 -0
- package/dist/chunks/icon-V6yr3oou.es.js +13 -0
- package/dist/chunks/icon-V6yr3oou.es.js.map +1 -0
- package/dist/chunks/{icon-button-D4w1XTVg.es.js → icon-button-DQS2apw-.es.js} +2 -2
- package/dist/chunks/{icon-button-D4w1XTVg.es.js.map → icon-button-DQS2apw-.es.js.map} +1 -1
- package/dist/chunks/{icon-button-CkjZc6Br.cjs.js → icon-button-vWPrT-bR.cjs.js} +2 -2
- package/dist/chunks/{icon-button-CkjZc6Br.cjs.js.map → icon-button-vWPrT-bR.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CqILSznm.es.js → icon-toggle-button-Bi-9Obfx.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CqILSznm.es.js.map → icon-toggle-button-Bi-9Obfx.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-Bsj4XLsI.cjs.js → icon-toggle-button-eLrsWehe.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-Bsj4XLsI.cjs.js.map → icon-toggle-button-eLrsWehe.cjs.js.map} +1 -1
- package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
- package/dist/chunks/image-DRigLU80.es.js.map +1 -1
- package/dist/chunks/index-CRFg4Mhx.cjs.js +34 -0
- package/dist/chunks/index-CRFg4Mhx.cjs.js.map +1 -0
- package/dist/chunks/{index-DthLdwMN.es.js → index-CtB71yr7.es.js} +3913 -2860
- package/dist/chunks/index-CtB71yr7.es.js.map +1 -0
- package/dist/chunks/{inline-svg-DTleUhZq.es.js → inline-svg-CbSC6O5X.es.js} +2 -2
- package/dist/chunks/inline-svg-CbSC6O5X.es.js.map +1 -0
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +2 -0
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js.map +1 -0
- package/dist/chunks/kbd-BaeV_DL-.cjs.js +2 -0
- package/dist/chunks/kbd-BaeV_DL-.cjs.js.map +1 -0
- package/dist/chunks/kbd-CH9rYghB.es.js +15 -0
- package/dist/chunks/kbd-CH9rYghB.es.js.map +1 -0
- package/dist/chunks/link-BEhlSTUU.es.js +48 -0
- package/dist/chunks/link-BEhlSTUU.es.js.map +1 -0
- package/dist/chunks/link-DpU4rPCp.cjs.js +2 -0
- package/dist/chunks/link-DpU4rPCp.cjs.js.map +1 -0
- package/dist/chunks/loading-spinner-BiVTAfmp.es.js +59 -0
- package/dist/chunks/loading-spinner-BiVTAfmp.es.js.map +1 -0
- package/dist/chunks/loading-spinner-DQM-6XnY.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DQM-6XnY.cjs.js.map +1 -0
- package/dist/chunks/localized-field-C7Vribb2.cjs.js +2 -0
- package/dist/chunks/localized-field-C7Vribb2.cjs.js.map +1 -0
- package/dist/chunks/{localized-field-COJ9aoma.es.js → localized-field-D4R1lSbz.es.js} +68 -69
- package/dist/chunks/{localized-field-DCgNEoJc.cjs.js.map → localized-field-D4R1lSbz.es.js.map} +1 -1
- package/dist/chunks/make-element-focusable-C4jhHHl0.es.js.map +1 -1
- package/dist/chunks/make-element-focusable-oedzOY_M.cjs.js.map +1 -1
- package/dist/chunks/menu-BkPvV5Ey.es.js +150 -0
- package/dist/chunks/menu-BkPvV5Ey.es.js.map +1 -0
- package/dist/chunks/menu-DIepV2KZ.cjs.js +2 -0
- package/dist/chunks/menu-DIepV2KZ.cjs.js.map +1 -0
- package/dist/chunks/money-input-Cu_J86Eu.cjs.js +2 -0
- package/dist/chunks/money-input-Cu_J86Eu.cjs.js.map +1 -0
- package/dist/chunks/{money-input-DvR9Nnz5.es.js → money-input-jPYw0Jyg.es.js} +123 -247
- package/dist/chunks/money-input-jPYw0Jyg.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-CilSJJaO.es.js +64 -0
- package/dist/chunks/multiline-text-input-CilSJJaO.es.js.map +1 -0
- package/dist/chunks/{nimbus-provider-YB6qmSSk.es.js → nimbus-provider-BHNFDQ0f.es.js} +6 -6
- package/dist/chunks/{nimbus-provider-YB6qmSSk.es.js.map → nimbus-provider-BHNFDQ0f.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-ChOIcVt6.cjs.js → nimbus-provider-WX_qUCxo.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-ChOIcVt6.cjs.js.map → nimbus-provider-WX_qUCxo.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-Cq95vVse.es.js → number-input-CktMxOdZ.es.js} +139 -139
- package/dist/chunks/{number-input-Cq95vVse.es.js.map → number-input-CktMxOdZ.es.js.map} +1 -1
- package/dist/chunks/{number-input-DA_yy5BZ.cjs.js → number-input-wMW-o4di.cjs.js} +2 -2
- package/dist/chunks/{number-input-DA_yy5BZ.cjs.js.map → number-input-wMW-o4di.cjs.js.map} +1 -1
- package/dist/chunks/{openLink-BMfblNBC.es.js → openLink-CY66vjvW.es.js} +7 -7
- package/dist/chunks/{openLink-BMfblNBC.es.js.map → openLink-CY66vjvW.es.js.map} +1 -1
- package/dist/chunks/{pagination-EVJ_rBrc.cjs.js → pagination-BWdg8s6g.cjs.js} +2 -2
- package/dist/chunks/pagination-BWdg8s6g.cjs.js.map +1 -0
- package/dist/chunks/{pagination-2Zl9bHfw.es.js → pagination-Bcq69Nv3.es.js} +4 -4
- package/dist/chunks/pagination-Bcq69Nv3.es.js.map +1 -0
- package/dist/chunks/{password-input-DMbxYno4.cjs.js → password-input-6SMjhXSO.cjs.js} +2 -2
- package/dist/chunks/{password-input-DMbxYno4.cjs.js.map → password-input-6SMjhXSO.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-De29PFv6.es.js → password-input-Bf_SPzLj.es.js} +4 -4
- package/dist/chunks/{password-input-De29PFv6.es.js.map → password-input-Bf_SPzLj.es.js.map} +1 -1
- package/dist/chunks/popover-CfEq5G5-.cjs.js +2 -0
- package/dist/chunks/popover-CfEq5G5-.cjs.js.map +1 -0
- package/dist/chunks/popover-DF0ppmkw.es.js +16 -0
- package/dist/chunks/popover-DF0ppmkw.es.js.map +1 -0
- package/dist/chunks/{progress-bar-BBy8IR_W.cjs.js → progress-bar-Bhp7W6Eo.cjs.js} +2 -2
- package/dist/chunks/progress-bar-Bhp7W6Eo.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-1XrmZIIp.es.js → progress-bar-DwuOjOcH.es.js} +6 -6
- package/dist/chunks/progress-bar-DwuOjOcH.es.js.map +1 -0
- package/dist/chunks/{radio-input-8sawPicQ.es.js → radio-input-4jw6HUjC.es.js} +70 -69
- package/dist/chunks/{radio-input-8sawPicQ.es.js.map → radio-input-4jw6HUjC.es.js.map} +1 -1
- package/dist/chunks/radio-input-Dp05SXja.cjs.js +2 -0
- package/dist/chunks/{radio-input-DK5681L5.cjs.js.map → radio-input-Dp05SXja.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-C0InkSSo.es.js → range-calendar-DBpl6y5i.es.js} +19 -18
- package/dist/chunks/range-calendar-DBpl6y5i.es.js.map +1 -0
- package/dist/chunks/range-calendar-_dZfAsdG.cjs.js +2 -0
- package/dist/chunks/range-calendar-_dZfAsdG.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-CUAI0VeV.es.js → rich-text-input-D7DcSuhr.es.js} +458 -584
- package/dist/chunks/rich-text-input-D7DcSuhr.es.js.map +1 -0
- package/dist/chunks/{rich-text-input-BygekdK5.cjs.js → rich-text-input-Da5WFZ3l.cjs.js} +13 -13
- package/dist/chunks/rich-text-input-Da5WFZ3l.cjs.js.map +1 -0
- package/dist/chunks/{scrollIntoView-1q6VTK8J.es.js → scrollIntoView-DTfS0nWq.es.js} +4 -4
- package/dist/chunks/{scrollIntoView-1q6VTK8J.es.js.map → scrollIntoView-DTfS0nWq.es.js.map} +1 -1
- package/dist/chunks/{search-input-r6P-vAgp.cjs.js → search-input-BefkmgPy.cjs.js} +2 -2
- package/dist/chunks/{search-input-r6P-vAgp.cjs.js.map → search-input-BefkmgPy.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-DkFkEdiE.es.js → search-input-DJy2NHYW.es.js} +17 -17
- package/dist/chunks/{search-input-DkFkEdiE.es.js.map → search-input-DJy2NHYW.es.js.map} +1 -1
- package/dist/chunks/{select-D5QaNAMe.es.js → select-BmMhTBo-.es.js} +101 -101
- package/dist/chunks/{select-D5QaNAMe.es.js.map → select-BmMhTBo-.es.js.map} +1 -1
- package/dist/chunks/select-DMsU6bk9.cjs.js +2 -0
- package/dist/chunks/{select-97-5UUPX.cjs.js.map → select-DMsU6bk9.cjs.js.map} +1 -1
- package/dist/chunks/separator-B0qxXI4c.es.js +26 -0
- package/dist/chunks/separator-B0qxXI4c.es.js.map +1 -0
- package/dist/chunks/separator-CvRn_J0r.cjs.js +2 -0
- package/dist/chunks/separator-CvRn_J0r.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -1
- package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -1
- package/dist/chunks/split-button-BO52sL7h.cjs.js +2 -0
- package/dist/chunks/split-button-BO52sL7h.cjs.js.map +1 -0
- package/dist/chunks/{split-button-Bczcosj2.es.js → split-button-yfUsgbxF.es.js} +27 -28
- package/dist/chunks/split-button-yfUsgbxF.es.js.map +1 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
- package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
- package/dist/chunks/{switch-CwJ5OFLP.cjs.js → switch-CdLhBEPq.cjs.js} +2 -2
- package/dist/chunks/switch-CdLhBEPq.cjs.js.map +1 -0
- package/dist/chunks/{switch-D_NMKG3Q.es.js → switch-Df_0twKu.es.js} +8 -8
- package/dist/chunks/switch-Df_0twKu.es.js.map +1 -0
- package/dist/chunks/{tabs-UlU9sGFI.es.js → tabs-BCLrKRoZ.es.js} +86 -87
- package/dist/chunks/{tabs-UlU9sGFI.es.js.map → tabs-BCLrKRoZ.es.js.map} +1 -1
- package/dist/chunks/tabs-CJ0OAUSR.cjs.js +2 -0
- package/dist/chunks/{tabs-Cklmbi45.cjs.js.map → tabs-CJ0OAUSR.cjs.js.map} +1 -1
- package/dist/chunks/tag-group-B-eOhltn.es.js +560 -0
- package/dist/chunks/tag-group-B-eOhltn.es.js.map +1 -0
- package/dist/chunks/tag-group-Btt0egzG.cjs.js +2 -0
- package/dist/chunks/tag-group-Btt0egzG.cjs.js.map +1 -0
- package/dist/chunks/text-BgiP8ZB6.es.js.map +1 -1
- package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -1
- package/dist/chunks/{text-input-DWJ-CPVR.es.js → text-input-CSAODlCw.es.js} +7 -7
- package/dist/chunks/text-input-CSAODlCw.es.js.map +1 -0
- package/dist/chunks/{text-input-DHyVy0pg.cjs.js → text-input-DZdkCbdd.cjs.js} +2 -2
- package/dist/chunks/text-input-DZdkCbdd.cjs.js.map +1 -0
- package/dist/chunks/time-input--a_qv-Jk.es.js +21 -0
- package/dist/chunks/time-input--a_qv-Jk.es.js.map +1 -0
- package/dist/chunks/time-input-zXykDANk.cjs.js +2 -0
- package/dist/chunks/time-input-zXykDANk.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-DxMZsem4.cjs.js +2 -0
- package/dist/chunks/toggle-button-DxMZsem4.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-awb1jBf8.es.js +30 -0
- package/dist/chunks/toggle-button-awb1jBf8.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-CE2Urvj8.cjs.js +2 -0
- package/dist/chunks/toggle-button-group-CE2Urvj8.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-group-Ce7ezOED.es.js +29 -0
- package/dist/chunks/toggle-button-group-Ce7ezOED.es.js.map +1 -0
- package/dist/chunks/{button.recipe-NdTb5f8M.es.js → toggle-button-group.recipe-CbCnJQP3.es.js} +55 -2
- package/dist/chunks/toggle-button-group.recipe-CbCnJQP3.es.js.map +1 -0
- package/dist/chunks/{button.recipe-Cqkj3VMo.cjs.js → toggle-button-group.recipe-DgySRvOW.cjs.js} +2 -2
- package/dist/chunks/toggle-button-group.recipe-DgySRvOW.cjs.js.map +1 -0
- package/dist/chunks/toolbar-BDatiEYj.es.js +59 -0
- package/dist/chunks/toolbar-BDatiEYj.es.js.map +1 -0
- package/dist/chunks/{toolbar-0yDwxKuL.cjs.js → toolbar-DV0l5MqA.cjs.js} +2 -2
- package/dist/chunks/toolbar-DV0l5MqA.cjs.js.map +1 -0
- package/dist/chunks/tooltip-BPTOkK7W.cjs.js +2 -0
- package/dist/chunks/{tooltip-CH2ASPPO.cjs.js.map → tooltip-BPTOkK7W.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CgzrzHZy.es.js → tooltip-CHm25f4m.es.js} +48 -47
- package/dist/chunks/{tooltip-CgzrzHZy.es.js.map → tooltip-CHm25f4m.es.js.map} +1 -1
- package/dist/chunks/{useButton-DcYDH2A4.es.js → useButton-_sJ3_8ha.es.js} +2 -2
- package/dist/chunks/{useButton-DcYDH2A4.es.js.map → useButton-_sJ3_8ha.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-DjIrGyx5.es.js → useDateFormatter-C4zVAL_K.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-DjIrGyx5.es.js.map → useDateFormatter-C4zVAL_K.es.js.map} +1 -1
- package/dist/chunks/useGridListItem--iMluO7K.es.js +251 -0
- package/dist/chunks/useGridListItem--iMluO7K.es.js.map +1 -0
- package/dist/chunks/useGridListItem-6gZ8SfZH.cjs.js +2 -0
- package/dist/chunks/useGridListItem-6gZ8SfZH.cjs.js.map +1 -0
- package/dist/chunks/useGridSelectionCheckbox-UA-rsjJv.cjs.js +2 -0
- package/dist/chunks/useGridSelectionCheckbox-UA-rsjJv.cjs.js.map +1 -0
- package/dist/chunks/useGridSelectionCheckbox-yspK-vJA.es.js +23 -0
- package/dist/chunks/useGridSelectionCheckbox-yspK-vJA.es.js.map +1 -0
- package/dist/chunks/{useHighlightSelectionDescription-CvLHkqhe.es.js → useHighlightSelectionDescription-qks4kKs2.es.js} +5 -5
- package/dist/chunks/{useHighlightSelectionDescription-CvLHkqhe.es.js.map → useHighlightSelectionDescription-qks4kKs2.es.js.map} +1 -1
- package/dist/chunks/{useListState-wotFHS2D.es.js → useListState-Cf8n791-.es.js} +2 -2
- package/dist/chunks/{useListState-wotFHS2D.es.js.map → useListState-Cf8n791-.es.js.map} +1 -1
- package/dist/chunks/{usePress-yQeeY9mB.es.js → usePress-Dc6amhnJ.es.js} +2 -2
- package/dist/chunks/{usePress-yQeeY9mB.es.js.map → usePress-Dc6amhnJ.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CYr_aJQU.es.js → useSingleSelectListState-DLY6K_dU.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CYr_aJQU.es.js.map → useSingleSelectListState-DLY6K_dU.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BeuILZxb.es.js → useToggle-CKEhqMIa.es.js} +2 -2
- package/dist/chunks/{useToggle-BeuILZxb.es.js.map → useToggle-CKEhqMIa.es.js.map} +1 -1
- package/dist/chunks/visually-hidden-CVUszTlg.es.js.map +1 -1
- package/dist/chunks/visually-hidden-tTYCAVoQ.cjs.js.map +1 -1
- package/dist/collapsible-motion.d.ts +13 -31
- package/dist/combobox.d.ts +36 -135
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.cjs +2 -0
- package/dist/components/draggable-list.cjs.map +1 -0
- package/dist/components/draggable-list.es.js +8 -0
- package/dist/components/draggable-list.es.js.map +1 -0
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/field-errors.cjs +1 -1
- package/dist/components/field-errors.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.cjs +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.cjs.map +1 -1
- package/dist/components/scoped-search-input.es.js +66 -64
- package/dist/components/scoped-search-input.es.js.map +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js.map +1 -1
- package/dist/components.d.ts +37 -83
- package/dist/data-table.d.ts +28 -64
- package/dist/date-input.d.ts +14 -83
- package/dist/date-picker.d.ts +35 -99
- package/dist/date-range-picker.d.ts +12 -48
- package/dist/dialog.d.ts +50 -90
- package/dist/draggable-list.d.ts +307 -0
- package/dist/drawer.d.ts +15 -11
- package/dist/field-errors.d.ts +4 -13
- package/dist/form-field.d.ts +27 -76
- package/dist/grid.d.ts +2 -2
- package/dist/group.d.ts +2 -4
- package/dist/heading.d.ts +15 -2
- package/dist/icon-button.d.ts +14 -11
- package/dist/icon-toggle-button.d.ts +12 -108
- package/dist/icon.d.ts +9 -48
- package/dist/image.d.ts +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +37 -83
- package/dist/index.es.js +196 -191
- package/dist/index.es.js.map +1 -1
- package/dist/inline-svg.d.ts +11 -50
- package/dist/kbd.d.ts +2 -2
- package/dist/link.d.ts +10 -39
- package/dist/loading-spinner.d.ts +9 -46
- package/dist/localized-field.d.ts +32 -31
- package/dist/money-input.d.ts +16 -100
- package/dist/multiline-text-input.d.ts +13 -73
- package/dist/nimbus-provider.d.ts +8 -10
- package/dist/number-input.d.ts +8 -121
- package/dist/pagination.d.ts +2 -2
- package/dist/password-input.d.ts +12 -65
- package/dist/popover.d.ts +5 -14
- package/dist/progress-bar.d.ts +29 -111
- package/dist/radio-input.d.ts +11 -35
- package/dist/range-calendar.d.ts +21 -9
- package/dist/rich-text-input.d.ts +9 -6
- package/dist/scoped-search-input.d.ts +14 -19
- package/dist/search-input.d.ts +13 -51
- package/dist/select.d.ts +20 -86
- package/dist/separator.d.ts +10 -34
- package/dist/simple-grid.d.ts +2 -2
- package/dist/split-button.d.ts +25 -11
- package/dist/stack.d.ts +2 -2
- package/dist/switch.d.ts +4 -41
- package/dist/tabs.d.ts +32 -126
- package/dist/tag-group.d.ts +15 -42
- package/dist/text-input.d.ts +15 -61
- package/dist/text.d.ts +2 -2
- package/dist/time-input.d.ts +17 -83
- package/dist/toggle-button-group.d.ts +14 -60
- package/dist/toggle-button.d.ts +10 -106
- package/dist/toolbar.d.ts +10 -60
- package/dist/tooltip.d.ts +12 -24
- package/dist/utils.d.ts +2 -2
- package/dist/visually-hidden.d.ts +2 -2
- package/package.json +5 -5
- package/dist/chunks/accordion-C4MjwWsC.es.js.map +0 -1
- package/dist/chunks/accordion-CxA_B4rs.cjs.js +0 -2
- package/dist/chunks/accordion-CxA_B4rs.cjs.js.map +0 -1
- package/dist/chunks/alert-CA04iXvr.cjs.js +0 -2
- package/dist/chunks/alert-CA04iXvr.cjs.js.map +0 -1
- package/dist/chunks/alert-C_eKOpkm.es.js +0 -193
- package/dist/chunks/alert-C_eKOpkm.es.js.map +0 -1
- package/dist/chunks/avatar-Bu12OMzz.es.js.map +0 -1
- package/dist/chunks/avatar-C2KIWewd.cjs.js +0 -2
- package/dist/chunks/avatar-C2KIWewd.cjs.js.map +0 -1
- package/dist/chunks/badge-CCrBksXu.cjs.js +0 -2
- package/dist/chunks/badge-CCrBksXu.cjs.js.map +0 -1
- package/dist/chunks/badge-qLydLdTu.es.js.map +0 -1
- package/dist/chunks/button-Be0U44e7.es.js +0 -59
- package/dist/chunks/button-Be0U44e7.es.js.map +0 -1
- package/dist/chunks/button-DTE97NpD.cjs.js +0 -2
- package/dist/chunks/button-DTE97NpD.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-NdTb5f8M.es.js.map +0 -1
- package/dist/chunks/calendar-C33Q6JGN.es.js.map +0 -1
- package/dist/chunks/calendar-GA5ACIqm.cjs.js +0 -2
- package/dist/chunks/calendar-GA5ACIqm.cjs.js.map +0 -1
- package/dist/chunks/card-DFMzI97y.es.js +0 -138
- package/dist/chunks/card-DFMzI97y.es.js.map +0 -1
- package/dist/chunks/card-DREQgc6S.cjs.js +0 -2
- package/dist/chunks/card-DREQgc6S.cjs.js.map +0 -1
- package/dist/chunks/checkbox-Bh5DxcKC.cjs.js +0 -2
- package/dist/chunks/collapsible-motion-BSsz8na-.es.js.map +0 -1
- package/dist/chunks/collapsible-motion-hU9KTv8o.cjs.js +0 -2
- package/dist/chunks/collapsible-motion-hU9KTv8o.cjs.js.map +0 -1
- package/dist/chunks/data-table-0hNRYKT3.es.js.map +0 -1
- package/dist/chunks/data-table-EMCF19pW.cjs.js +0 -2
- package/dist/chunks/data-table-EMCF19pW.cjs.js.map +0 -1
- package/dist/chunks/date-input-CUWc63rA.cjs.js +0 -2
- package/dist/chunks/date-input-CUWc63rA.cjs.js.map +0 -1
- package/dist/chunks/date-input-Dab_Fdrq.es.js +0 -20
- package/dist/chunks/date-input-Dab_Fdrq.es.js.map +0 -1
- package/dist/chunks/date-picker-C6A6CiIu.cjs.js +0 -2
- package/dist/chunks/date-picker-C6A6CiIu.cjs.js.map +0 -1
- package/dist/chunks/date-picker-CT6jwApn.es.js.map +0 -1
- package/dist/chunks/date-range-picker-BICRnCsn.es.js.map +0 -1
- package/dist/chunks/date-range-picker-vER5F2HJ.cjs.js +0 -2
- package/dist/chunks/date-range-picker-vER5F2HJ.cjs.js.map +0 -1
- package/dist/chunks/dialog.title-5mHI--iF.es.js +0 -152
- package/dist/chunks/dialog.title-CtQfDha4.cjs.js +0 -2
- package/dist/chunks/dialog.title-CtQfDha4.cjs.js.map +0 -1
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js +0 -2
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js.map +0 -1
- package/dist/chunks/field-errors-n9EuKYPI.es.js.map +0 -1
- package/dist/chunks/form-field-2NMmaZgp.cjs.js +0 -11
- package/dist/chunks/form-field-2NMmaZgp.cjs.js.map +0 -1
- package/dist/chunks/form-field-BrU_qJq3.es.js +0 -341
- package/dist/chunks/form-field-BrU_qJq3.es.js.map +0 -1
- package/dist/chunks/group-F6OwMVlM.es.js +0 -14
- package/dist/chunks/group-F6OwMVlM.es.js.map +0 -1
- package/dist/chunks/group-NazPMAWg.cjs.js +0 -2
- package/dist/chunks/group-NazPMAWg.cjs.js.map +0 -1
- package/dist/chunks/group.recipe-BQafmscW.es.js +0 -13
- package/dist/chunks/group.recipe-BQafmscW.es.js.map +0 -1
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js +0 -2
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js.map +0 -1
- package/dist/chunks/icon-BHx0r3NL.cjs.js +0 -2
- package/dist/chunks/icon-BHx0r3NL.cjs.js.map +0 -1
- package/dist/chunks/icon-DHu0zrOb.es.js +0 -14
- package/dist/chunks/icon-DHu0zrOb.es.js.map +0 -1
- package/dist/chunks/index-Bx9ez6gh.cjs.js +0 -15
- package/dist/chunks/index-Bx9ez6gh.cjs.js.map +0 -1
- package/dist/chunks/index-DthLdwMN.es.js.map +0 -1
- package/dist/chunks/inline-svg-DTleUhZq.es.js.map +0 -1
- package/dist/chunks/inline-svg-DbvmiSw9.cjs.js +0 -2
- package/dist/chunks/inline-svg-DbvmiSw9.cjs.js.map +0 -1
- package/dist/chunks/kbd-B--GEgRt.es.js +0 -17
- package/dist/chunks/kbd-B--GEgRt.es.js.map +0 -1
- package/dist/chunks/kbd-DFeaXiKY.cjs.js +0 -2
- package/dist/chunks/kbd-DFeaXiKY.cjs.js.map +0 -1
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js +0 -26
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +0 -2
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js.map +0 -1
- package/dist/chunks/link-DK2EgZNs.es.js +0 -50
- package/dist/chunks/link-DK2EgZNs.es.js.map +0 -1
- package/dist/chunks/link-iN1bhsXS.cjs.js +0 -2
- package/dist/chunks/link-iN1bhsXS.cjs.js.map +0 -1
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +0 -2
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js.map +0 -1
- package/dist/chunks/link.recipe-pXiGIJtI.es.js +0 -51
- package/dist/chunks/link.recipe-pXiGIJtI.es.js.map +0 -1
- package/dist/chunks/loading-spinner-Bh75bpAx.es.js +0 -118
- package/dist/chunks/loading-spinner-Bh75bpAx.es.js.map +0 -1
- package/dist/chunks/loading-spinner-DDhqsR0J.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DDhqsR0J.cjs.js.map +0 -1
- package/dist/chunks/localized-field-COJ9aoma.es.js.map +0 -1
- package/dist/chunks/localized-field-DCgNEoJc.cjs.js +0 -2
- package/dist/chunks/menu-BvZy65zm.es.js +0 -150
- package/dist/chunks/menu-BvZy65zm.es.js.map +0 -1
- package/dist/chunks/menu-CW4QVk-m.cjs.js +0 -2
- package/dist/chunks/menu-CW4QVk-m.cjs.js.map +0 -1
- package/dist/chunks/money-input-CwrbJsn1.cjs.js +0 -2
- package/dist/chunks/money-input-CwrbJsn1.cjs.js.map +0 -1
- package/dist/chunks/money-input-DvR9Nnz5.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-4kwHZ5HO.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-4kwHZ5HO.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-BrE5zqv5.es.js +0 -195
- package/dist/chunks/multiline-text-input-BrE5zqv5.es.js.map +0 -1
- package/dist/chunks/pagination-2Zl9bHfw.es.js.map +0 -1
- package/dist/chunks/pagination-EVJ_rBrc.cjs.js.map +0 -1
- package/dist/chunks/popover-BJPogaez.cjs.js +0 -2
- package/dist/chunks/popover-BJPogaez.cjs.js.map +0 -1
- package/dist/chunks/popover-yeZXM_2G.es.js +0 -27
- package/dist/chunks/popover-yeZXM_2G.es.js.map +0 -1
- package/dist/chunks/progress-bar-1XrmZIIp.es.js.map +0 -1
- package/dist/chunks/progress-bar-BBy8IR_W.cjs.js.map +0 -1
- package/dist/chunks/radio-input-DK5681L5.cjs.js +0 -2
- package/dist/chunks/range-calendar-C0InkSSo.es.js.map +0 -1
- package/dist/chunks/range-calendar-CrHUTeyY.cjs.js +0 -2
- package/dist/chunks/range-calendar-CrHUTeyY.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-BygekdK5.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CUAI0VeV.es.js.map +0 -1
- package/dist/chunks/select-97-5UUPX.cjs.js +0 -2
- package/dist/chunks/separator-BBuhLJdN.cjs.js +0 -2
- package/dist/chunks/separator-BBuhLJdN.cjs.js.map +0 -1
- package/dist/chunks/separator-D7elp8bN.es.js +0 -52
- package/dist/chunks/separator-D7elp8bN.es.js.map +0 -1
- package/dist/chunks/split-button-Bczcosj2.es.js.map +0 -1
- package/dist/chunks/split-button-EHp7Svv4.cjs.js +0 -2
- package/dist/chunks/split-button-EHp7Svv4.cjs.js.map +0 -1
- package/dist/chunks/switch-CwJ5OFLP.cjs.js.map +0 -1
- package/dist/chunks/switch-D_NMKG3Q.es.js.map +0 -1
- package/dist/chunks/tabs-Cklmbi45.cjs.js +0 -2
- package/dist/chunks/tag-group-Cgs8C7Xc.cjs.js +0 -2
- package/dist/chunks/tag-group-Cgs8C7Xc.cjs.js.map +0 -1
- package/dist/chunks/tag-group-uIKmx4eU.es.js +0 -796
- package/dist/chunks/tag-group-uIKmx4eU.es.js.map +0 -1
- package/dist/chunks/text-input-DHyVy0pg.cjs.js.map +0 -1
- package/dist/chunks/text-input-DWJ-CPVR.es.js.map +0 -1
- package/dist/chunks/time-input-CwfMLg_y.es.js +0 -179
- package/dist/chunks/time-input-CwfMLg_y.es.js.map +0 -1
- package/dist/chunks/time-input-UNOO6gaq.cjs.js +0 -2
- package/dist/chunks/time-input-UNOO6gaq.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-BHOVooIy.cjs.js +0 -2
- package/dist/chunks/toggle-button-BHOVooIy.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-CdJftdD2.es.js +0 -29
- package/dist/chunks/toggle-button-CdJftdD2.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-D2eN4VNE.es.js +0 -81
- package/dist/chunks/toggle-button-group-D2eN4VNE.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-RAL2Cws6.cjs.js +0 -2
- package/dist/chunks/toggle-button-group-RAL2Cws6.cjs.js.map +0 -1
- package/dist/chunks/toolbar-0yDwxKuL.cjs.js.map +0 -1
- package/dist/chunks/toolbar-DXDZ5G0Q.es.js +0 -59
- package/dist/chunks/toolbar-DXDZ5G0Q.es.js.map +0 -1
- package/dist/chunks/tooltip-CH2ASPPO.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js +0 -24
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js.map +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as w, useRef as y, useState as I, useMemo as F, useEffect as c, Children as L, isValidElement as j, cloneElement as z, useContext as f } from "react";
|
|
3
|
+
import { createSlotRecipeContext as A, mergeRefs as V } from "@chakra-ui/react";
|
|
4
|
+
import { k as _, $ as H, h as N } from "./Dialog-Qpq4hk89.es.js";
|
|
5
|
+
import { HelpOutline as G, ErrorOutline as J } from "@commercetools/nimbus-icons";
|
|
6
|
+
import { $ as K } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
7
|
+
import { $ as O } from "./useField-B0j4t47V.es.js";
|
|
8
|
+
import { B as b } from "./box-DuBoAZvq.es.js";
|
|
9
|
+
import { I as Q } from "./icon-button-DQS2apw-.es.js";
|
|
10
|
+
const a = /* @__PURE__ */ w({
|
|
11
|
+
context: {
|
|
12
|
+
label: null,
|
|
13
|
+
description: null,
|
|
14
|
+
error: null,
|
|
15
|
+
info: null,
|
|
16
|
+
input: null
|
|
17
|
+
},
|
|
18
|
+
setContext: () => {
|
|
19
|
+
}
|
|
20
|
+
}), { withProvider: R, withContext: m } = /* @__PURE__ */ A({
|
|
21
|
+
key: "formField"
|
|
22
|
+
}), T = /* @__PURE__ */ R("div", "root"), U = /* @__PURE__ */ m("div", "label"), W = /* @__PURE__ */ m("div", "input"), X = /* @__PURE__ */ m("div", "description"), Y = /* @__PURE__ */ m("div", "error"), Z = /* @__PURE__ */ m("div", "popover"), D = function({
|
|
23
|
+
ref: l,
|
|
24
|
+
id: e,
|
|
25
|
+
isInvalid: r,
|
|
26
|
+
isRequired: s,
|
|
27
|
+
isDisabled: p,
|
|
28
|
+
isReadOnly: u,
|
|
29
|
+
children: $,
|
|
30
|
+
...S
|
|
31
|
+
}) {
|
|
32
|
+
const P = y(null), C = K(V(P, l)), [o, x] = I({
|
|
33
|
+
label: null,
|
|
34
|
+
description: null,
|
|
35
|
+
error: null,
|
|
36
|
+
info: null,
|
|
37
|
+
input: null,
|
|
38
|
+
isInvalid: r,
|
|
39
|
+
isRequired: s,
|
|
40
|
+
isDisabled: p,
|
|
41
|
+
isReadOnly: u
|
|
42
|
+
}), v = F(() => {
|
|
43
|
+
const i = {
|
|
44
|
+
id: e,
|
|
45
|
+
description: o.description,
|
|
46
|
+
errorMessage: o.error
|
|
47
|
+
};
|
|
48
|
+
return o.label ? i.label = o.label : (i["aria-label"] = "empty-label", i["aria-labelledby"] = "empty-label"), i;
|
|
49
|
+
}, [e, o.description, o.error, o.label]), { labelProps: g, fieldProps: h, descriptionProps: E, errorMessageProps: B } = O(v);
|
|
50
|
+
c(() => {
|
|
51
|
+
x((i) => ({
|
|
52
|
+
...i,
|
|
53
|
+
isInvalid: r,
|
|
54
|
+
isRequired: s,
|
|
55
|
+
isDisabled: p,
|
|
56
|
+
isReadOnly: u
|
|
57
|
+
}));
|
|
58
|
+
}, [r, s, p, u]);
|
|
59
|
+
const k = F(
|
|
60
|
+
() => ({
|
|
61
|
+
...h,
|
|
62
|
+
isInvalid: r,
|
|
63
|
+
isRequired: s,
|
|
64
|
+
isDisabled: p,
|
|
65
|
+
isReadOnly: u
|
|
66
|
+
}),
|
|
67
|
+
[h, r, s, p, u]
|
|
68
|
+
), M = F(() => ({ context: o, setContext: x }), [o]);
|
|
69
|
+
return /* @__PURE__ */ n(a.Provider, { value: M, children: /* @__PURE__ */ d(T, { ref: C, ...S, children: [
|
|
70
|
+
o.label && /* @__PURE__ */ d(U, { ...o.labelSlotProps, children: [
|
|
71
|
+
/* @__PURE__ */ d("label", { ...g, children: [
|
|
72
|
+
o.label,
|
|
73
|
+
s && /* @__PURE__ */ n("sup", { "aria-hidden": "true", children: "*" })
|
|
74
|
+
] }),
|
|
75
|
+
o.info && /* @__PURE__ */ d(_, { children: [
|
|
76
|
+
/* @__PURE__ */ n(
|
|
77
|
+
b,
|
|
78
|
+
{
|
|
79
|
+
as: "span",
|
|
80
|
+
display: "inline-block",
|
|
81
|
+
position: "relative",
|
|
82
|
+
width: "1ch",
|
|
83
|
+
height: "1ch",
|
|
84
|
+
ml: "200",
|
|
85
|
+
children: /* @__PURE__ */ n(
|
|
86
|
+
b,
|
|
87
|
+
{
|
|
88
|
+
as: "span",
|
|
89
|
+
display: "inline-flex",
|
|
90
|
+
position: "absolute",
|
|
91
|
+
top: "50%",
|
|
92
|
+
right: "50%",
|
|
93
|
+
transform: "translate(50%, -50%)",
|
|
94
|
+
children: /* @__PURE__ */ n(
|
|
95
|
+
Q,
|
|
96
|
+
{
|
|
97
|
+
"aria-label": "__MORE INFO",
|
|
98
|
+
size: "2xs",
|
|
99
|
+
tone: "info",
|
|
100
|
+
variant: "link",
|
|
101
|
+
children: /* @__PURE__ */ n(G, {})
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ n(H, { children: /* @__PURE__ */ n(Z, { asChild: !0, children: /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(b, { p: "300", children: o.info }) }) }) })
|
|
109
|
+
] })
|
|
110
|
+
] }),
|
|
111
|
+
o.input && /* @__PURE__ */ n(W, { ...o.inputSlotProps, children: L.map(o.input, (i) => j(i) ? z(i, k) : i) }),
|
|
112
|
+
o.description && /* @__PURE__ */ n(
|
|
113
|
+
X,
|
|
114
|
+
{
|
|
115
|
+
...E,
|
|
116
|
+
...o.descriptionSlotProps,
|
|
117
|
+
children: o.description
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
r && o.error && /* @__PURE__ */ d(
|
|
121
|
+
Y,
|
|
122
|
+
{
|
|
123
|
+
...B,
|
|
124
|
+
...o.errorSlotProps,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ n(
|
|
127
|
+
b,
|
|
128
|
+
{
|
|
129
|
+
as: J,
|
|
130
|
+
display: "inline-flex",
|
|
131
|
+
boxSize: "400",
|
|
132
|
+
verticalAlign: "text-bottom",
|
|
133
|
+
mr: "100",
|
|
134
|
+
alignSelf: "center"
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
o.error
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
$
|
|
142
|
+
] }) });
|
|
143
|
+
}, q = ({
|
|
144
|
+
children: t,
|
|
145
|
+
...l
|
|
146
|
+
}) => {
|
|
147
|
+
const { setContext: e } = f(a);
|
|
148
|
+
return c(() => (e((r) => ({
|
|
149
|
+
...r,
|
|
150
|
+
label: t,
|
|
151
|
+
labelSlotProps: l
|
|
152
|
+
})), () => {
|
|
153
|
+
e((r) => ({
|
|
154
|
+
...r,
|
|
155
|
+
label: null,
|
|
156
|
+
labelSlotProps: void 0
|
|
157
|
+
}));
|
|
158
|
+
}), [t, e]), null;
|
|
159
|
+
}, oo = ({
|
|
160
|
+
children: t,
|
|
161
|
+
...l
|
|
162
|
+
}) => {
|
|
163
|
+
const { setContext: e } = f(a);
|
|
164
|
+
return c(() => {
|
|
165
|
+
e((r) => ({
|
|
166
|
+
...r,
|
|
167
|
+
input: t,
|
|
168
|
+
inputSlotProps: l
|
|
169
|
+
}));
|
|
170
|
+
}, [t, e]), null;
|
|
171
|
+
}, eo = ({
|
|
172
|
+
children: t,
|
|
173
|
+
...l
|
|
174
|
+
}) => {
|
|
175
|
+
const { setContext: e } = f(a);
|
|
176
|
+
return c(() => (e((r) => ({
|
|
177
|
+
...r,
|
|
178
|
+
description: t,
|
|
179
|
+
descriptionSlotProps: l
|
|
180
|
+
})), () => {
|
|
181
|
+
e((r) => ({
|
|
182
|
+
...r,
|
|
183
|
+
description: null,
|
|
184
|
+
descriptionSlotProps: void 0
|
|
185
|
+
}));
|
|
186
|
+
}), [t, e]), null;
|
|
187
|
+
}, ro = ({
|
|
188
|
+
children: t,
|
|
189
|
+
...l
|
|
190
|
+
}) => {
|
|
191
|
+
const { setContext: e } = f(a);
|
|
192
|
+
return c(() => (e((r) => ({
|
|
193
|
+
...r,
|
|
194
|
+
error: t,
|
|
195
|
+
errorSlotProps: l
|
|
196
|
+
})), () => {
|
|
197
|
+
e((r) => ({
|
|
198
|
+
...r,
|
|
199
|
+
error: null,
|
|
200
|
+
errorSlotProps: void 0
|
|
201
|
+
}));
|
|
202
|
+
}), [t, e]), null;
|
|
203
|
+
}, to = ({ children: t }) => {
|
|
204
|
+
const { setContext: l } = f(a);
|
|
205
|
+
return c(() => (l((e) => ({
|
|
206
|
+
...e,
|
|
207
|
+
info: t
|
|
208
|
+
})), () => {
|
|
209
|
+
l((e) => ({
|
|
210
|
+
...e,
|
|
211
|
+
info: null
|
|
212
|
+
}));
|
|
213
|
+
}), [t, l]), null;
|
|
214
|
+
}, mo = {
|
|
215
|
+
Root: D,
|
|
216
|
+
Label: q,
|
|
217
|
+
Input: oo,
|
|
218
|
+
Description: eo,
|
|
219
|
+
Error: ro,
|
|
220
|
+
InfoBox: to
|
|
221
|
+
};
|
|
222
|
+
export {
|
|
223
|
+
mo as F,
|
|
224
|
+
D as a,
|
|
225
|
+
q as b,
|
|
226
|
+
oo as c,
|
|
227
|
+
eo as d,
|
|
228
|
+
ro as e,
|
|
229
|
+
to as f
|
|
230
|
+
};
|
|
231
|
+
//# sourceMappingURL=form-field-BYlpCXdY.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field-BYlpCXdY.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":";;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAET,YAAY,MAAM;AAAA,EAAC;AACrB,CAAC,GC5BK,EAAE,cAAAC,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,OAAO,GAGHI,IAAqB,gBAAAJ,EAGhC,OAAO,OAAO,GAGHK,IAA2B,gBAAAL,EAGtC,OAAO,aAAa,GAGTM,IAAqB,gBAAAN,EAGhC,OAAO,OAAO,GAGHO,IAAuB,gBAAAP,EAGlC,OAAO,SAAS,GCbLQ,IAAgB,SAAuB;AAAA,EAClD,KAAKC;AAAA,EACL,IAAAC;AAAA,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nB,GAAUQ,CAAU,CAAC,GAElB;AACT,GClBaoC,KAAmB,CAAC,EAAE,UAAA5C,QAAsC;AACvE,QAAM,EAAE,YAAAQ,EAAA,IAAe6B,EAAWvD,CAAgB;AAElD,SAAAoC,EAAU,OACRV,EAAW,CAACW,OAAiB;AAAA,IAC3B,GAAGA;AAAA,IACH,MAAMnB;AAAA,EAAA,EACN,GAGK,MAAM;AACX,IAAAQ,EAAW,CAACW,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,MAAM;AAAA,IAAA,EACN;AAAA,EACJ,IACC,CAACnB,GAAUQ,CAAU,CAAC,GAElB;AACT,GCtBaqC,KAAY;AAAA,EACvB,MAAMpD;AAAA,EACN,OAAO0C;AAAA,EACP,OAAOG;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AAAA,EACP,SAASE;AACX;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),r=require("react"),h=require("@chakra-ui/react"),f=require("./Dialog-XGXh4NXU.cjs.js"),m=require("@commercetools/nimbus-icons"),y=require("./useObjectRef-dXOJdONs.cjs.js"),z=require("./useField-C_piDZ9g.cjs.js"),x=require("./box-CWni3A32.cjs.js"),A=require("./icon-button-vWPrT-bR.cjs.js"),u=r.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:V,withContext:d}=h.createSlotRecipeContext({key:"formField"}),_=V("div","root"),D=d("div","label"),H=d("div","input"),N=d("div","description"),O=d("div","error"),G=d("div","popover"),j=function({ref:s,id:o,isInvalid:t,isRequired:c,isDisabled:p,isReadOnly:a,children:v,...g}){const B=r.useRef(null),M=y.$df56164dff5785e2$export$4338b53315abf666(h.mergeRefs(B,s)),[e,F]=r.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:c,isDisabled:p,isReadOnly:a}),I=r.useMemo(()=>{const i={id:o,description:e.description,errorMessage:e.error};return e.label?i.label=e.label:(i["aria-label"]="empty-label",i["aria-labelledby"]="empty-label"),i},[o,e.description,e.error,e.label]),{labelProps:q,fieldProps:b,descriptionProps:L,errorMessageProps:R}=z.$2baaea4c71418dea$export$294aa081a6c6f55d(I);r.useEffect(()=>{F(i=>({...i,isInvalid:t,isRequired:c,isDisabled:p,isReadOnly:a}))},[t,c,p,a]);const k=r.useMemo(()=>({...b,isInvalid:t,isRequired:c,isDisabled:p,isReadOnly:a}),[b,t,c,p,a]),w=r.useMemo(()=>({context:e,setContext:F}),[e]);return n.jsx(u.Provider,{value:w,children:n.jsxs(_,{ref:M,...g,children:[e.label&&n.jsxs(D,{...e.labelSlotProps,children:[n.jsxs("label",{...q,children:[e.label,c&&n.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&n.jsxs(f.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[n.jsx(x.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:n.jsx(x.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:n.jsx(A.IconButton,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:n.jsx(m.HelpOutline,{})})})}),n.jsx(f.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:n.jsx(G,{asChild:!0,children:n.jsx(f.$de32f1b87079253c$export$3ddf2d174ce01153,{children:n.jsx(x.Box,{p:"300",children:e.info})})})})]})]}),e.input&&n.jsx(H,{...e.inputSlotProps,children:r.Children.map(e.input,i=>r.isValidElement(i)?r.cloneElement(i,k):i)}),e.description&&n.jsx(N,{...L,...e.descriptionSlotProps,children:e.description}),t&&e.error&&n.jsxs(O,{...R,...e.errorSlotProps,children:[n.jsx(x.Box,{as:m.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),v]})})},C=({children:l,...s})=>{const{setContext:o}=r.useContext(u);return r.useEffect(()=>(o(t=>({...t,label:l,labelSlotProps:s})),()=>{o(t=>({...t,label:null,labelSlotProps:void 0}))}),[l,o]),null},S=({children:l,...s})=>{const{setContext:o}=r.useContext(u);return r.useEffect(()=>{o(t=>({...t,input:l,inputSlotProps:s}))},[l,o]),null},P=({children:l,...s})=>{const{setContext:o}=r.useContext(u);return r.useEffect(()=>(o(t=>({...t,description:l,descriptionSlotProps:s})),()=>{o(t=>({...t,description:null,descriptionSlotProps:void 0}))}),[l,o]),null},$=({children:l,...s})=>{const{setContext:o}=r.useContext(u);return r.useEffect(()=>(o(t=>({...t,error:l,errorSlotProps:s})),()=>{o(t=>({...t,error:null,errorSlotProps:void 0}))}),[l,o]),null},E=({children:l})=>{const{setContext:s}=r.useContext(u);return r.useEffect(()=>(s(o=>({...o,info:l})),()=>{s(o=>({...o,info:null}))}),[l,s]),null},J={Root:j,Label:C,Input:S,Description:P,Error:$,InfoBox:E};exports.FormField=J;exports.FormFieldDescription=P;exports.FormFieldError=$;exports.FormFieldInfoBox=E;exports.FormFieldInput=S;exports.FormFieldLabel=C;exports.FormFieldRoot=j;
|
|
2
|
+
//# sourceMappingURL=form-field-CIGQxVVS.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field-CIGQxVVS.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAGYC,EAAoBH,EAG/B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,OAAO,EAGHI,EAAqBJ,EAGhC,MAAO,OAAO,EAGHK,EAA2BL,EAGtC,MAAO,aAAa,EAGTM,EAAqBN,EAGhC,MAAO,OAAO,EAGHO,EAAuBP,EAGlC,MAAO,SAAS,ECbLQ,EAAgB,SAAuB,CAClD,IAAKC,EACL,GAAAC,EACA,UAAAC,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUR,CAAY,CAAC,EACpD,CAACa,EAASC,CAAU,EAAIC,WAAsC,CAClE,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,KACP,UAAAb,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,CAAA,CACD,EAEKW,EAA+CC,EAAAA,QAAQ,IAAM,CACjE,MAAMC,EAAuC,CAC3C,GAAAjB,EACA,YAAaY,E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,EAAUQ,CAAU,CAAC,EAElB,IACT,EClBaoC,EAAmB,CAAC,CAAE,SAAA5C,KAAsC,CACvE,KAAM,CAAE,WAAAQ,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAMnB,CAAA,EACN,EAGK,IAAM,CACXQ,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAM,IAAA,EACN,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,ECtBaqC,EAAY,CACvB,KAAMpD,EACN,MAAO0C,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as n } from "./scrollIntoView-
|
|
1
|
+
import { $ as n } from "./scrollIntoView-DTfS0nWq.es.js";
|
|
2
2
|
function c(l, t) {
|
|
3
3
|
let e = l;
|
|
4
4
|
for (n(e, t) && (e = e.parentElement); e && !n(e, t); ) e = e.parentElement;
|
|
@@ -7,4 +7,4 @@ function c(l, t) {
|
|
|
7
7
|
export {
|
|
8
8
|
c as $
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=getScrollParent-
|
|
10
|
+
//# sourceMappingURL=getScrollParent-BS4bncfK.es.js.map
|
package/dist/chunks/{getScrollParent-3egW3tgP.es.js.map → getScrollParent-BS4bncfK.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getScrollParent-
|
|
1
|
+
{"version":3,"file":"getScrollParent-BS4bncfK.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/getScrollParent.mjs"],"sourcesContent":["import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {\n let scrollableNode = node;\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;\n while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n\nexport {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};\n//# sourceMappingURL=getScrollParent.module.js.map\n"],"names":["$62d8ded9296f3872$export$cfa2225e87938781","node","checkForOverflow","scrollableNode","$cc38e7bd3fc7b213$export$2bb74740c4e19def"],"mappings":";AAaA,SAASA,EAA0CC,GAAMC,GAAkB;AACvE,MAAIC,IAAiBF;AAErB,OADQG,EAA2CD,GAAgBD,CAAgB,MAAGC,IAAiBA,EAAe,gBAChHA,KAAkB,CAAKC,EAA2CD,GAAgBD,CAAgB,IAAE,CAAAC,IAAiBA,EAAe;AAC1I,SAAOA,KAAkB,SAAS,oBAAoB,SAAS;AACnE;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-Chuw1xje.cjs.js","sources":["../../src/components/grid/grid.tsx"],"sourcesContent":["import {\n Grid as ChakraGrid,\n GridItem,\n type GridProps as ChakraGridProps,\n} from \"@chakra-ui/react/grid\";\n\n/**\n * # Grid\n *\n * An easily customizable Grid component, re-exported from Chakra UI, that provides a consistent layout structure across different products.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/grid}\n */\nexport
|
|
1
|
+
{"version":3,"file":"grid-Chuw1xje.cjs.js","sources":["../../src/components/grid/grid.tsx"],"sourcesContent":["import {\n Grid as ChakraGrid,\n GridItem,\n type GridProps as ChakraGridProps,\n} from \"@chakra-ui/react/grid\";\n\n/**\n * # Grid\n *\n * An easily customizable Grid component, re-exported from Chakra UI, that provides a consistent layout structure across different products.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/grid}\n */\nexport type GridProps = ChakraGridProps & {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n};\n\nconst GridComponent = (props: GridProps) => {\n const { ref, ...restProps } = props;\n return <ChakraGrid ref={ref} {...restProps} />;\n};\n\nGridComponent.displayName = \"Grid\";\n\nexport const Grid = Object.assign(GridComponent, {\n Item: GridItem,\n});\n"],"names":["GridComponent","props","ref","restProps","jsx","ChakraGrid","Grid","GridItem"],"mappings":"qFAkBMA,EAAiBC,GAAqB,CAC1C,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACC,EAAAA,KAAA,CAAW,IAAAH,EAAW,GAAGC,CAAA,CAAW,CAC9C,EAEAH,EAAc,YAAc,OAErB,MAAMM,EAAO,OAAO,OAAON,EAAe,CAC/C,KAAMO,EAAAA,QACR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-De8qjf98.es.js","sources":["../../src/components/grid/grid.tsx"],"sourcesContent":["import {\n Grid as ChakraGrid,\n GridItem,\n type GridProps as ChakraGridProps,\n} from \"@chakra-ui/react/grid\";\n\n/**\n * # Grid\n *\n * An easily customizable Grid component, re-exported from Chakra UI, that provides a consistent layout structure across different products.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/grid}\n */\nexport
|
|
1
|
+
{"version":3,"file":"grid-De8qjf98.es.js","sources":["../../src/components/grid/grid.tsx"],"sourcesContent":["import {\n Grid as ChakraGrid,\n GridItem,\n type GridProps as ChakraGridProps,\n} from \"@chakra-ui/react/grid\";\n\n/**\n * # Grid\n *\n * An easily customizable Grid component, re-exported from Chakra UI, that provides a consistent layout structure across different products.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/grid}\n */\nexport type GridProps = ChakraGridProps & {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n};\n\nconst GridComponent = (props: GridProps) => {\n const { ref, ...restProps } = props;\n return <ChakraGrid ref={ref} {...restProps} />;\n};\n\nGridComponent.displayName = \"Grid\";\n\nexport const Grid = Object.assign(GridComponent, {\n Item: GridItem,\n});\n"],"names":["GridComponent","props","ref","restProps","jsx","ChakraGrid","Grid","GridItem"],"mappings":";;AAkBA,MAAMA,IAAgB,CAACC,MAAqB;AAC1C,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACC,GAAA,EAAW,KAAAH,GAAW,GAAGC,EAAA,CAAW;AAC9C;AAEAH,EAAc,cAAc;AAErB,MAAMM,IAAO,uBAAO,OAAON,GAAe;AAAA,EAC/C,MAAMO;AACR,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),n=require("@chakra-ui/react"),s=require("./Group-BX1EpD9E.cjs.js"),{withContext:u}=n.createRecipeContext({key:"group"}),i=u(s.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4),p=e=>{const{ref:t,children:r,...o}=e;return c.jsx(i,{ref:t,...o,children:r})};exports.Group=p;
|
|
2
|
+
//# sourceMappingURL=group-BqUFlw5R.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-BqUFlw5R.cjs.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport type { GroupSlotProps } from \"./group.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"group\",\n});\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":"qHAIM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,IAAK,OACP,CAAC,EAMYC,EAAYF,EAA4CG,2CAAO,ECT/DC,EAAyBC,GAAU,CAC9C,KAAM,CAAE,IAAAC,EAAK,SAAAC,EAAU,GAAGC,GAASH,EACnC,OACEI,EAAAA,IAACP,EAAA,CAAU,IAAAI,EAAW,GAAGE,EACtB,SAAAD,EACH,CAEJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { createRecipeContext as c } from "@chakra-ui/react";
|
|
3
|
+
import { $ as n } from "./Group-BBaUrRF9.es.js";
|
|
4
|
+
const { withContext: s } = /* @__PURE__ */ c({
|
|
5
|
+
key: "group"
|
|
6
|
+
}), f = /* @__PURE__ */ s(n), d = (o) => {
|
|
7
|
+
const { ref: t, children: r, ...e } = o;
|
|
8
|
+
return /* @__PURE__ */ p(f, { ref: t, ...e, children: r });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
d as G
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=group-CWADf2vF.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-CWADf2vF.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport type { GroupSlotProps } from \"./group.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"group\",\n});\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;AAIA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IAAY,gBAAAF,EAA4CG,CAAO,GCT/DC,IAAwB,CAACC,MAAU;AAC9C,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAASH;AACnC,SACE,gBAAAI,EAACP,GAAA,EAAU,KAAAI,GAAW,GAAGE,GACtB,UAAAD,GACH;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading-BTacGwo9.cjs.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport
|
|
1
|
+
{"version":3,"file":"heading-BTacGwo9.cjs.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\ntype HeadingRecipeVariantProps = {\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n};\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport type HeadingProps = HeadingRecipeVariantProps &\n Omit<ChakraHeadingProps, \"slot\"> & {\n /**\n * Ref to the underlying heading element.\n */\n ref?: React.Ref<HTMLHeadingElement>;\n /**\n * Slot attribute for custom element slotting.\n */\n slot?: string | null | undefined;\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n };\n\n/**\n * # Heading\n *\n * renders a heading\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/heading}\n */\nexport const Heading = ({ ref: forwardedRef, ...props }: HeadingProps) => {\n const [contextProps, ref] = useContextProps(\n props,\n forwardedRef ?? null,\n HeadingContext\n );\n\n return (\n <ChakraHeading\n ref={ref as React.Ref<HTMLHeadingElement>}\n {...contextProps}\n as={props.as || contextProps.as}\n slot={props.slot ?? undefined}\n />\n );\n};\n\nHeading.displayName = \"Heading\";\n"],"names":["Heading","forwardedRef","props","contextProps","ref","useContextProps","HeadingContext","jsx","ChakraHeading"],"mappings":"wKAkEaA,EAAU,CAAC,CAAE,IAAKC,EAAc,GAAGC,KAA0B,CACxE,KAAM,CAACC,EAAcC,CAAG,EAAIC,EAAAA,0CAC1BH,EACAD,GAAgB,KAChBK,EAAAA,yCAAA,EAGF,OACEC,EAAAA,IAACC,EAAAA,QAAA,CACC,IAAAJ,EACC,GAAGD,EACJ,GAAID,EAAM,IAAMC,EAAa,GAC7B,KAAMD,EAAM,MAAQ,MAAA,CAAA,CAG1B,EAEAF,EAAQ,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading-BtazVUd5.es.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport
|
|
1
|
+
{"version":3,"file":"heading-BtazVUd5.es.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\ntype HeadingRecipeVariantProps = {\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n};\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport type HeadingProps = HeadingRecipeVariantProps &\n Omit<ChakraHeadingProps, \"slot\"> & {\n /**\n * Ref to the underlying heading element.\n */\n ref?: React.Ref<HTMLHeadingElement>;\n /**\n * Slot attribute for custom element slotting.\n */\n slot?: string | null | undefined;\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n };\n\n/**\n * # Heading\n *\n * renders a heading\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/heading}\n */\nexport const Heading = ({ ref: forwardedRef, ...props }: HeadingProps) => {\n const [contextProps, ref] = useContextProps(\n props,\n forwardedRef ?? null,\n HeadingContext\n );\n\n return (\n <ChakraHeading\n ref={ref as React.Ref<HTMLHeadingElement>}\n {...contextProps}\n as={props.as || contextProps.as}\n slot={props.slot ?? undefined}\n />\n );\n};\n\nHeading.displayName = \"Heading\";\n"],"names":["Heading","forwardedRef","props","contextProps","ref","useContextProps","HeadingContext","jsx","ChakraHeading"],"mappings":";;;;AAkEO,MAAMA,IAAU,CAAC,EAAE,KAAKC,GAAc,GAAGC,QAA0B;AACxE,QAAM,CAACC,GAAcC,CAAG,IAAIC;AAAAA,IAC1BH;AAAA,IACAD,KAAgB;AAAA,IAChBK;AAAAA,EAAA;AAGF,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACC,GAAGD;AAAA,MACJ,IAAID,EAAM,MAAMC,EAAa;AAAA,MAC7B,MAAMD,EAAM,QAAQ;AAAA,IAAA;AAAA,EAAA;AAG1B;AAEAF,EAAQ,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),n=require("@chakra-ui/react"),{withContext:r}=n.createRecipeContext({key:"icon"}),i=r("svg"),e=o=>{const{ref:s,...t}=o;return c.jsx(i,{ref:s,asChild:!t.as,...t})};e.displayName="Icon";exports.Icon=e;
|
|
2
|
+
//# sourceMappingURL=icon-D39U--jA.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-D39U--jA.cjs.js","sources":["../../src/components/icon/icon.slots.tsx","../../src/components/icon/icon.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { IconRootSlotProps } from \"./icon.types\";\n\nconst { withContext } = createRecipeContext({ key: \"icon\" });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const IconRootSlot = withContext<SVGSVGElement, IconRootSlotProps>(\n \"svg\"\n);\n","import { IconRootSlot } from \"./icon.slots\";\nimport type { IconProps } from \"./icon.types\";\n\n/**\n * # Icon\n *\n * displays icon components\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/media/icon}\n */\nexport const Icon = (props: IconProps) => {\n const { ref, ...restProps } = props;\n return <IconRootSlot ref={ref} asChild={!restProps.as} {...restProps} />;\n};\n\nIcon.displayName = \"Icon\";\n"],"names":["withContext","createRecipeContext","IconRootSlot","Icon","props","ref","restProps","jsx"],"mappings":"gFAGM,CAAE,YAAAA,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,IAAK,OAAQ,EAM9CC,EAAeF,EAC1B,KACF,ECDaG,EAAQC,GAAqB,CACxC,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACL,GAAa,IAAAG,EAAU,QAAS,CAACC,EAAU,GAAK,GAAGA,EAAW,CACxE,EAEAH,EAAK,YAAc"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { createRecipeContext as n } from "@chakra-ui/react";
|
|
3
|
+
const { withContext: r } = /* @__PURE__ */ n({ key: "icon" }), c = /* @__PURE__ */ r(
|
|
4
|
+
"svg"
|
|
5
|
+
), i = (t) => {
|
|
6
|
+
const { ref: e, ...o } = t;
|
|
7
|
+
return /* @__PURE__ */ s(c, { ref: e, asChild: !o.as, ...o });
|
|
8
|
+
};
|
|
9
|
+
i.displayName = "Icon";
|
|
10
|
+
export {
|
|
11
|
+
i as I
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=icon-V6yr3oou.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-V6yr3oou.es.js","sources":["../../src/components/icon/icon.slots.tsx","../../src/components/icon/icon.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { IconRootSlotProps } from \"./icon.types\";\n\nconst { withContext } = createRecipeContext({ key: \"icon\" });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const IconRootSlot = withContext<SVGSVGElement, IconRootSlotProps>(\n \"svg\"\n);\n","import { IconRootSlot } from \"./icon.slots\";\nimport type { IconProps } from \"./icon.types\";\n\n/**\n * # Icon\n *\n * displays icon components\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/media/icon}\n */\nexport const Icon = (props: IconProps) => {\n const { ref, ...restProps } = props;\n return <IconRootSlot ref={ref} asChild={!restProps.as} {...restProps} />;\n};\n\nIcon.displayName = \"Icon\";\n"],"names":["withContext","createRecipeContext","IconRootSlot","Icon","props","ref","restProps","jsx"],"mappings":";;AAGA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,QAAQ,GAM9CC,IAAe,gBAAAF;AAAA,EAC1B;AACF,GCDaG,IAAO,CAACC,MAAqB;AACxC,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACL,KAAa,KAAAG,GAAU,SAAS,CAACC,EAAU,IAAK,GAAGA,GAAW;AACxE;AAEAH,EAAK,cAAc;"}
|
|
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as n } from "react";
|
|
3
3
|
import { mergeRefs as p } from "@chakra-ui/react";
|
|
4
4
|
import { $ as a } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
5
|
-
import { B as c } from "./button-
|
|
5
|
+
import { B as c } from "./button-IZUJaJku.es.js";
|
|
6
6
|
const i = (o) => {
|
|
7
7
|
const { children: r, ref: t, ...e } = o, f = n(null), s = a(p(f, t));
|
|
8
8
|
return /* @__PURE__ */ m(c, { px: 0, py: 0, ...e, ref: s, children: r });
|
|
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
|
|
|
11
11
|
export {
|
|
12
12
|
i as I
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=icon-button-
|
|
14
|
+
//# sourceMappingURL=icon-button-DQS2apw-.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-DQS2apw-.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-dXOJdONs.cjs.js"),R=require("./button-
|
|
2
|
-
//# sourceMappingURL=icon-button-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-dXOJdONs.cjs.js"),R=require("./button-B5OOW-2z.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(R.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
|
|
2
|
+
//# sourceMappingURL=icon-button-vWPrT-bR.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-vWPrT-bR.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { T as l } from "./toggle-button-
|
|
2
|
+
import { T as l } from "./toggle-button-awb1jBf8.es.js";
|
|
3
3
|
const n = ({
|
|
4
4
|
"aria-label": o,
|
|
5
5
|
children: t,
|
|
@@ -10,4 +10,4 @@ n.displayName = "IconToggleButton";
|
|
|
10
10
|
export {
|
|
11
11
|
n as I
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
13
|
+
//# sourceMappingURL=icon-toggle-button-Bi-9Obfx.es.js.map
|
package/dist/chunks/{icon-toggle-button-CqILSznm.es.js.map → icon-toggle-button-Bi-9Obfx.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-Bi-9Obfx.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
|
package/dist/chunks/{icon-toggle-button-Bsj4XLsI.cjs.js → icon-toggle-button-eLrsWehe.cjs.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-
|
|
2
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-DxMZsem4.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
|
|
2
|
+
//# sourceMappingURL=icon-toggle-button-eLrsWehe.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-eLrsWehe.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-CGOYoc2s.cjs.js","sources":["../../src/components/image/image.tsx"],"sourcesContent":["import {\n Image as ChakraImage,\n type ImageProps as ChakraImageProps,\n} from \"@chakra-ui/react/image\";\n\
|
|
1
|
+
{"version":3,"file":"image-CGOYoc2s.cjs.js","sources":["../../src/components/image/image.tsx"],"sourcesContent":["import {\n Image as ChakraImage,\n type ImageProps as ChakraImageProps,\n} from \"@chakra-ui/react/image\";\n\nexport type ImageProps = ChakraImageProps;\n\n/**\n * # Image\n *\n * A component to display images with support for fallback.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/media/image}\n */\nexport const Image = (props: ImageProps) => {\n return <ChakraImage {...props} />;\n};\n\nImage.displayName = \"Image\";\n"],"names":["Image","props","jsx","ChakraImage"],"mappings":"sFAcaA,EAASC,GACbC,MAACC,EAAAA,MAAA,CAAa,GAAGF,CAAA,CAAO,EAGjCD,EAAM,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-DRigLU80.es.js","sources":["../../src/components/image/image.tsx"],"sourcesContent":["import {\n Image as ChakraImage,\n type ImageProps as ChakraImageProps,\n} from \"@chakra-ui/react/image\";\n\
|
|
1
|
+
{"version":3,"file":"image-DRigLU80.es.js","sources":["../../src/components/image/image.tsx"],"sourcesContent":["import {\n Image as ChakraImage,\n type ImageProps as ChakraImageProps,\n} from \"@chakra-ui/react/image\";\n\nexport type ImageProps = ChakraImageProps;\n\n/**\n * # Image\n *\n * A component to display images with support for fallback.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/media/image}\n */\nexport const Image = (props: ImageProps) => {\n return <ChakraImage {...props} />;\n};\n\nImage.displayName = \"Image\";\n"],"names":["Image","props","jsx","ChakraImage"],"mappings":";;AAcO,MAAMA,IAAQ,CAACC,MACb,gBAAAC,EAACC,GAAA,EAAa,GAAGF,EAAA,CAAO;AAGjCD,EAAM,cAAc;"}
|