@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.recipe-Cqkj3VMo.cjs.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":"+DAEaA,EAAeC,EAAAA,aAAa,CACvC,UAAW,g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Q,CACN,eAAgB,WAAA,CAClB,CACF,EAEF,KAAM,CACJ,QAAS,CACP,aAAc,SAAA,EAEhB,SAAU,CACR,aAAc,UAAA,EAEhB,QAAS,CACP,aAAc,SAAA,EAEhB,KAAM,CACJ,aAAc,MAAA,CAChB,CACF,EAEF,gBAAiB,CACf,KAAM,KACN,QAAS,QAAA,CAEb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.recipe-NdTb5f8M.es.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"m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AAM;AAAA,QACJ,cAAc;AAAA,MAAA;AAAA,IAChB;AAAA,EACF;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-C33Q6JGN.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IA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GD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAkB,YACzB,WAAWA,IACPA,EAAc,QACd,CAAA;AAAA,cACJ,GAAGI;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,QAEF;AAAA,UACED;AAAAA,UACA;AAAA,YACE,GAAGD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAgB,YACvB,WAAWA,IACPA,EAAY,QACZ,CAAA;AAAA,cACJ,GAAGM;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,MACF;AAAA,MAGD,UAAAT;AAAA,IAAA;AAAA,EAAA;AAGP,GCtFaW,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAoB,GACjD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAK,GAC9D,CAACM,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAA3C,EAACvB,GAAA,EAAkB,GAAGiE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAA5C,EAAC+C,GAAA,EAAY,GAAGF,GACd,4BAACpB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAzB,EAACe,IAAA,EAAe;AAAA,sBACf7B,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("./Heading-CCs6OF_m.cjs.js"),v=require("@chakra-ui/react/styled-system"),u=require("react"),c=require("./useDateFormatter-BBcUQTYP.cjs.js"),m=require("./utils-BHdR5Nww.cjs.js"),S=require("./context-OoV8SSWX.cjs.js"),w=require("./box-CWni3A32.cjs.js"),h=require("@commercetools/nimbus-icons"),j=require("./stack-CIN13EDn.cjs.js"),y=require("./text-CCW9kDT_.cjs.js"),q=require("@chakra-ui/react/flex"),P=require("./visually-hidden-tTYCAVoQ.cjs.js"),$=require("./icon-button-CkjZc6Br.cjs.js"),R=require("./index-Bx9ez6gh.cjs.js"),I=require("./extractStyleProps-G58aSXl8.cjs.js"),C=require("./Button-CFZnLKVR.cjs.js"),g=require("./Text-BWSfeB9p.cjs.js"),{withProvider:T,withContext:s}=v.createSlotRecipeContext({key:"calendar"}),B=T("div","root"),H=s("div","header"),A=s("div","grids"),F=s("div","monthTitle"),G=s("table","grid"),L=s("thead","gridHeader"),k=s("th","headerCell"),M=s("tbody","gridBody"),N=s("td","bodyCell"),z=()=>{const{locale:d}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(A,{children:Array.from({length:r},(p,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(w.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(F,{children:f}),e.jsx(G,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(M,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const D=x.compare(o)===0;return e.jsx(N,{asChild:!0,"data-today":D,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},K=()=>{const t=(m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(H,{children:e.jsxs(q.Flex,{children:[e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(P.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx($.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(h.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx($.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(h.KeyboardArrowRight,{})})]}),e.jsx(w.Box,{flexGrow:"1"}),e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx($.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(h.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx($.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(h.KeyboardArrowRight,{})})]})]})})},V=({children:d})=>{const{locale:n}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=u.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=u.useContext(g.$514c0188e459b4c0$export$9afb8bc826b033ea),o=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},p=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:p},monthRange:{children:l},year:{children:b}};return e.jsx(m.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[g.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},W=d=>{const n=v.useRecipe({recipe:R.calendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=I.extractStyleProps(r);return e.jsx(B,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...i,children:e.jsxs(V,{children:[e.jsx(K,{}),e.jsx(z,{})]})})})};exports.Calendar=W;
|
|
2
|
-
//# sourceMappingURL=calendar-GA5ACIqm.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-GA5ACIqm.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"ssBAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAOYC,EAAmBH,EAG9B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,QAAQ,EAGJI,EAAoBJ,EAG/B,MAAO,OAAO,EAGHK,EAAyBL,EAGpC,MAAO,YAAY,EAGRM,EAAmBN,EAG9B,QAAS,MAAM,EAGJO,EAAyBP,EAGpC,QAAS,YAAY,EAGVQ,EAAyBR,EAGpC,KAAM,YAAY,EAGPS,EAAuBT,EAGlC,QAAS,UAAU,EAGRU,EAAmBV,EAG9B,KAAM,UAAU,EC5CLW,EAAgB,IAAM,CACjC,KAAM,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAUC,EAAAA,0CAAkBC,2CAAe,EAC3CC,EAAgBC,EAAAA,WAAWC,2CAAoB,EAC/CC,EAAqBN,GAAS,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SAAUH,CAAA,EACnB,WAAY,CAAE,SAAUC,CAAA,EACxB,KAAM,CAAE,SAAUC,CAAA,CAAU,EAG9B,OACElC,EAAAA,IAACoC,EAAAA,0CAAA,CACC,OAAQ,CACN,CACER,EAAAA,0CACA,CACE,GAAGD,EACH,MAAO,CACL,GAAIA,GACJ,OAAOA,GAAkB,UACzB,UAAWA,EACPA,EAAc,MACd,CAAA,EACJ,GAAGI,CAAA,CACL,CACF,EAEF,CACED,EAAAA,0CACA,CACE,GAAGD,EACH,MAAO,CACL,GAAIA,GACJ,OAAOA,GAAgB,UACvB,UAAWA,EACPA,EAAY,MACZ,CAAA,EACJ,GAAGM,CAAA,CACL,CACF,CACF,EAGD,SAAAT,CAAA,CAAA,CAGP,ECtFaW,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQC,EAAAA,mBAAoB,EACjD,CAACC,EAAaC,CAAc,EAAIJ,EAAO,kBAAkBD,CAAK,EAC9D,CAACM,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACE3C,EAAAA,IAACvB,EAAA,CAAkB,GAAGiE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAA5C,EAAAA,IAAC+C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAACpB,EAAA,CACC,SAAA,CAAAzB,EAAAA,IAACe,EAAA,EAAe,QACf7B,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as R, useState as l, useMemo as P, useContext as i, useEffect as u } from "react";
|
|
3
|
-
import { defineSlotRecipe as h, createSlotRecipeContext as H } from "@chakra-ui/react/styled-system";
|
|
4
|
-
import { S } from "./stack-CoNreM7B.es.js";
|
|
5
|
-
import { $ as y } from "./useFocusRing-DRIG5NVg.es.js";
|
|
6
|
-
import { a as N } from "./mergeProps-CzyOU2NE.es.js";
|
|
7
|
-
const k = /* @__PURE__ */ h({
|
|
8
|
-
slots: ["root", "header", "content"],
|
|
9
|
-
className: "nimbus-card",
|
|
10
|
-
base: {
|
|
11
|
-
root: {
|
|
12
|
-
colorPalette: "slate",
|
|
13
|
-
display: "inline-flex",
|
|
14
|
-
alignItems: "flex-start",
|
|
15
|
-
borderRadius: "300",
|
|
16
|
-
focusVisibleRing: "outside"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
variants: {
|
|
20
|
-
cardPadding: {
|
|
21
|
-
sm: {
|
|
22
|
-
root: {
|
|
23
|
-
padding: "200"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
md: {
|
|
27
|
-
root: {
|
|
28
|
-
padding: "400"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
lg: {
|
|
32
|
-
root: {
|
|
33
|
-
padding: "600"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
borderStyle: {
|
|
38
|
-
none: {},
|
|
39
|
-
outlined: {
|
|
40
|
-
root: {
|
|
41
|
-
border: "solid-25",
|
|
42
|
-
borderColor: "colorPalette.3"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
elevation: {
|
|
47
|
-
none: {},
|
|
48
|
-
elevated: {
|
|
49
|
-
root: {
|
|
50
|
-
shadow: "1"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
backgroundStyle: {
|
|
55
|
-
default: {
|
|
56
|
-
root: {
|
|
57
|
-
backgroundColor: "colorPalette.contrast"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
muted: {
|
|
61
|
-
root: {
|
|
62
|
-
backgroundColor: "colorPalette.2"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}), { withProvider: w, withContext: C } = /* @__PURE__ */ H({
|
|
68
|
-
recipe: k
|
|
69
|
-
}), E = /* @__PURE__ */ w(
|
|
70
|
-
"div",
|
|
71
|
-
"root"
|
|
72
|
-
), V = /* @__PURE__ */ C(
|
|
73
|
-
"div",
|
|
74
|
-
"header"
|
|
75
|
-
), j = /* @__PURE__ */ C(
|
|
76
|
-
"div",
|
|
77
|
-
"content"
|
|
78
|
-
), a = /* @__PURE__ */ R(
|
|
79
|
-
void 0
|
|
80
|
-
), f = ({ children: e, ref: o, ...t }) => {
|
|
81
|
-
const { isFocused: r, isFocusVisible: b, focusProps: x } = y(), [v, d] = l(null), [g, s] = l(null), $ = P(
|
|
82
|
-
() => ({
|
|
83
|
-
setHeader: d,
|
|
84
|
-
setContent: s
|
|
85
|
-
}),
|
|
86
|
-
[d, s]
|
|
87
|
-
);
|
|
88
|
-
return /* @__PURE__ */ n(a.Provider, { value: $, children: /* @__PURE__ */ c(
|
|
89
|
-
E,
|
|
90
|
-
{
|
|
91
|
-
ref: o,
|
|
92
|
-
...N(t, x),
|
|
93
|
-
"data-focus": r || void 0,
|
|
94
|
-
"data-focus-visible": b || void 0,
|
|
95
|
-
tabIndex: 0,
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ c(S, { direction: "column", gap: "200", children: [
|
|
98
|
-
v,
|
|
99
|
-
g
|
|
100
|
-
] }),
|
|
101
|
-
e
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
) });
|
|
105
|
-
};
|
|
106
|
-
f.displayName = "Card.Root";
|
|
107
|
-
const m = ({ children: e, ...o }) => {
|
|
108
|
-
const t = i(a);
|
|
109
|
-
return u(() => {
|
|
110
|
-
if (t) {
|
|
111
|
-
const r = /* @__PURE__ */ n(V, { ...o, children: e });
|
|
112
|
-
return t.setHeader(r), () => t.setHeader(null);
|
|
113
|
-
}
|
|
114
|
-
}, [e, o]), null;
|
|
115
|
-
};
|
|
116
|
-
m.displayName = "Card.Header";
|
|
117
|
-
const p = ({ children: e, ...o }) => {
|
|
118
|
-
const t = i(a);
|
|
119
|
-
return u(() => {
|
|
120
|
-
if (t) {
|
|
121
|
-
const r = /* @__PURE__ */ n(j, { ...o, children: e });
|
|
122
|
-
return t.setContent(r), () => t.setContent(null);
|
|
123
|
-
}
|
|
124
|
-
}, [e, o]), null;
|
|
125
|
-
};
|
|
126
|
-
p.displayName = "Card.Content";
|
|
127
|
-
const B = {
|
|
128
|
-
Root: f,
|
|
129
|
-
Header: m,
|
|
130
|
-
Content: p
|
|
131
|
-
};
|
|
132
|
-
export {
|
|
133
|
-
B as C,
|
|
134
|
-
f as a,
|
|
135
|
-
m as b,
|
|
136
|
-
p as c
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=card-DFMzI97y.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-DFMzI97y.es.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAMO,MAAMA,IAAa,gBAAAC,EAAiB;AAAA,EACzC,OAAO,CAAC,QAAQ,UAAU,SAAS;AAAA,EAEnC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,kBAAkB;AAAA,IAAA;AAAA,EACpB;AAAA,EAGF,UAAU;AAAA,IACR,aAAa;AAAA,MACX,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IACF;AAAA,IAGF,aAAa;AAAA,MACX,MAAM,CAAA;AAAA,MACN,UAAU;AAAA,QACR,MAAM;AAAA,UACJ,QAAQ;AAAA,UACR,aAAa;AAAA,QAAA;AAAA,MACf;AAAA,IACF;AAAA,IAEF,WAAW;AAAA,MACT,MAAM,CAAA;AAAA,MACN,UAA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OAC3B,UAAA;AAAA,UAAAX;AAAA,UACAG;AAAA,QAAA,GACH;AAAA,QAGCV;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAEL;AAEJ;AAEAL,EAAS,cAAc;ACnDhB,MAAMC,IAAa,CAAC,EAAE,UAAAI,GAAU,GAAGE,QAA6B;AACrE,QAAMiB,IAAUC,EAAWtB,CAAW;AAEtC,SAAAuB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAR,EAACS,GAAA,EAAgB,GAAGrB,GAAQ,UAAAF,GAAS;AAGvC,aAAAmB,EAAQ,UAAUG,CAAW,GAGtB,MAAMH,EAAQ,UAAU,IAAI;AAAA,IACrC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AACAN,EAAW,cAAc;AClBlB,MAAMC,IAAc,CAAC,EAAE,UAAAG,GAAU,GAAGE,QAA8B;AACvE,QAAMiB,IAAUC,EAAWtB,CAAW;AAEtC,SAAAuB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAR,EAACU,GAAA,EAAiB,GAAGtB,GAAQ,UAAAF,GAAS;AAGxC,aAAAmB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AAEAL,EAAY,cAAc;ACtBnB,MAAM4B,IAAO;AAAA,EAClB,MAAM9B;AAAA,EACN,QAAQC;AAAA,EACR,SAASC;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),t=require("react"),C=require("@chakra-ui/react/styled-system"),R=require("./stack-CIN13EDn.cjs.js"),p=require("./useFocusRing-BuJmrp03.cjs.js"),P=require("./mergeProps-BA5Cwf5w.cjs.js"),$=C.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:y,withContext:f}=C.createSlotRecipeContext({recipe:$}),H=y("div","root"),S=f("div","header"),h=f("div","content"),d=t.createContext(void 0),a=({children:o,ref:n,...e})=>{const{isFocused:r,isFocusVisible:x,focusProps:b}=p.$f7dceffc5ad7768b$export$4e328f61c538687f(),[m,l]=t.useState(null),[g,u]=t.useState(null),v=t.useMemo(()=>({setHeader:l,setContent:u}),[l,u]);return s.jsx(d.Provider,{value:v,children:s.jsxs(H,{ref:n,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(e,b),"data-focus":r||void 0,"data-focus-visible":x||void 0,tabIndex:0,children:[s.jsxs(R.Stack,{direction:"column",gap:"200",children:[m,g]}),o]})})};a.displayName="Card.Root";const c=({children:o,...n})=>{const e=t.useContext(d);return t.useEffect(()=>{if(e){const r=s.jsx(S,{...n,children:o});return e.setHeader(r),()=>e.setHeader(null)}},[o,n]),null};c.displayName="Card.Header";const i=({children:o,...n})=>{const e=t.useContext(d);return t.useEffect(()=>{if(e){const r=s.jsx(h,{...n,children:o});return e.setContent(r),()=>e.setContent(null)}},[o,n]),null};i.displayName="Card.Content";const j={Root:a,Header:c,Content:i};exports.Card=j;exports.CardContent=i;exports.CardHeader=c;exports.CardRoot=a;
|
|
2
|
-
//# sourceMappingURL=card-DREQgc6S.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-DREQgc6S.cjs.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"4OAMaA,EAAaC,EAAAA,iBAAiB,CACzC,MAAO,CAAC,OAAQ,SAAU,SAAS,EAEnC,U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C,GAAGgB,EAAAA,0CAAWf,EAAOG,CAAU,EAChC,aAAYF,GAAa,OACzB,qBAAoBC,GAAkB,OACtC,SAAU,EAGV,SAAA,CAAAW,EAAAA,KAACG,EAAAA,MAAA,CAAM,UAAU,SAAS,IAAI,MAC3B,SAAA,CAAAX,EACAG,CAAA,EACH,EAGCV,CAAA,CAAA,CAAA,EAEL,CAEJ,EAEAL,EAAS,YAAc,YCnDhB,MAAMC,EAAa,CAAC,CAAE,SAAAI,EAAU,GAAGE,KAA6B,CACrE,MAAMiB,EAAUC,EAAAA,WAAWtB,CAAW,EAEtCuB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJR,EAAAA,IAACS,EAAA,CAAgB,GAAGrB,EAAQ,SAAAF,EAAS,EAGvC,OAAAmB,EAAQ,UAAUG,CAAW,EAGtB,IAAMH,EAAQ,UAAU,IAAI,CACrC,CACF,EAAG,CAACnB,EAAUE,CAAK,CAAC,EAEb,IACT,EACAN,EAAW,YAAc,cClBlB,MAAMC,EAAc,CAAC,CAAE,SAAAG,EAAU,GAAGE,KAA8B,CACvE,MAAMiB,EAAUC,EAAAA,WAAWtB,CAAW,EAEtCuB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJR,EAAAA,IAACU,EAAA,CAAiB,GAAGtB,EAAQ,SAAAF,EAAS,EAGxC,OAAAmB,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACnB,EAAUE,CAAK,CAAC,EAEb,IACT,EAEAL,EAAY,YAAc,eCtBnB,MAAM4B,EAAO,CAClB,KAAM9B,EACN,OAAQC,EACR,QAASC,CACX"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const P=require("react/jsx-runtime"),D=require("@chakra-ui/react/styled-system"),C=require("@commercetools/nimbus-icons"),_=require("./extractStyleProps-G58aSXl8.cjs.js"),w=require("./RSPContexts-BdKenzIN.cjs.js"),R=require("./utils-BHdR5Nww.cjs.js"),H=require("./Form-BuOomA4T.cjs.js"),p=require("./mergeProps-BA5Cwf5w.cjs.js"),T=require("./filterDOMProps-WUskt27c.cjs.js"),N=require("./useObjectRef-dXOJdONs.cjs.js"),o=require("react"),y=require("./useFormValidation-STNSjSmx.cjs.js"),L=require("./usePress-D5REDWI3.cjs.js"),W=require("./useToggle-BXaU8bD5.cjs.js"),k=require("./useToggleState-Dl-o05wQ.cjs.js"),z=require("./useFocusRing-BuJmrp03.cjs.js"),A=require("./useHover-271zEzph.cjs.js"),G=require("./VisuallyHidden-C1WQXLCm.cjs.js");function B(i,e,a){let r=y.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:e.isSelected}),{isInvalid:x,validationErrors:m,validationDetails:u}=r.displayValidation,{labelProps:f,inputProps:s,isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b}=W.$d2c8e2b0480f3f34$export$cbe85ee05b554577({...i,isInvalid:x},e,a);y.$e93e671b31057976$export$b8473d3665f3a75a(i,r,a);let{isIndeterminate:v,isRequired:l,validationBehavior:c="aria"}=i;o.useEffect(()=>{a.current&&(a.current.indeterminate=!!v)});let{pressProps:h}=L.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||b,onPress(){let{[y.$e5be200c675c3b3a$export$a763b9476acd3eb]:n}=i,{commitValidation:q}=n||r;q()}});return{labelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,h,o.useMemo(()=>({onMouseDown:n=>n.preventDefault()}),[])),inputProps:{...s,checked:d,"aria-required":l&&c==="aria"||void 0,required:l&&c==="native"},isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b,isInvalid:x,validationErrors:m,validationDetails:u}}const J=new WeakMap;function K(i,e,a){const r=k.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:i.isReadOnly||e.isReadOnly,isSelected:e.isSelected(i.value),defaultSelected:e.defaultValue.includes(i.value),onChange(n){n?e.addValue(i.value):e.removeValue(i.value),i.onChange&&i.onChange(n)}});let{name:x,form:m,descriptionId:u,errorMessageId:f,validationBehavior:s}=J.get(e);var d;s=(d=i.validationBehavior)!==null&&d!==void 0?d:s;let{realtimeValidation:t}=y.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:r.isSelected,name:void 0,validationBehavior:"aria"}),$=o.useRef(y.$e5be200c675c3b3a$export$dad6ae84456c676a),b=()=>{e.setInvalid(i.value,t.isInvalid?t:$.current)};o.useEffect(b);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:t,l=s==="native"?e.displayValidation:v;var c;let h=B({...i,isReadOnly:i.isReadOnly||e.isReadOnly,isDisabled:i.isDisabled||e.isDisabled,name:i.name||x,form:i.form||m,isRequired:(c=i.isRequired)!==null&&c!==void 0?c:e.isRequired,validationBehavior:s,[y.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:v,displayValidation:l,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(n){$.current=n,b()}}},r,a);return{...h,inputProps:{...h.inputProps,"aria-describedby":[i["aria-describedby"],e.isInvalid?f:null,u].filter(Boolean).join(" ")||void 0}}}const Q=o.createContext(null),U=o.forwardRef(function(e,a){let{inputRef:r=null,...x}=e;[e,a]=R.$64fa3d84918910a7$export$29f1550f4b0d4415(x,a,w.$4e85f108e88277b8$export$b085522c77523c51);let{validationBehavior:m}=R.$64fa3d84918910a7$export$fabf2dc03a41866e(H.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var u,f;let s=(f=(u=e.validationBehavior)!==null&&u!==void 0?u:m)!==null&&f!==void 0?f:"native",d=o.useContext(Q),t=N.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>R.$5dc95899b306f630$export$c9058316764c140e(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:$,inputProps:b,isSelected:v,isDisabled:l,isReadOnly:c,isPressed:h,isInvalid:n}=d?K({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,t):B({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:s},k.$3017fa7ffdddec74$export$8042c6c013fd5226(e),t),{isFocused:q,isFocusVisible:I,focusProps:j}=z.$f7dceffc5ad7768b$export$4e328f61c538687f(),E=l||c,{hoverProps:M,isHovered:S}=A.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:E}),g=R.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:h,isHovered:S,isFocused:q,isFocusVisible:I,isDisabled:l,isReadOnly:c,isInvalid:n,isRequired:e.isRequired||!1}}),V=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete V.id,delete V.onClick,o.createElement("label",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(V,$,M,g),ref:a,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":h||void 0,"data-hovered":S||void 0,"data-focused":q||void 0,"data-focus-visible":I||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":n||void 0,"data-required":e.isRequired||void 0},o.createElement(G.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(b,j),ref:t})),g.children)}),{withProvider:X,withContext:O}=D.createSlotRecipeContext({key:"checkbox"}),Y=X(U,"root"),Z=O("span","label"),ee=O("span","indicator"),F=i=>{const{ref:e,children:a,...r}=i,x=D.useSlotRecipe({key:"checkbox"}),[m,u]=x.splitVariantProps(r),[f,s]=_.extractStyleProps(u);return P.jsx(Y,{ref:e,"data-slot":"root",...s,...m,...f,children:({isSelected:d,isIndeterminate:t,isInvalid:$,isDisabled:b,isFocused:v})=>{const l={"data-selected":d,"data-indeterminate":t,"data-invalid":$,"data-disabled":b,"data-focus":v||void 0};return P.jsxs(P.Fragment,{children:[P.jsxs(ee,{"data-slot":"indicator",...l,children:[d&&P.jsx(C.Check,{}),t&&P.jsx(C.Remove,{})]}),a&&P.jsx(Z,{"data-slot":"label",...l,children:a})]})}})};F.displayName="Checkbox";exports.Checkbox=F;
|
|
2
|
-
//# sourceMappingURL=checkbox-Bh5DxcKC.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-motion-BSsz8na-.es.js","sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"collapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot = withProvider<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n */\nexport const CollapsibleMotionRoot = forwardRef<\n HTMLDivElement,\n CollapsibleMotionRootProps\n>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild\n if (asChild) {\n return (\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs, Presence } from \"@chakra-ui/react\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import { CollapsibleMotionRoot } from \"./components/collapsible-motion-root\";\nimport { CollapsibleMotionTrigger } from \"./components/collapsible-motion-trigger\";\nimport { CollapsibleMotionContent } from \"./components/collapsible-motion-content\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\nexport const CollapsibleMotion = {\n Root: CollapsibleMotionRoot,\n Trigger: CollapsibleMotionTrigger,\n Content: CollapsibleMotionContent,\n};\n"],"names":["CollapsibleMotionContext","createContext","useCollapsibleMotionContext","context","useContext","withProvider","withContext","createSlotRecipeContext","CollapsibleMotionRootSlot","CollapsibleMotionTriggerSlot","CollapsibleMotionContentSlot","CollapsibleMotionRoot","forwardRef","children","defaultExpanded","controlledExpanded","onExpandedChange","isDisabled","props","forwardedRef","disclosureState","useDisclosureState","panelRef","useRef","buttonProps","panelProps","useDisclosure","contextValue","jsx","CollapsibleMotionTrigger","asChild","componentProps","mergeProps","chakra","styleProps","restProps","extractStyleProps","RaButton","CollapsibleMotionContent","isExpanded","localRef","ref","useObjectRef","mergeRefs","Presence","CollapsibleMotion"],"mappings":";;;;;;;;;AAMO,MAAMA,IAA2B,gBAAAC,EAEtC,MAAS;AAKJ,SAASC,IAA6D;AAC3E,QAAMC,IAAUC,EAAWJ,CAAwB;AAEnD,MAAIG,MAAY;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAIJ,SAAOA;AACT;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BAAAF,EAACK,EAAO,QAAP,EAAc,SAAO,IAAE,GAAGF,GACxB,UAAAlB,GACH;AAIJ,QAAM,CAACqB,GAAYC,CAAS,IAAIC,EAAkBL,CAAc;AAIhE,SACE,gBAAAH,EAACnB,GAAA,EAA6B,KAAKU,GAAe,GAAGe,GAAY,SAAO,IACtE,UAAA,gBAAAN,EAACS,GAAA,EAAU,GAAGF,GAAY,UAAAtB,GAAS,GACrC;AAEJ,CAAC;AAEDgB,EAAyB,cAAc;ACjChC,MAAMS,IAA2B,gBAAA1B,EAGtC,CAAC,EAAE,UAAAC,GAAU,GAAGK,EAAA,GAASC,MAAiB;AAC1C,QAAM,EAAE,YAAAM,GAAY,YAAAc,EAAA,IAAerC,EAAA,GAG7BsC,IAAWjB,EAAuB,IAAI,GACtCkB,IAAMC,EAAaC,EAAUH,GAAUrB,CAAY,CAAC;AAE1D,SACE,gBAAAS,EAAClB,KAA6B,KAAA+B,GAAW,GAAGvB,GAAQ,GAAGO,GAAY,SAAO,IACxE,UAAA,gBAAAG;AAAA,IAACgB;AAAA,IAAA;AAAA,MACC,SAASL;AAAA,MACT,eAAe;AAAA,QACb,OAAO;AAAA,QACP,SAAS;AAAA,MAAA;AAAA,MAEX,mBAAkB;AAAA,MAEjB,UAAA1B;AAAA,IAAA;AAAA,EAAA,GAEL;AAEJ,CAAC;AAEDyB,EAAyB,cAAc;AC5BhC,MAAMO,IAAoB;AAAA,EAC/B,MAAMlC;AAAA,EACN,SAASkB;AAAA,EACT,SAASS;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),t=require("react"),f=require("@chakra-ui/react/styled-system"),d=require("./useDisclosureState-ipt8A1Kc.cjs.js"),h=require("./Button-CFZnLKVR.cjs.js"),j=require("./extractStyleProps-G58aSXl8.cjs.js"),q=require("./mergeProps-BA5Cwf5w.cjs.js"),u=require("@chakra-ui/react"),y=require("./useObjectRef-dXOJdONs.cjs.js"),b=t.createContext(void 0);function x(){const e=t.useContext(b);if(e===void 0)throw new Error("useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component");return e}const{withProvider:S,withContext:C}=f.createSlotRecipeContext({key:"collapsibleMotion"}),w=S("div","root"),v=C("button","trigger"),E=C("div","content"),R=t.forwardRef(({children:e,defaultExpanded:r=!1,isExpanded:i,onExpandedChange:l,isDisabled:n=!1,...a},s)=>{const c=d.$bf996d45f4a36925$export$3fcbf6e4407997e0({defaultExpanded:r,isExpanded:i,onExpandedChange:l}),p=t.useRef(null),{buttonProps:m,panelProps:P}=d.$5e910fae8e128ead$export$6e3e27031a30522f({isDisabled:n},c,p),g={isDisabled:n,isExpanded:c.isExpanded,buttonProps:m,panelProps:P,panelRef:p};return o.jsx(b.Provider,{value:g,children:o.jsx(w,{ref:s,...a,children:e})})});R.displayName="CollapsibleMotion.Root";const M=t.forwardRef(({children:e,asChild:r,...i},l)=>{const{buttonProps:n,isDisabled:a}=x(),s=q.$3ef42575df84b30b$export$9d1611c77c2fe928(i,n,{disabled:a});if(r)return o.jsx(f.chakra.button,{asChild:!0,...s,children:e});const[c,p]=j.extractStyleProps(s);return o.jsx(v,{ref:l,...c,asChild:!0,children:o.jsx(h.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...p,children:e})})});M.displayName="CollapsibleMotion.Trigger";const $=t.forwardRef(({children:e,...r},i)=>{const{panelProps:l,isExpanded:n}=x(),a=t.useRef(null),s=y.$df56164dff5785e2$export$4338b53315abf666(u.mergeRefs(a,i));return o.jsx(E,{ref:s,...r,...l,asChild:!0,children:o.jsx(u.Presence,{present:n,animationName:{_open:"slide-from-top, fade-in",_closed:"slide-to-top, fade-out"},animationDuration:"fast",children:e})})});$.displayName="CollapsibleMotion.Content";const N={Root:R,Trigger:M,Content:$};exports.CollapsibleMotion=N;
|
|
2
|
-
//# sourceMappingURL=collapsible-motion-hU9KTv8o.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-motion-hU9KTv8o.cjs.js","sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"collapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot = withProvider<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n */\nexport const CollapsibleMotionRoot = forwardRef<\n HTMLDivElement,\n CollapsibleMotionRootProps\n>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild\n if (asChild) {\n return (\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs, Presence } from \"@chakra-ui/react\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import { CollapsibleMotionRoot } from \"./components/collapsible-motion-root\";\nimport { CollapsibleMotionTrigger } from \"./components/collapsible-motion-trigger\";\nimport { CollapsibleMotionContent } from \"./components/collapsible-motion-content\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\nexport const CollapsibleMotion = {\n Root: CollapsibleMotionRoot,\n Trigger: CollapsibleMotionTrigger,\n Content: CollapsibleMotionContent,\n};\n"],"names":["CollapsibleMotionContext","createContext","useCollapsibleMotionContext","context","useContext","withProvider","withContext","createSlotRecipeContext","CollapsibleMotionRootSlot","CollapsibleMotionTriggerSlot","CollapsibleMotionContentSlot","CollapsibleMotionRoot","forwardRef","children","defaultExpanded","controlledExpanded","onExpandedChange","isDisabled","props","forwardedRef","disclosureState","useDisclosureState","panelRef","useRef","buttonProps","panelProps","useDisclosure","contextValue","jsx","CollapsibleMotionTrigger","asChild","componentProps","mergeProps","chakra","styleProps","restProps","extractStyleProps","RaButton","CollapsibleMotionContent","isExpanded","localRef","ref","useObjectRef","mergeRefs","Presence","CollapsibleMotion"],"mappings":"8WAMaA,EAA2BC,EAAAA,cAEtC,MAAS,EAKJ,SAASC,GAA6D,CAC3E,MAAMC,EAAUC,EAAAA,WAAWJ,CAAwB,EAEnD,GAAIG,IAAY,OACd,MAAM,IAAI,MACR,oFAAA,EAIJ,OAAOA,CACT,CCjBA,KAAM,CAAE,aAAAE,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,mBACP,CAAC,EAEYC,EAA4BH,EAGvC,MAAO,MAAM,EAEFI,EAA+BH,EAG1C,SAAU,SAAS,EAERI,EAA+BJ,EAG1C,MAAO,SAAS,ECVLK,EAAwBC,EAAAA,WAInC,CACE,CACE,SAAAC,EACA,gBAAAC,EAAkB,GAClB,WAAYC,EACZ,iBAAAC,EACA,WAAAC,EAAa,GACb,GAAGC,CAAA,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