@commercetools/nimbus 0.0.0-canary-20251001071243 → 0.0.0-canary-20251001130410
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{DatePicker-DOq_YUYb.es.js → DatePicker-DmiNa1e-.es.js} +2 -2
- package/dist/chunks/{DatePicker-DOq_YUYb.es.js.map → DatePicker-DmiNa1e-.es.js.map} +1 -1
- package/dist/chunks/{Dialog-BgV9Ur8E.es.js → Dialog-SvkYfu5i.es.js} +4 -4
- package/dist/chunks/{Dialog-BgV9Ur8E.es.js.map → Dialog-SvkYfu5i.es.js.map} +1 -1
- package/dist/chunks/{Header-LkbMVqUr.es.js → Header-CnkbxL1Z.es.js} +3 -3
- package/dist/chunks/{Header-LkbMVqUr.es.js.map → Header-CnkbxL1Z.es.js.map} +1 -1
- package/dist/chunks/{ListBox-BLYSfKWM.es.js → ListBox-CkDiOBnJ.es.js} +4 -4
- package/dist/chunks/{ListBox-BLYSfKWM.es.js.map → ListBox-CkDiOBnJ.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-DPe6sYkP.es.js → SelectionManager-CSt4dh97.es.js} +2 -2
- package/dist/chunks/{SelectionManager-DPe6sYkP.es.js.map → SelectionManager-CSt4dh97.es.js.map} +1 -1
- package/dist/chunks/{Separator-DOY-4i96.es.js → Separator-HDKQdp4v.es.js} +6 -6
- package/dist/chunks/{Separator-DOY-4i96.es.js.map → Separator-HDKQdp4v.es.js.map} +1 -1
- package/dist/chunks/{accordion-BSR4mSOu.es.js → accordion-1xPIt07g.es.js} +2 -2
- package/dist/chunks/{accordion-BSR4mSOu.es.js.map → accordion-1xPIt07g.es.js.map} +1 -1
- package/dist/chunks/{accordion-4Vh8MRHG.cjs.js → accordion-CdIEuDDs.cjs.js} +2 -2
- package/dist/chunks/{accordion-4Vh8MRHG.cjs.js.map → accordion-CdIEuDDs.cjs.js.map} +1 -1
- package/dist/chunks/{alert-C0YsaZz2.es.js → alert-Blp_hf9F.es.js} +2 -2
- package/dist/chunks/{alert-C0YsaZz2.es.js.map → alert-Blp_hf9F.es.js.map} +1 -1
- package/dist/chunks/{alert-cCy3Ka2E.cjs.js → alert-CZEBRJ9p.cjs.js} +2 -2
- package/dist/chunks/{alert-cCy3Ka2E.cjs.js.map → alert-CZEBRJ9p.cjs.js.map} +1 -1
- package/dist/chunks/{button-BAH2aLJh.cjs.js → button-BSWhqzIJ.cjs.js} +2 -2
- package/dist/chunks/{button-BAH2aLJh.cjs.js.map → button-BSWhqzIJ.cjs.js.map} +1 -1
- package/dist/chunks/{button-DSws4IjQ.es.js → button-tLehmoCt.es.js} +2 -2
- package/dist/chunks/{button-DSws4IjQ.es.js.map → button-tLehmoCt.es.js.map} +1 -1
- package/dist/chunks/{calendar-QYUcSSuy.es.js → calendar-B58zfVhs.es.js} +4 -4
- package/dist/chunks/{calendar-QYUcSSuy.es.js.map → calendar-B58zfVhs.es.js.map} +1 -1
- package/dist/chunks/{calendar-CNjZUyhZ.cjs.js → calendar-xPQsLl6L.cjs.js} +2 -2
- package/dist/chunks/{calendar-CNjZUyhZ.cjs.js.map → calendar-xPQsLl6L.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BjhklyOp.cjs.js → checkbox-CLR3YHZW.cjs.js} +2 -2
- package/dist/chunks/{checkbox-BjhklyOp.cjs.js.map → checkbox-CLR3YHZW.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BYw5k4jR.es.js → checkbox-D1Y9DVYF.es.js} +2 -2
- package/dist/chunks/{checkbox-BYw5k4jR.es.js.map → checkbox-D1Y9DVYF.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BASfX7dq.es.js → collapsible-motion-BvdtYGQE.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-BASfX7dq.es.js.map → collapsible-motion-BvdtYGQE.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-CKitPEjA.cjs.js → collapsible-motion-D3QM37Qz.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-CKitPEjA.cjs.js.map → collapsible-motion-D3QM37Qz.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-D0zYU4ZZ.cjs.js → combobox-B60AWpPC.cjs.js} +2 -2
- package/dist/chunks/{combobox-D0zYU4ZZ.cjs.js.map → combobox-B60AWpPC.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-DmQUeFFT.es.js → combobox-BWJoplDo.es.js} +11 -11
- package/dist/chunks/{combobox-DmQUeFFT.es.js.map → combobox-BWJoplDo.es.js.map} +1 -1
- package/dist/chunks/{data-table-Cipv3jS9.cjs.js → data-table-BJVv7I8A.cjs.js} +2 -2
- package/dist/chunks/{data-table-Cipv3jS9.cjs.js.map → data-table-BJVv7I8A.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-BKJDvxYT.es.js → data-table-D4e35rxu.es.js} +8 -8
- package/dist/chunks/{data-table-BKJDvxYT.es.js.map → data-table-D4e35rxu.es.js.map} +1 -1
- package/dist/chunks/date-input-CK3WtPkJ.cjs.js +2 -0
- package/dist/chunks/date-input-CK3WtPkJ.cjs.js.map +1 -0
- package/dist/chunks/date-input-Daj_CPWN.es.js +20 -0
- package/dist/chunks/date-input-Daj_CPWN.es.js.map +1 -0
- package/dist/chunks/{date-picker-BIvJI-6_.es.js → date-picker-BLb_IHhd.es.js} +9 -9
- package/dist/chunks/{date-picker-BIvJI-6_.es.js.map → date-picker-BLb_IHhd.es.js.map} +1 -1
- package/dist/chunks/{date-picker-BKudarck.cjs.js → date-picker-mE3ZgF5x.cjs.js} +2 -2
- package/dist/chunks/{date-picker-BKudarck.cjs.js.map → date-picker-mE3ZgF5x.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-4mZ19UM7.cjs.js → date-range-picker--g9Bzar4.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-4mZ19UM7.cjs.js.map → date-range-picker--g9Bzar4.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DelR30zw.es.js → date-range-picker-B5KfWxe9.es.js} +9 -9
- package/dist/chunks/{date-range-picker-DelR30zw.es.js.map → date-range-picker-B5KfWxe9.es.js.map} +1 -1
- package/dist/chunks/{dialog-D0RnaoTx.cjs.js → dialog-Bech4WpU.cjs.js} +2 -2
- package/dist/chunks/{dialog-D0RnaoTx.cjs.js.map → dialog-Bech4WpU.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-B-NKwVSi.es.js → dialog-Bx0O1gKI.es.js} +2 -2
- package/dist/chunks/{dialog-B-NKwVSi.es.js.map → dialog-Bx0O1gKI.es.js.map} +1 -1
- package/dist/chunks/{dialog.title-DyRR_xdZ.es.js → dialog.title-CfwJLUeB.es.js} +5 -5
- package/dist/chunks/{dialog.title-DyRR_xdZ.es.js.map → dialog.title-CfwJLUeB.es.js.map} +1 -1
- package/dist/chunks/{dialog.title-Co1QDiYA.cjs.js → dialog.title-RLHmO1dx.cjs.js} +2 -2
- package/dist/chunks/{dialog.title-Co1QDiYA.cjs.js.map → dialog.title-RLHmO1dx.cjs.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-i_um9deg.es.js → extractStyleProps-DjVNA871.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-i_um9deg.es.js.map → extractStyleProps-DjVNA871.es.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-BIJocpXL.cjs.js → extractStyleProps-Q5HTdHwJ.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-BIJocpXL.cjs.js.map → extractStyleProps-Q5HTdHwJ.cjs.js.map} +1 -1
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js +2 -0
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js.map +1 -0
- package/dist/chunks/{field-errors-CcQ1ssQj.es.js → field-errors-n9EuKYPI.es.js} +43 -37
- package/dist/chunks/field-errors-n9EuKYPI.es.js.map +1 -0
- package/dist/chunks/form-field-8JwWMQy1.cjs.js +11 -0
- package/dist/chunks/form-field-8JwWMQy1.cjs.js.map +1 -0
- package/dist/chunks/form-field-BBRdeEEq.es.js +341 -0
- package/dist/chunks/form-field-BBRdeEEq.es.js.map +1 -0
- package/dist/chunks/{icon-button-CBhvV2Ok.cjs.js → icon-button-BeIGRIFN.cjs.js} +2 -2
- package/dist/chunks/{icon-button-CBhvV2Ok.cjs.js.map → icon-button-BeIGRIFN.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-_9swBHc3.es.js → icon-button-CctfLs8I.es.js} +2 -2
- package/dist/chunks/{icon-button-_9swBHc3.es.js.map → icon-button-CctfLs8I.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-S56p30pP.es.js → icon-toggle-button-0s_KaTfe.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-S56p30pP.es.js.map → icon-toggle-button-0s_KaTfe.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-wPsxrI7v.cjs.js → icon-toggle-button-ONFPX0qS.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-wPsxrI7v.cjs.js.map → icon-toggle-button-ONFPX0qS.cjs.js.map} +1 -1
- package/dist/chunks/{index-L5KSWClG.cjs.js → index-SuWPp512.cjs.js} +14 -3
- package/dist/chunks/index-SuWPp512.cjs.js.map +1 -0
- package/dist/chunks/{index-DRb2wMPi.es.js → index-fjbcWgyz.es.js} +216 -65
- package/dist/chunks/{index-L5KSWClG.cjs.js.map → index-fjbcWgyz.es.js.map} +1 -1
- package/dist/chunks/localized-field-C2cbHq3g.es.js +471 -0
- package/dist/chunks/localized-field-C2cbHq3g.es.js.map +1 -0
- package/dist/chunks/localized-field-hQsX33XN.cjs.js +2 -0
- package/dist/chunks/localized-field-hQsX33XN.cjs.js.map +1 -0
- package/dist/chunks/{menu-CVO7gYdK.es.js → menu-BjwsANQd.es.js} +6 -6
- package/dist/chunks/{menu-CVO7gYdK.es.js.map → menu-BjwsANQd.es.js.map} +1 -1
- package/dist/chunks/{menu-BfwjSmIS.cjs.js → menu-CbBblVAx.cjs.js} +2 -2
- package/dist/chunks/{menu-BfwjSmIS.cjs.js.map → menu-CbBblVAx.cjs.js.map} +1 -1
- package/dist/chunks/money-input-CdGqdo4S.cjs.js +2 -0
- package/dist/chunks/money-input-CdGqdo4S.cjs.js.map +1 -0
- package/dist/chunks/{money-input-C1jSkjXo.es.js → money-input-Cs8XrifY.es.js} +119 -86
- package/dist/chunks/money-input-Cs8XrifY.es.js.map +1 -0
- package/dist/chunks/{multiline-text-input-_G6GcQrg.es.js → multiline-text-input-DGMceBRu.es.js} +19 -17
- package/dist/chunks/multiline-text-input-DGMceBRu.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-n_bb3ViF.cjs.js +12 -0
- package/dist/chunks/multiline-text-input-n_bb3ViF.cjs.js.map +1 -0
- package/dist/chunks/{nimbus-provider-BDP4hXF7.es.js → nimbus-provider-BND7wasE.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-BDP4hXF7.es.js.map → nimbus-provider-BND7wasE.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CyRDR7rD.cjs.js → nimbus-provider-ChYtQ95-.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-CyRDR7rD.cjs.js.map → nimbus-provider-ChYtQ95-.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-DnBbey5l.cjs.js → number-input-BQvDkOaw.cjs.js} +2 -2
- package/dist/chunks/{number-input-DnBbey5l.cjs.js.map → number-input-BQvDkOaw.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CI0DSniW.es.js → number-input-DVUK5Vqy.es.js} +30 -29
- package/dist/chunks/{number-input-CI0DSniW.es.js.map → number-input-DVUK5Vqy.es.js.map} +1 -1
- package/dist/chunks/{pagination-Bi6keZ3a.es.js → pagination-BOCer9DU.es.js} +4 -4
- package/dist/chunks/{pagination-Bi6keZ3a.es.js.map → pagination-BOCer9DU.es.js.map} +1 -1
- package/dist/chunks/{pagination-DdGULNPt.cjs.js → pagination-DtowryRO.cjs.js} +2 -2
- package/dist/chunks/{pagination-DdGULNPt.cjs.js.map → pagination-DtowryRO.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-Lh2HHpnL.cjs.js → password-input-B-YRh6bw.cjs.js} +2 -2
- package/dist/chunks/{password-input-Lh2HHpnL.cjs.js.map → password-input-B-YRh6bw.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-BC8qYtsr.es.js → password-input-Brdfp_j8.es.js} +3 -3
- package/dist/chunks/{password-input-BC8qYtsr.es.js.map → password-input-Brdfp_j8.es.js.map} +1 -1
- package/dist/chunks/popover-QYDVIaQN.cjs.js +2 -0
- package/dist/chunks/popover-QYDVIaQN.cjs.js.map +1 -0
- package/dist/chunks/popover-diWkZ07x.es.js +27 -0
- package/dist/chunks/popover-diWkZ07x.es.js.map +1 -0
- package/dist/chunks/{progress-bar-7H8xrBrA.es.js → progress-bar-hYGJlvcE.es.js} +2 -2
- package/dist/chunks/{progress-bar-7H8xrBrA.es.js.map → progress-bar-hYGJlvcE.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-Cw9FWHlW.cjs.js → progress-bar-m6NsCg7W.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-Cw9FWHlW.cjs.js.map → progress-bar-m6NsCg7W.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CsIiU86R.cjs.js → radio-input-CVk4E1vl.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CsIiU86R.cjs.js.map → radio-input-CVk4E1vl.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-BR53WuBU.es.js → radio-input-DpkravQW.es.js} +3 -3
- package/dist/chunks/{radio-input-BR53WuBU.es.js.map → radio-input-DpkravQW.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-DFb9bsJ4.es.js → range-calendar-4rEdNmr4.es.js} +4 -4
- package/dist/chunks/{range-calendar-DFb9bsJ4.es.js.map → range-calendar-4rEdNmr4.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-BH-2JsiF.cjs.js → range-calendar-BA_Ep3Zy.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-BH-2JsiF.cjs.js.map → range-calendar-BA_Ep3Zy.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BZ-Msa-L.cjs.js → rich-text-input-DxCnw4AP.cjs.js} +3 -3
- package/dist/chunks/rich-text-input-DxCnw4AP.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-BmdxXmR4.es.js → rich-text-input-MyC1ucSo.es.js} +15 -7
- package/dist/chunks/rich-text-input-MyC1ucSo.es.js.map +1 -0
- package/dist/chunks/{select-kYdilBPV.cjs.js → select-ARr1JS_7.cjs.js} +2 -2
- package/dist/chunks/{select-kYdilBPV.cjs.js.map → select-ARr1JS_7.cjs.js.map} +1 -1
- package/dist/chunks/{select-CTbgnj8L.es.js → select-Du-L0KgJ.es.js} +10 -10
- package/dist/chunks/{select-CTbgnj8L.es.js.map → select-Du-L0KgJ.es.js.map} +1 -1
- package/dist/chunks/{separator-BPbw-2l_.cjs.js → separator-CqI23She.cjs.js} +2 -2
- package/dist/chunks/{separator-BPbw-2l_.cjs.js.map → separator-CqI23She.cjs.js.map} +1 -1
- package/dist/chunks/{separator-kuEDe6AG.es.js → separator-DgdTy5cy.es.js} +3 -3
- package/dist/chunks/{separator-kuEDe6AG.es.js.map → separator-DgdTy5cy.es.js.map} +1 -1
- package/dist/chunks/{split-button-OxOyRI3k.cjs.js → split-button-I1ltM4Vj.cjs.js} +2 -2
- package/dist/chunks/{split-button-OxOyRI3k.cjs.js.map → split-button-I1ltM4Vj.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-VbEC4QmQ.es.js → split-button-R-totPZa.es.js} +5 -5
- package/dist/chunks/{split-button-VbEC4QmQ.es.js.map → split-button-R-totPZa.es.js.map} +1 -1
- package/dist/chunks/{switch-BtgfHCUU.cjs.js → switch-CWUuLZOP.cjs.js} +2 -2
- package/dist/chunks/{switch-BtgfHCUU.cjs.js.map → switch-CWUuLZOP.cjs.js.map} +1 -1
- package/dist/chunks/{switch-Cqlh-hxo.es.js → switch-DZ8nNXLD.es.js} +3 -3
- package/dist/chunks/{switch-Cqlh-hxo.es.js.map → switch-DZ8nNXLD.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Dd6RDJ85.es.js → tag-group-85VbFf5V.es.js} +6 -6
- package/dist/chunks/{tag-group-Dd6RDJ85.es.js.map → tag-group-85VbFf5V.es.js.map} +1 -1
- package/dist/chunks/{tag-group-BiHCKIBb.cjs.js → tag-group-B5zBt0aa.cjs.js} +2 -2
- package/dist/chunks/{tag-group-BiHCKIBb.cjs.js.map → tag-group-B5zBt0aa.cjs.js.map} +1 -1
- package/dist/chunks/text-input-CaBBSE9c.cjs.js +2 -0
- package/dist/chunks/{text-input-NqDP9nsj.cjs.js.map → text-input-CaBBSE9c.cjs.js.map} +1 -1
- package/dist/chunks/text-input-iDHRgozX.es.js +49 -0
- package/dist/chunks/{text-input-Ch6OZEU5.es.js.map → text-input-iDHRgozX.es.js.map} +1 -1
- package/dist/chunks/{time-input-BPMoY1TY.es.js → time-input-DUfC3pNm.es.js} +2 -2
- package/dist/chunks/{time-input-BPMoY1TY.es.js.map → time-input-DUfC3pNm.es.js.map} +1 -1
- package/dist/chunks/{time-input-CAUpjIAO.cjs.js → time-input-YZY-GzT7.cjs.js} +2 -2
- package/dist/chunks/{time-input-CAUpjIAO.cjs.js.map → time-input-YZY-GzT7.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Q0HDyGR5.es.js → toggle-button-BFJvsG3g.es.js} +3 -3
- package/dist/chunks/{toggle-button-Q0HDyGR5.es.js.map → toggle-button-BFJvsG3g.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BcqqrZ6N.cjs.js → toggle-button-BKz5tJB3.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BcqqrZ6N.cjs.js.map → toggle-button-BKz5tJB3.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CK8vOB4V.cjs.js → toolbar-BbuClYWc.cjs.js} +2 -2
- package/dist/chunks/{toolbar-CK8vOB4V.cjs.js.map → toolbar-BbuClYWc.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CpMMNKHw.es.js → toolbar-kJJMLzLV.es.js} +3 -3
- package/dist/chunks/{toolbar-CpMMNKHw.es.js.map → toolbar-kJJMLzLV.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-BCxpO0gf.es.js → useSingleSelectListState-CYgE8tvg.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-BCxpO0gf.es.js.map → useSingleSelectListState-CYgE8tvg.es.js.map} +1 -1
- 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/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/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/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/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/localized-field.cjs +2 -0
- package/dist/components/localized-field.cjs.map +1 -0
- package/dist/components/localized-field.es.js +5 -0
- package/dist/components/localized-field.es.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/components/popover.es.js +2 -22
- package/dist/components/popover.es.js.map +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/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/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.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/field-errors.d.ts +19 -1
- package/dist/form-field.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +41 -39
- package/dist/index.es.js.map +1 -1
- package/dist/localized-field.d.ts +937 -0
- package/dist/money-input.d.ts +9 -1
- package/dist/popover.d.ts +19 -3
- package/package.json +5 -5
- package/dist/chunks/date-input-BS7NT0zS.es.js +0 -21
- package/dist/chunks/date-input-BS7NT0zS.es.js.map +0 -1
- package/dist/chunks/date-input-x1wfQ64a.cjs.js +0 -2
- package/dist/chunks/date-input-x1wfQ64a.cjs.js.map +0 -1
- package/dist/chunks/field-errors-CcQ1ssQj.es.js.map +0 -1
- package/dist/chunks/field-errors-Rzp3VbWz.cjs.js +0 -2
- package/dist/chunks/field-errors-Rzp3VbWz.cjs.js.map +0 -1
- package/dist/chunks/form-field-ClSAs-Vz.es.js +0 -319
- package/dist/chunks/form-field-ClSAs-Vz.es.js.map +0 -1
- package/dist/chunks/form-field-DVpuX6t5.cjs.js +0 -11
- package/dist/chunks/form-field-DVpuX6t5.cjs.js.map +0 -1
- package/dist/chunks/index-DRb2wMPi.es.js.map +0 -1
- package/dist/chunks/money-input-C1jSkjXo.es.js.map +0 -1
- package/dist/chunks/money-input-DJMTLGRy.cjs.js +0 -2
- package/dist/chunks/money-input-DJMTLGRy.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-Dz0ikaM-.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-Dz0ikaM-.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-_G6GcQrg.es.js.map +0 -1
- package/dist/chunks/rich-text-input-BZ-Msa-L.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-BmdxXmR4.es.js.map +0 -1
- package/dist/chunks/text-input-Ch6OZEU5.es.js +0 -48
- package/dist/chunks/text-input-NqDP9nsj.cjs.js +0 -2
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as H, useRef as y, useState as B, useMemo as g, useEffect as s, Children as L, isValidElement as M, cloneElement as R, useContext as u } from "react";
|
|
3
|
+
import { mergeRefs as I } from "@chakra-ui/react";
|
|
4
|
+
import { defineSlotRecipe as T, createSlotRecipeContext as V } from "@chakra-ui/react/styled-system";
|
|
5
|
+
import { e as W, $ as j, a as k } from "./Dialog-SvkYfu5i.es.js";
|
|
6
|
+
import { HelpOutline as N, ErrorOutline as _ } from "@commercetools/nimbus-icons";
|
|
7
|
+
import { $ as G } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
8
|
+
import { $ as J } from "./useField-BHGdzEiI.es.js";
|
|
9
|
+
import { B as b } from "./box-DuBoAZvq.es.js";
|
|
10
|
+
import { I as K } from "./icon-button-CctfLs8I.es.js";
|
|
11
|
+
const c = /* @__PURE__ */ H({
|
|
12
|
+
context: {
|
|
13
|
+
label: null,
|
|
14
|
+
description: null,
|
|
15
|
+
error: null,
|
|
16
|
+
info: null,
|
|
17
|
+
input: null
|
|
18
|
+
},
|
|
19
|
+
setContext: () => {
|
|
20
|
+
}
|
|
21
|
+
}), O = `
|
|
22
|
+
"label"
|
|
23
|
+
"input"
|
|
24
|
+
"description"
|
|
25
|
+
"error"
|
|
26
|
+
`, Q = `
|
|
27
|
+
"label input"
|
|
28
|
+
"label description"
|
|
29
|
+
"label error"
|
|
30
|
+
`, U = /* @__PURE__ */ T({
|
|
31
|
+
slots: ["root", "label", "input", "description", "error", "popover"],
|
|
32
|
+
// Unique class name prefix for the component
|
|
33
|
+
className: "nimbus-ui-form-field",
|
|
34
|
+
base: {
|
|
35
|
+
root: {
|
|
36
|
+
"--grid-gap": "spacing.100",
|
|
37
|
+
display: "grid",
|
|
38
|
+
width: "auto"
|
|
39
|
+
},
|
|
40
|
+
label: {
|
|
41
|
+
gridArea: "label",
|
|
42
|
+
fontWeight: "500",
|
|
43
|
+
color: "neutral.11",
|
|
44
|
+
fontSize: "var(--form-field-font-size)",
|
|
45
|
+
lineHeight: "var(--form-field-line-height)"
|
|
46
|
+
},
|
|
47
|
+
input: {
|
|
48
|
+
gridArea: "input"
|
|
49
|
+
},
|
|
50
|
+
description: {
|
|
51
|
+
gridArea: "description",
|
|
52
|
+
color: "neutral.11",
|
|
53
|
+
fontSize: "var(--form-field-font-size)",
|
|
54
|
+
lineHeight: "var(--form-field-line-height)"
|
|
55
|
+
},
|
|
56
|
+
error: {
|
|
57
|
+
gridArea: "error",
|
|
58
|
+
color: "critical.11",
|
|
59
|
+
fontSize: "var(--form-field-font-size)",
|
|
60
|
+
lineHeight: "var(--form-field-line-height)",
|
|
61
|
+
display: "flex",
|
|
62
|
+
gap: "100"
|
|
63
|
+
},
|
|
64
|
+
popover: {
|
|
65
|
+
"--scrollbar-color": "colors.neutral.8",
|
|
66
|
+
"--scrollbar-bg": "colors.neutral.3",
|
|
67
|
+
bg: "neutral.1",
|
|
68
|
+
maxWidth: "xl",
|
|
69
|
+
borderRadius: "200",
|
|
70
|
+
boxShadow: "6",
|
|
71
|
+
border: "solid-25",
|
|
72
|
+
borderColor: "neutral.8",
|
|
73
|
+
maxHeight: "40svh",
|
|
74
|
+
overflow: "auto",
|
|
75
|
+
scrollbarWidth: "thin",
|
|
76
|
+
scrollbarColor: "var(--scrollbar-color) var(--scrollbar-bg)",
|
|
77
|
+
focusRing: "outside"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
variants: {
|
|
81
|
+
size: {
|
|
82
|
+
md: {
|
|
83
|
+
root: {
|
|
84
|
+
"--form-field-font-size": "fontSizes.350",
|
|
85
|
+
"--form-field-line-height": "lineHeights.500"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
sm: {
|
|
89
|
+
root: {
|
|
90
|
+
"--form-field-font-size": "fontSizes.300",
|
|
91
|
+
"--form-field-line-height": "lineHeights.450"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
direction: {
|
|
96
|
+
column: {
|
|
97
|
+
root: {
|
|
98
|
+
gridTemplateAreas: O
|
|
99
|
+
},
|
|
100
|
+
input: {
|
|
101
|
+
mt: "var(--grid-gap)"
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
mt: "var(--grid-gap)"
|
|
105
|
+
},
|
|
106
|
+
error: {
|
|
107
|
+
mt: "var(--grid-gap)"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
row: {
|
|
111
|
+
root: {
|
|
112
|
+
gridTemplateAreas: Q,
|
|
113
|
+
gridTemplateColumns: "auto 1fr",
|
|
114
|
+
gridColumnGap: "200"
|
|
115
|
+
},
|
|
116
|
+
description: {
|
|
117
|
+
mt: "var(--grid-gap)"
|
|
118
|
+
},
|
|
119
|
+
error: {
|
|
120
|
+
mt: "var(--grid-gap)"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
// Default variant values when not explicitly specified
|
|
126
|
+
defaultVariants: {
|
|
127
|
+
direction: "column",
|
|
128
|
+
size: "md"
|
|
129
|
+
}
|
|
130
|
+
}), { withProvider: X, withContext: m } = /* @__PURE__ */ V({
|
|
131
|
+
recipe: U
|
|
132
|
+
}), Y = /* @__PURE__ */ X("div", "root"), Z = /* @__PURE__ */ m("div", "label"), D = /* @__PURE__ */ m("div", "input"), q = /* @__PURE__ */ m("div", "description"), rr = /* @__PURE__ */ m("div", "error"), or = /* @__PURE__ */ m("div", "popover"), er = function({
|
|
133
|
+
ref: l,
|
|
134
|
+
id: o,
|
|
135
|
+
isInvalid: e,
|
|
136
|
+
isRequired: a,
|
|
137
|
+
isDisabled: p,
|
|
138
|
+
isReadOnly: d,
|
|
139
|
+
children: F,
|
|
140
|
+
...v
|
|
141
|
+
}) {
|
|
142
|
+
const S = y(null), C = G(I(S, l)), [r, h] = B({
|
|
143
|
+
label: null,
|
|
144
|
+
description: null,
|
|
145
|
+
error: null,
|
|
146
|
+
info: null,
|
|
147
|
+
input: null,
|
|
148
|
+
isInvalid: e,
|
|
149
|
+
isRequired: a,
|
|
150
|
+
isDisabled: p,
|
|
151
|
+
isReadOnly: d
|
|
152
|
+
}), $ = g(() => {
|
|
153
|
+
const n = {
|
|
154
|
+
id: o,
|
|
155
|
+
description: r.description,
|
|
156
|
+
errorMessage: r.error
|
|
157
|
+
};
|
|
158
|
+
return r.label ? n.label = r.label : (n["aria-label"] = "empty-label", n["aria-labelledby"] = "empty-label"), n;
|
|
159
|
+
}, [o, r.description, r.error, r.label]), { labelProps: P, fieldProps: x, descriptionProps: z, errorMessageProps: w } = J($);
|
|
160
|
+
s(() => {
|
|
161
|
+
h((n) => ({
|
|
162
|
+
...n,
|
|
163
|
+
isInvalid: e,
|
|
164
|
+
isRequired: a,
|
|
165
|
+
isDisabled: p,
|
|
166
|
+
isReadOnly: d
|
|
167
|
+
}));
|
|
168
|
+
}, [e, a, p, d]);
|
|
169
|
+
const A = g(
|
|
170
|
+
() => ({
|
|
171
|
+
...x,
|
|
172
|
+
isInvalid: e,
|
|
173
|
+
isRequired: a,
|
|
174
|
+
isDisabled: p,
|
|
175
|
+
isReadOnly: d
|
|
176
|
+
}),
|
|
177
|
+
[x, e, a, p, d]
|
|
178
|
+
), E = g(() => ({ context: r, setContext: h }), [r]);
|
|
179
|
+
return /* @__PURE__ */ i(c.Provider, { value: E, children: /* @__PURE__ */ f(Y, { ref: C, ...v, children: [
|
|
180
|
+
r.label && /* @__PURE__ */ f(Z, { ...r.labelSlotProps, children: [
|
|
181
|
+
/* @__PURE__ */ f("label", { ...P, children: [
|
|
182
|
+
r.label,
|
|
183
|
+
a && /* @__PURE__ */ i("sup", { "aria-hidden": "true", children: "*" })
|
|
184
|
+
] }),
|
|
185
|
+
r.info && /* @__PURE__ */ f(W, { children: [
|
|
186
|
+
/* @__PURE__ */ i(
|
|
187
|
+
b,
|
|
188
|
+
{
|
|
189
|
+
as: "span",
|
|
190
|
+
display: "inline-block",
|
|
191
|
+
position: "relative",
|
|
192
|
+
width: "1ch",
|
|
193
|
+
height: "1ch",
|
|
194
|
+
ml: "200",
|
|
195
|
+
children: /* @__PURE__ */ i(
|
|
196
|
+
b,
|
|
197
|
+
{
|
|
198
|
+
as: "span",
|
|
199
|
+
display: "inline-flex",
|
|
200
|
+
position: "absolute",
|
|
201
|
+
top: "50%",
|
|
202
|
+
right: "50%",
|
|
203
|
+
transform: "translate(50%, -50%)",
|
|
204
|
+
children: /* @__PURE__ */ i(
|
|
205
|
+
K,
|
|
206
|
+
{
|
|
207
|
+
"aria-label": "__MORE INFO",
|
|
208
|
+
size: "2xs",
|
|
209
|
+
tone: "info",
|
|
210
|
+
variant: "link",
|
|
211
|
+
children: /* @__PURE__ */ i(N, {})
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
/* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(or, { asChild: !0, children: /* @__PURE__ */ i(k, { children: /* @__PURE__ */ i(b, { p: "300", children: r.info }) }) }) })
|
|
219
|
+
] })
|
|
220
|
+
] }),
|
|
221
|
+
r.input && /* @__PURE__ */ i(D, { ...r.inputSlotProps, children: L.map(r.input, (n) => M(n) ? R(n, A) : n) }),
|
|
222
|
+
r.description && /* @__PURE__ */ i(
|
|
223
|
+
q,
|
|
224
|
+
{
|
|
225
|
+
...z,
|
|
226
|
+
...r.descriptionSlotProps,
|
|
227
|
+
children: r.description
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
e && r.error && /* @__PURE__ */ f(
|
|
231
|
+
rr,
|
|
232
|
+
{
|
|
233
|
+
...w,
|
|
234
|
+
...r.errorSlotProps,
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ i(
|
|
237
|
+
b,
|
|
238
|
+
{
|
|
239
|
+
as: _,
|
|
240
|
+
display: "inline-flex",
|
|
241
|
+
boxSize: "400",
|
|
242
|
+
verticalAlign: "text-bottom",
|
|
243
|
+
mr: "100",
|
|
244
|
+
alignSelf: "center"
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
r.error
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
F
|
|
252
|
+
] }) });
|
|
253
|
+
}, tr = ({
|
|
254
|
+
children: t,
|
|
255
|
+
...l
|
|
256
|
+
}) => {
|
|
257
|
+
const { setContext: o } = u(c);
|
|
258
|
+
return s(() => (o((e) => ({
|
|
259
|
+
...e,
|
|
260
|
+
label: t,
|
|
261
|
+
labelSlotProps: l
|
|
262
|
+
})), () => {
|
|
263
|
+
o((e) => ({
|
|
264
|
+
...e,
|
|
265
|
+
label: null,
|
|
266
|
+
labelSlotProps: void 0
|
|
267
|
+
}));
|
|
268
|
+
}), [t, o]), null;
|
|
269
|
+
}, lr = ({
|
|
270
|
+
children: t,
|
|
271
|
+
...l
|
|
272
|
+
}) => {
|
|
273
|
+
const { setContext: o } = u(c);
|
|
274
|
+
return s(() => {
|
|
275
|
+
o((e) => ({
|
|
276
|
+
...e,
|
|
277
|
+
input: t,
|
|
278
|
+
inputSlotProps: l
|
|
279
|
+
}));
|
|
280
|
+
}, [t, o]), null;
|
|
281
|
+
}, ir = ({
|
|
282
|
+
children: t,
|
|
283
|
+
...l
|
|
284
|
+
}) => {
|
|
285
|
+
const { setContext: o } = u(c);
|
|
286
|
+
return s(() => (o((e) => ({
|
|
287
|
+
...e,
|
|
288
|
+
description: t,
|
|
289
|
+
descriptionSlotProps: l
|
|
290
|
+
})), () => {
|
|
291
|
+
o((e) => ({
|
|
292
|
+
...e,
|
|
293
|
+
description: null,
|
|
294
|
+
descriptionSlotProps: void 0
|
|
295
|
+
}));
|
|
296
|
+
}), [t, o]), null;
|
|
297
|
+
}, nr = ({
|
|
298
|
+
children: t,
|
|
299
|
+
...l
|
|
300
|
+
}) => {
|
|
301
|
+
const { setContext: o } = u(c);
|
|
302
|
+
return s(() => (o((e) => ({
|
|
303
|
+
...e,
|
|
304
|
+
error: t,
|
|
305
|
+
errorSlotProps: l
|
|
306
|
+
})), () => {
|
|
307
|
+
o((e) => ({
|
|
308
|
+
...e,
|
|
309
|
+
error: null,
|
|
310
|
+
errorSlotProps: void 0
|
|
311
|
+
}));
|
|
312
|
+
}), [t, o]), null;
|
|
313
|
+
}, ar = ({ children: t }) => {
|
|
314
|
+
const { setContext: l } = u(c);
|
|
315
|
+
return s(() => (l((o) => ({
|
|
316
|
+
...o,
|
|
317
|
+
info: t
|
|
318
|
+
})), () => {
|
|
319
|
+
l((o) => ({
|
|
320
|
+
...o,
|
|
321
|
+
info: null
|
|
322
|
+
}));
|
|
323
|
+
}), [t, l]), null;
|
|
324
|
+
}, xr = {
|
|
325
|
+
Root: er,
|
|
326
|
+
Label: tr,
|
|
327
|
+
Input: lr,
|
|
328
|
+
Description: ir,
|
|
329
|
+
Error: nr,
|
|
330
|
+
InfoBox: ar
|
|
331
|
+
};
|
|
332
|
+
export {
|
|
333
|
+
xr as F,
|
|
334
|
+
er as a,
|
|
335
|
+
tr as b,
|
|
336
|
+
lr as c,
|
|
337
|
+
ir as d,
|
|
338
|
+
nr as e,
|
|
339
|
+
ar as f
|
|
340
|
+
};
|
|
341
|
+
//# sourceMappingURL=form-field-BBRdeEEq.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field-BBRdeEEq.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.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.slots\";\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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n display: \"flex\",\n gap: \"100\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\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.slots\";\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.slots\";\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.slots\";\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.slots\";\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","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","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,E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N,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;"}
|
|
@@ -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-BSWhqzIJ.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-BeIGRIFN.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-BeIGRIFN.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"}
|
|
@@ -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-tLehmoCt.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-CctfLs8I.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-CctfLs8I.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,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-BFJvsG3g.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-0s_KaTfe.es.js.map
|
package/dist/chunks/{icon-toggle-button-S56p30pP.es.js.map → icon-toggle-button-0s_KaTfe.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-0s_KaTfe.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-wPsxrI7v.cjs.js → icon-toggle-button-ONFPX0qS.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-BKz5tJB3.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-ONFPX0qS.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-ONFPX0qS.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"}
|