@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
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const ue=require("./chunks/index-Bx9ez6gh.cjs.js"),Z=require("./chunks/rich-text-input-BygekdK5.cjs.js"),d=require("react"),le=require("./chunks/avatar-C2KIWewd.cjs.js"),ce=require("./chunks/box-CWni3A32.cjs.js"),se=require("./chunks/button-DTE97NpD.cjs.js"),de=require("./chunks/code-q31e3vT2.cjs.js"),F=require("./chunks/combobox-BghQKCQt.cjs.js"),fe=require("./chunks/dialog-CDyF_zvK.cjs.js"),ee=require("./chunks/field-errors-Dzmxsyfu.cjs.js"),_t=require("@chakra-ui/react/flex"),pe=require("./chunks/group-NazPMAWg.cjs.js"),me=require("./chunks/heading-BTacGwo9.cjs.js"),ge=require("./chunks/icon-button-CkjZc6Br.cjs.js"),ye=require("./chunks/icon-toggle-button-Bsj4XLsI.cjs.js"),be=require("./chunks/image-CGOYoc2s.cjs.js"),ve=require("./chunks/kbd-DFeaXiKY.cjs.js"),Ce=require("./chunks/link-iN1bhsXS.cjs.js"),L=require("./chunks/list-DJC9BmoC.cjs.js"),Te=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),wt=require("@chakra-ui/react/table"),he=require("./chunks/text-CCW9kDT_.cjs.js"),N=require("./chunks/tooltip-CH2ASPPO.cjs.js"),Se=require("./chunks/make-element-focusable-oedzOY_M.cjs.js"),te=require("./chunks/nimbus-provider-ChOIcVt6.cjs.js"),qe=require("./chunks/checkbox-Bh5DxcKC.cjs.js"),Ie=require("./chunks/collapsible-motion-hU9KTv8o.cjs.js"),ke=require("./chunks/stack-CIN13EDn.cjs.js"),Re=require("./chunks/visually-hidden-tTYCAVoQ.cjs.js"),_e=require("./chunks/text-input-DHyVy0pg.cjs.js"),we=require("./chunks/number-input-DA_yy5BZ.cjs.js"),De=require("./chunks/grid-Chuw1xje.cjs.js"),D=require("./chunks/select-97-5UUPX.cjs.js"),Ee=require("./chunks/separator-BBuhLJdN.cjs.js"),I=require("./chunks/accordion-CxA_B4rs.cjs.js"),k=require("./chunks/alert-CA04iXvr.cjs.js"),xe=require("./chunks/badge-CCrBksXu.cjs.js"),M=require("./chunks/card-DREQgc6S.cjs.js"),S=require("./chunks/form-field-2NMmaZgp.cjs.js"),Ae=require("./chunks/icon-BHx0r3NL.cjs.js"),Be=require("./chunks/inline-svg-DbvmiSw9.cjs.js"),Fe=require("./chunks/loading-spinner-DDhqsR0J.cjs.js"),Le=require("./chunks/password-input-DMbxYno4.cjs.js"),Me=require("./chunks/search-input-r6P-vAgp.cjs.js"),Pe=require("./chunks/split-button-EHp7Svv4.cjs.js"),He=require("./chunks/time-input-UNOO6gaq.cjs.js"),Oe=require("./chunks/multiline-text-input-4kwHZ5HO.cjs.js"),Ke=require("./chunks/money-input-CwrbJsn1.cjs.js"),j=require("./chunks/radio-input-DK5681L5.cjs.js"),Ge=require("./chunks/switch-CwJ5OFLP.cjs.js"),Ne=require("./chunks/tag-group-Cgs8C7Xc.cjs.js"),je=require("./chunks/toggle-button-BHOVooIy.cjs.js"),U=require("./chunks/toggle-button-group-RAL2Cws6.cjs.js"),Ue=require("./chunks/date-input-CUWc63rA.cjs.js"),Ve=require("./chunks/calendar-GA5ACIqm.cjs.js"),ze=require("./chunks/date-picker-C6A6CiIu.cjs.js"),We=require("./chunks/progress-bar-BBy8IR_W.cjs.js"),$e=require("./chunks/range-calendar-CrHUTeyY.cjs.js"),T=require("./chunks/menu-CW4QVk-m.cjs.js"),Xe=require("./chunks/date-range-picker-vER5F2HJ.cjs.js"),Je=require("./chunks/toolbar-0yDwxKuL.cjs.js"),y=require("./chunks/data-table-EMCF19pW.cjs.js"),Qe=require("./chunks/pagination-EVJ_rBrc.cjs.js"),Ye=require("./chunks/drawer-DzYXHVbg.cjs.js"),R=require("./chunks/tabs-Cklmbi45.cjs.js"),Ze=require("./chunks/localized-field-DCgNEoJc.cjs.js");require("react/jsx-runtime");function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(null,arguments)}var re=["shift","alt","meta","mod","ctrl"],et={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function B(e){return(e&&et[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function tt(e){return re.includes(e)}function P(e,t){return t===void 0&&(t=","),e.split(t)}function H(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(i){return B(i)}),c={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},a=n.filter(function(i){return!re.includes(i)});return G({},c,{keys:a,description:r,hotkey:e})}var h=new Set;function V(e){return Array.isArray(e)}function rt(e,t){t===void 0&&(t=",");var r=V(e)?e:e.split(t);return r.every(function(n){return h.has(n.trim().toLowerCase())})}function ot(e){var t=Array.isArray(e)?e:[e];h.has("meta")&&h.forEach(function(r){return!tt(r)&&h.delete(r.toLowerCase())}),t.forEach(function(r){return h.add(r.toLowerCase())})}function nt(e){var t=Array.isArray(e)?e:[e];e==="meta"?h.clear():t.forEach(function(r){return h.delete(r.toLowerCase())})}function at(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function it(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function ut(e){return oe(e,["input","textarea","select"])}function oe(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,c=null;return lt(r)&&n?c=e.composedPath()[0]&&e.composedPath()[0].tagName:c=r&&r.tagName,V(t)?!!(c&&t&&t.some(function(a){var i;return a.toLowerCase()===((i=c)==null?void 0:i.toLowerCase())})):!!(c&&t&&t)}function lt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ct(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var st=function(t,r,n){n===void 0&&(n=!1);var c=r.alt,a=r.meta,i=r.mod,f=r.shift,u=r.ctrl,s=r.keys,C=t.key,b=t.code,l=t.ctrlKey,o=t.metaKey,_=t.shiftKey,m=t.altKey,g=B(b),v=C.toLowerCase();if(!(s!=null&&s.includes(g))&&!(s!=null&&s.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(g))return!1;if(!n){if(c===!m&&v!=="alt"||f===!_&&v!=="shift")return!1;if(i){if(!o&&!l)return!1}else if(a===!o&&v!=="meta"&&v!=="os"||u===!l&&v!=="ctrl"&&v!=="control")return!1}return s&&s.length===1&&(s.includes(v)||s.includes(g))?!0:s?rt(s):!s},dt=d.createContext(void 0),ft=function(){return d.useContext(dt)};function ne(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&ne(e[n],t[n])},!0):e===t}var pt=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),mt=function(){return d.useContext(pt)};function gt(e){var t=d.useRef(void 0);return ne(t.current,e)||(t.current=e),t.current}var J=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},yt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function bt(e,t,r,n){var c=d.useState(null),a=c[0],i=c[1],f=d.useRef(!1),u=r instanceof Array?n instanceof Array?void 0:n:r,s=V(e)?e.join(u?.splitKey):e,C=r instanceof Array?r:n instanceof Array?n:void 0,b=d.useCallback(t,C??[]),l=d.useRef(b);C?l.current=b:l.current=t;var o=gt(u),_=mt(),m=_.enabledScopes,g=ft();return yt(function(){if(!(o?.enabled===!1||!ct(m,o?.scopes))){var v=function(p,x){var $;if(x===void 0&&(x=!1),!(ut(p)&&!oe(p,o?.enableOnFormTags))){if(a!==null){var A=a.getRootNode();if((A instanceof Document||A instanceof ShadowRoot)&&A.activeElement!==a&&!a.contains(A.activeElement)){J(p);return}}($=p.target)!=null&&$.isContentEditable&&!(o!=null&&o.enableOnContentEditable)||P(s,o?.splitKey).forEach(function(ie){var X,w=H(ie,o?.combinationKey);if(st(p,w,o?.ignoreModifiers)||(X=w.keys)!=null&&X.includes("*")){if(o!=null&&o.ignoreEventWhen!=null&&o.ignoreEventWhen(p)||x&&f.current)return;if(at(p,w,o?.preventDefault),!it(p,w,o?.enabled)){J(p);return}l.current(p,w),x||(f.current=!0)}})}},z=function(p){p.key!==void 0&&(ot(B(p.code)),(o?.keydown===void 0&&o?.keyup!==!0||o!=null&&o.keydown)&&v(p))},W=function(p){p.key!==void 0&&(nt(B(p.code)),f.current=!1,o!=null&&o.keyup&&v(p,!0))},E=a||u?.document||document;return E.addEventListener("keyup",W,u?.eventListenerOptions),E.addEventListener("keydown",z,u?.eventListenerOptions),g&&P(s,o?.splitKey).forEach(function(q){return g.addHotkey(H(q,o?.combinationKey,o?.description))}),function(){E.removeEventListener("keyup",W,u?.eventListenerOptions),E.removeEventListener("keydown",z,u?.eventListenerOptions),g&&P(s,o?.splitKey).forEach(function(q){return g.removeHotkey(H(q,o?.combinationKey,o?.description))})}}},[a,s,o,m]),i}function vt(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Ct=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],c=d.useCallback(function(a){n(function(i){return Object.assign({},i,a instanceof Function?a(i):a)})},[]);return[r,c]},O,Q;function Tt(){return Q||(Q=1,O=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(c){e.addRange(c)}),t&&t.focus()}}),O}var K,Y;function ht(){if(Y)return K;Y=1;var e=Tt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(a){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,i)}function c(a,i){var f,u,s,C,b,l,o=!1;i||(i={}),f=i.debug||!1;try{s=e(),C=document.createRange(),b=document.getSelection(),l=document.createElement("span"),l.textContent=a,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(m){if(m.stopPropagation(),i.format)if(m.preventDefault(),typeof m.clipboardData>"u"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[i.format]||t.default;window.clipboardData.setData(g,a)}else m.clipboardData.clearData(),m.clipboardData.setData(i.format,a);i.onCopy&&(m.preventDefault(),i.onCopy(m.clipboardData))}),document.body.appendChild(l),C.selectNodeContents(l),b.addRange(C);var _=document.execCommand("copy");if(!_)throw new Error("copy command was unsuccessful");o=!0}catch(m){f&&console.error("unable to copy using execCommand: ",m),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",a),i.onCopy&&i.onCopy(window.clipboardData),o=!0}catch(g){f&&console.error("unable to copy using clipboardData: ",g),f&&console.error("falling back to prompt"),u=n("message"in i?i.message:r),window.prompt(u,a)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(C):b.removeAllRanges()),l&&document.body.removeChild(l),s()}return o}return K=c,K}var St=ht();const qt=Z.getDefaultExportFromCjs(St);var It=function(){var e=vt(),t=Ct({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],c=d.useCallback(function(a){if(e()){var i,f;try{if(typeof a!="string"&&typeof a!="number"){var u=new Error("Cannot copy typeof "+typeof a+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),n({value:a,error:u,noUserInteraction:!0});return}else if(a===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),n({value:a,error:u,noUserInteraction:!0});return}f=a.toString(),i=qt(f),n({value:f,error:void 0,noUserInteraction:i})}catch(s){n({value:f,error:s,noUserInteraction:i})}}},[]);return[r,c]};function kt(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,c=new MutationObserver(()=>{const a=r();t(a)});return c.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>c.disconnect()},[]),e}function ae(){const{resolvedTheme:e,setTheme:t}=te.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Rt(e,t){const{colorMode:r}=ae();return r==="light"?e:t}exports.system=ue.system;exports.RichTextInput=Z.RichTextInput;exports.Avatar=le.Avatar;exports.Box=ce.Box;exports.Button=se.Button;exports.Code=de.Code;exports.ComboBox=F.ComboBox;exports._ComboBoxOption=F.ComboBoxOption;exports._ComboBoxOptionGroup=F.ComboBoxOptionGroup;exports._ComboBoxRoot=F.ComboBoxRoot;exports.Dialog=fe.Dialog;exports.FieldErrorTypes=ee.FieldErrorTypes;exports.FieldErrors=ee.FieldErrors;exports.Group=pe.Group;exports.Heading=me.Heading;exports.IconButton=ge.IconButton;exports.IconToggleButton=ye.IconToggleButton;exports.Image=be.Image;exports.Kbd=ve.Kbd;exports.Link=Ce.Link;exports.List=L.List;exports._ListIndicator=L.ListIndicator;exports._ListItem=L.ListItem;exports._ListRoot=L.ListRoot;exports.SimpleGrid=Te.SimpleGrid;exports.Text=he.Text;exports.Tooltip=N.Tooltip;exports._TooltipContent=N.TooltipContent;exports._TooltipRoot=N.TooltipRoot;exports.MakeElementFocusable=Se.MakeElementFocusable;exports.NimbusProvider=te.NimbusProvider;exports.Checkbox=qe.Checkbox;exports.CollapsibleMotion=Ie.CollapsibleMotion;exports.Stack=ke.Stack;exports.VisuallyHidden=Re.VisuallyHidden;exports.TextInput=_e.TextInput;exports.NumberInput=we.NumberInput;exports.Grid=De.Grid;exports.Select=D.Select;exports._SelectOption=D.SelectOption;exports._SelectOptionGroup=D.SelectOptionGroup;exports._SelectOptions=D.SelectOptions;exports._SelectRoot=D.SelectRoot;exports.Separator=Ee.Separator;exports.Accordion=I.Accordion;exports._AccordionContent=I.AccordionContent;exports._AccordionHeader=I.AccordionHeader;exports._AccordionHeaderRightContent=I.AccordionHeaderRightContentSlot;exports._AccordionItem=I.AccordionItem;exports._AccordionRoot=I.AccordionRoot;exports.Alert=k.Alert;exports._AlertActions=k.AlertActions;exports._AlertDescription=k.AlertDescription;exports._AlertDismissButton=k.AlertDismissButton;exports._AlertRoot=k.AlertRoot;exports._AlertTitle=k.AlertTitle;exports.Badge=xe.Badge;exports.Card=M.Card;exports._CardContent=M.CardContent;exports._CardHeader=M.CardHeader;exports._CardRoot=M.CardRoot;exports.FormField=S.FormField;exports._FormFieldDescription=S.FormFieldDescription;exports._FormFieldError=S.FormFieldError;exports._FormFieldInfoBox=S.FormFieldInfoBox;exports._FormFieldInput=S.FormFieldInput;exports._FormFieldLabel=S.FormFieldLabel;exports._FormFieldRoot=S.FormFieldRoot;exports.Icon=Ae.Icon;exports.InlineSvg=Be.InlineSvg;exports.LoadingSpinner=Fe.LoadingSpinner;exports.PasswordInput=Le.PasswordInput;exports.SearchInput=Me.SearchInput;exports.SplitButton=Pe.SplitButton;exports.TimeInput=He.TimeInput;exports.MultilineTextInput=Oe.MultilineTextInput;exports.MoneyInput=Ke.MoneyInput;exports.RadioInput=j.RadioInput;exports._RadioInputOption=j.RadioInputOption;exports._RadioInputRoot=j.RadioInputRoot;exports.Switch=Ge.Switch;exports.TagGroup=Ne.TagGroup;exports.ToggleButton=je.ToggleButton;exports.ToggleButtonGroup=U.ToggleButtonGroup;exports._ToggleButtonGroupButton=U.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=U.ToggleButtonGroupRoot;exports.DateInput=Ue.DateInput;exports.Calendar=Ve.Calendar;exports.DatePicker=ze.DatePicker;exports.ProgressBar=We.ProgressBar;exports.RangeCalendar=$e.RangeCalendar;exports.Menu=T.Menu;exports._MenuContent=T.MenuContent;exports._MenuItem=T.MenuItem;exports._MenuRoot=T.MenuRoot;exports._MenuSection=T.MenuSection;exports._MenuSubmenu=T.MenuSubmenu;exports._MenuSubmenuTrigger=T.MenuSubmenuTrigger;exports._MenuTrigger=T.MenuTrigger;exports.DateRangePicker=Xe.DateRangePicker;exports.Toolbar=Je.Toolbar;exports.DataTable=y.DataTable;exports._DataTableBody=y.DataTableBody;exports._DataTableCell=y.DataTableCell;exports._DataTableColumn=y.DataTableColumn;exports._DataTableExpandButton=y.DataTableExpandButton;exports._DataTableFooter=y.DataTableFooter;exports._DataTableHeader=y.DataTableHeader;exports._DataTableNestedIcon=y.DataTableNestedIcon;exports._DataTableRoot=y.DataTableRoot;exports._DataTableRow=y.DataTableRow;exports._DataTableSelectionCell=y.DataTableSelectionCell;exports._DataTableTable=y.DataTableTable;exports.Pagination=Qe.Pagination;exports.Drawer=Ye.Drawer;exports.Tabs=R.Tabs;exports._Tab=R.Tab;exports._TabList=R.TabList;exports._TabPanel=R.TabPanel;exports._TabPanels=R.TabPanels;exports._TabsRoot=R.TabsRoot;exports.LocalizedField=Ze.LocalizedField;exports.useColorMode=ae;exports.useColorModeValue=Rt;exports.useColorScheme=kt;exports.useCopyToClipboard=It;exports.useHotkeys=bt;
|
|
1
|
+
"use strict";const le=require("./chunks/index-CRFg4Mhx.cjs.js"),ee=require("./chunks/rich-text-input-Da5WFZ3l.cjs.js"),d=require("react"),se=require("./chunks/avatar-_o-uSXYy.cjs.js"),ce=require("./chunks/box-CWni3A32.cjs.js"),de=require("./chunks/button-B5OOW-2z.cjs.js"),fe=require("./chunks/code-q31e3vT2.cjs.js"),B=require("./chunks/combobox-B5UxZWSX.cjs.js"),pe=require("./chunks/dialog-CKwC3dk3.cjs.js"),te=require("./chunks/field-errors-D2re_C_c.cjs.js"),kt=require("@chakra-ui/react/flex"),me=require("./chunks/group-BqUFlw5R.cjs.js"),ge=require("./chunks/heading-BTacGwo9.cjs.js"),be=require("./chunks/icon-button-vWPrT-bR.cjs.js"),ye=require("./chunks/icon-toggle-button-eLrsWehe.cjs.js"),ve=require("./chunks/image-CGOYoc2s.cjs.js"),Ce=require("./chunks/kbd-BaeV_DL-.cjs.js"),Te=require("./chunks/link-DpU4rPCp.cjs.js"),F=require("./chunks/list-DJC9BmoC.cjs.js"),M=require("./chunks/draggable-list-MGvr5-A-.cjs.js"),he=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),wt=require("@chakra-ui/react/table"),Se=require("./chunks/text-CCW9kDT_.cjs.js"),j=require("./chunks/tooltip-BPTOkK7W.cjs.js"),qe=require("./chunks/make-element-focusable-oedzOY_M.cjs.js"),re=require("./chunks/nimbus-provider-WX_qUCxo.cjs.js"),Ie=require("./chunks/checkbox-Dod-yTj4.cjs.js"),_e=require("./chunks/collapsible-motion-C7M_CLNI.cjs.js"),De=require("./chunks/stack-CIN13EDn.cjs.js"),Re=require("./chunks/visually-hidden-tTYCAVoQ.cjs.js"),ke=require("./chunks/text-input-DZdkCbdd.cjs.js"),we=require("./chunks/number-input-wMW-o4di.cjs.js"),Ee=require("./chunks/grid-Chuw1xje.cjs.js"),w=require("./chunks/select-DMsU6bk9.cjs.js"),xe=require("./chunks/separator-CvRn_J0r.cjs.js"),I=require("./chunks/accordion-B2FLWAh5.cjs.js"),_=require("./chunks/alert-D-1RFln1.cjs.js"),Le=require("./chunks/badge-mMpNb3Qj.cjs.js"),P=require("./chunks/card-BPEsGx1J.cjs.js"),S=require("./chunks/form-field-CIGQxVVS.cjs.js"),Ae=require("./chunks/icon-D39U--jA.cjs.js"),Be=require("./chunks/inline-svg-Yb2OyzRw.cjs.js"),Fe=require("./chunks/loading-spinner-DQM-6XnY.cjs.js"),Me=require("./chunks/password-input-6SMjhXSO.cjs.js"),Pe=require("./chunks/search-input-BefkmgPy.cjs.js"),He=require("./chunks/split-button-BO52sL7h.cjs.js"),Oe=require("./chunks/time-input-zXykDANk.cjs.js"),Ke=require("./chunks/multiline-text-input-B9TBDieZ.cjs.js"),Ge=require("./chunks/money-input-Cu_J86Eu.cjs.js"),U=require("./chunks/radio-input-Dp05SXja.cjs.js"),Ne=require("./chunks/switch-CdLhBEPq.cjs.js"),je=require("./chunks/tag-group-Btt0egzG.cjs.js"),Ue=require("./chunks/toggle-button-DxMZsem4.cjs.js"),V=require("./chunks/toggle-button-group-CE2Urvj8.cjs.js"),Ve=require("./chunks/date-input-DvOM0DLT.cjs.js"),ze=require("./chunks/calendar-V0KeNCQ3.cjs.js"),We=require("./chunks/date-picker-CZAoPNsT.cjs.js"),$e=require("./chunks/progress-bar-Bhp7W6Eo.cjs.js"),Xe=require("./chunks/range-calendar-_dZfAsdG.cjs.js"),T=require("./chunks/menu-DIepV2KZ.cjs.js"),Je=require("./chunks/date-range-picker-iENzosfN.cjs.js"),Qe=require("./chunks/toolbar-DV0l5MqA.cjs.js"),b=require("./chunks/data-table-C51WU0Cc.cjs.js"),Ye=require("./chunks/pagination-BWdg8s6g.cjs.js"),Ze=require("./chunks/drawer-DzW9wBMk.cjs.js"),D=require("./chunks/tabs-CJ0OAUSR.cjs.js"),et=require("./chunks/localized-field-C7Vribb2.cjs.js");require("react/jsx-runtime");function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N.apply(null,arguments)}var oe=["shift","alt","meta","mod","ctrl"],tt={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function A(e){return(e&&tt[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function rt(e){return oe.includes(e)}function H(e,t){return t===void 0&&(t=","),e.split(t)}function O(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(i){return A(i)}),s={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},a=n.filter(function(i){return!oe.includes(i)});return N({},s,{keys:a,description:r,hotkey:e})}var h=new Set;function z(e){return Array.isArray(e)}function ot(e,t){t===void 0&&(t=",");var r=z(e)?e:e.split(t);return r.every(function(n){return h.has(n.trim().toLowerCase())})}function nt(e){var t=Array.isArray(e)?e:[e];h.has("meta")&&h.forEach(function(r){return!rt(r)&&h.delete(r.toLowerCase())}),t.forEach(function(r){return h.add(r.toLowerCase())})}function at(e){var t=Array.isArray(e)?e:[e];e==="meta"?h.clear():t.forEach(function(r){return h.delete(r.toLowerCase())})}function it(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ut(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function lt(e){return ne(e,["input","textarea","select"])}function ne(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,s=null;return st(r)&&n?s=e.composedPath()[0]&&e.composedPath()[0].tagName:s=r&&r.tagName,z(t)?!!(s&&t&&t.some(function(a){var i;return a.toLowerCase()===((i=s)==null?void 0:i.toLowerCase())})):!!(s&&t&&t)}function st(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ct(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var dt=function(t,r,n){n===void 0&&(n=!1);var s=r.alt,a=r.meta,i=r.mod,f=r.shift,u=r.ctrl,c=r.keys,C=t.key,y=t.code,l=t.ctrlKey,o=t.metaKey,R=t.shiftKey,m=t.altKey,g=A(y),v=C.toLowerCase();if(!(c!=null&&c.includes(g))&&!(c!=null&&c.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(g))return!1;if(!n){if(s===!m&&v!=="alt"||f===!R&&v!=="shift")return!1;if(i){if(!o&&!l)return!1}else if(a===!o&&v!=="meta"&&v!=="os"||u===!l&&v!=="ctrl"&&v!=="control")return!1}return c&&c.length===1&&(c.includes(v)||c.includes(g))?!0:c?ot(c):!c},ft=d.createContext(void 0),pt=function(){return d.useContext(ft)};function ae(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&ae(e[n],t[n])},!0):e===t}var mt=d.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),gt=function(){return d.useContext(mt)};function bt(e){var t=d.useRef(void 0);return ae(t.current,e)||(t.current=e),t.current}var Q=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},yt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function vt(e,t,r,n){var s=d.useState(null),a=s[0],i=s[1],f=d.useRef(!1),u=r instanceof Array?n instanceof Array?void 0:n:r,c=z(e)?e.join(u?.splitKey):e,C=r instanceof Array?r:n instanceof Array?n:void 0,y=d.useCallback(t,C??[]),l=d.useRef(y);C?l.current=y:l.current=t;var o=bt(u),R=gt(),m=R.enabledScopes,g=pt();return yt(function(){if(!(o?.enabled===!1||!ct(m,o?.scopes))){var v=function(p,x){var X;if(x===void 0&&(x=!1),!(lt(p)&&!ne(p,o?.enableOnFormTags))){if(a!==null){var L=a.getRootNode();if((L instanceof Document||L instanceof ShadowRoot)&&L.activeElement!==a&&!a.contains(L.activeElement)){Q(p);return}}(X=p.target)!=null&&X.isContentEditable&&!(o!=null&&o.enableOnContentEditable)||H(c,o?.splitKey).forEach(function(ue){var J,k=O(ue,o?.combinationKey);if(dt(p,k,o?.ignoreModifiers)||(J=k.keys)!=null&&J.includes("*")){if(o!=null&&o.ignoreEventWhen!=null&&o.ignoreEventWhen(p)||x&&f.current)return;if(it(p,k,o?.preventDefault),!ut(p,k,o?.enabled)){Q(p);return}l.current(p,k),x||(f.current=!0)}})}},W=function(p){p.key!==void 0&&(nt(A(p.code)),(o?.keydown===void 0&&o?.keyup!==!0||o!=null&&o.keydown)&&v(p))},$=function(p){p.key!==void 0&&(at(A(p.code)),f.current=!1,o!=null&&o.keyup&&v(p,!0))},E=a||u?.document||document;return E.addEventListener("keyup",$,u?.eventListenerOptions),E.addEventListener("keydown",W,u?.eventListenerOptions),g&&H(c,o?.splitKey).forEach(function(q){return g.addHotkey(O(q,o?.combinationKey,o?.description))}),function(){E.removeEventListener("keyup",$,u?.eventListenerOptions),E.removeEventListener("keydown",W,u?.eventListenerOptions),g&&H(c,o?.splitKey).forEach(function(q){return g.removeHotkey(O(q,o?.combinationKey,o?.description))})}}},[a,c,o,m]),i}function Ct(){var e=d.useRef(!1),t=d.useCallback(function(){return e.current},[]);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Tt=function(e){e===void 0&&(e={});var t=d.useState(e),r=t[0],n=t[1],s=d.useCallback(function(a){n(function(i){return Object.assign({},i,a instanceof Function?a(i):a)})},[]);return[r,s]},K,Y;function ht(){return Y||(Y=1,K=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(s){e.addRange(s)}),t&&t.focus()}}),K}var G,Z;function St(){if(Z)return G;Z=1;var e=ht(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(a){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,i)}function s(a,i){var f,u,c,C,y,l,o=!1;i||(i={}),f=i.debug||!1;try{c=e(),C=document.createRange(),y=document.getSelection(),l=document.createElement("span"),l.textContent=a,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(m){if(m.stopPropagation(),i.format)if(m.preventDefault(),typeof m.clipboardData>"u"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[i.format]||t.default;window.clipboardData.setData(g,a)}else m.clipboardData.clearData(),m.clipboardData.setData(i.format,a);i.onCopy&&(m.preventDefault(),i.onCopy(m.clipboardData))}),document.body.appendChild(l),C.selectNodeContents(l),y.addRange(C);var R=document.execCommand("copy");if(!R)throw new Error("copy command was unsuccessful");o=!0}catch(m){f&&console.error("unable to copy using execCommand: ",m),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",a),i.onCopy&&i.onCopy(window.clipboardData),o=!0}catch(g){f&&console.error("unable to copy using clipboardData: ",g),f&&console.error("falling back to prompt"),u=n("message"in i?i.message:r),window.prompt(u,a)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(C):y.removeAllRanges()),l&&document.body.removeChild(l),c()}return o}return G=s,G}var qt=St();const It=ee.getDefaultExportFromCjs(qt);var _t=function(){var e=Ct(),t=Tt({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],s=d.useCallback(function(a){if(e()){var i,f;try{if(typeof a!="string"&&typeof a!="number"){var u=new Error("Cannot copy typeof "+typeof a+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(u),n({value:a,error:u,noUserInteraction:!0});return}else if(a===""){var u=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(u),n({value:a,error:u,noUserInteraction:!0});return}f=a.toString(),i=It(f),n({value:f,error:void 0,noUserInteraction:i})}catch(c){n({value:f,error:c,noUserInteraction:i})}}},[]);return[r,s]};function Dt(){const[e,t]=d.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return d.useEffect(()=>{const n=document.documentElement,s=new MutationObserver(()=>{const a=r();t(a)});return s.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>s.disconnect()},[]),e}function ie(){const{resolvedTheme:e,setTheme:t}=re.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Rt(e,t){const{colorMode:r}=ie();return r==="light"?e:t}exports.system=le.system;exports.RichTextInput=ee.RichTextInput;exports.Avatar=se.Avatar;exports.Box=ce.Box;exports.Button=de.Button;exports.Code=fe.Code;exports.ComboBox=B.ComboBox;exports._ComboBoxOption=B.ComboBoxOption;exports._ComboBoxOptionGroup=B.ComboBoxOptionGroup;exports._ComboBoxRoot=B.ComboBoxRoot;exports.Dialog=pe.Dialog;exports.FieldErrorTypes=te.FieldErrorTypes;exports.FieldErrors=te.FieldErrors;exports.Group=me.Group;exports.Heading=ge.Heading;exports.IconButton=be.IconButton;exports.IconToggleButton=ye.IconToggleButton;exports.Image=ve.Image;exports.Kbd=Ce.Kbd;exports.Link=Te.Link;exports.List=F.List;exports._ListIndicator=F.ListIndicator;exports._ListItem=F.ListItem;exports._ListRoot=F.ListRoot;exports.DraggableList=M.DraggableList;exports._DraggableListField=M.DraggableListField;exports._DraggableListItem=M.DraggableListItem;exports._DraggableListRoot=M.DraggableListRoot;exports.SimpleGrid=he.SimpleGrid;exports.Text=Se.Text;exports.Tooltip=j.Tooltip;exports._TooltipContent=j.TooltipContent;exports._TooltipRoot=j.TooltipRoot;exports.MakeElementFocusable=qe.MakeElementFocusable;exports.NimbusProvider=re.NimbusProvider;exports.Checkbox=Ie.Checkbox;exports.CollapsibleMotion=_e.CollapsibleMotion;exports.Stack=De.Stack;exports.VisuallyHidden=Re.VisuallyHidden;exports.TextInput=ke.TextInput;exports.NumberInput=we.NumberInput;exports.Grid=Ee.Grid;exports.Select=w.Select;exports._SelectOption=w.SelectOption;exports._SelectOptionGroup=w.SelectOptionGroup;exports._SelectOptions=w.SelectOptions;exports._SelectRoot=w.SelectRoot;exports.Separator=xe.Separator;exports.Accordion=I.Accordion;exports._AccordionContent=I.AccordionContent;exports._AccordionHeader=I.AccordionHeader;exports._AccordionHeaderRightContent=I.AccordionHeaderRightContentSlot;exports._AccordionItem=I.AccordionItem;exports._AccordionRoot=I.AccordionRoot;exports.Alert=_.Alert;exports._AlertActions=_.AlertActions;exports._AlertDescription=_.AlertDescription;exports._AlertDismissButton=_.AlertDismissButton;exports._AlertRoot=_.AlertRoot;exports._AlertTitle=_.AlertTitle;exports.Badge=Le.Badge;exports.Card=P.Card;exports._CardContent=P.CardContent;exports._CardHeader=P.CardHeader;exports._CardRoot=P.CardRoot;exports.FormField=S.FormField;exports._FormFieldDescription=S.FormFieldDescription;exports._FormFieldError=S.FormFieldError;exports._FormFieldInfoBox=S.FormFieldInfoBox;exports._FormFieldInput=S.FormFieldInput;exports._FormFieldLabel=S.FormFieldLabel;exports._FormFieldRoot=S.FormFieldRoot;exports.Icon=Ae.Icon;exports.InlineSvg=Be.InlineSvg;exports.LoadingSpinner=Fe.LoadingSpinner;exports.PasswordInput=Me.PasswordInput;exports.SearchInput=Pe.SearchInput;exports.SplitButton=He.SplitButton;exports.TimeInput=Oe.TimeInput;exports.MultilineTextInput=Ke.MultilineTextInput;exports.MoneyInput=Ge.MoneyInput;exports.RadioInput=U.RadioInput;exports._RadioInputOption=U.RadioInputOption;exports._RadioInputRoot=U.RadioInputRoot;exports.Switch=Ne.Switch;exports.TagGroup=je.TagGroup;exports.ToggleButton=Ue.ToggleButton;exports.ToggleButtonGroup=V.ToggleButtonGroup;exports._ToggleButtonGroupButton=V.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=V.ToggleButtonGroupRoot;exports.DateInput=Ve.DateInput;exports.Calendar=ze.Calendar;exports.DatePicker=We.DatePicker;exports.ProgressBar=$e.ProgressBar;exports.RangeCalendar=Xe.RangeCalendar;exports.Menu=T.Menu;exports._MenuContent=T.MenuContent;exports._MenuItem=T.MenuItem;exports._MenuRoot=T.MenuRoot;exports._MenuSection=T.MenuSection;exports._MenuSubmenu=T.MenuSubmenu;exports._MenuSubmenuTrigger=T.MenuSubmenuTrigger;exports._MenuTrigger=T.MenuTrigger;exports.DateRangePicker=Je.DateRangePicker;exports.Toolbar=Qe.Toolbar;exports.DataTable=b.DataTable;exports._DataTableBody=b.DataTableBody;exports._DataTableCell=b.DataTableCell;exports._DataTableColumn=b.DataTableColumn;exports._DataTableExpandButton=b.DataTableExpandButton;exports._DataTableFooter=b.DataTableFooter;exports._DataTableHeader=b.DataTableHeader;exports._DataTableNestedIcon=b.DataTableNestedIcon;exports._DataTableRoot=b.DataTableRoot;exports._DataTableRow=b.DataTableRow;exports._DataTableSelectionCell=b.DataTableSelectionCell;exports._DataTableTable=b.DataTableTable;exports.Pagination=Ye.Pagination;exports.Drawer=Ze.Drawer;exports.Tabs=D.Tabs;exports._Tab=D.Tab;exports._TabList=D.TabList;exports._TabPanel=D.TabPanel;exports._TabPanels=D.TabPanels;exports._TabsRoot=D.TabsRoot;exports.LocalizedField=et.LocalizedField;exports.useColorMode=ie;exports.useColorModeValue=Rt;exports.useColorScheme=Dt;exports.useCopyToClipboard=_t;exports.useHotkeys=vt;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../node_modules/.pnpm/react-hotkeys-hook@4.6.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useMountedState.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useSetState.js","../../../node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js","../../../node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useCopyToClipboard.js","../src/hooks/use-color-scheme/use-color-scheme.ts","../src/hooks/use-color-mode/use-color-mode.ts","../src/hooks/use-color-mode-value/use-color-mode-value.ts"],"sourcesContent":["import { useContext, createContext, useState, useCallback, useRef, useLayoutEffect, useEffect } from 'react';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\n\nvar reservedModifierKeywords = ['shift', 'alt', 'meta', 'mod', 'ctrl'];\nvar mappedKeys = {\n esc: 'escape',\n \"return\": 'enter',\n '.': 'period',\n ',': 'comma',\n '-': 'slash',\n ' ': 'space',\n '`': 'backquote',\n '#': 'backslash',\n '+': 'bracketright',\n ShiftLeft: 'shift',\n ShiftRight: 'shift',\n AltLeft: 'alt',\n AltRight: 'alt',\n MetaLeft: 'meta',\n MetaRight: 'meta',\n OSLeft: 'meta',\n OSRight: 'meta',\n ControlLeft: 'ctrl',\n ControlRight: 'ctrl'\n};\nfunction mapKey(key) {\n return (key && mappedKeys[key] || key || '').trim().toLowerCase().replace(/key|digit|numpad|arrow/, '');\n}\nfunction isHotkeyModifier(key) {\n return reservedModifierKeywords.includes(key);\n}\nfunction parseKeysHookInput(keys, splitKey) {\n if (splitKey === void 0) {\n splitKey = ',';\n }\n return keys.split(splitKey);\n}\nfunction parseHotkey(hotkey, combinationKey, description) {\n if (combinationKey === void 0) {\n combinationKey = '+';\n }\n var keys = hotkey.toLocaleLowerCase().split(combinationKey).map(function (k) {\n return mapKey(k);\n });\n var modifiers = {\n alt: keys.includes('alt'),\n ctrl: keys.includes('ctrl') || keys.includes('control'),\n shift: keys.includes('shift'),\n meta: keys.includes('meta'),\n mod: keys.includes('mod')\n };\n var singleCharKeys = keys.filter(function (k) {\n return !reservedModifierKeywords.includes(k);\n });\n return _extends({}, modifiers, {\n keys: singleCharKeys,\n description: description,\n hotkey: hotkey\n });\n}\n\n(function () {\n if (typeof document !== 'undefined') {\n document.addEventListener('keydown', function (e) {\n if (e.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n pushToCurrentlyPressedKeys([mapKey(e.key), mapKey(e.code)]);\n });\n document.addEventListener('keyup', function (e) {\n if (e.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n removeFromCurrentlyPressedKeys([mapKey(e.key), mapKey(e.code)]);\n });\n }\n if (typeof window !== 'undefined') {\n window.addEventListener('blur', function () {\n currentlyPressedKeys.clear();\n });\n }\n})();\nvar currentlyPressedKeys = /*#__PURE__*/new Set();\n// https://github.com/microsoft/TypeScript/issues/17002\nfunction isReadonlyArray(value) {\n return Array.isArray(value);\n}\nfunction isHotkeyPressed(key, splitKey) {\n if (splitKey === void 0) {\n splitKey = ',';\n }\n var hotkeyArray = isReadonlyArray(key) ? key : key.split(splitKey);\n return hotkeyArray.every(function (hotkey) {\n return currentlyPressedKeys.has(hotkey.trim().toLowerCase());\n });\n}\nfunction pushToCurrentlyPressedKeys(key) {\n var hotkeyArray = Array.isArray(key) ? key : [key];\n /*\r\n Due to a weird behavior on macOS we need to clear the set if the user pressed down the meta key and presses another key.\r\n https://stackoverflow.com/questions/11818637/why-does-javascript-drop-keyup-events-when-the-metakey-is-pressed-on-mac-browser\r\n Otherwise the set will hold all ever pressed keys while the meta key is down which leads to wrong results.\r\n */\n if (currentlyPressedKeys.has('meta')) {\n currentlyPressedKeys.forEach(function (key) {\n return !isHotkeyModifier(key) && currentlyPressedKeys[\"delete\"](key.toLowerCase());\n });\n }\n hotkeyArray.forEach(function (hotkey) {\n return currentlyPressedKeys.add(hotkey.toLowerCase());\n });\n}\nfunction removeFromCurrentlyPressedKeys(key) {\n var hotkeyArray = Array.isArray(key) ? key : [key];\n /*\r\n Due to a weird behavior on macOS we need to clear the set if the user pressed down the meta key and presses another key.\r\n https://stackoverflow.com/questions/11818637/why-does-javascript-drop-keyup-events-when-the-metakey-is-pressed-on-mac-browser\r\n Otherwise the set will hold all ever pressed keys while the meta key is down which leads to wrong results.\r\n */\n if (key === 'meta') {\n currentlyPressedKeys.clear();\n } else {\n hotkeyArray.forEach(function (hotkey) {\n return currentlyPressedKeys[\"delete\"](hotkey.toLowerCase());\n });\n }\n}\n\nfunction maybePreventDefault(e, hotkey, preventDefault) {\n if (typeof preventDefault === 'function' && preventDefault(e, hotkey) || preventDefault === true) {\n e.preventDefault();\n }\n}\nfunction isHotkeyEnabled(e, hotkey, enabled) {\n if (typeof enabled === 'function') {\n return enabled(e, hotkey);\n }\n return enabled === true || enabled === undefined;\n}\nfunction isKeyboardEventTriggeredByInput(ev) {\n return isHotkeyEnabledOnTag(ev, ['input', 'textarea', 'select']);\n}\nfunction isHotkeyEnabledOnTag(event, enabledOnTags) {\n if (enabledOnTags === void 0) {\n enabledOnTags = false;\n }\n var target = event.target,\n composed = event.composed;\n var targetTagName = null;\n if (isCustomElement(target) && composed) {\n targetTagName = event.composedPath()[0] && event.composedPath()[0].tagName;\n } else {\n targetTagName = target && target.tagName;\n }\n if (isReadonlyArray(enabledOnTags)) {\n return Boolean(targetTagName && enabledOnTags && enabledOnTags.some(function (tag) {\n var _targetTagName;\n return tag.toLowerCase() === ((_targetTagName = targetTagName) == null ? void 0 : _targetTagName.toLowerCase());\n }));\n }\n return Boolean(targetTagName && enabledOnTags && enabledOnTags);\n}\nfunction isCustomElement(element) {\n // We just do a basic check w/o any complex RegEx or validation against the list of legacy names containing a hyphen,\n // as none of them is likely to be an event target, and it won't hurt anyway if we miss.\n // see: https://html.spec.whatwg.org/multipage/custom-elements.html#prod-potentialcustomelementname\n return !!element.tagName && !element.tagName.startsWith(\"-\") && element.tagName.includes(\"-\");\n}\nfunction isScopeActive(activeScopes, scopes) {\n if (activeScopes.length === 0 && scopes) {\n console.warn('A hotkey has the \"scopes\" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>');\n return true;\n }\n if (!scopes) {\n return true;\n }\n return activeScopes.some(function (scope) {\n return scopes.includes(scope);\n }) || activeScopes.includes('*');\n}\nvar isHotkeyMatchingKeyboardEvent = function isHotkeyMatchingKeyboardEvent(e, hotkey, ignoreModifiers) {\n if (ignoreModifiers === void 0) {\n ignoreModifiers = false;\n }\n var alt = hotkey.alt,\n meta = hotkey.meta,\n mod = hotkey.mod,\n shift = hotkey.shift,\n ctrl = hotkey.ctrl,\n keys = hotkey.keys;\n var pressedKeyUppercase = e.key,\n code = e.code,\n ctrlKey = e.ctrlKey,\n metaKey = e.metaKey,\n shiftKey = e.shiftKey,\n altKey = e.altKey;\n var keyCode = mapKey(code);\n var pressedKey = pressedKeyUppercase.toLowerCase();\n if (!(keys != null && keys.includes(keyCode)) && !(keys != null && keys.includes(pressedKey)) && !['ctrl', 'control', 'unknown', 'meta', 'alt', 'shift', 'os'].includes(keyCode)) {\n return false;\n }\n if (!ignoreModifiers) {\n // We check the pressed keys for compatibility with the keyup event. In keyup events the modifier flags are not set.\n if (alt === !altKey && pressedKey !== 'alt') {\n return false;\n }\n if (shift === !shiftKey && pressedKey !== 'shift') {\n return false;\n }\n // Mod is a special key name that is checking for meta on macOS and ctrl on other platforms\n if (mod) {\n if (!metaKey && !ctrlKey) {\n return false;\n }\n } else {\n if (meta === !metaKey && pressedKey !== 'meta' && pressedKey !== 'os') {\n return false;\n }\n if (ctrl === !ctrlKey && pressedKey !== 'ctrl' && pressedKey !== 'control') {\n return false;\n }\n }\n }\n // All modifiers are correct, now check the key\n // If the key is set, we check for the key\n if (keys && keys.length === 1 && (keys.includes(pressedKey) || keys.includes(keyCode))) {\n return true;\n } else if (keys) {\n // Check if all keys are present in pressedDownKeys set\n return isHotkeyPressed(keys);\n } else if (!keys) {\n // If the key is not set, we only listen for modifiers, that check went alright, so we return true\n return true;\n }\n // There is nothing that matches.\n return false;\n};\n\nvar BoundHotkeysProxyProvider = /*#__PURE__*/createContext(undefined);\nvar useBoundHotkeysProxy = function useBoundHotkeysProxy() {\n return useContext(BoundHotkeysProxyProvider);\n};\nfunction BoundHotkeysProxyProviderProvider(_ref) {\n var addHotkey = _ref.addHotkey,\n removeHotkey = _ref.removeHotkey,\n children = _ref.children;\n return /*#__PURE__*/jsx(BoundHotkeysProxyProvider.Provider, {\n value: {\n addHotkey: addHotkey,\n removeHotkey: removeHotkey\n },\n children: children\n });\n}\n\nfunction deepEqual(x, y) {\n //@ts-ignore\n return x && y && typeof x === 'object' && typeof y === 'object' ? Object.keys(x).length === Object.keys(y).length &&\n //@ts-ignore\n Object.keys(x).reduce(function (isEqual, key) {\n return isEqual && deepEqual(x[key], y[key]);\n }, true) : x === y;\n}\n\nvar HotkeysContext = /*#__PURE__*/createContext({\n hotkeys: [],\n enabledScopes: [],\n toggleScope: function toggleScope() {},\n enableScope: function enableScope() {},\n disableScope: function disableScope() {}\n});\nvar useHotkeysContext = function useHotkeysContext() {\n return useContext(HotkeysContext);\n};\nvar HotkeysProvider = function HotkeysProvider(_ref) {\n var _ref$initiallyActiveS = _ref.initiallyActiveScopes,\n initiallyActiveScopes = _ref$initiallyActiveS === void 0 ? ['*'] : _ref$initiallyActiveS,\n children = _ref.children;\n var _useState = useState((initiallyActiveScopes == null ? void 0 : initiallyActiveScopes.length) > 0 ? initiallyActiveScopes : ['*']),\n internalActiveScopes = _useState[0],\n setInternalActiveScopes = _useState[1];\n var _useState2 = useState([]),\n boundHotkeys = _useState2[0],\n setBoundHotkeys = _useState2[1];\n var enableScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.includes('*')) {\n return [scope];\n }\n return Array.from(new Set([].concat(prev, [scope])));\n });\n }, []);\n var disableScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.filter(function (s) {\n return s !== scope;\n }).length === 0) {\n return ['*'];\n } else {\n return prev.filter(function (s) {\n return s !== scope;\n });\n }\n });\n }, []);\n var toggleScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.includes(scope)) {\n if (prev.filter(function (s) {\n return s !== scope;\n }).length === 0) {\n return ['*'];\n } else {\n return prev.filter(function (s) {\n return s !== scope;\n });\n }\n } else {\n if (prev.includes('*')) {\n return [scope];\n }\n return Array.from(new Set([].concat(prev, [scope])));\n }\n });\n }, []);\n var addBoundHotkey = useCallback(function (hotkey) {\n setBoundHotkeys(function (prev) {\n return [].concat(prev, [hotkey]);\n });\n }, []);\n var removeBoundHotkey = useCallback(function (hotkey) {\n setBoundHotkeys(function (prev) {\n return prev.filter(function (h) {\n return !deepEqual(h, hotkey);\n });\n });\n }, []);\n return /*#__PURE__*/jsx(HotkeysContext.Provider, {\n value: {\n enabledScopes: internalActiveScopes,\n hotkeys: boundHotkeys,\n enableScope: enableScope,\n disableScope: disableScope,\n toggleScope: toggleScope\n },\n children: /*#__PURE__*/jsx(BoundHotkeysProxyProviderProvider, {\n addHotkey: addBoundHotkey,\n removeHotkey: removeBoundHotkey,\n children: children\n })\n });\n};\n\nfunction useDeepEqualMemo(value) {\n var ref = useRef(undefined);\n if (!deepEqual(ref.current, value)) {\n ref.current = value;\n }\n return ref.current;\n}\n\nvar stopPropagation = function stopPropagation(e) {\n e.stopPropagation();\n e.preventDefault();\n e.stopImmediatePropagation();\n};\nvar useSafeLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\nfunction useHotkeys(keys, callback, options, dependencies) {\n var _useState = useState(null),\n ref = _useState[0],\n setRef = _useState[1];\n var hasTriggeredRef = useRef(false);\n var _options = !(options instanceof Array) ? options : !(dependencies instanceof Array) ? dependencies : undefined;\n var _keys = isReadonlyArray(keys) ? keys.join(_options == null ? void 0 : _options.splitKey) : keys;\n var _deps = options instanceof Array ? options : dependencies instanceof Array ? dependencies : undefined;\n var memoisedCB = useCallback(callback, _deps != null ? _deps : []);\n var cbRef = useRef(memoisedCB);\n if (_deps) {\n cbRef.current = memoisedCB;\n } else {\n cbRef.current = callback;\n }\n var memoisedOptions = useDeepEqualMemo(_options);\n var _useHotkeysContext = useHotkeysContext(),\n enabledScopes = _useHotkeysContext.enabledScopes;\n var proxy = useBoundHotkeysProxy();\n useSafeLayoutEffect(function () {\n if ((memoisedOptions == null ? void 0 : memoisedOptions.enabled) === false || !isScopeActive(enabledScopes, memoisedOptions == null ? void 0 : memoisedOptions.scopes)) {\n return;\n }\n var listener = function listener(e, isKeyUp) {\n var _e$target;\n if (isKeyUp === void 0) {\n isKeyUp = false;\n }\n if (isKeyboardEventTriggeredByInput(e) && !isHotkeyEnabledOnTag(e, memoisedOptions == null ? void 0 : memoisedOptions.enableOnFormTags)) {\n return;\n }\n // TODO: SINCE THE EVENT IS NOW ATTACHED TO THE REF, THE ACTIVE ELEMENT CAN NEVER BE INSIDE THE REF. THE HOTKEY ONLY TRIGGERS IF THE\n // REF IS THE ACTIVE ELEMENT. THIS IS A PROBLEM SINCE FOCUSED SUB COMPONENTS WON'T TRIGGER THE HOTKEY.\n if (ref !== null) {\n var rootNode = ref.getRootNode();\n if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement !== ref && !ref.contains(rootNode.activeElement)) {\n stopPropagation(e);\n return;\n }\n }\n if ((_e$target = e.target) != null && _e$target.isContentEditable && !(memoisedOptions != null && memoisedOptions.enableOnContentEditable)) {\n return;\n }\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n var _hotkey$keys;\n var hotkey = parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey);\n if (isHotkeyMatchingKeyboardEvent(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.ignoreModifiers) || (_hotkey$keys = hotkey.keys) != null && _hotkey$keys.includes('*')) {\n if (memoisedOptions != null && memoisedOptions.ignoreEventWhen != null && memoisedOptions.ignoreEventWhen(e)) {\n return;\n }\n if (isKeyUp && hasTriggeredRef.current) {\n return;\n }\n maybePreventDefault(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.preventDefault);\n if (!isHotkeyEnabled(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.enabled)) {\n stopPropagation(e);\n return;\n }\n // Execute the user callback for that hotkey\n cbRef.current(e, hotkey);\n if (!isKeyUp) {\n hasTriggeredRef.current = true;\n }\n }\n });\n };\n var handleKeyDown = function handleKeyDown(event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n pushToCurrentlyPressedKeys(mapKey(event.code));\n if ((memoisedOptions == null ? void 0 : memoisedOptions.keydown) === undefined && (memoisedOptions == null ? void 0 : memoisedOptions.keyup) !== true || memoisedOptions != null && memoisedOptions.keydown) {\n listener(event);\n }\n };\n var handleKeyUp = function handleKeyUp(event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n removeFromCurrentlyPressedKeys(mapKey(event.code));\n hasTriggeredRef.current = false;\n if (memoisedOptions != null && memoisedOptions.keyup) {\n listener(event, true);\n }\n };\n var domNode = ref || (_options == null ? void 0 : _options.document) || document;\n // @ts-ignore\n domNode.addEventListener('keyup', handleKeyUp, _options == null ? void 0 : _options.eventListenerOptions);\n // @ts-ignore\n domNode.addEventListener('keydown', handleKeyDown, _options == null ? void 0 : _options.eventListenerOptions);\n if (proxy) {\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n return proxy.addHotkey(parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey, memoisedOptions == null ? void 0 : memoisedOptions.description));\n });\n }\n return function () {\n // @ts-ignore\n domNode.removeEventListener('keyup', handleKeyUp, _options == null ? void 0 : _options.eventListenerOptions);\n // @ts-ignore\n domNode.removeEventListener('keydown', handleKeyDown, _options == null ? void 0 : _options.eventListenerOptions);\n if (proxy) {\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n return proxy.removeHotkey(parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey, memoisedOptions == null ? void 0 : memoisedOptions.description));\n });\n }\n };\n }, [ref, _keys, memoisedOptions, enabledScopes]);\n return setRef;\n}\n\nfunction useRecordHotkeys() {\n var _useState = useState(new Set()),\n keys = _useState[0],\n setKeys = _useState[1];\n var _useState2 = useState(false),\n isRecording = _useState2[0],\n setIsRecording = _useState2[1];\n var handler = useCallback(function (event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n setKeys(function (prev) {\n var newKeys = new Set(prev);\n newKeys.add(mapKey(event.code));\n return newKeys;\n });\n }, []);\n var stop = useCallback(function () {\n if (typeof document !== 'undefined') {\n document.removeEventListener('keydown', handler);\n setIsRecording(false);\n }\n }, [handler]);\n var start = useCallback(function () {\n setKeys(new Set());\n if (typeof document !== 'undefined') {\n stop();\n document.addEventListener('keydown', handler);\n setIsRecording(true);\n }\n }, [handler, stop]);\n var resetKeys = useCallback(function () {\n setKeys(new Set());\n }, []);\n return [keys, {\n start: start,\n stop: stop,\n resetKeys: resetKeys,\n isRecording: isRecording\n }];\n}\n\nexport { HotkeysProvider, isHotkeyPressed, useHotkeys, useHotkeysContext, useRecordHotkeys };\n//# sourceMappingURL=react-hotkeys-hook.esm.js.map\n","import { useCallback, useEffect, useRef } from 'react';\nexport default function useMountedState() {\n var mountedRef = useRef(false);\n var get = useCallback(function () { return mountedRef.current; }, []);\n useEffect(function () {\n mountedRef.current = true;\n return function () {\n mountedRef.current = false;\n };\n }, []);\n return get;\n}\n","import { useCallback, useState } from 'react';\nvar useSetState = function (initialState) {\n if (initialState === void 0) { initialState = {}; }\n var _a = useState(initialState), state = _a[0], set = _a[1];\n var setState = useCallback(function (patch) {\n set(function (prevState) {\n return Object.assign({}, prevState, patch instanceof Function ? patch(prevState) : patch);\n });\n }, []);\n return [state, setState];\n};\nexport default useSetState;\n","\nmodule.exports = function () {\n var selection = document.getSelection();\n if (!selection.rangeCount) {\n return function () {};\n }\n var active = document.activeElement;\n\n var ranges = [];\n for (var i = 0; i < selection.rangeCount; i++) {\n ranges.push(selection.getRangeAt(i));\n }\n\n switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML\n case 'INPUT':\n case 'TEXTAREA':\n active.blur();\n break;\n\n default:\n active = null;\n break;\n }\n\n selection.removeAllRanges();\n return function () {\n selection.type === 'Caret' &&\n selection.removeAllRanges();\n\n if (!selection.rangeCount) {\n ranges.forEach(function(range) {\n selection.addRange(range);\n });\n }\n\n active &&\n active.focus();\n };\n};\n","\"use strict\";\n\nvar deselectCurrent = require(\"toggle-selection\");\n\nvar clipboardToIE11Formatting = {\n \"text/plain\": \"Text\",\n \"text/html\": \"Url\",\n \"default\": \"Text\"\n}\n\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\n\nfunction format(message) {\n var copyKey = (/mac os x/i.test(navigator.userAgent) ? \"⌘\" : \"Ctrl\") + \"+C\";\n return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\n\nfunction copy(text, options) {\n var debug,\n message,\n reselectPrevious,\n range,\n selection,\n mark,\n success = false;\n if (!options) {\n options = {};\n }\n debug = options.debug || false;\n try {\n reselectPrevious = deselectCurrent();\n\n range = document.createRange();\n selection = document.getSelection();\n\n mark = document.createElement(\"span\");\n mark.textContent = text;\n // avoid screen readers from reading out loud the text\n mark.ariaHidden = \"true\"\n // reset user styles for span element\n mark.style.all = \"unset\";\n // prevents scrolling to the end of the page\n mark.style.position = \"fixed\";\n mark.style.top = 0;\n mark.style.clip = \"rect(0, 0, 0, 0)\";\n // used to preserve spaces and line breaks\n mark.style.whiteSpace = \"pre\";\n // do not inherit user-select (it may be `none`)\n mark.style.webkitUserSelect = \"text\";\n mark.style.MozUserSelect = \"text\";\n mark.style.msUserSelect = \"text\";\n mark.style.userSelect = \"text\";\n mark.addEventListener(\"copy\", function(e) {\n e.stopPropagation();\n if (options.format) {\n e.preventDefault();\n if (typeof e.clipboardData === \"undefined\") { // IE 11\n debug && console.warn(\"unable to use e.clipboardData\");\n debug && console.warn(\"trying IE specific stuff\");\n window.clipboardData.clearData();\n var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting[\"default\"]\n window.clipboardData.setData(format, text);\n } else { // all other browsers\n e.clipboardData.clearData();\n e.clipboardData.setData(options.format, text);\n }\n }\n if (options.onCopy) {\n e.preventDefault();\n options.onCopy(e.clipboardData);\n }\n });\n\n document.body.appendChild(mark);\n\n range.selectNodeContents(mark);\n selection.addRange(range);\n\n var successful = document.execCommand(\"copy\");\n if (!successful) {\n throw new Error(\"copy command was unsuccessful\");\n }\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using execCommand: \", err);\n debug && console.warn(\"trying IE specific stuff\");\n try {\n window.clipboardData.setData(options.format || \"text\", text);\n options.onCopy && options.onCopy(window.clipboardData);\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using clipboardData: \", err);\n debug && console.error(\"falling back to prompt\");\n message = format(\"message\" in options ? options.message : defaultMessage);\n window.prompt(message, text);\n }\n } finally {\n if (selection) {\n if (typeof selection.removeRange == \"function\") {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n if (mark) {\n document.body.removeChild(mark);\n }\n reselectPrevious();\n }\n\n return success;\n}\n\nmodule.exports = copy;\n","import writeText from 'copy-to-clipboard';\nimport { useCallback } from 'react';\nimport useMountedState from './useMountedState';\nimport useSetState from './useSetState';\nvar useCopyToClipboard = function () {\n var isMounted = useMountedState();\n var _a = useSetState({\n value: undefined,\n error: undefined,\n noUserInteraction: true,\n }), state = _a[0], setState = _a[1];\n var copyToClipboard = useCallback(function (value) {\n if (!isMounted()) {\n return;\n }\n var noUserInteraction;\n var normalizedValue;\n try {\n // only strings and numbers casted to strings can be copied to clipboard\n if (typeof value !== 'string' && typeof value !== 'number') {\n var error = new Error(\"Cannot copy typeof \" + typeof value + \" to clipboard, must be a string\");\n if (process.env.NODE_ENV === 'development')\n console.error(error);\n setState({\n value: value,\n error: error,\n noUserInteraction: true,\n });\n return;\n }\n // empty strings are also considered invalid\n else if (value === '') {\n var error = new Error(\"Cannot copy empty string to clipboard.\");\n if (process.env.NODE_ENV === 'development')\n console.error(error);\n setState({\n value: value,\n error: error,\n noUserInteraction: true,\n });\n return;\n }\n normalizedValue = value.toString();\n noUserInteraction = writeText(normalizedValue);\n setState({\n value: normalizedValue,\n error: undefined,\n noUserInteraction: noUserInteraction,\n });\n }\n catch (error) {\n setState({\n value: normalizedValue,\n error: error,\n noUserInteraction: noUserInteraction,\n });\n }\n }, []);\n return [state, copyToClipboard];\n};\nexport default useCopyToClipboard;\n","import { useEffect, useState } from \"react\";\n\n/**\n * Hook that provides access to the current color scheme value.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * This hook monitors the color-scheme CSS property on the document's HTML element\n * and returns the current value. It automatically updates when the color scheme changes,\n * either through direct style changes or theme updates stored in localStorage.\n *\n * The hook observes mutations to the HTML element's style attribute to detect\n * color scheme changes and re-renders the component when changes occur.\n *\n * @returns The current color scheme value as a string ('light', 'dark')\n */\nexport function useColorScheme() {\n const [colorScheme, setColorScheme] = useState(getCurrentColorScheme());\n\n // Helper function to get the current color-scheme from the <html> tag\n function getCurrentColorScheme() {\n return (\n document.documentElement.style.getPropertyValue(\"color-scheme\") ||\n localStorage.getItem(\"theme\") ||\n \"light\"\n );\n }\n\n useEffect(() => {\n const htmlElement = document.documentElement;\n\n const observer = new MutationObserver(() => {\n const newColorScheme = getCurrentColorScheme();\n setColorScheme(newColorScheme);\n });\n\n // Observe changes to the 'style' attribute of the <html> element\n observer.observe(htmlElement, {\n attributes: true,\n attributeFilter: [\"style\"],\n });\n\n return () => observer.disconnect();\n }, []);\n\n return colorScheme;\n}\n","\"use client\";\nimport { useTheme } from \"next-themes\";\n\n/**\n * Hook for managing color mode (light/dark theme) state.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * This hook provides access to the current color mode and functions to change it.\n * It integrates with the next-themes library to handle theme persistence and system preference detection.\n *\n * @returns An object containing:\n * - `colorMode`: The current resolved theme ('light' | 'dark' | 'system' | undefined)\n * - `setColorMode`: Function to set a specific color mode\n * - `toggleColorMode`: Function to toggle between light and dark modes\n *\n * @example\n * ```tsx\n * function ThemeToggle() {\n * const { colorMode, toggleColorMode } = useColorMode();\n *\n * return (\n * <button onClick={toggleColorMode}>\n * Current mode: {colorMode}\n * </button>\n * );\n * }\n * ```\n */\n\nexport function useColorMode() {\n const { resolvedTheme, setTheme } = useTheme();\n const toggleColorMode = () => {\n setTheme(resolvedTheme === \"light\" ? \"dark\" : \"light\");\n };\n return {\n colorMode: resolvedTheme,\n setColorMode: setTheme,\n toggleColorMode,\n };\n}\n","import { useColorMode } from \"./../use-color-mode\";\n\n/**\n * Hook that returns a value based on the current color mode.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * @param light - The value to return when the color mode is light\n * @param dark - The value to return when the color mode is dark\n * @returns The appropriate value based on the current color mode\n */\nexport function useColorModeValue<T>(light: T, dark: T) {\n const { colorMode } = useColorMode();\n return colorMode === \"light\" ? light : dark;\n}\n"],"names":["_extends","n","e","t","r","reservedModifierKeywords","mappedKeys","mapKey","key","isHotkeyModifier","parseKeysHookInput","keys","splitKey","parseHotkey","hotkey","combinationKey","description","k","modifiers","singleCharKeys","currentlyPressedKeys","isReadonlyArray","value","isHotkeyPressed","hotkeyArray","pushToCurrentlyPressedKeys","removeFromCurrentlyPressedKeys","maybePreventDefault","preventDefault","isHotkeyEnabled","enabled","isKeyboardEventTriggeredByInput","ev","isHotkeyEnabledOnTag","event","enabledOnTags","target","composed","targetTagName","isCustomElement","tag","_targetTagName","element","isScopeActive","activeScopes","scopes","scope","isHotkeyMatchingKeyboardEvent","ignoreModifiers","alt","meta","mod","shift","ctrl","pressedKeyUppercase","code","ctrlKey","metaKey","shiftKey","altKey","keyCode","pressedKey","BoundHotkeysProxyProvider","createContext","useBoundHotkeysProxy","useContext","deepEqual","x","y","isEqual","HotkeysContext","useHotkeysContext","useDeepEqualMemo","ref","useRef","stopPropagation","useSafeLayoutEffect","useLayoutEffect","useEffect","useHotkeys","callback","options","dependencies","_useState","useState","setRef","hasTriggeredRef","_options","_keys","_deps","memoisedCB","useCallback","cbRef","memoisedOptions","_useHotkeysContext","enabledScopes","proxy","listener","isKeyUp","_e$target","rootNode","_hotkey$keys","handleKeyDown","handleKeyUp","domNode","useMountedState","mountedRef","get","useSetState","initialState","_a","state","set","setState","patch","prevState","toggleSelection","selection","active","ranges","i","range","deselectCurrent","require$$0","clipboardToIE11Formatting","defaultMessage","format","message","copyKey","copy","text","debug","reselectPrevious","mark","success","successful","err","copyToClipboard","useCopyToClipboard","isMounted","noUserInteraction","normalizedValue","error","writeText","useColorScheme","colorScheme","setColorScheme","getCurrentColorScheme","htmlElement","observer","newColorScheme","useColorMode","resolvedTheme","setTheme","useTheme","useColorModeValue","light","dark","colorMode"],"mappings":"yqGAGA,SAASA,GAAW,CAClB,OA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om@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useMountedState.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useSetState.js","../../../node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js","../../../node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js","../../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-use/esm/useCopyToClipboard.js","../src/hooks/use-color-scheme/use-color-scheme.ts","../src/hooks/use-color-mode/use-color-mode.ts","../src/hooks/use-color-mode-value/use-color-mode-value.ts"],"sourcesContent":["import { useContext, createContext, useState, useCallback, useRef, useLayoutEffect, useEffect } from 'react';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\n\nvar reservedModifierKeywords = ['shift', 'alt', 'meta', 'mod', 'ctrl'];\nvar mappedKeys = {\n esc: 'escape',\n \"return\": 'enter',\n '.': 'period',\n ',': 'comma',\n '-': 'slash',\n ' ': 'space',\n '`': 'backquote',\n '#': 'backslash',\n '+': 'bracketright',\n ShiftLeft: 'shift',\n ShiftRight: 'shift',\n AltLeft: 'alt',\n AltRight: 'alt',\n MetaLeft: 'meta',\n MetaRight: 'meta',\n OSLeft: 'meta',\n OSRight: 'meta',\n ControlLeft: 'ctrl',\n ControlRight: 'ctrl'\n};\nfunction mapKey(key) {\n return (key && mappedKeys[key] || key || '').trim().toLowerCase().replace(/key|digit|numpad|arrow/, '');\n}\nfunction isHotkeyModifier(key) {\n return reservedModifierKeywords.includes(key);\n}\nfunction parseKeysHookInput(keys, splitKey) {\n if (splitKey === void 0) {\n splitKey = ',';\n }\n return keys.split(splitKey);\n}\nfunction parseHotkey(hotkey, combinationKey, description) {\n if (combinationKey === void 0) {\n combinationKey = '+';\n }\n var keys = hotkey.toLocaleLowerCase().split(combinationKey).map(function (k) {\n return mapKey(k);\n });\n var modifiers = {\n alt: keys.includes('alt'),\n ctrl: keys.includes('ctrl') || keys.includes('control'),\n shift: keys.includes('shift'),\n meta: keys.includes('meta'),\n mod: keys.includes('mod')\n };\n var singleCharKeys = keys.filter(function (k) {\n return !reservedModifierKeywords.includes(k);\n });\n return _extends({}, modifiers, {\n keys: singleCharKeys,\n description: description,\n hotkey: hotkey\n });\n}\n\n(function () {\n if (typeof document !== 'undefined') {\n document.addEventListener('keydown', function (e) {\n if (e.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n pushToCurrentlyPressedKeys([mapKey(e.key), mapKey(e.code)]);\n });\n document.addEventListener('keyup', function (e) {\n if (e.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n removeFromCurrentlyPressedKeys([mapKey(e.key), mapKey(e.code)]);\n });\n }\n if (typeof window !== 'undefined') {\n window.addEventListener('blur', function () {\n currentlyPressedKeys.clear();\n });\n }\n})();\nvar currentlyPressedKeys = /*#__PURE__*/new Set();\n// https://github.com/microsoft/TypeScript/issues/17002\nfunction isReadonlyArray(value) {\n return Array.isArray(value);\n}\nfunction isHotkeyPressed(key, splitKey) {\n if (splitKey === void 0) {\n splitKey = ',';\n }\n var hotkeyArray = isReadonlyArray(key) ? key : key.split(splitKey);\n return hotkeyArray.every(function (hotkey) {\n return currentlyPressedKeys.has(hotkey.trim().toLowerCase());\n });\n}\nfunction pushToCurrentlyPressedKeys(key) {\n var hotkeyArray = Array.isArray(key) ? key : [key];\n /*\r\n Due to a weird behavior on macOS we need to clear the set if the user pressed down the meta key and presses another key.\r\n https://stackoverflow.com/questions/11818637/why-does-javascript-drop-keyup-events-when-the-metakey-is-pressed-on-mac-browser\r\n Otherwise the set will hold all ever pressed keys while the meta key is down which leads to wrong results.\r\n */\n if (currentlyPressedKeys.has('meta')) {\n currentlyPressedKeys.forEach(function (key) {\n return !isHotkeyModifier(key) && currentlyPressedKeys[\"delete\"](key.toLowerCase());\n });\n }\n hotkeyArray.forEach(function (hotkey) {\n return currentlyPressedKeys.add(hotkey.toLowerCase());\n });\n}\nfunction removeFromCurrentlyPressedKeys(key) {\n var hotkeyArray = Array.isArray(key) ? key : [key];\n /*\r\n Due to a weird behavior on macOS we need to clear the set if the user pressed down the meta key and presses another key.\r\n https://stackoverflow.com/questions/11818637/why-does-javascript-drop-keyup-events-when-the-metakey-is-pressed-on-mac-browser\r\n Otherwise the set will hold all ever pressed keys while the meta key is down which leads to wrong results.\r\n */\n if (key === 'meta') {\n currentlyPressedKeys.clear();\n } else {\n hotkeyArray.forEach(function (hotkey) {\n return currentlyPressedKeys[\"delete\"](hotkey.toLowerCase());\n });\n }\n}\n\nfunction maybePreventDefault(e, hotkey, preventDefault) {\n if (typeof preventDefault === 'function' && preventDefault(e, hotkey) || preventDefault === true) {\n e.preventDefault();\n }\n}\nfunction isHotkeyEnabled(e, hotkey, enabled) {\n if (typeof enabled === 'function') {\n return enabled(e, hotkey);\n }\n return enabled === true || enabled === undefined;\n}\nfunction isKeyboardEventTriggeredByInput(ev) {\n return isHotkeyEnabledOnTag(ev, ['input', 'textarea', 'select']);\n}\nfunction isHotkeyEnabledOnTag(event, enabledOnTags) {\n if (enabledOnTags === void 0) {\n enabledOnTags = false;\n }\n var target = event.target,\n composed = event.composed;\n var targetTagName = null;\n if (isCustomElement(target) && composed) {\n targetTagName = event.composedPath()[0] && event.composedPath()[0].tagName;\n } else {\n targetTagName = target && target.tagName;\n }\n if (isReadonlyArray(enabledOnTags)) {\n return Boolean(targetTagName && enabledOnTags && enabledOnTags.some(function (tag) {\n var _targetTagName;\n return tag.toLowerCase() === ((_targetTagName = targetTagName) == null ? void 0 : _targetTagName.toLowerCase());\n }));\n }\n return Boolean(targetTagName && enabledOnTags && enabledOnTags);\n}\nfunction isCustomElement(element) {\n // We just do a basic check w/o any complex RegEx or validation against the list of legacy names containing a hyphen,\n // as none of them is likely to be an event target, and it won't hurt anyway if we miss.\n // see: https://html.spec.whatwg.org/multipage/custom-elements.html#prod-potentialcustomelementname\n return !!element.tagName && !element.tagName.startsWith(\"-\") && element.tagName.includes(\"-\");\n}\nfunction isScopeActive(activeScopes, scopes) {\n if (activeScopes.length === 0 && scopes) {\n console.warn('A hotkey has the \"scopes\" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>');\n return true;\n }\n if (!scopes) {\n return true;\n }\n return activeScopes.some(function (scope) {\n return scopes.includes(scope);\n }) || activeScopes.includes('*');\n}\nvar isHotkeyMatchingKeyboardEvent = function isHotkeyMatchingKeyboardEvent(e, hotkey, ignoreModifiers) {\n if (ignoreModifiers === void 0) {\n ignoreModifiers = false;\n }\n var alt = hotkey.alt,\n meta = hotkey.meta,\n mod = hotkey.mod,\n shift = hotkey.shift,\n ctrl = hotkey.ctrl,\n keys = hotkey.keys;\n var pressedKeyUppercase = e.key,\n code = e.code,\n ctrlKey = e.ctrlKey,\n metaKey = e.metaKey,\n shiftKey = e.shiftKey,\n altKey = e.altKey;\n var keyCode = mapKey(code);\n var pressedKey = pressedKeyUppercase.toLowerCase();\n if (!(keys != null && keys.includes(keyCode)) && !(keys != null && keys.includes(pressedKey)) && !['ctrl', 'control', 'unknown', 'meta', 'alt', 'shift', 'os'].includes(keyCode)) {\n return false;\n }\n if (!ignoreModifiers) {\n // We check the pressed keys for compatibility with the keyup event. In keyup events the modifier flags are not set.\n if (alt === !altKey && pressedKey !== 'alt') {\n return false;\n }\n if (shift === !shiftKey && pressedKey !== 'shift') {\n return false;\n }\n // Mod is a special key name that is checking for meta on macOS and ctrl on other platforms\n if (mod) {\n if (!metaKey && !ctrlKey) {\n return false;\n }\n } else {\n if (meta === !metaKey && pressedKey !== 'meta' && pressedKey !== 'os') {\n return false;\n }\n if (ctrl === !ctrlKey && pressedKey !== 'ctrl' && pressedKey !== 'control') {\n return false;\n }\n }\n }\n // All modifiers are correct, now check the key\n // If the key is set, we check for the key\n if (keys && keys.length === 1 && (keys.includes(pressedKey) || keys.includes(keyCode))) {\n return true;\n } else if (keys) {\n // Check if all keys are present in pressedDownKeys set\n return isHotkeyPressed(keys);\n } else if (!keys) {\n // If the key is not set, we only listen for modifiers, that check went alright, so we return true\n return true;\n }\n // There is nothing that matches.\n return false;\n};\n\nvar BoundHotkeysProxyProvider = /*#__PURE__*/createContext(undefined);\nvar useBoundHotkeysProxy = function useBoundHotkeysProxy() {\n return useContext(BoundHotkeysProxyProvider);\n};\nfunction BoundHotkeysProxyProviderProvider(_ref) {\n var addHotkey = _ref.addHotkey,\n removeHotkey = _ref.removeHotkey,\n children = _ref.children;\n return /*#__PURE__*/jsx(BoundHotkeysProxyProvider.Provider, {\n value: {\n addHotkey: addHotkey,\n removeHotkey: removeHotkey\n },\n children: children\n });\n}\n\nfunction deepEqual(x, y) {\n //@ts-ignore\n return x && y && typeof x === 'object' && typeof y === 'object' ? Object.keys(x).length === Object.keys(y).length &&\n //@ts-ignore\n Object.keys(x).reduce(function (isEqual, key) {\n return isEqual && deepEqual(x[key], y[key]);\n }, true) : x === y;\n}\n\nvar HotkeysContext = /*#__PURE__*/createContext({\n hotkeys: [],\n enabledScopes: [],\n toggleScope: function toggleScope() {},\n enableScope: function enableScope() {},\n disableScope: function disableScope() {}\n});\nvar useHotkeysContext = function useHotkeysContext() {\n return useContext(HotkeysContext);\n};\nvar HotkeysProvider = function HotkeysProvider(_ref) {\n var _ref$initiallyActiveS = _ref.initiallyActiveScopes,\n initiallyActiveScopes = _ref$initiallyActiveS === void 0 ? ['*'] : _ref$initiallyActiveS,\n children = _ref.children;\n var _useState = useState((initiallyActiveScopes == null ? void 0 : initiallyActiveScopes.length) > 0 ? initiallyActiveScopes : ['*']),\n internalActiveScopes = _useState[0],\n setInternalActiveScopes = _useState[1];\n var _useState2 = useState([]),\n boundHotkeys = _useState2[0],\n setBoundHotkeys = _useState2[1];\n var enableScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.includes('*')) {\n return [scope];\n }\n return Array.from(new Set([].concat(prev, [scope])));\n });\n }, []);\n var disableScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.filter(function (s) {\n return s !== scope;\n }).length === 0) {\n return ['*'];\n } else {\n return prev.filter(function (s) {\n return s !== scope;\n });\n }\n });\n }, []);\n var toggleScope = useCallback(function (scope) {\n setInternalActiveScopes(function (prev) {\n if (prev.includes(scope)) {\n if (prev.filter(function (s) {\n return s !== scope;\n }).length === 0) {\n return ['*'];\n } else {\n return prev.filter(function (s) {\n return s !== scope;\n });\n }\n } else {\n if (prev.includes('*')) {\n return [scope];\n }\n return Array.from(new Set([].concat(prev, [scope])));\n }\n });\n }, []);\n var addBoundHotkey = useCallback(function (hotkey) {\n setBoundHotkeys(function (prev) {\n return [].concat(prev, [hotkey]);\n });\n }, []);\n var removeBoundHotkey = useCallback(function (hotkey) {\n setBoundHotkeys(function (prev) {\n return prev.filter(function (h) {\n return !deepEqual(h, hotkey);\n });\n });\n }, []);\n return /*#__PURE__*/jsx(HotkeysContext.Provider, {\n value: {\n enabledScopes: internalActiveScopes,\n hotkeys: boundHotkeys,\n enableScope: enableScope,\n disableScope: disableScope,\n toggleScope: toggleScope\n },\n children: /*#__PURE__*/jsx(BoundHotkeysProxyProviderProvider, {\n addHotkey: addBoundHotkey,\n removeHotkey: removeBoundHotkey,\n children: children\n })\n });\n};\n\nfunction useDeepEqualMemo(value) {\n var ref = useRef(undefined);\n if (!deepEqual(ref.current, value)) {\n ref.current = value;\n }\n return ref.current;\n}\n\nvar stopPropagation = function stopPropagation(e) {\n e.stopPropagation();\n e.preventDefault();\n e.stopImmediatePropagation();\n};\nvar useSafeLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\nfunction useHotkeys(keys, callback, options, dependencies) {\n var _useState = useState(null),\n ref = _useState[0],\n setRef = _useState[1];\n var hasTriggeredRef = useRef(false);\n var _options = !(options instanceof Array) ? options : !(dependencies instanceof Array) ? dependencies : undefined;\n var _keys = isReadonlyArray(keys) ? keys.join(_options == null ? void 0 : _options.splitKey) : keys;\n var _deps = options instanceof Array ? options : dependencies instanceof Array ? dependencies : undefined;\n var memoisedCB = useCallback(callback, _deps != null ? _deps : []);\n var cbRef = useRef(memoisedCB);\n if (_deps) {\n cbRef.current = memoisedCB;\n } else {\n cbRef.current = callback;\n }\n var memoisedOptions = useDeepEqualMemo(_options);\n var _useHotkeysContext = useHotkeysContext(),\n enabledScopes = _useHotkeysContext.enabledScopes;\n var proxy = useBoundHotkeysProxy();\n useSafeLayoutEffect(function () {\n if ((memoisedOptions == null ? void 0 : memoisedOptions.enabled) === false || !isScopeActive(enabledScopes, memoisedOptions == null ? void 0 : memoisedOptions.scopes)) {\n return;\n }\n var listener = function listener(e, isKeyUp) {\n var _e$target;\n if (isKeyUp === void 0) {\n isKeyUp = false;\n }\n if (isKeyboardEventTriggeredByInput(e) && !isHotkeyEnabledOnTag(e, memoisedOptions == null ? void 0 : memoisedOptions.enableOnFormTags)) {\n return;\n }\n // TODO: SINCE THE EVENT IS NOW ATTACHED TO THE REF, THE ACTIVE ELEMENT CAN NEVER BE INSIDE THE REF. THE HOTKEY ONLY TRIGGERS IF THE\n // REF IS THE ACTIVE ELEMENT. THIS IS A PROBLEM SINCE FOCUSED SUB COMPONENTS WON'T TRIGGER THE HOTKEY.\n if (ref !== null) {\n var rootNode = ref.getRootNode();\n if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement !== ref && !ref.contains(rootNode.activeElement)) {\n stopPropagation(e);\n return;\n }\n }\n if ((_e$target = e.target) != null && _e$target.isContentEditable && !(memoisedOptions != null && memoisedOptions.enableOnContentEditable)) {\n return;\n }\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n var _hotkey$keys;\n var hotkey = parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey);\n if (isHotkeyMatchingKeyboardEvent(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.ignoreModifiers) || (_hotkey$keys = hotkey.keys) != null && _hotkey$keys.includes('*')) {\n if (memoisedOptions != null && memoisedOptions.ignoreEventWhen != null && memoisedOptions.ignoreEventWhen(e)) {\n return;\n }\n if (isKeyUp && hasTriggeredRef.current) {\n return;\n }\n maybePreventDefault(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.preventDefault);\n if (!isHotkeyEnabled(e, hotkey, memoisedOptions == null ? void 0 : memoisedOptions.enabled)) {\n stopPropagation(e);\n return;\n }\n // Execute the user callback for that hotkey\n cbRef.current(e, hotkey);\n if (!isKeyUp) {\n hasTriggeredRef.current = true;\n }\n }\n });\n };\n var handleKeyDown = function handleKeyDown(event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n pushToCurrentlyPressedKeys(mapKey(event.code));\n if ((memoisedOptions == null ? void 0 : memoisedOptions.keydown) === undefined && (memoisedOptions == null ? void 0 : memoisedOptions.keyup) !== true || memoisedOptions != null && memoisedOptions.keydown) {\n listener(event);\n }\n };\n var handleKeyUp = function handleKeyUp(event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n removeFromCurrentlyPressedKeys(mapKey(event.code));\n hasTriggeredRef.current = false;\n if (memoisedOptions != null && memoisedOptions.keyup) {\n listener(event, true);\n }\n };\n var domNode = ref || (_options == null ? void 0 : _options.document) || document;\n // @ts-ignore\n domNode.addEventListener('keyup', handleKeyUp, _options == null ? void 0 : _options.eventListenerOptions);\n // @ts-ignore\n domNode.addEventListener('keydown', handleKeyDown, _options == null ? void 0 : _options.eventListenerOptions);\n if (proxy) {\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n return proxy.addHotkey(parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey, memoisedOptions == null ? void 0 : memoisedOptions.description));\n });\n }\n return function () {\n // @ts-ignore\n domNode.removeEventListener('keyup', handleKeyUp, _options == null ? void 0 : _options.eventListenerOptions);\n // @ts-ignore\n domNode.removeEventListener('keydown', handleKeyDown, _options == null ? void 0 : _options.eventListenerOptions);\n if (proxy) {\n parseKeysHookInput(_keys, memoisedOptions == null ? void 0 : memoisedOptions.splitKey).forEach(function (key) {\n return proxy.removeHotkey(parseHotkey(key, memoisedOptions == null ? void 0 : memoisedOptions.combinationKey, memoisedOptions == null ? void 0 : memoisedOptions.description));\n });\n }\n };\n }, [ref, _keys, memoisedOptions, enabledScopes]);\n return setRef;\n}\n\nfunction useRecordHotkeys() {\n var _useState = useState(new Set()),\n keys = _useState[0],\n setKeys = _useState[1];\n var _useState2 = useState(false),\n isRecording = _useState2[0],\n setIsRecording = _useState2[1];\n var handler = useCallback(function (event) {\n if (event.key === undefined) {\n // Synthetic event (e.g., Chrome autofill). Ignore.\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n setKeys(function (prev) {\n var newKeys = new Set(prev);\n newKeys.add(mapKey(event.code));\n return newKeys;\n });\n }, []);\n var stop = useCallback(function () {\n if (typeof document !== 'undefined') {\n document.removeEventListener('keydown', handler);\n setIsRecording(false);\n }\n }, [handler]);\n var start = useCallback(function () {\n setKeys(new Set());\n if (typeof document !== 'undefined') {\n stop();\n document.addEventListener('keydown', handler);\n setIsRecording(true);\n }\n }, [handler, stop]);\n var resetKeys = useCallback(function () {\n setKeys(new Set());\n }, []);\n return [keys, {\n start: start,\n stop: stop,\n resetKeys: resetKeys,\n isRecording: isRecording\n }];\n}\n\nexport { HotkeysProvider, isHotkeyPressed, useHotkeys, useHotkeysContext, useRecordHotkeys };\n//# sourceMappingURL=react-hotkeys-hook.esm.js.map\n","import { useCallback, useEffect, useRef } from 'react';\nexport default function useMountedState() {\n var mountedRef = useRef(false);\n var get = useCallback(function () { return mountedRef.current; }, []);\n useEffect(function () {\n mountedRef.current = true;\n return function () {\n mountedRef.current = false;\n };\n }, []);\n return get;\n}\n","import { useCallback, useState } from 'react';\nvar useSetState = function (initialState) {\n if (initialState === void 0) { initialState = {}; }\n var _a = useState(initialState), state = _a[0], set = _a[1];\n var setState = useCallback(function (patch) {\n set(function (prevState) {\n return Object.assign({}, prevState, patch instanceof Function ? patch(prevState) : patch);\n });\n }, []);\n return [state, setState];\n};\nexport default useSetState;\n","\nmodule.exports = function () {\n var selection = document.getSelection();\n if (!selection.rangeCount) {\n return function () {};\n }\n var active = document.activeElement;\n\n var ranges = [];\n for (var i = 0; i < selection.rangeCount; i++) {\n ranges.push(selection.getRangeAt(i));\n }\n\n switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML\n case 'INPUT':\n case 'TEXTAREA':\n active.blur();\n break;\n\n default:\n active = null;\n break;\n }\n\n selection.removeAllRanges();\n return function () {\n selection.type === 'Caret' &&\n selection.removeAllRanges();\n\n if (!selection.rangeCount) {\n ranges.forEach(function(range) {\n selection.addRange(range);\n });\n }\n\n active &&\n active.focus();\n };\n};\n","\"use strict\";\n\nvar deselectCurrent = require(\"toggle-selection\");\n\nvar clipboardToIE11Formatting = {\n \"text/plain\": \"Text\",\n \"text/html\": \"Url\",\n \"default\": \"Text\"\n}\n\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\n\nfunction format(message) {\n var copyKey = (/mac os x/i.test(navigator.userAgent) ? \"⌘\" : \"Ctrl\") + \"+C\";\n return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\n\nfunction copy(text, options) {\n var debug,\n message,\n reselectPrevious,\n range,\n selection,\n mark,\n success = false;\n if (!options) {\n options = {};\n }\n debug = options.debug || false;\n try {\n reselectPrevious = deselectCurrent();\n\n range = document.createRange();\n selection = document.getSelection();\n\n mark = document.createElement(\"span\");\n mark.textContent = text;\n // avoid screen readers from reading out loud the text\n mark.ariaHidden = \"true\"\n // reset user styles for span element\n mark.style.all = \"unset\";\n // prevents scrolling to the end of the page\n mark.style.position = \"fixed\";\n mark.style.top = 0;\n mark.style.clip = \"rect(0, 0, 0, 0)\";\n // used to preserve spaces and line breaks\n mark.style.whiteSpace = \"pre\";\n // do not inherit user-select (it may be `none`)\n mark.style.webkitUserSelect = \"text\";\n mark.style.MozUserSelect = \"text\";\n mark.style.msUserSelect = \"text\";\n mark.style.userSelect = \"text\";\n mark.addEventListener(\"copy\", function(e) {\n e.stopPropagation();\n if (options.format) {\n e.preventDefault();\n if (typeof e.clipboardData === \"undefined\") { // IE 11\n debug && console.warn(\"unable to use e.clipboardData\");\n debug && console.warn(\"trying IE specific stuff\");\n window.clipboardData.clearData();\n var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting[\"default\"]\n window.clipboardData.setData(format, text);\n } else { // all other browsers\n e.clipboardData.clearData();\n e.clipboardData.setData(options.format, text);\n }\n }\n if (options.onCopy) {\n e.preventDefault();\n options.onCopy(e.clipboardData);\n }\n });\n\n document.body.appendChild(mark);\n\n range.selectNodeContents(mark);\n selection.addRange(range);\n\n var successful = document.execCommand(\"copy\");\n if (!successful) {\n throw new Error(\"copy command was unsuccessful\");\n }\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using execCommand: \", err);\n debug && console.warn(\"trying IE specific stuff\");\n try {\n window.clipboardData.setData(options.format || \"text\", text);\n options.onCopy && options.onCopy(window.clipboardData);\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using clipboardData: \", err);\n debug && console.error(\"falling back to prompt\");\n message = format(\"message\" in options ? options.message : defaultMessage);\n window.prompt(message, text);\n }\n } finally {\n if (selection) {\n if (typeof selection.removeRange == \"function\") {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n if (mark) {\n document.body.removeChild(mark);\n }\n reselectPrevious();\n }\n\n return success;\n}\n\nmodule.exports = copy;\n","import writeText from 'copy-to-clipboard';\nimport { useCallback } from 'react';\nimport useMountedState from './useMountedState';\nimport useSetState from './useSetState';\nvar useCopyToClipboard = function () {\n var isMounted = useMountedState();\n var _a = useSetState({\n value: undefined,\n error: undefined,\n noUserInteraction: true,\n }), state = _a[0], setState = _a[1];\n var copyToClipboard = useCallback(function (value) {\n if (!isMounted()) {\n return;\n }\n var noUserInteraction;\n var normalizedValue;\n try {\n // only strings and numbers casted to strings can be copied to clipboard\n if (typeof value !== 'string' && typeof value !== 'number') {\n var error = new Error(\"Cannot copy typeof \" + typeof value + \" to clipboard, must be a string\");\n if (process.env.NODE_ENV === 'development')\n console.error(error);\n setState({\n value: value,\n error: error,\n noUserInteraction: true,\n });\n return;\n }\n // empty strings are also considered invalid\n else if (value === '') {\n var error = new Error(\"Cannot copy empty string to clipboard.\");\n if (process.env.NODE_ENV === 'development')\n console.error(error);\n setState({\n value: value,\n error: error,\n noUserInteraction: true,\n });\n return;\n }\n normalizedValue = value.toString();\n noUserInteraction = writeText(normalizedValue);\n setState({\n value: normalizedValue,\n error: undefined,\n noUserInteraction: noUserInteraction,\n });\n }\n catch (error) {\n setState({\n value: normalizedValue,\n error: error,\n noUserInteraction: noUserInteraction,\n });\n }\n }, []);\n return [state, copyToClipboard];\n};\nexport default useCopyToClipboard;\n","import { useEffect, useState } from \"react\";\n\n/**\n * Hook that provides access to the current color scheme value.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * This hook monitors the color-scheme CSS property on the document's HTML element\n * and returns the current value. It automatically updates when the color scheme changes,\n * either through direct style changes or theme updates stored in localStorage.\n *\n * The hook observes mutations to the HTML element's style attribute to detect\n * color scheme changes and re-renders the component when changes occur.\n *\n * @returns The current color scheme value as a string ('light', 'dark')\n */\nexport function useColorScheme() {\n const [colorScheme, setColorScheme] = useState(getCurrentColorScheme());\n\n // Helper function to get the current color-scheme from the <html> tag\n function getCurrentColorScheme() {\n return (\n document.documentElement.style.getPropertyValue(\"color-scheme\") ||\n localStorage.getItem(\"theme\") ||\n \"light\"\n );\n }\n\n useEffect(() => {\n const htmlElement = document.documentElement;\n\n const observer = new MutationObserver(() => {\n const newColorScheme = getCurrentColorScheme();\n setColorScheme(newColorScheme);\n });\n\n // Observe changes to the 'style' attribute of the <html> element\n observer.observe(htmlElement, {\n attributes: true,\n attributeFilter: [\"style\"],\n });\n\n return () => observer.disconnect();\n }, []);\n\n return colorScheme;\n}\n","\"use client\";\nimport { useTheme } from \"next-themes\";\n\n/**\n * Hook for managing color mode (light/dark theme) state.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * This hook provides access to the current color mode and functions to change it.\n * It integrates with the next-themes library to handle theme persistence and system preference detection.\n *\n * @returns An object containing:\n * - `colorMode`: The current resolved theme ('light' | 'dark' | 'system' | undefined)\n * - `setColorMode`: Function to set a specific color mode\n * - `toggleColorMode`: Function to toggle between light and dark modes\n *\n * @example\n * ```tsx\n * function ThemeToggle() {\n * const { colorMode, toggleColorMode } = useColorMode();\n *\n * return (\n * <button onClick={toggleColorMode}>\n * Current mode: {colorMode}\n * </button>\n * );\n * }\n * ```\n */\n\nexport function useColorMode() {\n const { resolvedTheme, setTheme } = useTheme();\n const toggleColorMode = () => {\n setTheme(resolvedTheme === \"light\" ? \"dark\" : \"light\");\n };\n return {\n colorMode: resolvedTheme,\n setColorMode: setTheme,\n toggleColorMode,\n };\n}\n","import { useColorMode } from \"./../use-color-mode\";\n\n/**\n * Hook that returns a value based on the current color mode.\n *\n * @experimental This hook is experimental and may change in future versions.\n *\n * @param light - The value to return when the color mode is light\n * @param dark - The value to return when the color mode is dark\n * @returns The appropriate value based on the current color mode\n */\nexport function useColorModeValue<T>(light: T, dark: T) {\n const { colorMode } = useColorMode();\n return colorMode === \"light\" ? light : dark;\n}\n"],"names":["_extends","n","e","t","r","reservedModifierKeywords","mappedKeys","mapKey","key","isHotkeyModifier","parseKeysHookInput","keys","splitKey","parseHotkey","hotkey","combinationKey","description","k","modifiers","singleCharKeys","currentlyPressedKeys","isReadonlyArray","value","isHotkeyPressed","hotkeyArray","pushToCurrentlyPressedKeys","removeFromCurrentlyPressedKeys","maybePreventDefault","preventDefault","isHotkeyEnabled","enabled","isKeyboardEventTriggeredByInput","ev","isHotkeyEnabledOnTag","event","enabledOnTags","target","composed","targetTagName","isCustomElement","tag","_targetTagName","element","isScopeActive","activeScopes","scopes","scope","isHotkeyMatchingKeyboardEvent","ignoreModifiers","alt","meta","mod","shift","ctrl","pressedKeyUppercase","code","ctrlKey","metaKey","shiftKey","altKey","keyCode","pressedKey","BoundHotkeysProxyProvider","createContext","useBoundHotkeysProxy","useContext","deepEqual","x","y","isEqual","HotkeysContext","useHotkeysContext","useDeepEqualMemo","ref","useRef","stopPropagation","useSafeLayoutEffect","useLayoutEffect","useEffect","useHotkeys","callback","options","dependencies","_useState","useState","setRef","hasTriggeredRef","_options","_keys","_deps","memoisedCB","useCallback","cbRef","memoisedOptions","_useHotkeysContext","enabledScopes","proxy","listener","isKeyUp","_e$target","rootNode","_hotkey$keys","handleKeyDown","handleKeyUp","domNode","useMountedState","mountedRef","get","useSetState","initialState","_a","state","set","setState","patch","prevState","toggleSelection","selection","active","ranges","i","range","deselectCurrent","require$$0","clipboardToIE11Formatting","defaultMessage","format","message","copyKey","copy","text","debug","reselectPrevious","mark","success","successful","err","copyToClipboard","useCopyToClipboard","isMounted","noUserInteraction","normalizedValue","error","writeText","useColorScheme","colorScheme","setColorScheme","getCurrentColorScheme","htmlElement","observer","newColorScheme","useColorMode","resolvedTheme","setTheme","useTheme","useColorModeValue","light","dark","colorMode"],"mappings":"+tGAGA,SAASA,GAAW,CAClB,OAAOA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAI,EAAK,SAAUC,EAAG,CACpE,QAASC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CACzC,IAAIC,EAAI,UAAUD,CAAC,EACnB,QAASE,KAAKD,GAAI,CAAA,GAAI,eAAe,KAAKA,EAAGC,CAAC,IAA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ACP,MAAOC,EACP,kBAAmBF,CACnC,CAAa,CACL,EACJ,EAAG,CAAA,CAAE,EACL,MAAO,CAAC7B,EAAO0B,CAAe,CAClC,EC3CO,SAASO,IAAiB,CAC/B,KAAM,CAACC,EAAaC,CAAc,EAAI9D,EAAAA,SAAS+D,GAAuB,EAGtE,SAASA,GAAwB,CAC/B,OACE,SAAS,gBAAgB,MAAM,iBAAiB,cAAc,GAC9D,aAAa,QAAQ,OAAO,GAC5B,OAEJ,CAEArE,OAAAA,EAAAA,UAAU,IAAM,CACd,MAAMsE,EAAc,SAAS,gBAEvBC,EAAW,IAAI,iBAAiB,IAAM,CAC1C,MAAMC,EAAiBH,EAAA,EACvBD,EAAeI,CAAc,CAC/B,CAAC,EAGD,OAAAD,EAAS,QAAQD,EAAa,CAC5B,WAAY,GACZ,gBAAiB,CAAC,OAAO,CAAA,CAC1B,EAEM,IAAMC,EAAS,WAAA,CACxB,EAAG,CAAA,CAAE,EAEEJ,CACT,CChBO,SAASM,IAAe,CAC7B,KAAM,CAAE,cAAAC,EAAe,SAAAC,CAAA,EAAaC,KAAA,EAIpC,MAAO,CACL,UAAWF,EACX,aAAcC,EACd,gBANsB,IAAM,CAC5BA,EAASD,IAAkB,QAAU,OAAS,OAAO,CACvD,CAIE,CAEJ,CC7BO,SAASG,GAAqBC,EAAUC,EAAS,CACtD,KAAM,CAAE,UAAAC,CAAA,EAAcP,GAAA,EACtB,OAAOO,IAAc,QAAUF,EAAQC,CACzC","x_google_ignoreList":[0,1,2,3,4,5]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { AriaButtonProps } from 'react-aria';
|
|
2
|
-
import { HTMLChakraProps } from '@chakra-ui/react
|
|
2
|
+
import { HTMLChakraProps } from '@chakra-ui/react';
|
|
3
3
|
import { JSX } from 'react/jsx-runtime';
|
|
4
4
|
import { ModalOverlayProps } from 'react-aria-components';
|
|
5
|
-
import { RecipeProps } from '@chakra-ui/react
|
|
6
|
-
import {
|
|
7
|
-
import { SlotRecipeDefinition } from '@chakra-ui/react';
|
|
5
|
+
import { RecipeProps } from '@chakra-ui/react';
|
|
6
|
+
import { SlotRecipeProps } from '@chakra-ui/react';
|
|
8
7
|
import { SystemContext } from '@chakra-ui/react';
|
|
9
|
-
import { UnstyledProp } from '@chakra-ui/react
|
|
8
|
+
import { UnstyledProp } from '@chakra-ui/react';
|
|
10
9
|
|
|
11
|
-
declare
|
|
10
|
+
declare type ButtonProps = ButtonRootProps & FunctionalButtonProps & {
|
|
12
11
|
slot?: string | null | undefined;
|
|
13
12
|
ref?: React.Ref<HTMLButtonElement>;
|
|
14
|
-
}
|
|
13
|
+
};
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* Base recipe props interface that combines Chakra UI's recipe props
|
|
18
17
|
* with the unstyled prop option for the button element.
|
|
19
18
|
*/
|
|
20
|
-
declare
|
|
21
|
-
|
|
19
|
+
declare type ButtonRecipeProps = {
|
|
20
|
+
size?: RecipeProps<"button">["size"];
|
|
21
|
+
variant?: RecipeProps<"button">["variant"];
|
|
22
|
+
tone?: RecipeProps<"button">["tone"];
|
|
23
|
+
} & UnstyledProp;
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* Root props interface that extends Chakra's HTML props with our recipe props.
|
|
25
27
|
* This creates a complete set of props for the root element, combining
|
|
26
28
|
* HTML attributes, Chakra's styling system, and our custom recipe props.
|
|
27
29
|
*/
|
|
28
|
-
declare
|
|
30
|
+
declare type ButtonRootProps = Omit<HTMLChakraProps<"button", ButtonRecipeProps>, "slot"> & {
|
|
29
31
|
slot?: string | null | undefined;
|
|
30
|
-
}
|
|
32
|
+
};
|
|
31
33
|
|
|
32
34
|
export declare const DialogBody: {
|
|
33
35
|
(props: DialogBodyProps): JSX.Element;
|
|
@@ -39,7 +41,7 @@ export declare const DialogBody: {
|
|
|
39
41
|
*
|
|
40
42
|
* The main body content section of the dialog.
|
|
41
43
|
*/
|
|
42
|
-
declare
|
|
44
|
+
declare type DialogBodyProps = DialogBodySlotProps & {
|
|
43
45
|
/**
|
|
44
46
|
* The body content
|
|
45
47
|
*/
|
|
@@ -48,7 +50,7 @@ declare interface DialogBodyProps extends DialogBodySlotProps {
|
|
|
48
50
|
* The ref to the dialog body
|
|
49
51
|
*/
|
|
50
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
-
}
|
|
53
|
+
};
|
|
52
54
|
|
|
53
55
|
declare type DialogBodySlotProps = HTMLChakraProps<"div">;
|
|
54
56
|
|
|
@@ -63,13 +65,13 @@ export declare const DialogCloseTrigger: {
|
|
|
63
65
|
* A button that closes the dialog when activated.
|
|
64
66
|
* Displays an IconButton with an X icon by default.
|
|
65
67
|
*/
|
|
66
|
-
declare
|
|
68
|
+
declare type DialogCloseTriggerProps = Omit<IconButtonProps, "aria-label"> & {
|
|
67
69
|
/**
|
|
68
70
|
* Accessible label for the close button
|
|
69
71
|
* @default "Close dialog"
|
|
70
72
|
*/
|
|
71
73
|
"aria-label"?: string;
|
|
72
|
-
}
|
|
74
|
+
};
|
|
73
75
|
|
|
74
76
|
export declare const DialogContent: {
|
|
75
77
|
(props: DialogContentProps): JSX.Element;
|
|
@@ -82,7 +84,7 @@ export declare const DialogContent: {
|
|
|
82
84
|
* The main dialog content container that wraps the React Aria Dialog and Dialog.
|
|
83
85
|
* Configuration (size, placement, etc.) is inherited from Dialog.Root via context.
|
|
84
86
|
*/
|
|
85
|
-
declare
|
|
87
|
+
declare type DialogContentProps = DialogModalOverlaySlotProps & {
|
|
86
88
|
/**
|
|
87
89
|
* The dialog content
|
|
88
90
|
*/
|
|
@@ -91,7 +93,7 @@ declare interface DialogContentProps extends DialogModalOverlaySlotProps {
|
|
|
91
93
|
* The ref to the dialog content
|
|
92
94
|
*/
|
|
93
95
|
ref?: React.RefObject<HTMLDivElement>;
|
|
94
|
-
}
|
|
96
|
+
};
|
|
95
97
|
|
|
96
98
|
export declare const DialogFooter: {
|
|
97
99
|
(props: DialogFooterProps): JSX.Element;
|
|
@@ -103,7 +105,7 @@ export declare const DialogFooter: {
|
|
|
103
105
|
*
|
|
104
106
|
* The footer section of the dialog, typically containing action buttons.
|
|
105
107
|
*/
|
|
106
|
-
declare
|
|
108
|
+
declare type DialogFooterProps = DialogFooterSlotProps & {
|
|
107
109
|
/**
|
|
108
110
|
* The footer content (usually buttons)
|
|
109
111
|
*/
|
|
@@ -112,7 +114,7 @@ declare interface DialogFooterProps extends DialogFooterSlotProps {
|
|
|
112
114
|
* The ref to the dialog footer
|
|
113
115
|
*/
|
|
114
116
|
ref?: React.Ref<HTMLElement>;
|
|
115
|
-
}
|
|
117
|
+
};
|
|
116
118
|
|
|
117
119
|
declare type DialogFooterSlotProps = HTMLChakraProps<"footer">;
|
|
118
120
|
|
|
@@ -126,7 +128,7 @@ export declare const DialogHeader: {
|
|
|
126
128
|
*
|
|
127
129
|
* The header section of the dialog content.
|
|
128
130
|
*/
|
|
129
|
-
declare
|
|
131
|
+
declare type DialogHeaderProps = DialogHeaderSlotProps & {
|
|
130
132
|
/**
|
|
131
133
|
* The header content
|
|
132
134
|
*/
|
|
@@ -135,12 +137,17 @@ declare interface DialogHeaderProps extends DialogHeaderSlotProps {
|
|
|
135
137
|
* The ref to the dialog header
|
|
136
138
|
*/
|
|
137
139
|
ref?: React.Ref<HTMLElement>;
|
|
138
|
-
}
|
|
140
|
+
};
|
|
139
141
|
|
|
140
142
|
declare type DialogHeaderSlotProps = HTMLChakraProps<"header">;
|
|
141
143
|
|
|
142
144
|
declare type DialogModalOverlaySlotProps = HTMLChakraProps<"div">;
|
|
143
145
|
|
|
146
|
+
declare type DialogRecipeProps = {
|
|
147
|
+
placement?: SlotRecipeProps<"dialog">["placement"];
|
|
148
|
+
scrollBehavior?: SlotRecipeProps<"dialog">["scrollBehavior"];
|
|
149
|
+
};
|
|
150
|
+
|
|
144
151
|
export declare const DialogRoot: {
|
|
145
152
|
(props: DialogRootProps): JSX.Element;
|
|
146
153
|
displayName: string;
|
|
@@ -155,7 +162,7 @@ export declare const DialogRoot: {
|
|
|
155
162
|
* This component handles configuration through recipe variants that are passed
|
|
156
163
|
* down to child components via context.
|
|
157
164
|
*/
|
|
158
|
-
declare
|
|
165
|
+
declare type DialogRootProps = DialogRootSlotProps & {
|
|
159
166
|
/**
|
|
160
167
|
* The children components (Trigger, Content, etc.)
|
|
161
168
|
*/
|
|
@@ -196,62 +203,9 @@ declare interface DialogRootProps extends RecipeVariantProps<typeof dialogSlotRe
|
|
|
196
203
|
* a `slot`-property set to `title`.
|
|
197
204
|
*/
|
|
198
205
|
"aria-label"?: string;
|
|
199
|
-
}
|
|
206
|
+
};
|
|
200
207
|
|
|
201
|
-
|
|
202
|
-
* Dialog recipe - styling for Dialog component overlays
|
|
203
|
-
* Supports center positioning, various sizes, and motion presets for accessible dialog experiences
|
|
204
|
-
*/
|
|
205
|
-
declare const dialogSlotRecipe: SlotRecipeDefinition<"trigger" | "modalOverlay" | "modal" | "content" | "title" | "closeTrigger" | "header" | "body" | "footer", {
|
|
206
|
-
placement: {
|
|
207
|
-
center: {
|
|
208
|
-
modal: {
|
|
209
|
-
alignItems: "center";
|
|
210
|
-
};
|
|
211
|
-
content: {
|
|
212
|
-
"--dialog-base-margin": "auto";
|
|
213
|
-
mx: "auto";
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
top: {
|
|
217
|
-
modal: {
|
|
218
|
-
alignItems: "flex-start";
|
|
219
|
-
};
|
|
220
|
-
content: {
|
|
221
|
-
"--dialog-base-margin": "spacing.1600";
|
|
222
|
-
mx: "auto";
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
bottom: {
|
|
226
|
-
modal: {
|
|
227
|
-
alignItems: "flex-end";
|
|
228
|
-
};
|
|
229
|
-
content: {
|
|
230
|
-
"--dialog-base-margin": "spacing.1600";
|
|
231
|
-
mx: "auto";
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
scrollBehavior: {
|
|
236
|
-
inside: {
|
|
237
|
-
modal: {
|
|
238
|
-
overflow: "hidden";
|
|
239
|
-
};
|
|
240
|
-
content: {
|
|
241
|
-
maxH: "calc(100% - 7.5rem)";
|
|
242
|
-
};
|
|
243
|
-
body: {
|
|
244
|
-
overflow: "auto";
|
|
245
|
-
focusVisibleRing: "outside";
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
outside: {
|
|
249
|
-
modal: {
|
|
250
|
-
overflow: "auto";
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
}>;
|
|
208
|
+
declare type DialogRootSlotProps = HTMLChakraProps<"div", DialogRecipeProps>;
|
|
255
209
|
|
|
256
210
|
export declare const DialogTitle: {
|
|
257
211
|
(props: DialogTitleProps): JSX.Element;
|
|
@@ -263,7 +217,7 @@ export declare const DialogTitle: {
|
|
|
263
217
|
*
|
|
264
218
|
* The accessible title element for the dialog.
|
|
265
219
|
*/
|
|
266
|
-
declare
|
|
220
|
+
declare type DialogTitleProps = DialogTitleSlotProps & {
|
|
267
221
|
/**
|
|
268
222
|
* The title text
|
|
269
223
|
*/
|
|
@@ -272,7 +226,7 @@ declare interface DialogTitleProps extends DialogTitleSlotProps {
|
|
|
272
226
|
* The ref to the dialog title
|
|
273
227
|
*/
|
|
274
228
|
ref?: React.Ref<HTMLHeadingElement>;
|
|
275
|
-
}
|
|
229
|
+
};
|
|
276
230
|
|
|
277
231
|
declare type DialogTitleSlotProps = HTMLChakraProps<"h2">;
|
|
278
232
|
|
|
@@ -286,7 +240,7 @@ export declare const DialogTrigger: {
|
|
|
286
240
|
*
|
|
287
241
|
* The trigger element that opens the dialog when activated.
|
|
288
242
|
*/
|
|
289
|
-
declare
|
|
243
|
+
declare type DialogTriggerProps = DialogTriggerSlotProps & {
|
|
290
244
|
/**
|
|
291
245
|
* The trigger content
|
|
292
246
|
*/
|
|
@@ -305,7 +259,7 @@ declare interface DialogTriggerProps extends DialogTriggerSlotProps {
|
|
|
305
259
|
* The ref to the trigger html-button
|
|
306
260
|
*/
|
|
307
261
|
ref?: React.RefObject<HTMLButtonElement>;
|
|
308
|
-
}
|
|
262
|
+
};
|
|
309
263
|
|
|
310
264
|
declare type DialogTriggerSlotProps = HTMLChakraProps<"button">;
|
|
311
265
|
|
|
@@ -317,11 +271,11 @@ declare type FunctionalButtonProps = AriaButtonProps & Omit<ButtonRootProps, key
|
|
|
317
271
|
/**
|
|
318
272
|
* Main props interface for the IconButton component.
|
|
319
273
|
*/
|
|
320
|
-
declare
|
|
274
|
+
declare type IconButtonProps = ButtonProps & {
|
|
321
275
|
/** explains the intended action, required for accessibility */
|
|
322
276
|
"aria-label": string;
|
|
323
277
|
ref?: React.Ref<HTMLButtonElement>;
|
|
324
|
-
}
|
|
278
|
+
};
|
|
325
279
|
|
|
326
280
|
export declare const system: SystemContext;
|
|
327
281
|
|