@commercetools/nimbus 0.0.0-canary-20251031122555 → 0.0.0-canary-20251031185705
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-SjGHt140.es.js → Button-CmpJG0ec.es.js} +7 -7
- package/dist/chunks/{Button-SjGHt140.es.js.map → Button-CmpJG0ec.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BhYUxJYI.es.js → CollectionBuilder-ksCQul85.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-BhYUxJYI.es.js.map → CollectionBuilder-ksCQul85.es.js.map} +1 -1
- package/dist/chunks/{DateField-DMjgxual.es.js → DateField-Bpk0AwB2.es.js} +21 -21
- package/dist/chunks/{DateField-DMjgxual.es.js.map → DateField-Bpk0AwB2.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-Cvad8nra.es.js → DatePicker-DqFQq16u.es.js} +17 -17
- package/dist/chunks/{DatePicker-Cvad8nra.es.js.map → DatePicker-DqFQq16u.es.js.map} +1 -1
- package/dist/chunks/{Dialog-BUtdEtlF.es.js → Dialog-hbq1ZZne.es.js} +25 -25
- package/dist/chunks/{Dialog-BUtdEtlF.es.js.map → Dialog-hbq1ZZne.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-C6u6zr_m.es.js → FocusScope-bj_mamFe.es.js} +36 -36
- package/dist/chunks/{FocusScope-C6u6zr_m.es.js.map → FocusScope-bj_mamFe.es.js.map} +1 -1
- package/dist/chunks/{Group-zHIVpnch.es.js → Group-C9jsb9_m.es.js} +8 -8
- package/dist/chunks/{Group-zHIVpnch.es.js.map → Group-C9jsb9_m.es.js.map} +1 -1
- package/dist/chunks/{Header-CpF5ynyj.es.js → Header-DOAbQymP.es.js} +5 -5
- package/dist/chunks/{Header-CpF5ynyj.es.js.map → Header-DOAbQymP.es.js.map} +1 -1
- package/dist/chunks/{Heading-DXod1zoy.es.js → Heading-D804NNml.es.js} +20 -20
- package/dist/chunks/{Heading-DXod1zoy.es.js.map → Heading-D804NNml.es.js.map} +1 -1
- package/dist/chunks/{Input-DCyrVIsi.es.js → Input-aKSXZBAh.es.js} +5 -5
- package/dist/chunks/{Input-DCyrVIsi.es.js.map → Input-aKSXZBAh.es.js.map} +1 -1
- package/dist/chunks/{Label-CUlxhtnU.es.js → Label-Bu5lTMzy.es.js} +2 -2
- package/dist/chunks/{Label-CUlxhtnU.es.js.map → Label-Bu5lTMzy.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CdtzuZzA.es.js → ListBox-B43JPDJW.es.js} +15 -15
- package/dist/chunks/{ListBox-CdtzuZzA.es.js.map → ListBox-B43JPDJW.es.js.map} +1 -1
- package/dist/chunks/{Modal-BgIeZMyG.es.js → Modal-BvkgbKlP.es.js} +7 -7
- package/dist/chunks/{Modal-BgIeZMyG.es.js.map → Modal-BvkgbKlP.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-DAfsQzBF.es.js → OverlayArrow-qm-lnjhS.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-DAfsQzBF.es.js.map → OverlayArrow-qm-lnjhS.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DZzovBW5.es.js → ProgressBar-DogfCeuX.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DZzovBW5.es.js.map → ProgressBar-DogfCeuX.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-S9Amkvfg.es.js → SelectionManager-D87OqHl3.es.js} +14 -14
- package/dist/chunks/{SelectionManager-S9Amkvfg.es.js.map → SelectionManager-D87OqHl3.es.js.map} +1 -1
- package/dist/chunks/{Separator-kuF-Wo1o.es.js → Separator-CAgJSVll.es.js} +4 -4
- package/dist/chunks/{Separator-kuF-Wo1o.es.js.map → Separator-CAgJSVll.es.js.map} +1 -1
- package/dist/chunks/{TextArea-DgN-Bwdv.es.js → TextArea-JHqAZ7HD.es.js} +5 -5
- package/dist/chunks/{TextArea-DgN-Bwdv.es.js.map → TextArea-JHqAZ7HD.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BIiBT_jL.es.js → ToggleButton-B-feHlsu.es.js} +7 -7
- package/dist/chunks/{ToggleButton-BIiBT_jL.es.js.map → ToggleButton-B-feHlsu.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-Dkq7SL0E.es.js → VisuallyHidden-BIA5VRNP.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-Dkq7SL0E.es.js.map → VisuallyHidden-BIA5VRNP.es.js.map} +1 -1
- package/dist/chunks/accordion-CuSTyC3h.es.js +84 -0
- package/dist/chunks/accordion-CuSTyC3h.es.js.map +1 -0
- package/dist/chunks/accordion-rPPLl_-o.cjs.js +2 -0
- package/dist/chunks/accordion-rPPLl_-o.cjs.js.map +1 -0
- package/dist/chunks/accordion.content-CgYeIB2S.cjs.js +2 -0
- package/dist/chunks/accordion.content-CgYeIB2S.cjs.js.map +1 -0
- package/dist/chunks/accordion.content-Dv8UBvRU.es.js +228 -0
- package/dist/chunks/accordion.content-Dv8UBvRU.es.js.map +1 -0
- package/dist/chunks/{alert-CVXQqjXr.es.js → alert-BvJRfwDx.es.js} +86 -13
- package/dist/chunks/alert-BvJRfwDx.es.js.map +1 -0
- package/dist/chunks/{alert-BlkniDy9.cjs.js → alert-DKsg4e2z.cjs.js} +2 -2
- package/dist/chunks/alert-DKsg4e2z.cjs.js.map +1 -0
- package/dist/chunks/{avatar-DFibCsCs.es.js → avatar-Dx_Cda2J.es.js} +2 -2
- package/dist/chunks/avatar-Dx_Cda2J.es.js.map +1 -0
- package/dist/chunks/{avatar-BNhECwD5.cjs.js → avatar-wRR1leVi.cjs.js} +2 -2
- package/dist/chunks/avatar-wRR1leVi.cjs.js.map +1 -0
- package/dist/chunks/{avatar.recipe-DfyPWbFZ.es.js → avatar.recipe-BEdxgo-r.es.js} +2 -2
- package/dist/chunks/avatar.recipe-BEdxgo-r.es.js.map +1 -0
- package/dist/chunks/avatar.recipe-XvknqPJq.cjs.js +2 -0
- package/dist/chunks/avatar.recipe-XvknqPJq.cjs.js.map +1 -0
- package/dist/chunks/badge-5F6i4KSF.cjs.js +2 -0
- package/dist/chunks/badge-5F6i4KSF.cjs.js.map +1 -0
- package/dist/chunks/badge-DUiqk6w9.es.js +17 -0
- package/dist/chunks/badge-DUiqk6w9.es.js.map +1 -0
- package/dist/chunks/badge.recipe-Cu6u9yqC.cjs.js.map +1 -1
- package/dist/chunks/badge.recipe-DsV4A_UD.es.js.map +1 -1
- package/dist/chunks/{button-CrUeW0pR.cjs.js → button-B3dFVcHC.cjs.js} +2 -2
- package/dist/chunks/{button-CrUeW0pR.cjs.js.map → button-B3dFVcHC.cjs.js.map} +1 -1
- package/dist/chunks/{button-B1VvTs1w.es.js → button-BalEcUUB.es.js} +6 -6
- package/dist/chunks/{button-B1VvTs1w.es.js.map → button-BalEcUUB.es.js.map} +1 -1
- package/dist/chunks/calendar-BFZb7VzL.cjs.js +2 -0
- package/dist/chunks/calendar-BFZb7VzL.cjs.js.map +1 -0
- package/dist/chunks/{calendar-D7pzgXqX.es.js → calendar-vWKF4KRn.es.js} +124 -125
- package/dist/chunks/calendar-vWKF4KRn.es.js.map +1 -0
- package/dist/chunks/card-BMpRfvHY.es.js +120 -0
- package/dist/chunks/card-BMpRfvHY.es.js.map +1 -0
- package/dist/chunks/card-DXVbaE-3.cjs.js +2 -0
- package/dist/chunks/card-DXVbaE-3.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-CjR64WWv.es.js → checkbox-Cj4oO-ah.es.js} +14 -11
- package/dist/chunks/{checkbox-CjR64WWv.es.js.map → checkbox-Cj4oO-ah.es.js.map} +1 -1
- package/dist/chunks/{checkbox-CVnNylPS.cjs.js → checkbox-CvgBdEqk.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CVnNylPS.cjs.js.map → checkbox-CvgBdEqk.cjs.js.map} +1 -1
- package/dist/chunks/collapsible-motion-C3o2-vxf.cjs.js +2 -0
- package/dist/chunks/collapsible-motion-C3o2-vxf.cjs.js.map +1 -0
- package/dist/chunks/collapsible-motion-D2RXv0UE.es.js +126 -0
- package/dist/chunks/collapsible-motion-D2RXv0UE.es.js.map +1 -0
- package/dist/chunks/{combobox-Bm_d6SaB.cjs.js → combobox-CEE8JUDf.cjs.js} +2 -2
- package/dist/chunks/{combobox-Bm_d6SaB.cjs.js.map → combobox-CEE8JUDf.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-g3cCFSMZ.es.js → combobox-siEOoGB7.es.js} +226 -185
- package/dist/chunks/{combobox-g3cCFSMZ.es.js.map → combobox-siEOoGB7.es.js.map} +1 -1
- package/dist/chunks/{data-table--7Qxgjb7.cjs.js → data-table-BjFkMw2E.cjs.js} +2 -2
- package/dist/chunks/{data-table--7Qxgjb7.cjs.js.map → data-table-BjFkMw2E.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-Dnp2C_pq.es.js → data-table-WpSHciHZ.es.js} +1086 -878
- package/dist/chunks/{data-table-Dnp2C_pq.es.js.map → data-table-WpSHciHZ.es.js.map} +1 -1
- package/dist/chunks/{date-input-CRnreBK0.es.js → date-input-CtTnoF_B.es.js} +4 -4
- package/dist/chunks/{date-input-CRnreBK0.es.js.map → date-input-CtTnoF_B.es.js.map} +1 -1
- package/dist/chunks/{date-input-CXFII_3C.cjs.js → date-input-depnLyb6.cjs.js} +2 -2
- package/dist/chunks/{date-input-CXFII_3C.cjs.js.map → date-input-depnLyb6.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-Zz2Sp3S6.es.js → date-picker-B4iulzjt.es.js} +69 -69
- package/dist/chunks/date-picker-B4iulzjt.es.js.map +1 -0
- package/dist/chunks/date-picker-Cz4IjM5C.cjs.js +2 -0
- package/dist/chunks/date-picker-Cz4IjM5C.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-B2Cln3mU.es.js → date-range-picker-B-z5c0fw.es.js} +14 -14
- package/dist/chunks/{date-range-picker-B2Cln3mU.es.js.map → date-range-picker-B-z5c0fw.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-H_YtkQRE.cjs.js → date-range-picker-Cr48sK7o.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-H_YtkQRE.cjs.js.map → date-range-picker-Cr48sK7o.cjs.js.map} +1 -1
- package/dist/chunks/date-range-picker-field-0y5CNFyh.cjs.js +2 -0
- package/dist/chunks/date-range-picker-field-0y5CNFyh.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-field-BjK520E2.es.js +61 -0
- package/dist/chunks/date-range-picker-field-BjK520E2.es.js.map +1 -0
- package/dist/chunks/{dialog.close-trigger-Y9dS7xOy.cjs.js → dialog-CANllEUp.cjs.js} +2 -2
- package/dist/chunks/dialog-CANllEUp.cjs.js.map +1 -0
- package/dist/chunks/dialog-mu2l4D7k.es.js +305 -0
- package/dist/chunks/dialog-mu2l4D7k.es.js.map +1 -0
- package/dist/chunks/{draggable-list-ibWoXfeJ.es.js → draggable-list-COLeAeV4.es.js} +374 -368
- package/dist/chunks/{draggable-list-ibWoXfeJ.es.js.map → draggable-list-COLeAeV4.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-TkB0lPBh.cjs.js → draggable-list-D0ov_oEo.cjs.js} +3 -3
- package/dist/chunks/{draggable-list-TkB0lPBh.cjs.js.map → draggable-list-D0ov_oEo.cjs.js.map} +1 -1
- package/dist/chunks/drawer-BAzowUiG.cjs.js +2 -0
- package/dist/chunks/drawer-BAzowUiG.cjs.js.map +1 -0
- package/dist/chunks/{drawer-ZczUeqdd.es.js → drawer-jIQq7Jpl.es.js} +17 -9
- package/dist/chunks/drawer-jIQq7Jpl.es.js.map +1 -0
- package/dist/chunks/{extract-style-props-B6-o20G1.cjs.js → extract-style-props-Bd2GaMQq.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-B6-o20G1.cjs.js.map → extract-style-props-Bd2GaMQq.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-fH5EHRZU.es.js → extract-style-props-BjwbJ_Xp.es.js} +2 -2
- package/dist/chunks/{extract-style-props-fH5EHRZU.es.js.map → extract-style-props-BjwbJ_Xp.es.js.map} +1 -1
- package/dist/chunks/field-errors-ClQprmQz.es.js.map +1 -1
- package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +1 -1
- package/dist/chunks/{focusSafely-BNN5-xvK.es.js → focusSafely-RvsgqoUt.es.js} +3 -3
- package/dist/chunks/{focusSafely-BNN5-xvK.es.js.map → focusSafely-RvsgqoUt.es.js.map} +1 -1
- package/dist/chunks/form-field-Bp0X0gNb.cjs.js +2 -0
- package/dist/chunks/form-field-Bp0X0gNb.cjs.js.map +1 -0
- package/dist/chunks/form-field-noHYMMQd.es.js +358 -0
- package/dist/chunks/form-field-noHYMMQd.es.js.map +1 -0
- package/dist/chunks/{getScrollParent-g7luwBTz.es.js → getScrollParent-DlqhSzBC.es.js} +2 -2
- package/dist/chunks/{getScrollParent-g7luwBTz.es.js.map → getScrollParent-DlqhSzBC.es.js.map} +1 -1
- package/dist/chunks/{group-BfsiVCo-.es.js → group-jGsHh1w7.es.js} +2 -2
- package/dist/chunks/{group-BfsiVCo-.es.js.map → group-jGsHh1w7.es.js.map} +1 -1
- package/dist/chunks/{heading-BfaL2s7d.es.js → heading-CwsT9zp_.es.js} +2 -2
- package/dist/chunks/{heading-BfaL2s7d.es.js.map → heading-CwsT9zp_.es.js.map} +1 -1
- package/dist/chunks/{icon-button-XkzBkGuJ.es.js → icon-button-CfN4QLes.es.js} +2 -2
- package/dist/chunks/{icon-button-XkzBkGuJ.es.js.map → icon-button-CfN4QLes.es.js.map} +1 -1
- package/dist/chunks/{icon-button-C_itb6iA.cjs.js → icon-button-acD2PKxb.cjs.js} +2 -2
- package/dist/chunks/{icon-button-C_itb6iA.cjs.js.map → icon-button-acD2PKxb.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D562D8WP.cjs.js → icon-toggle-button-DZjAAxUN.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D562D8WP.cjs.js.map → icon-toggle-button-DZjAAxUN.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D4MFHBgl.es.js → icon-toggle-button-JNBy2M8q.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D4MFHBgl.es.js.map → icon-toggle-button-JNBy2M8q.es.js.map} +1 -1
- package/dist/chunks/{index-B7wlrXvj.es.js → index-B-UyZdac.es.js} +233 -228
- package/dist/chunks/index-B-UyZdac.es.js.map +1 -0
- package/dist/chunks/index-Cwy57TA-.cjs.js +34 -0
- package/dist/chunks/index-Cwy57TA-.cjs.js.map +1 -0
- package/dist/chunks/{kbd-BBIIThUL.es.js → kbd-B11Qoo4k.es.js} +2 -2
- package/dist/chunks/{kbd-BBIIThUL.es.js.map → kbd-B11Qoo4k.es.js.map} +1 -1
- package/dist/chunks/{link-CPnL46cY.es.js → link-Db65JZE6.es.js} +9 -9
- package/dist/chunks/{link-CPnL46cY.es.js.map → link-Db65JZE6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-CaTPSyK4.es.js → loading-spinner-FBgHlqXQ.es.js} +3 -3
- package/dist/chunks/{loading-spinner-CaTPSyK4.es.js.map → loading-spinner-FBgHlqXQ.es.js.map} +1 -1
- package/dist/chunks/{localized-field-ByW-vsvR.cjs.js → localized-field-CLNEUHDE.cjs.js} +2 -2
- package/dist/chunks/localized-field-CLNEUHDE.cjs.js.map +1 -0
- package/dist/chunks/{localized-field-DyZpSuGk.es.js → localized-field-D3NXlDB4.es.js} +31 -31
- package/dist/chunks/localized-field-D3NXlDB4.es.js.map +1 -0
- package/dist/chunks/{make-element-focusable-DgSPkXRd.es.js → make-element-focusable-DVfaQntJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-DgSPkXRd.es.js.map → make-element-focusable-DVfaQntJ.es.js.map} +1 -1
- package/dist/chunks/menu-BN2WBtU1.cjs.js +2 -0
- package/dist/chunks/menu-BN2WBtU1.cjs.js.map +1 -0
- package/dist/chunks/{menu-CaSPNND_.es.js → menu-CV4u_xTQ.es.js} +55 -62
- package/dist/chunks/menu-CV4u_xTQ.es.js.map +1 -0
- package/dist/chunks/{mergeProps-DtKAFxbD.es.js → mergeProps-D1jjFfMs.es.js} +5 -5
- package/dist/chunks/{mergeProps-DtKAFxbD.es.js.map → mergeProps-D1jjFfMs.es.js.map} +1 -1
- package/dist/chunks/{money-input-BT3JhOpu.cjs.js → money-input-BcVl1GSJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-BT3JhOpu.cjs.js.map → money-input-BcVl1GSJ.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-D6_TFZB-.es.js → money-input-CHGisosY.es.js} +9 -9
- package/dist/chunks/{money-input-D6_TFZB-.es.js.map → money-input-CHGisosY.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DqLmTSr5.es.js → multiline-text-input-C1d7g4qG.es.js} +5 -5
- package/dist/chunks/multiline-text-input-C1d7g4qG.es.js.map +1 -0
- package/dist/chunks/{multiline-text-input-BWEsaxf_.cjs.js → multiline-text-input-CQIh1RY_.cjs.js} +2 -2
- package/dist/chunks/multiline-text-input-CQIh1RY_.cjs.js.map +1 -0
- package/dist/chunks/{nimbus-provider-Bap0WHRm.es.js → nimbus-provider-DhbgfQBR.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-Bap0WHRm.es.js.map → nimbus-provider-DhbgfQBR.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BarcIhYi.cjs.js → nimbus-provider-m1x1g8kD.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-BarcIhYi.cjs.js.map → nimbus-provider-m1x1g8kD.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-BskHV8w5.cjs.js → number-input-Au2Q7jMA.cjs.js} +2 -2
- package/dist/chunks/{number-input-BskHV8w5.cjs.js.map → number-input-Au2Q7jMA.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CerB7jp0.es.js → number-input-uHgywOUH.es.js} +39 -39
- package/dist/chunks/{number-input-CerB7jp0.es.js.map → number-input-uHgywOUH.es.js.map} +1 -1
- package/dist/chunks/{pagination-dlHn3OhV.es.js → pagination-CFtt5U4o.es.js} +5 -5
- package/dist/chunks/{pagination-dlHn3OhV.es.js.map → pagination-CFtt5U4o.es.js.map} +1 -1
- package/dist/chunks/{pagination-xj41eBPX.cjs.js → pagination-EMnwkW14.cjs.js} +2 -2
- package/dist/chunks/{pagination-xj41eBPX.cjs.js.map → pagination-EMnwkW14.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-DGtJisDd.cjs.js → password-input-BCoucE5i.cjs.js} +2 -2
- package/dist/chunks/{password-input-DGtJisDd.cjs.js.map → password-input-BCoucE5i.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-Dw-m0lej.es.js → password-input-CizSENHi.es.js} +4 -4
- package/dist/chunks/{password-input-Dw-m0lej.es.js.map → password-input-CizSENHi.es.js.map} +1 -1
- package/dist/chunks/{popover-CaE5pDl9.es.js → popover-DM-6JZxY.es.js} +2 -2
- package/dist/chunks/{popover-CaE5pDl9.es.js.map → popover-DM-6JZxY.es.js.map} +1 -1
- package/dist/chunks/progress-bar-Ci_tl6r6.cjs.js +2 -0
- package/dist/chunks/progress-bar-Ci_tl6r6.cjs.js.map +1 -0
- package/dist/chunks/progress-bar-DUiuVJqK.es.js +76 -0
- package/dist/chunks/progress-bar-DUiuVJqK.es.js.map +1 -0
- package/dist/chunks/radio-input-DrI0Xgth.cjs.js +2 -0
- package/dist/chunks/{radio-input-yA7MF_jw.cjs.js.map → radio-input-DrI0Xgth.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-Dg7PXbQa.es.js → radio-input-DvTO8zOs.es.js} +98 -72
- package/dist/chunks/{radio-input-Dg7PXbQa.es.js.map → radio-input-DvTO8zOs.es.js.map} +1 -1
- package/dist/chunks/range-calendar-C8brNqiX.cjs.js +2 -0
- package/dist/chunks/range-calendar-C8brNqiX.cjs.js.map +1 -0
- package/dist/chunks/{range-calendar-D6nonjnz.es.js → range-calendar-CJZmV_qG.es.js} +128 -127
- package/dist/chunks/range-calendar-CJZmV_qG.es.js.map +1 -0
- package/dist/chunks/rich-text-input-BJk01U_c.cjs.js +10 -0
- package/dist/chunks/rich-text-input-BJk01U_c.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-hBorJHFw.es.js → rich-text-input-CdYQJX6c.es.js} +219 -219
- package/dist/chunks/rich-text-input-CdYQJX6c.es.js.map +1 -0
- package/dist/chunks/{scoped-search-input-C6B7Szzk.cjs.js → scoped-search-input-D6qpyJYv.cjs.js} +2 -2
- package/dist/chunks/scoped-search-input-D6qpyJYv.cjs.js.map +1 -0
- package/dist/chunks/{scoped-search-input-B7rDiJuj.es.js → scoped-search-input-gMsh3VM9.es.js} +15 -6
- package/dist/chunks/scoped-search-input-gMsh3VM9.es.js.map +1 -0
- package/dist/chunks/{scrollIntoView-CRn_Y0bq.es.js → scrollIntoView-CQMm8-SR.es.js} +2 -2
- package/dist/chunks/{scrollIntoView-CRn_Y0bq.es.js.map → scrollIntoView-CQMm8-SR.es.js.map} +1 -1
- package/dist/chunks/{search-input-tna-iiqy.es.js → search-input-CdHR3Kxc.es.js} +15 -12
- package/dist/chunks/{search-input-tna-iiqy.es.js.map → search-input-CdHR3Kxc.es.js.map} +1 -1
- package/dist/chunks/{search-input-vq7lviez.cjs.js → search-input-DgiODO-g.cjs.js} +2 -2
- package/dist/chunks/{search-input-vq7lviez.cjs.js.map → search-input-DgiODO-g.cjs.js.map} +1 -1
- package/dist/chunks/{select-B0WZuFVc.es.js → select-Csja0bBR.es.js} +92 -96
- package/dist/chunks/{select-B0WZuFVc.es.js.map → select-Csja0bBR.es.js.map} +1 -1
- package/dist/chunks/select-CvRLaSMs.cjs.js +2 -0
- package/dist/chunks/{select-wD3QlanS.cjs.js.map → select-CvRLaSMs.cjs.js.map} +1 -1
- package/dist/chunks/{separator-Dng72n3L.es.js → separator-D6b9i-eh.es.js} +4 -4
- package/dist/chunks/{separator-Dng72n3L.es.js.map → separator-D6b9i-eh.es.js.map} +1 -1
- package/dist/chunks/{separator-TrQT9Pcb.cjs.js → separator-D9kKI6Qa.cjs.js} +2 -2
- package/dist/chunks/{separator-TrQT9Pcb.cjs.js.map → separator-D9kKI6Qa.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-pF0iIa_0.es.js → split-button-4gxONpNC.es.js} +4 -4
- package/dist/chunks/{split-button-pF0iIa_0.es.js.map → split-button-4gxONpNC.es.js.map} +1 -1
- package/dist/chunks/{split-button-BH500vls.cjs.js → split-button-Ci3LSgyf.cjs.js} +2 -2
- package/dist/chunks/{split-button-BH500vls.cjs.js.map → split-button-Ci3LSgyf.cjs.js.map} +1 -1
- package/dist/chunks/{switch-D3tDl7RG.cjs.js → switch-CY5B06Rw.cjs.js} +2 -2
- package/dist/chunks/{switch-D3tDl7RG.cjs.js.map → switch-CY5B06Rw.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DJENPCZA.es.js → switch-DJZffBPP.es.js} +7 -7
- package/dist/chunks/{switch-DJENPCZA.es.js.map → switch-DJZffBPP.es.js.map} +1 -1
- package/dist/chunks/{tabs-Bj24YiXX.cjs.js → tabs-3vm885CF.cjs.js} +2 -2
- package/dist/chunks/{tabs-Bj24YiXX.cjs.js.map → tabs-3vm885CF.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-D3SqKC9V.es.js → tabs-Dwh31onP.es.js} +128 -54
- package/dist/chunks/{tabs-D3SqKC9V.es.js.map → tabs-Dwh31onP.es.js.map} +1 -1
- package/dist/chunks/{tag-group-DQ72dsVp.es.js → tag-group-FYIVNur5.es.js} +105 -57
- package/dist/chunks/{tag-group-DQ72dsVp.es.js.map → tag-group-FYIVNur5.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Djb2ouRY.cjs.js → tag-group-ooDwx1Ix.cjs.js} +2 -2
- package/dist/chunks/{tag-group-Djb2ouRY.cjs.js.map → tag-group-ooDwx1Ix.cjs.js.map} +1 -1
- package/dist/chunks/{text-BVYJmhjj.es.js → text-DvqDjbwb.es.js} +2 -2
- package/dist/chunks/{text-BVYJmhjj.es.js.map → text-DvqDjbwb.es.js.map} +1 -1
- package/dist/chunks/{text-input-B5tizBg4.cjs.js → text-input-D0ehU383.cjs.js} +2 -2
- package/dist/chunks/text-input-D0ehU383.cjs.js.map +1 -0
- package/dist/chunks/{text-input-DBFEKmrv.es.js → text-input-QGJNax-6.es.js} +14 -8
- package/dist/chunks/text-input-QGJNax-6.es.js.map +1 -0
- package/dist/chunks/text-input-field-KEntobaR.cjs.js +2 -0
- package/dist/chunks/text-input-field-KEntobaR.cjs.js.map +1 -0
- package/dist/chunks/text-input-field-rt2r9i_0.es.js +55 -0
- package/dist/chunks/text-input-field-rt2r9i_0.es.js.map +1 -0
- package/dist/chunks/{time-input-DWrgu6Yp.cjs.js → time-input-5HlWzEKi.cjs.js} +2 -2
- package/dist/chunks/{time-input-DWrgu6Yp.cjs.js.map → time-input-5HlWzEKi.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-BJ1nDsyZ.es.js → time-input-DEJ9mSMK.es.js} +4 -4
- package/dist/chunks/{time-input-BJ1nDsyZ.es.js.map → time-input-DEJ9mSMK.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-mL9CAReh.cjs.js → toggle-button-B2n8jZpx.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-mL9CAReh.cjs.js.map → toggle-button-B2n8jZpx.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Dm4hPGPr.es.js → toggle-button-BFF8f8hk.es.js} +4 -4
- package/dist/chunks/{toggle-button-Dm4hPGPr.es.js.map → toggle-button-BFF8f8hk.es.js.map} +1 -1
- package/dist/chunks/toggle-button-group-Lfn3zYmC.cjs.js.map +1 -1
- package/dist/chunks/{toggle-button-group-DMH0nd7S.es.js → toggle-button-group-P0oS-q6h.es.js} +2 -2
- package/dist/chunks/toggle-button-group-P0oS-q6h.es.js.map +1 -0
- package/dist/chunks/{toolbar-Df-6gFqW.cjs.js → toolbar-AAOkoSJS.cjs.js} +2 -2
- package/dist/chunks/{toolbar-Df-6gFqW.cjs.js.map → toolbar-AAOkoSJS.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-wCiInDj2.es.js → toolbar-BQLSIrsK.es.js} +6 -6
- package/dist/chunks/{toolbar-wCiInDj2.es.js.map → toolbar-BQLSIrsK.es.js.map} +1 -1
- package/dist/chunks/{tooltip-Aar_qzmT.cjs.js → tooltip-Bv-QlJ1O.cjs.js} +2 -2
- package/dist/chunks/{tooltip-Aar_qzmT.cjs.js.map → tooltip-Bv-QlJ1O.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CDmtIjmS.es.js → tooltip-CzEuq_Qi.es.js} +51 -18
- package/dist/chunks/{tooltip-CDmtIjmS.es.js.map → tooltip-CzEuq_Qi.es.js.map} +1 -1
- package/dist/chunks/{useButton-C6AOJI9V.es.js → useButton-B2TbwHSy.es.js} +4 -4
- package/dist/chunks/{useButton-C6AOJI9V.es.js.map → useButton-B2TbwHSy.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-eE8d1TkO.es.js → useDateFormatter-CO08GpLe.es.js} +4 -4
- package/dist/chunks/{useDateFormatter-eE8d1TkO.es.js.map → useDateFormatter-CO08GpLe.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-D1JuSOd2.es.js → useDisclosureState-BqxwXawT.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-D1JuSOd2.es.js.map → useDisclosureState-BqxwXawT.es.js.map} +1 -1
- package/dist/chunks/{useEvent-9dPxQ57C.es.js → useEvent-D8bTsAyx.es.js} +4 -4
- package/dist/chunks/{useEvent-9dPxQ57C.es.js.map → useEvent-D8bTsAyx.es.js.map} +1 -1
- package/dist/chunks/{useField-pcfe8gKN.es.js → useField-BfW84CS4.es.js} +8 -8
- package/dist/chunks/{useField-pcfe8gKN.es.js.map → useField-BfW84CS4.es.js.map} +1 -1
- package/dist/chunks/{useFocus-Q2wBJr4c.es.js → useFocus-TCNvrvTC.es.js} +2 -2
- package/dist/chunks/{useFocus-Q2wBJr4c.es.js.map → useFocus-TCNvrvTC.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-4xTd5aPf.es.js → useFocusRing-oMAqzr3e.es.js} +4 -4
- package/dist/chunks/{useFocusRing-4xTd5aPf.es.js.map → useFocusRing-oMAqzr3e.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-Cqoc10KD.es.js → useFocusVisible-Uw6yFmFY.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-Cqoc10KD.es.js.map → useFocusVisible-Uw6yFmFY.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-CmZPz1jk.es.js → useFocusWithin-nAsP7Ru3.es.js} +2 -2
- package/dist/chunks/{useFocusWithin-CmZPz1jk.es.js.map → useFocusWithin-nAsP7Ru3.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Dhchq_tH.es.js → useFocusable-Bm-DQaak.es.js} +5 -5
- package/dist/chunks/{useFocusable-Dhchq_tH.es.js.map → useFocusable-Bm-DQaak.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-3ffKrKus.es.js → useFormReset-C52dSDoe.es.js} +2 -2
- package/dist/chunks/{useFormReset-3ffKrKus.es.js.map → useFormReset-C52dSDoe.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-CsBzLHWo.es.js → useFormValidation-DxDV9X1M.es.js} +3 -3
- package/dist/chunks/{useFormValidation-CsBzLHWo.es.js.map → useFormValidation-DxDV9X1M.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-WBYPB9KF.es.js → useGridListItem-F3yPBTEW.es.js} +10 -10
- package/dist/chunks/{useGridListItem-WBYPB9KF.es.js.map → useGridListItem-F3yPBTEW.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-Dd6zlnRC.es.js → useHasTabbableChild-DemFbZRn.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-Dd6zlnRC.es.js.map → useHasTabbableChild-DemFbZRn.es.js.map} +1 -1
- package/dist/chunks/{useHover-B62SXQZ1.es.js → useHover-BtRK9g2L.es.js} +2 -2
- package/dist/chunks/{useHover-B62SXQZ1.es.js.map → useHover-BtRK9g2L.es.js.map} +1 -1
- package/dist/chunks/{useLabel-Dy7MtUCn.es.js → useLabel-DfbcmKTa.es.js} +5 -5
- package/dist/chunks/{useLabel-Dy7MtUCn.es.js.map → useLabel-DfbcmKTa.es.js.map} +1 -1
- package/dist/chunks/{useLabels-DwkgAC0N.es.js → useLabels-Gn8v9XZB.es.js} +2 -2
- package/dist/chunks/{useLabels-DwkgAC0N.es.js.map → useLabels-Gn8v9XZB.es.js.map} +1 -1
- package/dist/chunks/{useListState-BFNT8oUW.es.js → useListState-BkVh9WsE.es.js} +2 -2
- package/dist/chunks/{useListState-BFNT8oUW.es.js.map → useListState-BkVh9WsE.es.js.map} +1 -1
- package/dist/chunks/{usePress-HeLch-fy.es.js → usePress-C_IPaF8I.es.js} +6 -6
- package/dist/chunks/{usePress-HeLch-fy.es.js.map → usePress-C_IPaF8I.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar-B2to0nHL.es.js → useProgressBar-DCj794Zv.es.js} +7 -7
- package/dist/chunks/{useProgressBar-B2to0nHL.es.js.map → useProgressBar-DCj794Zv.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-DcU-tU_H.es.js → useSingleSelectListState-BszJZd-K.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-DcU-tU_H.es.js.map → useSingleSelectListState-BszJZd-K.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-BXv98XYF.es.js → useSpinButton-BiQ20B5n.es.js} +15 -15
- package/dist/chunks/{useSpinButton-BXv98XYF.es.js.map → useSpinButton-BiQ20B5n.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-CGglUgYU.es.js → useSyncRef-DmY05o2G.es.js} +2 -2
- package/dist/chunks/{useSyncRef-CGglUgYU.es.js.map → useSyncRef-DmY05o2G.es.js.map} +1 -1
- package/dist/chunks/{useTextField-DbxpGgV5.es.js → useTextField-9WuJfc9u.es.js} +7 -7
- package/dist/chunks/{useTextField-DbxpGgV5.es.js.map → useTextField-9WuJfc9u.es.js.map} +1 -1
- package/dist/chunks/{useToggle-XQtoJnll.es.js → useToggle-BZPMewLP.es.js} +5 -5
- package/dist/chunks/{useToggle-XQtoJnll.es.js.map → useToggle-BZPMewLP.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-DGsUdEv7.es.js → useToolbar-C673xD3E.es.js} +3 -3
- package/dist/chunks/{useToolbar-DGsUdEv7.es.js.map → useToolbar-C673xD3E.es.js.map} +1 -1
- package/dist/chunks/{utils-_m_bPtjI.es.js → utils-9vu7GUaz.es.js} +2 -2
- package/dist/chunks/{utils-_m_bPtjI.es.js.map → utils-9vu7GUaz.es.js.map} +1 -1
- package/dist/chunks/{utils-Be2JRmv-.es.js → utils-Bl-3nKLa.es.js} +6 -6
- package/dist/chunks/{utils-Be2JRmv-.es.js.map → utils-Bl-3nKLa.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-BmFEAQP9.es.js → visually-hidden-m5QY9YV7.es.js} +2 -2
- package/dist/chunks/{visually-hidden-BmFEAQP9.es.js.map → visually-hidden-m5QY9YV7.es.js.map} +1 -1
- package/dist/components/accordion/accordion.d.ts +116 -11
- package/dist/components/accordion/accordion.recipe.d.ts +13 -13
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion/accordion.types.d.ts +15 -5
- package/dist/components/accordion/components/accordion.content.d.ts +12 -0
- package/dist/components/accordion/components/accordion.header-right-content.d.ts +13 -0
- package/dist/components/accordion/components/accordion.header.d.ts +13 -0
- package/dist/components/accordion/components/accordion.item.d.ts +13 -0
- package/dist/components/accordion/components/accordion.root.d.ts +12 -0
- package/dist/components/accordion/components/index.d.ts +5 -0
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +8 -7
- package/dist/components/accordion.es.js.map +1 -1
- package/dist/components/alert/alert.d.ts +84 -5
- package/dist/components/alert/alert.slots.d.ts +5 -5
- package/dist/components/alert/alert.types.d.ts +5 -4
- package/dist/components/alert/components/alert.actions.d.ts +5 -0
- package/dist/components/alert/components/alert.description.d.ts +5 -0
- package/dist/components/alert/components/alert.dismiss-button.d.ts +5 -0
- package/dist/components/alert/components/alert.root.d.ts +2 -4
- package/dist/components/alert/components/alert.title.d.ts +5 -0
- package/dist/components/alert/components/index.d.ts +5 -0
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.d.ts +22 -0
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/avatar/avatar.types.d.ts +2 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge/badge.slots.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +2 -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/calendar.slots.d.ts +8 -8
- package/dist/components/calendar/calendar.types.d.ts +42 -2
- package/dist/components/calendar/components/index.d.ts +3 -0
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card/card.d.ts +66 -4
- package/dist/components/card/card.slots.d.ts +5 -8
- package/dist/components/card/card.types.d.ts +4 -3
- package/dist/components/card/components/card.content.d.ts +5 -0
- package/dist/components/card/components/card.header.d.ts +5 -0
- package/dist/components/card/components/card.root.d.ts +3 -5
- package/dist/components/card/components/index.d.ts +3 -0
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox/checkbox.slots.d.ts +5 -5
- package/dist/components/checkbox/checkbox.types.d.ts +4 -3
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.d.ts +1 -3
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion/collapsible-motion.types.d.ts +4 -3
- package/dist/components/collapsible-motion/components/collapsible-motion-content.d.ts +3 -1
- package/dist/components/collapsible-motion/components/collapsible-motion-root.d.ts +2 -0
- package/dist/components/collapsible-motion/components/collapsible-motion-trigger.d.ts +3 -1
- package/dist/components/collapsible-motion/components/index.d.ts +3 -0
- package/dist/components/collapsible-motion/index.d.ts +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +5 -2
- package/dist/components/combobox/combobox.d.ts +44 -4
- package/dist/components/combobox/combobox.recipe.d.ts +1 -1
- package/dist/components/combobox/combobox.slots.d.ts +15 -13
- package/dist/components/combobox/combobox.types.d.ts +6 -5
- package/dist/components/combobox/components/combobox.leading-element.d.ts +2 -0
- package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +5 -0
- package/dist/components/combobox/components/combobox.multi-select-root.d.ts +5 -0
- package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +5 -0
- package/dist/components/combobox/components/combobox.option-group.d.ts +5 -0
- package/dist/components/combobox/components/combobox.option.d.ts +5 -0
- package/dist/components/combobox/components/combobox.options.d.ts +5 -0
- package/dist/components/combobox/components/combobox.root.d.ts +1 -1
- package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +5 -0
- package/dist/components/combobox/components/combobox.single-select-input.d.ts +5 -0
- package/dist/components/combobox/components/combobox.single-select-root.d.ts +5 -0
- package/dist/components/combobox/components/index.d.ts +11 -0
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +2 -5
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +6 -9
- package/dist/components/data-table/components/data-table.body.d.ts +5 -0
- package/dist/components/data-table/components/data-table.cell.d.ts +9 -1
- package/dist/components/data-table/components/data-table.column.d.ts +5 -0
- package/dist/components/data-table/components/data-table.footer.d.ts +5 -0
- package/dist/components/data-table/components/data-table.header.d.ts +5 -0
- package/dist/components/data-table/components/data-table.root.d.ts +5 -0
- package/dist/components/data-table/components/data-table.table.d.ts +5 -0
- package/dist/components/data-table/components/index.d.ts +10 -0
- package/dist/components/data-table/data-table.d.ts +212 -13
- package/dist/components/data-table/data-table.recipe.d.ts +1 -1
- package/dist/components/data-table/data-table.slots.d.ts +12 -12
- package/dist/components/data-table/data-table.types.d.ts +2 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input/date-input.slots.d.ts +5 -5
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/components/date-picker.custom-context.d.ts +6 -0
- package/dist/components/date-picker/components/date-picker.time-input.d.ts +8 -0
- package/dist/components/date-picker/components/index.d.ts +2 -0
- package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
- package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
- package/dist/components/date-picker/date-picker.types.d.ts +2 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.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/components/dialog.body.d.ts +5 -0
- package/dist/components/dialog/components/dialog.close-trigger.d.ts +5 -0
- package/dist/components/dialog/components/dialog.content.d.ts +5 -0
- package/dist/components/dialog/components/dialog.footer.d.ts +5 -0
- package/dist/components/dialog/components/dialog.header.d.ts +5 -0
- package/dist/components/dialog/components/dialog.root.d.ts +5 -0
- package/dist/components/dialog/components/dialog.title.d.ts +5 -0
- package/dist/components/dialog/components/dialog.trigger.d.ts +5 -0
- package/dist/components/dialog/dialog.slots.d.ts +10 -19
- package/dist/components/dialog/dialog.types.d.ts +9 -8
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/components/draggable-list.field.d.ts +12 -1
- package/dist/components/draggable-list/components/draggable-list.item.d.ts +12 -1
- package/dist/components/draggable-list/components/draggable-list.root.d.ts +12 -1
- package/dist/components/draggable-list/components/index.d.ts +3 -0
- package/dist/components/draggable-list/draggable-list.d.ts +13 -6
- package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/components/drawer.body.d.ts +5 -0
- package/dist/components/drawer/components/drawer.close-trigger.d.ts +5 -0
- package/dist/components/drawer/components/drawer.content.d.ts +5 -0
- package/dist/components/drawer/components/drawer.footer.d.ts +5 -0
- package/dist/components/drawer/components/drawer.header.d.ts +5 -0
- package/dist/components/drawer/components/drawer.title.d.ts +5 -0
- package/dist/components/drawer/components/drawer.trigger.d.ts +5 -0
- package/dist/components/drawer/drawer.slots.d.ts +10 -10
- package/dist/components/drawer/drawer.types.d.ts +28 -12
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +10 -2
- package/dist/components/field-errors/field-errors.d.ts +4 -0
- package/dist/components/field-errors/field-errors.slots.d.ts +4 -6
- package/dist/components/field-errors/field-errors.types.d.ts +7 -21
- package/dist/components/field-errors/index.d.ts +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +4 -2
- package/dist/components/fields.es.js.map +1 -1
- package/dist/components/form-field/components/form-field.description.d.ts +9 -1
- package/dist/components/form-field/components/form-field.error.d.ts +9 -1
- package/dist/components/form-field/components/form-field.info-box.d.ts +9 -1
- package/dist/components/form-field/components/form-field.input.d.ts +9 -1
- package/dist/components/form-field/components/form-field.label.d.ts +9 -1
- package/dist/components/form-field/components/form-field.root.d.ts +6 -3
- package/dist/components/form-field/components/index.d.ts +6 -0
- package/dist/components/form-field/form-field.d.ts +142 -14
- package/dist/components/form-field/form-field.recipe.d.ts +1 -1
- package/dist/components/form-field/form-field.slots.d.ts +7 -6
- package/dist/components/form-field/form-field.types.d.ts +6 -5
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.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/inline-svg/inline-svg.slots.d.ts +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link/link.slots.d.ts +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.types.d.ts +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/components/index.d.ts +2 -0
- package/dist/components/localized-field/components/localized-field.locale-field.d.ts +9 -0
- package/dist/components/localized-field/components/localized-field.root.d.ts +9 -0
- package/dist/components/localized-field/localized-field.d.ts +28 -0
- package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
- package/dist/components/localized-field/localized-field.types.d.ts +2 -1
- package/dist/components/localized-field/utils/localized-field.utils.d.ts +2 -2
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/menu/menu.recipe.d.ts +1 -1
- package/dist/components/menu/menu.slots.d.ts +8 -8
- package/dist/components/menu/menu.types.d.ts +8 -2
- package/dist/components/money-input/money-input.slots.d.ts +6 -6
- package/dist/components/money-input/money-input.types.d.ts +3 -2
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/hooks/use-autogrow.d.ts +2 -2
- package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
- package/dist/components/multiline-text-input/multiline-text-input.types.d.ts +2 -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/number-input.slots.d.ts +6 -6
- package/dist/components/number-input/number-input.types.d.ts +3 -2
- 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/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +4 -2
- package/dist/components/patterns.es.js.map +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar/progress-bar.slots.d.ts +6 -6
- package/dist/components/progress-bar/progress-bar.types.d.ts +4 -4
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input/components/index.d.ts +2 -0
- package/dist/components/radio-input/components/radio-input.option.d.ts +8 -0
- package/dist/components/radio-input/components/radio-input.root.d.ts +2 -1
- package/dist/components/radio-input/radio-input.d.ts +28 -3
- package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
- package/dist/components/radio-input/radio-input.types.d.ts +3 -2
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +2 -4
- package/dist/components/range-calendar/components/index.d.ts +3 -0
- package/dist/components/range-calendar/components/range-calendar.grids.d.ts +6 -0
- package/dist/components/range-calendar/components/range-calendar.header.d.ts +6 -0
- package/dist/components/range-calendar/range-calendar.d.ts +15 -1
- package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
- package/dist/components/range-calendar/range-calendar.types.d.ts +3 -2
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/components/index.d.ts +3 -0
- package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
- 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/scoped-search-input.d.ts +10 -0
- package/dist/components/scoped-search-input/scoped-search-input.slots.d.ts +6 -6
- package/dist/components/scoped-search-input/scoped-search-input.types.d.ts +2 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input/search-input.d.ts +3 -0
- package/dist/components/search-input/search-input.slots.d.ts +5 -12
- package/dist/components/search-input/search-input.types.d.ts +2 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/components/index.d.ts +5 -0
- package/dist/components/select/components/select.clear-button.d.ts +5 -0
- package/dist/components/select/components/select.option-group.d.ts +5 -0
- package/dist/components/select/components/select.option.d.ts +5 -0
- package/dist/components/select/components/select.options.d.ts +5 -0
- package/dist/components/select/components/select.root.d.ts +2 -4
- package/dist/components/select/select.d.ts +0 -10
- package/dist/components/select/select.slots.d.ts +7 -7
- package/dist/components/select/select.types.d.ts +5 -5
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +2 -6
- package/dist/components/separator/separator.types.d.ts +2 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/spacer/spacer.types.d.ts +2 -1
- package/dist/components/split-button/split-button.d.ts +0 -1
- package/dist/components/split-button/split-button.slots.d.ts +3 -3
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch/switch.recipe.d.ts +8 -8
- package/dist/components/switch/switch.slots.d.ts +3 -3
- package/dist/components/switch/switch.types.d.ts +3 -2
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/components/index.d.ts +5 -0
- package/dist/components/tabs/components/tabs.list.d.ts +3 -1
- package/dist/components/tabs/components/tabs.panel.d.ts +1 -1
- package/dist/components/tabs/components/tabs.panels.d.ts +1 -1
- package/dist/components/tabs/components/tabs.root.d.ts +1 -1
- package/dist/components/tabs/components/tabs.tab.d.ts +3 -1
- package/dist/components/tabs/tabs.d.ts +98 -6
- package/dist/components/tabs/tabs.slots.d.ts +3 -3
- package/dist/components/tabs/tabs.types.d.ts +6 -5
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +6 -6
- package/dist/components/tag-group/components/index.d.ts +3 -0
- package/dist/components/tag-group/components/tag-group.root.d.ts +2 -4
- package/dist/components/tag-group/components/tag-group.tag-list.d.ts +5 -0
- package/dist/components/tag-group/components/tag-group.tag.d.ts +5 -0
- package/dist/components/tag-group/tag-group.d.ts +59 -0
- package/dist/components/tag-group/tag-group.types.d.ts +4 -3
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input/text-input.slots.d.ts +6 -13
- package/dist/components/text-input/text-input.types.d.ts +2 -1
- package/dist/components/text-input-field.cjs +2 -0
- package/dist/components/text-input-field.cjs.map +1 -0
- package/dist/components/text-input-field.es.js +5 -0
- package/dist/components/text-input-field.es.js.map +1 -0
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input/time-input.slots.d.ts +5 -5
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group/components/toggle-button-group.root.d.ts +0 -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/components/tooltip.root.d.ts +0 -1
- package/dist/components/tooltip/tooltip.d.ts +53 -1
- package/dist/components/tooltip/tooltip.types.d.ts +2 -2
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +4 -6
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +328 -325
- package/dist/index.es.js.map +1 -1
- package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.d.ts +5 -18
- package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.types.d.ts +2 -2
- package/dist/patterns/fields/index.d.ts +1 -0
- package/dist/patterns/fields/text-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/text-input-field/text-input-field.d.ts +28 -0
- package/dist/patterns/fields/text-input-field/text-input-field.types.d.ts +44 -0
- package/dist/theme/slot-recipes/index.d.ts +27 -27
- package/dist/type-utils/omit-props.d.ts +2 -13
- package/package.json +5 -5
- package/dist/chunks/accordion-DhybkUP0.cjs.js +0 -2
- package/dist/chunks/accordion-DhybkUP0.cjs.js.map +0 -1
- package/dist/chunks/accordion-DwkpvHwM.es.js +0 -221
- package/dist/chunks/accordion-DwkpvHwM.es.js.map +0 -1
- package/dist/chunks/alert-BlkniDy9.cjs.js.map +0 -1
- package/dist/chunks/alert-CVXQqjXr.es.js.map +0 -1
- package/dist/chunks/avatar-BNhECwD5.cjs.js.map +0 -1
- package/dist/chunks/avatar-DFibCsCs.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js +0 -2
- package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js.map +0 -1
- package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js.map +0 -1
- package/dist/chunks/badge-CDruffyj.cjs.js +0 -2
- package/dist/chunks/badge-CDruffyj.cjs.js.map +0 -1
- package/dist/chunks/badge-DojCGTVg.es.js +0 -17
- package/dist/chunks/badge-DojCGTVg.es.js.map +0 -1
- package/dist/chunks/calendar-BiE914Ki.cjs.js +0 -2
- package/dist/chunks/calendar-BiE914Ki.cjs.js.map +0 -1
- package/dist/chunks/calendar-D7pzgXqX.es.js.map +0 -1
- package/dist/chunks/card-BAS0dyJc.es.js +0 -66
- package/dist/chunks/card-BAS0dyJc.es.js.map +0 -1
- package/dist/chunks/card-BxfzRkn1.cjs.js +0 -2
- package/dist/chunks/card-BxfzRkn1.cjs.js.map +0 -1
- package/dist/chunks/collapsible-motion-CUcSKaFQ.cjs.js +0 -2
- package/dist/chunks/collapsible-motion-CUcSKaFQ.cjs.js.map +0 -1
- package/dist/chunks/collapsible-motion-CqJQvrAr.es.js +0 -83
- package/dist/chunks/collapsible-motion-CqJQvrAr.es.js.map +0 -1
- package/dist/chunks/date-picker-BzSXCoJ0.cjs.js +0 -2
- package/dist/chunks/date-picker-BzSXCoJ0.cjs.js.map +0 -1
- package/dist/chunks/date-picker-Zz2Sp3S6.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-BUaFYM2O.es.js +0 -62
- package/dist/chunks/date-range-picker-field-BUaFYM2O.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-CS0YU89_.cjs.js +0 -2
- package/dist/chunks/date-range-picker-field-CS0YU89_.cjs.js.map +0 -1
- package/dist/chunks/dialog-D7sGE9KU.cjs.js +0 -2
- package/dist/chunks/dialog-D7sGE9KU.cjs.js.map +0 -1
- package/dist/chunks/dialog-DPpvAxDq.es.js +0 -165
- package/dist/chunks/dialog-DPpvAxDq.es.js.map +0 -1
- package/dist/chunks/dialog.close-trigger-BhUQxKIh.es.js +0 -152
- package/dist/chunks/dialog.close-trigger-BhUQxKIh.es.js.map +0 -1
- package/dist/chunks/dialog.close-trigger-Y9dS7xOy.cjs.js.map +0 -1
- package/dist/chunks/drawer-DZ75mvzL.cjs.js +0 -2
- package/dist/chunks/drawer-DZ75mvzL.cjs.js.map +0 -1
- package/dist/chunks/drawer-ZczUeqdd.es.js.map +0 -1
- package/dist/chunks/form-field-C25xvMEM.es.js +0 -231
- package/dist/chunks/form-field-C25xvMEM.es.js.map +0 -1
- package/dist/chunks/form-field-CpRzgqpq.cjs.js +0 -2
- package/dist/chunks/form-field-CpRzgqpq.cjs.js.map +0 -1
- package/dist/chunks/index-8m2zx8YL.cjs.js +0 -34
- package/dist/chunks/index-8m2zx8YL.cjs.js.map +0 -1
- package/dist/chunks/index-B7wlrXvj.es.js.map +0 -1
- package/dist/chunks/localized-field-ByW-vsvR.cjs.js.map +0 -1
- package/dist/chunks/localized-field-DyZpSuGk.es.js.map +0 -1
- package/dist/chunks/menu-CJeqjRAs.cjs.js +0 -2
- package/dist/chunks/menu-CJeqjRAs.cjs.js.map +0 -1
- package/dist/chunks/menu-CaSPNND_.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-BWEsaxf_.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-DqLmTSr5.es.js.map +0 -1
- package/dist/chunks/progress-bar-CYd6T1Ax.es.js +0 -77
- package/dist/chunks/progress-bar-CYd6T1Ax.es.js.map +0 -1
- package/dist/chunks/progress-bar-Dx9Zr5Yh.cjs.js +0 -2
- package/dist/chunks/progress-bar-Dx9Zr5Yh.cjs.js.map +0 -1
- package/dist/chunks/radio-input-yA7MF_jw.cjs.js +0 -2
- package/dist/chunks/range-calendar-D6nonjnz.es.js.map +0 -1
- package/dist/chunks/range-calendar-DhKTQPnz.cjs.js +0 -2
- package/dist/chunks/range-calendar-DhKTQPnz.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CViBsj3Y.cjs.js +0 -10
- package/dist/chunks/rich-text-input-CViBsj3Y.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-hBorJHFw.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-B7rDiJuj.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-C6B7Szzk.cjs.js.map +0 -1
- package/dist/chunks/select-wD3QlanS.cjs.js +0 -2
- package/dist/chunks/text-input-B5tizBg4.cjs.js.map +0 -1
- package/dist/chunks/text-input-DBFEKmrv.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-DMH0nd7S.es.js.map +0 -1
- package/dist/components/accordion/components/accordion-content.d.ts +0 -2
- package/dist/components/accordion/components/accordion-header.d.ts +0 -2
- package/dist/components/accordion/components/accordion-item.d.ts +0 -2
- package/dist/components/accordion/components/accordion-root.d.ts +0 -9
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as p, useState as l, useMemo as h, useContext as C, useEffect as i } from "react";
|
|
3
|
-
import { createSlotRecipeContext as N } from "@chakra-ui/react";
|
|
4
|
-
import { S as R } from "./stack-CoNreM7B.es.js";
|
|
5
|
-
const { withProvider: y, withContext: u } = /* @__PURE__ */ N({
|
|
6
|
-
key: "card"
|
|
7
|
-
}), S = /* @__PURE__ */ y(
|
|
8
|
-
"div",
|
|
9
|
-
"root"
|
|
10
|
-
), E = /* @__PURE__ */ u(
|
|
11
|
-
"div",
|
|
12
|
-
"header"
|
|
13
|
-
), $ = /* @__PURE__ */ u(
|
|
14
|
-
"div",
|
|
15
|
-
"content"
|
|
16
|
-
), a = /* @__PURE__ */ p(
|
|
17
|
-
void 0
|
|
18
|
-
), m = ({ children: e, ref: o, ...t }) => {
|
|
19
|
-
const [n, s] = l(null), [v, d] = l(null), H = h(
|
|
20
|
-
() => ({
|
|
21
|
-
setHeader: s,
|
|
22
|
-
setContent: d
|
|
23
|
-
}),
|
|
24
|
-
[s, d]
|
|
25
|
-
);
|
|
26
|
-
return /* @__PURE__ */ r(a.Provider, { value: H, children: /* @__PURE__ */ c(S, { ref: o, ...t, children: [
|
|
27
|
-
/* @__PURE__ */ c(R, { direction: "column", gap: "200", children: [
|
|
28
|
-
n,
|
|
29
|
-
v
|
|
30
|
-
] }),
|
|
31
|
-
e
|
|
32
|
-
] }) });
|
|
33
|
-
};
|
|
34
|
-
m.displayName = "Card.Root";
|
|
35
|
-
const x = ({ children: e, ...o }) => {
|
|
36
|
-
const t = C(a);
|
|
37
|
-
return i(() => {
|
|
38
|
-
if (t) {
|
|
39
|
-
const n = /* @__PURE__ */ r(E, { ...o, children: e });
|
|
40
|
-
return t.setHeader(n), () => t.setHeader(null);
|
|
41
|
-
}
|
|
42
|
-
}, [e, o]), null;
|
|
43
|
-
};
|
|
44
|
-
x.displayName = "Card.Header";
|
|
45
|
-
const f = ({ children: e, ...o }) => {
|
|
46
|
-
const t = C(a);
|
|
47
|
-
return i(() => {
|
|
48
|
-
if (t) {
|
|
49
|
-
const n = /* @__PURE__ */ r($, { ...o, children: e });
|
|
50
|
-
return t.setContent(n), () => t.setContent(null);
|
|
51
|
-
}
|
|
52
|
-
}, [e, o]), null;
|
|
53
|
-
};
|
|
54
|
-
f.displayName = "Card.Content";
|
|
55
|
-
const b = {
|
|
56
|
-
Root: m,
|
|
57
|
-
Header: x,
|
|
58
|
-
Content: f
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
b as C,
|
|
62
|
-
m as a,
|
|
63
|
-
x as b,
|
|
64
|
-
f as c
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=card-BAS0dyJc.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-BAS0dyJc.es.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderSlotProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentSlotProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot ref={ref} {...props}>\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;AAOA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IAAW,gBAAAH;AAAA,EACtB;AAAA,EACA;AACF,GAEaI,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AACF,GACaI,IAAc,gBAAAJ;AAAA,EACzB;AAAA,EACA;AACF,GCjBaK,IAAc,gBAAAC;AAAA,EACzB;AACF,GASaJ,IAAW,CAAC,EAAE,UAAAK,GAAU,KAAAC,GAAK,GAAGC,QAAuB;AAClE,QAAM,CAACC,GAAYC,CAAS,IAAIC,EAAoB,IAAI,GAClD,CAACC,GAAaC,CAAU,IAAIF,EAAoB,IAAI,GAGpDG,IAAeC;AAAA,IACnB,OAAO;AAAA,MACL,WAAAL;AAAA,MACA,YAAAG;AAAA,IAAA;AAAA,IAEF,CAACH,GAAWG,CAAU;AAAA,EAAA;AAGxB,SACE,gBAAAG,EAACZ,EAAY,UAAZ,EAAqB,OAAOU,GAC3B,UAAA,gBAAAG,EAACC,GAAA,EAAa,KAAAX,GAAW,GAAGC,GAE1B,UAAA;AAAA,IAAA,gBAAAS,EAACE,GAAA,EAAM,WAAU,UAAS,KAAI,OAC3B,UAAA;AAAA,MAAAV;AAAA,MACAG;AAAA,IAAA,GACH;AAAA,IAGCN;AAAA,EAAA,EAAA,CACH,EAAA,CACF;AAEJ;AAEAL,EAAS,cAAc;AC7ChB,MAAMC,IAAa,CAAC,EAAE,UAAAI,GAAU,GAAGE,QAA6B;AACrE,QAAMY,IAAUC,EAAWjB,CAAW;AAEtC,SAAAkB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAP,EAACQ,GAAA,EAAgB,GAAGhB,GAAQ,UAAAF,GAAS;AAGvC,aAAAc,EAAQ,UAAUG,CAAW,GAGtB,MAAMH,EAAQ,UAAU,IAAI;AAAA,IACrC;AAAA,EACF,GAAG,CAACd,GAAUE,CAAK,CAAC,GAEb;AACT;AACAN,EAAW,cAAc;AClBlB,MAAMC,IAAc,CAAC,EAAE,UAAAG,GAAU,GAAGE,QAA8B;AACvE,QAAMY,IAAUC,EAAWjB,CAAW;AAEtC,SAAAkB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAP,EAACS,GAAA,EAAiB,GAAGjB,GAAQ,UAAAF,GAAS;AAGxC,aAAAc,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACd,GAAUE,CAAK,CAAC,GAEb;AACT;AAEAL,EAAY,cAAc;ACpBnB,MAAMuB,IAAO;AAAA,EAClB,MAAMzB;AAAA,EACN,QAAQC;AAAA,EACR,SAASC;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),R=require("./stack-CIN13EDn.cjs.js"),{withProvider:v,withContext:i}=H.createSlotRecipeContext({key:"card"}),f=v("div","root"),j=i("div","header"),h=i("div","content"),a=e.createContext(void 0),d=({children:n,ref:o,...t})=>{const[r,u]=e.useState(null),[x,l]=e.useState(null),m=e.useMemo(()=>({setHeader:u,setContent:l}),[u,l]);return s.jsx(a.Provider,{value:m,children:s.jsxs(f,{ref:o,...t,children:[s.jsxs(R.Stack,{direction:"column",gap:"200",children:[r,x]}),n]})})};d.displayName="Card.Root";const c=({children:n,...o})=>{const t=e.useContext(a);return e.useEffect(()=>{if(t){const r=s.jsx(j,{...o,children:n});return t.setHeader(r),()=>t.setHeader(null)}},[n,o]),null};c.displayName="Card.Header";const C=({children:n,...o})=>{const t=e.useContext(a);return e.useEffect(()=>{if(t){const r=s.jsx(h,{...o,children:n});return t.setContent(r),()=>t.setContent(null)}},[n,o]),null};C.displayName="Card.Content";const N={Root:d,Header:c,Content:C};exports.Card=N;exports.CardContent=C;exports.CardHeader=c;exports.CardRoot=d;
|
|
2
|
-
//# sourceMappingURL=card-BxfzRkn1.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-BxfzRkn1.cjs.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderSlotProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentSlotProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot ref={ref} {...props}>\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"wIAOM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,MACP,CAAC,EAMYC,EAAWH,EACtB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,QACF,EACaI,EAAcJ,EACzB,MACA,SACF,ECjBaK,EAAcC,EAAAA,cACzB,MACF,EASaJ,EAAW,CAAC,CAAE,SAAAK,EAAU,IAAAC,EAAK,GAAGC,KAAuB,CAClE,KAAM,CAACC,EAAYC,CAAS,EAAIC,EAAAA,SAAoB,IAAI,EAClD,CAACC,EAAaC,CAAU,EAAIF,EAAAA,SAAoB,IAAI,EAGpDG,EAAeC,EAAAA,QACnB,KAAO,CACL,UAAAL,EACA,WAAAG,CAAA,GAEF,CAACH,EAAWG,CAAU,CAAA,EAGxB,OACEG,EAAAA,IAACZ,EAAY,SAAZ,CAAqB,MAAOU,EAC3B,SAAAG,EAAAA,KAACC,EAAA,CAAa,IAAAX,EAAW,GAAGC,EAE1B,SAAA,CAAAS,EAAAA,KAACE,EAAAA,MAAA,CAAM,UAAU,SAAS,IAAI,MAC3B,SAAA,CAAAV,EACAG,CAAA,EACH,EAGCN,CAAA,CAAA,CACH,CAAA,CACF,CAEJ,EAEAL,EAAS,YAAc,YC7ChB,MAAMC,EAAa,CAAC,CAAE,SAAAI,EAAU,GAAGE,KAA6B,CACrE,MAAMY,EAAUC,EAAAA,WAAWjB,CAAW,EAEtCkB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACQ,EAAA,CAAgB,GAAGhB,EAAQ,SAAAF,EAAS,EAGvC,OAAAc,EAAQ,UAAUG,CAAW,EAGtB,IAAMH,EAAQ,UAAU,IAAI,CACrC,CACF,EAAG,CAACd,EAAUE,CAAK,CAAC,EAEb,IACT,EACAN,EAAW,YAAc,cClBlB,MAAMC,EAAc,CAAC,CAAE,SAAAG,EAAU,GAAGE,KAA8B,CACvE,MAAMY,EAAUC,EAAAA,WAAWjB,CAAW,EAEtCkB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACS,EAAA,CAAiB,GAAGjB,EAAQ,SAAAF,EAAS,EAGxC,OAAAc,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACd,EAAUE,CAAK,CAAC,EAEb,IACT,EAEAL,EAAY,YAAc,eCpBnB,MAAMuB,EAAO,CAClB,KAAMzB,EACN,OAAQC,EACR,QAASC,CACX"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),t=require("react"),d=require("@chakra-ui/react"),u=require("./useDisclosureState-mIvoKolL.cjs.js"),g=require("./Button-DLCecw8f.cjs.js"),h=require("@chakra-ui/react/styled-system"),S=require("./extract-style-props-B6-o20G1.cjs.js"),j=require("./mergeProps-CxnHrnow.cjs.js"),q=require("./useObjectRef-4v2MxSjQ.cjs.js"),f=t.createContext(void 0);function b(){const e=t.useContext(f);if(e===void 0)throw new Error("useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component");return e}const{withProvider:y,withContext:x}=d.createSlotRecipeContext({key:"collapsibleMotion"}),w=y("div","root"),v=x("button","trigger"),E=x("div","content"),C=t.forwardRef(({children:e,defaultExpanded:r=!1,isExpanded:i,onExpandedChange:l,isDisabled:n=!1,...a},s)=>{const c=u.$bf996d45f4a36925$export$3fcbf6e4407997e0({defaultExpanded:r,isExpanded:i,onExpandedChange:l}),p=t.useRef(null),{buttonProps:M,panelProps:m}=u.$5e910fae8e128ead$export$6e3e27031a30522f({isDisabled:n},c,p),P={isDisabled:n,isExpanded:c.isExpanded,buttonProps:M,panelProps:m,panelRef:p};return o.jsx(f.Provider,{value:P,children:o.jsx(w,{ref:s,...a,children:e})})});C.displayName="CollapsibleMotion.Root";const R=t.forwardRef(({children:e,asChild:r,...i},l)=>{const{buttonProps:n,isDisabled:a}=b(),s=j.$3ef42575df84b30b$export$9d1611c77c2fe928(i,n,{disabled:a});if(r)return o.jsx(h.chakra.button,{asChild:!0,...s,children:e});const[c,p]=S.extractStyleProps(s);return o.jsx(v,{ref:l,...c,asChild:!0,children:o.jsx(g.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...p,children:e})})});R.displayName="CollapsibleMotion.Trigger";const $=t.forwardRef(({children:e,...r},i)=>{const{panelProps:l,isExpanded:n}=b(),a=t.useRef(null),s=q.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(a,i));return o.jsx(E,{ref:s,...r,...l,asChild:!0,children:o.jsx(d.Presence,{present:n,animationName:{_open:"slide-from-top, fade-in",_closed:"slide-to-top, fade-out"},animationDuration:"fast",children:e})})});$.displayName="CollapsibleMotion.Content";const N={Root:C,Trigger:R,Content:$};exports.CollapsibleMotion=N;
|
|
2
|
-
//# sourceMappingURL=collapsible-motion-CUcSKaFQ.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-motion-CUcSKaFQ.cjs.js","sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"collapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild\n if (asChild) {\n return (\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs, Presence } from \"@chakra-ui/react\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import { CollapsibleMotionRoot } from \"./components/collapsible-motion-root\";\nimport { CollapsibleMotionTrigger } from \"./components/collapsible-motion-trigger\";\nimport { CollapsibleMotionContent } from \"./components/collapsible-motion-content\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n Root: CollapsibleMotionRoot,\n Trigger: CollapsibleMotionTrigger,\n Content: CollapsibleMotionContent,\n};\n"],"names":["CollapsibleMotionContext","createContext","useCollapsibleMotionContext","context","useContext","withProvider","withContext","createSlotRecipeContext","CollapsibleMotionRootSlot","CollapsibleMotionTriggerSlot","CollapsibleMotionContentSlot","CollapsibleMotionRoot","forwardRef","children","defaultExpanded","controlledExpanded","onExpandedChange","isDisabled","props","forwardedRef","disclosureState","useDisclosureState","panelRef","useRef","buttonProps","panelProps","useDisclosure","contextValue","jsx","CollapsibleMotionTrigger","asChild","componentProps","mergeProps","chakra","styleProps","restProps","extractStyleProps","RaButton","CollapsibleMotionContent","isExpanded","localRef","ref","useObjectRef","mergeRefs","Presence","CollapsibleMotion"],"mappings":"gXAMaA,EAA2BC,EAAAA,cAEtC,MAAS,EAKJ,SAASC,GAA6D,CAC3E,MAAMC,EAAUC,EAAAA,WAAWJ,CAAwB,EAEnD,GAAIG,IAAY,OACd,MAAM,IAAI,MACR,oFAAA,EAIJ,OAAOA,CACT,CChBA,KAAM,CAAE,aAAAE,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,mBACP,CAAC,EAEYC,EAGTH,EAA6D,MAAO,MAAM,EAEjEI,EAA+BH,EAG1C,SAAU,SAAS,EAERI,EAA+BJ,EAG1C,MAAO,SAAS,ECXLK,EAETC,EAAAA,WACF,CACE,CACE,SAAAC,EACA,gBAAAC,EAAkB,GAClB,WAAYC,EACZ,iBAAAC,EAC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EAAY,WAAAc,CAAA,EAAerC,EAAA,EAG7BsC,EAAWjB,EAAAA,OAAuB,IAAI,EACtCkB,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUH,EAAUrB,CAAY,CAAC,EAE1D,OACES,MAAClB,GAA6B,IAAA+B,EAAW,GAAGvB,EAAQ,GAAGO,EAAY,QAAO,GACxE,SAAAG,EAAAA,IAACgB,EAAAA,SAAA,CACC,QAASL,EACT,cAAe,CACb,MAAO,0BACP,QAAS,wBAAA,EAEX,kBAAkB,OAEjB,SAAA1B,CAAA,CAAA,EAEL,CAEJ,CAAC,EAEDyB,EAAyB,YAAc,4BCtBhC,MAAMO,EAAgD,CAC3D,KAAMlC,EACN,QAASkB,EACT,QAASS,CACX"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as P, useContext as R, forwardRef as c, useRef as d } from "react";
|
|
3
|
-
import { createSlotRecipeContext as h, mergeRefs as v, Presence as w } from "@chakra-ui/react";
|
|
4
|
-
import { $ as y, a as E } from "./useDisclosureState-D1JuSOd2.es.js";
|
|
5
|
-
import { a as S } from "./Button-SjGHt140.es.js";
|
|
6
|
-
import { chakra as N } from "@chakra-ui/react/styled-system";
|
|
7
|
-
import { e as T } from "./extract-style-props-fH5EHRZU.es.js";
|
|
8
|
-
import { $ as k } from "./mergeProps-DtKAFxbD.es.js";
|
|
9
|
-
import { $ as _ } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
10
|
-
const f = /* @__PURE__ */ P(void 0);
|
|
11
|
-
function b() {
|
|
12
|
-
const o = R(f);
|
|
13
|
-
if (o === void 0)
|
|
14
|
-
throw new Error(
|
|
15
|
-
"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component"
|
|
16
|
-
);
|
|
17
|
-
return o;
|
|
18
|
-
}
|
|
19
|
-
const { withProvider: j, withContext: m } = /* @__PURE__ */ h({
|
|
20
|
-
key: "collapsibleMotion"
|
|
21
|
-
}), D = /* @__PURE__ */ j("div", "root"), V = /* @__PURE__ */ m("button", "trigger"), q = /* @__PURE__ */ m("div", "content"), C = /* @__PURE__ */ c(
|
|
22
|
-
({
|
|
23
|
-
children: o,
|
|
24
|
-
defaultExpanded: r = !1,
|
|
25
|
-
isExpanded: s,
|
|
26
|
-
onExpandedChange: i,
|
|
27
|
-
isDisabled: e = !1,
|
|
28
|
-
...l
|
|
29
|
-
}, n) => {
|
|
30
|
-
const a = y({
|
|
31
|
-
defaultExpanded: r,
|
|
32
|
-
isExpanded: s,
|
|
33
|
-
onExpandedChange: i
|
|
34
|
-
}), p = d(null), { buttonProps: $, panelProps: M } = E(
|
|
35
|
-
{ isDisabled: e },
|
|
36
|
-
a,
|
|
37
|
-
p
|
|
38
|
-
), g = {
|
|
39
|
-
isDisabled: e,
|
|
40
|
-
isExpanded: a.isExpanded,
|
|
41
|
-
buttonProps: $,
|
|
42
|
-
panelProps: M,
|
|
43
|
-
panelRef: p
|
|
44
|
-
};
|
|
45
|
-
return /* @__PURE__ */ t(f.Provider, { value: g, children: /* @__PURE__ */ t(D, { ref: n, ...l, children: o }) });
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
C.displayName = "CollapsibleMotion.Root";
|
|
49
|
-
const u = /* @__PURE__ */ c(({ children: o, asChild: r, ...s }, i) => {
|
|
50
|
-
const { buttonProps: e, isDisabled: l } = b(), n = k(s, e, {
|
|
51
|
-
disabled: l
|
|
52
|
-
});
|
|
53
|
-
if (r)
|
|
54
|
-
return /* @__PURE__ */ t(N.button, { asChild: !0, ...n, children: o });
|
|
55
|
-
const [a, p] = T(n);
|
|
56
|
-
return /* @__PURE__ */ t(V, { ref: i, ...a, asChild: !0, children: /* @__PURE__ */ t(S, { ...p, children: o }) });
|
|
57
|
-
});
|
|
58
|
-
u.displayName = "CollapsibleMotion.Trigger";
|
|
59
|
-
const x = /* @__PURE__ */ c(({ children: o, ...r }, s) => {
|
|
60
|
-
const { panelProps: i, isExpanded: e } = b(), l = d(null), n = _(v(l, s));
|
|
61
|
-
return /* @__PURE__ */ t(q, { ref: n, ...r, ...i, asChild: !0, children: /* @__PURE__ */ t(
|
|
62
|
-
w,
|
|
63
|
-
{
|
|
64
|
-
present: e,
|
|
65
|
-
animationName: {
|
|
66
|
-
_open: "slide-from-top, fade-in",
|
|
67
|
-
_closed: "slide-to-top, fade-out"
|
|
68
|
-
},
|
|
69
|
-
animationDuration: "fast",
|
|
70
|
-
children: o
|
|
71
|
-
}
|
|
72
|
-
) });
|
|
73
|
-
});
|
|
74
|
-
x.displayName = "CollapsibleMotion.Content";
|
|
75
|
-
const L = {
|
|
76
|
-
Root: C,
|
|
77
|
-
Trigger: u,
|
|
78
|
-
Content: x
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
L as C
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=collapsible-motion-CqJQvrAr.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-motion-CqJQvrAr.es.js","sources":["../../src/components/collapsible-motion/components/collapsible-motion-context.tsx","../../src/components/collapsible-motion/collapsible-motion.slots.tsx","../../src/components/collapsible-motion/components/collapsible-motion-root.tsx","../../src/components/collapsible-motion/components/collapsible-motion-trigger.tsx","../../src/components/collapsible-motion/components/collapsible-motion-content.tsx","../../src/components/collapsible-motion/collapsible-motion.tsx"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CollapsibleMotionContextValue } from \"../collapsible-motion.types\";\n\n/**\n * React Context for sharing CollapsibleMotion state between compound components\n */\nexport const CollapsibleMotionContext = createContext<\n CollapsibleMotionContextValue | undefined\n>(undefined);\n\n/**\n * Custom hook to consume CollapsibleMotion context\n */\nexport function useCollapsibleMotionContext(): CollapsibleMotionContextValue {\n const context = useContext(CollapsibleMotionContext);\n\n if (context === undefined) {\n throw new Error(\n \"useCollapsibleMotionContext must be used within a CollapsibleMotion.Root component\"\n );\n }\n\n return context;\n}\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { CollapsibleMotionRootSlotProps } from \"./collapsible-motion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"collapsibleMotion\",\n});\n\nexport const CollapsibleMotionRootSlot: SlotComponent<\n HTMLDivElement,\n CollapsibleMotionRootSlotProps\n> = withProvider<HTMLDivElement, CollapsibleMotionRootSlotProps>(\"div\", \"root\");\n\nexport const CollapsibleMotionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const CollapsibleMotionContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"content\");\n","import { useRef, forwardRef } from \"react\";\nimport { useDisclosure } from \"react-aria\";\nimport { useDisclosureState } from \"react-stately\";\nimport { CollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionRootSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionRootProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Root - The root container component that manages state and provides context\n *\n * This component contains all the state management logic and provides context to\n * CollapsibleMotion.Trigger and CollapsibleMotion.Content components.\n */\nexport const CollapsibleMotionRoot: React.ForwardRefExoticComponent<\n CollapsibleMotionRootProps & React.RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, CollapsibleMotionRootProps>(\n (\n {\n children,\n defaultExpanded = false,\n isExpanded: controlledExpanded,\n onExpandedChange,\n isDisabled = false,\n ...props\n },\n forwardedRef\n ) => {\n // Use React Aria's disclosure state management\n const disclosureState = useDisclosureState({\n defaultExpanded,\n isExpanded: controlledExpanded,\n onExpandedChange,\n });\n\n const panelRef = useRef<HTMLDivElement>(null);\n\n // Use React Aria's disclosure hook for ARIA props\n const { buttonProps, panelProps } = useDisclosure(\n { isDisabled },\n disclosureState,\n panelRef\n );\n\n // Context value to provide to child components\n const contextValue = {\n isDisabled,\n isExpanded: disclosureState.isExpanded,\n buttonProps,\n panelProps,\n panelRef,\n };\n\n return (\n <CollapsibleMotionContext.Provider value={contextValue}>\n <CollapsibleMotionRootSlot ref={forwardedRef} {...props}>\n {children}\n </CollapsibleMotionRootSlot>\n </CollapsibleMotionContext.Provider>\n );\n }\n);\n\nCollapsibleMotionRoot.displayName = \"CollapsibleMotion.Root\";\n","import { forwardRef } from \"react\";\nimport { mergeProps } from \"react-aria\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionTriggerSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionTriggerProps } from \"../collapsible-motion.types\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport { chakra } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n/**\n * CollapsibleMotion.Trigger - The trigger button that toggles the collapsible content\n *\n * This component renders a button with proper ARIA attributes for accessibility.\n * It automatically handles the toggle functionality when clicked.\n */\nexport const CollapsibleMotionTrigger = forwardRef<\n HTMLButtonElement,\n CollapsibleMotionTriggerProps\n>(({ children, asChild, ...props }, forwardedRef) => {\n const { buttonProps, isDisabled } = useCollapsibleMotionContext();\n\n // Use mergeProps to properly compose event handlers like React Aria does\n const componentProps = mergeProps(props, buttonProps, {\n disabled: isDisabled,\n });\n\n // If asChild is true, wrap children directly in a button with asChild\n if (asChild) {\n return (\n <chakra.button asChild {...componentProps}>\n {children}\n </chakra.button>\n );\n }\n\n const [styleProps, restProps] = extractStyleProps(componentProps);\n\n // Otherwise, wrap with both CollapsibleMotionTriggerSlot and RaButton\n // Only pass React Aria compatible props to avoid type conflicts\n return (\n <CollapsibleMotionTriggerSlot ref={forwardedRef} {...styleProps} asChild>\n <RaButton {...restProps}>{children}</RaButton>\n </CollapsibleMotionTriggerSlot>\n );\n});\n\nCollapsibleMotionTrigger.displayName = \"CollapsibleMotion.Trigger\";\n","import { forwardRef, useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs, Presence } from \"@chakra-ui/react\";\nimport { useCollapsibleMotionContext } from \"./collapsible-motion-context\";\nimport { CollapsibleMotionContentSlot } from \"../collapsible-motion.slots\";\nimport type { CollapsibleMotionContentProps } from \"../collapsible-motion.types\";\n\n/**\n * CollapsibleMotion.Content - The collapsible content container\n *\n * This component renders the content that will expand and collapse.\n * It handles accessibility attributes through React Aria.\n */\nexport const CollapsibleMotionContent = forwardRef<\n HTMLDivElement,\n CollapsibleMotionContentProps\n>(({ children, ...props }, forwardedRef) => {\n const { panelProps, isExpanded } = useCollapsibleMotionContext();\n\n // Create a local ref and merge with forwardedRef (for user)\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <CollapsibleMotionContentSlot ref={ref} {...props} {...panelProps} asChild>\n <Presence\n present={isExpanded}\n animationName={{\n _open: \"slide-from-top, fade-in\",\n _closed: \"slide-to-top, fade-out\",\n }}\n animationDuration=\"fast\"\n >\n {children}\n </Presence>\n </CollapsibleMotionContentSlot>\n );\n});\n\nCollapsibleMotionContent.displayName = \"CollapsibleMotion.Content\";\n","import { CollapsibleMotionRoot } from \"./components/collapsible-motion-root\";\nimport { CollapsibleMotionTrigger } from \"./components/collapsible-motion-trigger\";\nimport { CollapsibleMotionContent } from \"./components/collapsible-motion-content\";\n\n// Exports for internal use by react-docgen\nexport {\n CollapsibleMotionRoot as _CollapsibleMotionRoot,\n CollapsibleMotionTrigger as _CollapsibleMotionTrigger,\n CollapsibleMotionContent as _CollapsibleMotionContent,\n};\n\ntype CollapsibleMotionNamespace = {\n Root: typeof CollapsibleMotionRoot;\n Trigger: typeof CollapsibleMotionTrigger;\n Content: typeof CollapsibleMotionContent;\n};\n\nexport const CollapsibleMotion: CollapsibleMotionNamespace = {\n Root: CollapsibleMotionRoot,\n Trigger: CollapsibleMotionTrigger,\n Content: CollapsibleMotionContent,\n};\n"],"names":["CollapsibleMotionContext","createContext","useCollapsibleMotionContext","context","useContext","withProvider","withContext","createSlotRecipeContext","CollapsibleMotionRootSlot","CollapsibleMotionTriggerSlot","CollapsibleMotionContentSlot","CollapsibleMotionRoot","forwardRef","children","defaultExpanded","controlledExpanded","onExpandedChange","isDisabled","props","forwardedRef","disclosureState","useDisclosureState","panelRef","useRef","buttonProps","panelProps","useDisclosure","contextValue","jsx","CollapsibleMotionTrigger","asChild","componentProps","mergeProps","chakra","styleProps","restProps","extractStyleProps","RaButton","CollapsibleMotionContent","isExpanded","localRef","ref","useObjectRef","mergeRefs","Presence","CollapsibleMotion"],"mappings":";;;;;;;;;AAMO,MAAMA,IAA2B,gBAAAC,EAEtC,MAAS;AAKJ,SAASC,IAA6D;AAC3E,QAAMC,IAAUC,EAAWJ,CAAwB;AAEnD,MAAIG,MAAY;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAIJ,SAAOA;AACT;AChBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAA6D,OAAO,MAAM,GAEjEI,IAA+B,gBAAAH,EAG1C,UAAU,SAAS,GAERI,IAA+B,gBAAAJ,EAG1C,OAAO,SAAS,GCXLK,IAET,gBAAAC;AAAA,EACF,CACE;AAAA,IACE,UAAAC;AAAA,IACA,iBAAAC,IAAkB;AAAA,IAClB,YAAYC;AAAA,IACZ,kBAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,GAAGC;AAAA,EAAA,GAELC,MACG;AAEH,UAAMC,IAAkBC,EAAmB;AAAA,MACzC,iBAAAP;AAAA,MACA,YAAYC;AAAA,MACZ,kBAAAC;AAAA,IAAA,CACD,GAEKM,IAAWC,EAAuB,IAAI,GAGtC,EAAE,aAAAC,GAAa,YAAAC,EAAA,IAAeC;AAAAA,MAClC,EAAE,YAAAT,EAAA;AAAA,MACFG;AAAA,MACAE;AAAA,IAAA,GAIIK,IAAe;AAAA,MACnB,YAAAV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eAAe;AAAA,QACb,OAAO;AAAA,QACP,SAAS;AAAA,MAAA;AAAA,MAEX,mBAAkB;AAAA,MAEjB,UAAA1B;AAAA,IAAA;AAAA,EAAA,GAEL;AAEJ,CAAC;AAEDyB,EAAyB,cAAc;ACtBhC,MAAMO,IAAgD;AAAA,EAC3D,MAAMlC;AAAA,EACN,SAASkB;AAAA,EACT,SAASS;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),y=require("@chakra-ui/react"),P=require("@commercetools/nimbus-icons"),x=require("./DatePicker-DGLrUdLu.cjs.js"),T=require("./Dialog-Ye_7tQZU.cjs.js"),q=require("./Group-1nWkximy.cjs.js"),v=require("@chakra-ui/react/styled-system"),C=require("./index-8m2zx8YL.cjs.js"),I=require("./extract-style-props-B6-o20G1.cjs.js"),f=require("react"),h=require("react-intl"),M=require("./time-input-DWrgu6Yp.cjs.js"),E=require("@chakra-ui/react/flex"),H=require("./text-BtRhIklG.cjs.js"),k=require("./Button-DLCecw8f.cjs.js"),S=require("./utils-DVb3jcp5.cjs.js"),R=require("./DateField-B5u8QZFY.cjs.js"),N=require("./date-input-CXFII_3C.cjs.js"),V=require("./calendar-BiE914Ki.cjs.js"),B=require("./box-CWni3A32.cjs.js"),D=require("./icon-button-C_itb6iA.cjs.js"),{withProvider:w,withContext:g}=y.createSlotRecipeContext({key:"datePicker"}),z=w("div","root"),F=g("div","group"),G=g("div","popover"),A=g("div","calendar"),m=h.defineMessages({clearInput:{id:"Nimbus.DatePicker.clearInput",description:"aria-label for clear input button in date picker",defaultMessage:"Clear input value"},enterTime:{id:"Nimbus.DatePicker.Time.enterTime",description:"aria-label for time input field in date picker",defaultMessage:"Enter time"},enterTimeHour:{id:"Nimbus.DatePicker.Time.enterTimeHour",description:"aria-label for hour-only time input in date picker",defaultMessage:"Enter time (hour)"},enterTimeHourMinute:{id:"Nimbus.DatePicker.Time.enterTimeHourMinute",description:"aria-label for hour and minute time input in date picker",defaultMessage:"Enter time (hour and minute)"},enterTimeHourMinuteSecond:{id:"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond",description:"aria-label for full time input with seconds in date picker",defaultMessage:"Enter time (hour, minute, and second)"},startTime:{id:"Nimbus.DatePicker.Time.startTime",description:"Label for start time in date picker",defaultMessage:"Start time"}}),L=({hideTimeZone:n,hourCycle:r})=>{const s=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:a,dateValue:t}=s,o=f.useRef(null),u=f.useRef(t);return a==="day"?null:(f.useEffect(()=>{let i;if(t&&u.current?.compare(t)!==0){const c=o.current,l=document.activeElement;c?.contains(l)&&l?.getAttribute("role")==="spinbutton"||(i=setTimeout(()=>{c&&c.querySelector('[role="spinbutton"]')?.focus()},50))}return u.current=t,()=>{i&&clearTimeout(i)}},[t]),e.jsxs(E.Flex,{ref:o,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(H.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:e.jsx(h.FormattedMessage,{...m.startTime})}),e.jsx(M.TimeInput,{slot:"timeInput",variant:"ghost",size:"sm",hideTimeZone:n,hourCycle:r})]}))},O=({children:n})=>{const r=h.useIntl(),s=S.$64fa3d84918910a7$export$fabf2dc03a41866e(k.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},a=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),t=a?.dateValue===null,{timeValue:o,setTimeValue:u,granularity:i}=a,c=s?.isDisabled,l=()=>{switch(i){case"hour":return r.formatMessage(m.enterTimeHour);case"minute":return r.formatMessage(m.enterTimeHourMinute);case"second":return r.formatMessage(m.enterTimeHourMinuteSecond);default:return r.formatMessage(m.enterTime)}},b={calendarToggle:{...s,onPress:d=>{const $=document?.activeElement;$&&$.blur(),s.onPress?.(d)}},clear:{onPress:()=>a?.setValue(null),"aria-label":r.formatMessage(m.clearInput),isDisabled:c,style:t?{display:"none"}:void 0,"aria-hidden":t?!0:void 0}},p={timeInput:{value:o,onChange:d=>{d!==null&&u(d)},granularity:i==="day"?void 0:i,"aria-label":l()}};return e.jsx(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[k.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:b}],[R.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:p}]],children:n})},j=n=>{const{size:r="md",variant:s,granularity:a="day",hideTimeZone:t,hourCycle:o}=n,u=v.useSlotRecipe({recipe:C.datePickerSlotRecipe}),[i,c]=u.splitVariantProps(n),[l,b]=I.extractStyleProps(c),p=r==="md"?"xs":"2xs",d=a==="day"?n.shouldCloseOnSelect:!1;return e.jsx(z,{...i,...l,asChild:!0,children:e.jsx(x.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...b,shouldCloseOnSelect:d,children:e.jsxs(O,{children:[e.jsx(F,{asChild:!0,children:e.jsx(q.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:e.jsx(N.DateInput,{size:r,variant:s,width:"full",hideTimeZone:t,hourCycle:o,trailingElement:e.jsxs(B.Box,{children:[e.jsx(D.IconButton,{variant:"ghost",size:p,slot:"clear",children:e.jsx(P.Close,{})}),e.jsx(D.IconButton,{variant:"ghost",size:p,slot:"calendarToggle",children:e.jsx(P.CalendarMonth,{})})]})})})}),e.jsx(G,{asChild:!0,children:e.jsx(T.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(T.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(A,{children:e.jsx(V.Calendar,{})}),e.jsx(L,{hideTimeZone:t,hourCycle:o})]})})})]})})})};j.displayName="DatePicker";exports.DatePicker=j;
|
|
2
|
-
//# sourceMappingURL=date-picker-BzSXCoJ0.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-BzSXCoJ0.cjs.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DatePickerRootSlotProps } from \"./date-picker.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"datePicker\",\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootSlotProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport { messages } from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","datePickerSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":"kyBAOM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,YACP,CAAC,EAMYC,EAAqBH,EAGhC,MAAO,MAAM,EAKFI,EAAsBH,EAGjC,MAAO,OAAO,EAKHI,EAAwBJ,EAGnC,MAAO,SAAS,EAKLK,EAAyBL,EAGpC,MAAO,UAAU,ECxCNM,EAAWC,EAAAA,eAAe,CACrC,WAAY,CACV,GAAI,+BACJ,YAAa,mDACb,eAAgB,mBAAA,EAElB,UAAW,CACT,GAAI,mCACJ,YAAa,iDACb,eAAgB,YAAA,EAElB,cAAe,CACb,GAAI,uCACJ,YAAa,qDACb,eAAgB,mBAAA,EAElB,oBAAqB,CACnB,GAAI,6CACJ,YAAa,2DACb,eAAgB,8BAAA,EAElB,0BAA2B,CACzB,GAAI,mDACJ,YAAa,6DACb,eAAgB,uCAAA,EAElB,U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EACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ,CAEJ,EAEAqC,EAAW,YAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-Zz2Sp3S6.es.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DatePickerRootSlotProps } from \"./date-picker.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"datePicker\",\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootSlotProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport { messages } from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","datePickerSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IAAqB,gBAAAH,EAGhC,OAAO,MAAM,GAKFI,IAAsB,gBAAAH,EAGjC,OAAO,OAAO,GAKHI,IAAwB,gBAAAJ,EAGnC,OAAO,SAAS,GAKLK,IAAyB,gBAAAL,EAGpC,OAAO,UAAU,GCxCNM,IAAW,gBAAAC,EAAe;AAAA,EACrC,YAAY;AAAA,IACV,IAAI;AAAA,I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react/jsx-runtime";
|
|
2
|
-
import { forwardRef as R } from "react";
|
|
3
|
-
import { D as g } from "./date-range-picker-B2Cln3mU.es.js";
|
|
4
|
-
import { F as r } from "./form-field-C25xvMEM.es.js";
|
|
5
|
-
import { F as k } from "./field-errors-ClQprmQz.es.js";
|
|
6
|
-
const x = /* @__PURE__ */ R(function({
|
|
7
|
-
id: a,
|
|
8
|
-
label: s,
|
|
9
|
-
description: i,
|
|
10
|
-
info: l,
|
|
11
|
-
errors: o,
|
|
12
|
-
renderError: d,
|
|
13
|
-
touched: f = !1,
|
|
14
|
-
isRequired: p = !1,
|
|
15
|
-
isDisabled: n = !1,
|
|
16
|
-
isReadOnly: t = !1,
|
|
17
|
-
direction: F = "column",
|
|
18
|
-
size: c = "md",
|
|
19
|
-
...h
|
|
20
|
-
}, D) {
|
|
21
|
-
const m = f && o && Object.values(o).some(Boolean);
|
|
22
|
-
return /* @__PURE__ */ u(
|
|
23
|
-
r.Root,
|
|
24
|
-
{
|
|
25
|
-
ref: D,
|
|
26
|
-
id: a,
|
|
27
|
-
direction: F,
|
|
28
|
-
size: c,
|
|
29
|
-
isInvalid: m,
|
|
30
|
-
isRequired: p,
|
|
31
|
-
isDisabled: n,
|
|
32
|
-
isReadOnly: t,
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ e(r.Label, { children: s }),
|
|
35
|
-
/* @__PURE__ */ e(r.Input, { children: /* @__PURE__ */ e(
|
|
36
|
-
g,
|
|
37
|
-
{
|
|
38
|
-
size: c,
|
|
39
|
-
isDisabled: n,
|
|
40
|
-
isReadOnly: t,
|
|
41
|
-
...h
|
|
42
|
-
}
|
|
43
|
-
) }),
|
|
44
|
-
i && /* @__PURE__ */ e(r.Description, { children: i }),
|
|
45
|
-
l && /* @__PURE__ */ e(r.InfoBox, { children: l }),
|
|
46
|
-
m && /* @__PURE__ */ e(r.Error, { children: /* @__PURE__ */ e(
|
|
47
|
-
k,
|
|
48
|
-
{
|
|
49
|
-
id: `${a}-errors`,
|
|
50
|
-
errors: o,
|
|
51
|
-
renderError: d
|
|
52
|
-
}
|
|
53
|
-
) })
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
});
|
|
58
|
-
x.displayName = "DateRangePickerField";
|
|
59
|
-
export {
|
|
60
|
-
x as D
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=date-range-picker-field-BUaFYM2O.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker-field-BUaFYM2O.es.js","sources":["../../src/patterns/fields/date-range-picker-field/date-range-picker-field.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { DateRangePicker } from \"@/components/date-range-picker\";\nimport { FormField, FieldErrors } from \"@/components\";\nimport type { DateRangePickerFieldProps } from \"./date-range-picker-field.types\";\n\n/**\n * # DateRangePickerField\n *\n * A form field component that combines DateRangePicker with Form Field features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component follows the same API pattern as other field components in the UI-Kit,\n * providing a consistent interface for date range selection within forms.\n *\n * @example\n * ```tsx\n * <DateRangePickerField\n * label=\"Date Range\"\n * description=\"Select a start and end date\"\n * value={dateRange}\n * onChange={handleChange}\n * errors={errors}\n * touched={touched}\n * isRequired\n * />\n * ```\n */\nexport const DateRangePickerField = forwardRef<\n HTMLDivElement,\n DateRangePickerFieldProps\n>(function DateRangePickerField(\n {\n id,\n label,\n description,\n info,\n errors,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n direction = \"column\",\n size = \"md\",\n ...dateRangePickerProps\n },\n ref\n) {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n ref={ref}\n id={id}\n direction={direction as \"row\" | \"column\"}\n size={size}\n isInvalid={hasErrors}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <DateRangePicker\n size={size}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n {...dateRangePickerProps}\n />\n </FormField.Input>\n\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors\n id={`${id}-errors`}\n errors={errors}\n renderError={renderError}\n />\n </FormField.Error>\n )}\n </FormField.Root>\n );\n});\n\nDateRangePickerField.displayName = \"DateRangePickerField\";\n"],"names":["DateRangePickerField","forwardRef","id","label","description","info","errors","renderError","touched","isRequired","isDisabled","isReadOnly","direction","size","dateRangePickerProps","ref","hasErrors","jsxs","FormField","jsx","DateRangePicker","FieldErrors"],"mappings":";;;;;AA2BO,MAAMA,IAAuB,gBAAAC,EAGlC,SACA;AAAA,EACE,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,GACAC,GACA;AAEA,QAAMC,IAAYR,KAAWF,KAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO;AAEzE,SACE,gBAAAW;AAAA,IAACC,EAAU;AAAA,IAAV;AAAA,MACC,KAAAH;AAAA,MACA,IAAAb;AAAA,MACA,WAAAU;AAAA,MACA,MAAAC;AAAA,MACA,WAAWG;AAAA,MACX,YAAAP;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAQ,EAACD,EAAU,OAAV,EAAiB,UAAAf,EAAA,CAAM;AAAA,QACxB,gBAAAgB,EAACD,EAAU,OAAV,EACC,UAAA,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,MAAAP;AAAA,YACA,YAAAH;AAAA,YACA,YAAAC;AAAA,YACC,GAAGG;AAAA,UAAA;AAAA,QAAA,GAER;AAAA,QAECV,KACC,gBAAAe,EAACD,EAAU,aAAV,EAAuB,UAAAd,GAAY;AAAA,QAGrCC,KAAQ,gBAAAc,EAACD,EAAU,SAAV,EAAmB,UAAAb,GAAK;AAAA,QACjCW,KACC,gBAAAG,EAACD,EAAU,OAAV,EACC,UAAA,gBAAAC;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAI,GAAGnB,CAAE;AAAA,YACT,QAAAI;AAAA,YACA,aAAAC;AAAA,UAAA;AAAA,QAAA,EACF,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;AAEDP,EAAqB,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("react"),g=require("./date-range-picker-H_YtkQRE.cjs.js"),r=require("./form-field-CpRzgqpq.cjs.js"),k=require("./field-errors-D2re_C_c.cjs.js"),t=h.forwardRef(function({id:l,label:F,description:n,info:o,errors:i,renderError:m,touched:u=!1,isRequired:j=!1,isDisabled:s=!1,isReadOnly:a=!1,direction:x="column",size:c="md",...f},R){const d=u&&i&&Object.values(i).some(Boolean);return e.jsxs(r.FormField.Root,{ref:R,id:l,direction:x,size:c,isInvalid:d,isRequired:j,isDisabled:s,isReadOnly:a,children:[e.jsx(r.FormField.Label,{children:F}),e.jsx(r.FormField.Input,{children:e.jsx(g.DateRangePicker,{size:c,isDisabled:s,isReadOnly:a,...f})}),n&&e.jsx(r.FormField.Description,{children:n}),o&&e.jsx(r.FormField.InfoBox,{children:o}),d&&e.jsx(r.FormField.Error,{children:e.jsx(k.FieldErrors,{id:`${l}-errors`,errors:i,renderError:m})})]})});t.displayName="DateRangePickerField";exports.DateRangePickerField=t;
|
|
2
|
-
//# sourceMappingURL=date-range-picker-field-CS0YU89_.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker-field-CS0YU89_.cjs.js","sources":["../../src/patterns/fields/date-range-picker-field/date-range-picker-field.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { DateRangePicker } from \"@/components/date-range-picker\";\nimport { FormField, FieldErrors } from \"@/components\";\nimport type { DateRangePickerFieldProps } from \"./date-range-picker-field.types\";\n\n/**\n * # DateRangePickerField\n *\n * A form field component that combines DateRangePicker with Form Field features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component follows the same API pattern as other field components in the UI-Kit,\n * providing a consistent interface for date range selection within forms.\n *\n * @example\n * ```tsx\n * <DateRangePickerField\n * label=\"Date Range\"\n * description=\"Select a start and end date\"\n * value={dateRange}\n * onChange={handleChange}\n * errors={errors}\n * touched={touched}\n * isRequired\n * />\n * ```\n */\nexport const DateRangePickerField = forwardRef<\n HTMLDivElement,\n DateRangePickerFieldProps\n>(function DateRangePickerField(\n {\n id,\n label,\n description,\n info,\n errors,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n direction = \"column\",\n size = \"md\",\n ...dateRangePickerProps\n },\n ref\n) {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n ref={ref}\n id={id}\n direction={direction as \"row\" | \"column\"}\n size={size}\n isInvalid={hasErrors}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <DateRangePicker\n size={size}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n {...dateRangePickerProps}\n />\n </FormField.Input>\n\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors\n id={`${id}-errors`}\n errors={errors}\n renderError={renderError}\n />\n </FormField.Error>\n )}\n </FormField.Root>\n );\n});\n\nDateRangePickerField.displayName = \"DateRangePickerField\";\n"],"names":["DateRangePickerField","forwardRef","id","label","description","info","errors","renderError","touched","isRequired","isDisabled","isReadOnly","direction","size","dateRangePickerProps","ref","hasErrors","jsxs","FormField","jsx","DateRangePicker","FieldErrors"],"mappings":"4MA2BaA,EAAuBC,EAAAA,WAGlC,SACA,CACE,GAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,OAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,GACV,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,UAAAC,EAAY,SACZ,KAAAC,EAAO,KACP,GAAGC,CACL,EACAC,EACA,CAEA,MAAMC,EAAYR,GAAWF,GAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO,EAEzE,OACEW,EAAAA,KAACC,EAAAA,UAAU,KAAV,CACC,IAAAH,EACA,GAAAb,EACA,UAAAU,EACA,KAAAC,EACA,UAAWG,EACX,WAAAP,EACA,WAAAC,EACA,WAAAC,EAEA,SAAA,CAAAQ,EAAAA,IAACD,EAAAA,UAAU,MAAV,CAAiB,SAAAf,CAAA,CAAM,EACxBgB,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACC,EAAAA,gBAAA,CACC,KAAAP,EACA,WAAAH,EACA,WAAAC,EACC,GAAGG,CAAA,CAAA,EAER,EAECV,GACCe,EAAAA,IAACD,EAAAA,UAAU,YAAV,CAAuB,SAAAd,EAAY,EAGrCC,GAAQc,EAAAA,IAACD,EAAAA,UAAU,QAAV,CAAmB,SAAAb,EAAK,EACjCW,GACCG,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACE,EAAAA,YAAA,CACC,GAAI,GAAGnB,CAAE,UACT,OAAAI,EACA,YAAAC,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CAIR,CAAC,EAEDP,EAAqB,YAAc"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./dialog.close-trigger-Y9dS7xOy.cjs.js"),e={Root:o.DialogRoot,Trigger:o.DialogTrigger,Content:o.DialogContent,Header:o.DialogHeader,Body:o.DialogBody,Footer:o.DialogFooter,Title:o.DialogTitle,CloseTrigger:o.DialogCloseTrigger};exports.Dialog=e;
|
|
2
|
-
//# sourceMappingURL=dialog-D7sGE9KU.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-D7sGE9KU.cjs.js","sources":["../../src/components/dialog/dialog.tsx"],"sourcesContent":["import { DialogRoot } from \"./components/dialog.root\";\nimport { DialogTrigger } from \"./components/dialog.trigger\";\nimport { DialogContent } from \"./components/dialog.content\";\nimport { DialogHeader } from \"./components/dialog.header\";\nimport { DialogBody } from \"./components/dialog.body\";\nimport { DialogFooter } from \"./components/dialog.footer\";\nimport { DialogTitle } from \"./components/dialog.title\";\nimport { DialogCloseTrigger } from \"./components/dialog.close-trigger\";\n\n/**\n * Dialog\n * ============================================================\n * A foundational dialog component for overlays that require user attention.\n * Built with React Aria Components for accessibility and WCAG 2.1 AA compliance.\n *\n * Features:\n * - Controlled and uncontrolled modes\n * - Customizable placement, size, and animations\n * - Focus management and keyboard navigation\n * - Click-outside and Escape key dismissal\n * - Portal rendering support\n * - Backdrop overlay with animations\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Trigger>Open Dialog</Dialog.Trigger>\n * <Dialog.Content size=\"md\" placement=\"center\">\n * <Dialog.Header>\n * <Dialog.Title>Dialog Title</Dialog.Title>\n * <Dialog.CloseTrigger>×</Dialog.CloseTrigger>\n * </Dialog.Header>\n * <Dialog.Body>\n * Dialog content goes here\n * </Dialog.Body>\n * <Dialog.Footer>\n * <button>Cancel</button>\n * <button>Save</button>\n * </Dialog.Footer>\n * </Dialog.Content>\n * </Dialog.Root>\n * ```\n *\n * @see https://nimbus-documentation.vercel.app/components/feedback/dialog\n */\nexport const Dialog = {\n /**\n * # Dialog.Root\n *\n * The root component that provides context and state management for the dialog.\n * Uses React Aria's DialogTrigger for accessibility and keyboard interaction.\n *\n * This component must wrap all dialog parts (Trigger, Content, etc.) and provides\n * the dialog open/close state and variant styling context.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Trigger>Open Dialog</Dialog.Trigger>\n * <Dialog.Content>\n * <Dialog.Header>\n * <Dialog.Title>Dialog Title</Dialog.Title>\n * </Dialog.Header>\n * <Dialog.Body>Dialog content</Dialog.Body>\n * </Dialog.Content>\n * </Dialog.Root>\n * ```\n */\n Root: DialogRoot,\n /**\n * # Dialog.Trigger\n *\n * The trigger element that opens the dialog when activated.\n * Uses React Aria's Button for accessibility and keyboard support.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Trigger>Open Dialog</Dialog.Trigger>\n * <Dialog.Content>...</Dialog.Content>\n * </Dialog.Root>\n * ```\n */\n Trigger: DialogTrigger,\n /**\n * # Dialog.Content\n *\n * The main dialog content container that wraps React Aria's Modal and Dialog.\n * Handles portalling, backdrop, positioning, and content styling.\n *\n * This component creates the dialog overlay, positions the content, and provides\n * accessibility features like focus management and keyboard dismissal.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Trigger>Open Dialog</Dialog.Trigger>\n * <Dialog.Content size=\"md\" placement=\"center\">\n * <Dialog.Header>\n * <Dialog.Title>Title</Dialog.Title>\n * </Dialog.Header>\n * <Dialog.Body>Content</Dialog.Body>\n * <Dialog.Footer>Actions</Dialog.Footer>\n * </Dialog.Content>\n * </Dialog.Root>\n * ```\n */\n Content: DialogContent,\n /**\n * # Dialog.Header\n *\n * The header section of the dialog content.\n * Typically contains the title and close button.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Header>\n * <Dialog.Title>Dialog Title</Dialog.Title>\n * <Dialog.CloseTrigger />\n * </Dialog.Header>\n * <Dialog.Body>...</Dialog.Body>\n * </Dialog.Content>\n * ```\n */\n Header: DialogHeader,\n /**\n * # Dialog.Body\n *\n * The main body content section of the dialog.\n * Contains the primary dialog content and handles overflow/scrolling.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Header>...</Dialog.Header>\n * <Dialog.Body>\n * <p>This is the main content of the dialog.</p>\n * </Dialog.Body>\n * <Dialog.Footer>...</Dialog.Footer>\n * </Dialog.Content>\n * ```\n */\n Body: DialogBody,\n /**\n * # Dialog.Footer\n *\n * The footer section of the dialog, typically containing action buttons.\n * Provides consistent spacing and alignment for dialog actions.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Header>...</Dialog.Header>\n * <Dialog.Body>...</Dialog.Body>\n * <Dialog.Footer>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </Dialog.Footer>\n * </Dialog.Content>\n * ```\n */\n Footer: DialogFooter,\n /**\n * # Dialog.Title\n *\n * The accessible title element for the dialog.\n * Uses React Aria's Heading for proper accessibility and screen reader support.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Header>\n * <Dialog.Title>Confirm Action</Dialog.Title>\n * </Dialog.Header>\n * <Dialog.Body>...</Dialog.Body>\n * </Dialog.Content>\n * ```\n */\n Title: DialogTitle,\n /**\n * # Dialog.CloseTrigger\n *\n * A button that closes the dialog when activated.\n * Displays an IconButton with a close (X) icon by default.\n *\n * The component automatically handles the close behavior through React Aria's\n * context, so no additional onPress handler is needed.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Trigger>Open Dialog</Dialog.Trigger>\n * <Dialog.Content>\n * <Dialog.Header>\n * <Dialog.Title>Title</Dialog.Title>\n * <Dialog.CloseTrigger aria-label=\"Close dialog\" />\n * </Dialog.Header>\n * <Dialog.Body>Content</Dialog.Body>\n * </Dialog.Content>\n * </Dialog.Root>\n * ```\n */\n CloseTrigger: DialogCloseTrigger,\n};\n\n// Internal exports for react-docgen\nexport {\n DialogRoot as _DialogRoot,\n DialogTrigger as _DialogTrigger,\n DialogContent as _DialogContent,\n DialogHeader as _DialogHeader,\n DialogBody as _DialogBody,\n DialogFooter as _DialogFooter,\n DialogTitle as _DialogTitle,\n DialogCloseTrigger as _DialogCloseTrigger,\n};\n"],"names":["Dialog","DialogRoot","DialogTrigger","DialogContent","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogCloseTrigger"],"mappings":"uEA6CaA,EAAS,CAuBpB,KAAMC,EAAAA,WAeN,QAASC,EAAAA,cAwBT,QAASC,EAAAA,cAkBT,OAAQC,EAAAA,aAkBR,KAAMC,EAAAA,WAmBN,OAAQC,EAAAA,aAiBR,MAAOC,EAAAA,YAwBP,aAAcC,EAAAA,kBAChB"}
|