@commercetools/nimbus 0.0.0-canary-20260202081119 → 0.0.0-canary-20260202081146
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-BrBiodxC.es.js → Button-C9AKe3Kt.es.js} +7 -7
- package/dist/chunks/{Button-BrBiodxC.es.js.map → Button-C9AKe3Kt.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-DnWyyqoq.es.js → CollectionBuilder-CTjJUDzO.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-DnWyyqoq.es.js.map → CollectionBuilder-CTjJUDzO.es.js.map} +1 -1
- package/dist/chunks/{DateField-r7pPRrtD.es.js → DateField-Q8JgjnI7.es.js} +22 -22
- package/dist/chunks/{DateField-r7pPRrtD.es.js.map → DateField-Q8JgjnI7.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-C9zScD7x.es.js → DatePicker-Q7fh8tyb.es.js} +17 -17
- package/dist/chunks/{DatePicker-C9zScD7x.es.js.map → DatePicker-Q7fh8tyb.es.js.map} +1 -1
- package/dist/chunks/{Dialog-M8kJyYfo.es.js → Dialog-7Yf08giu.es.js} +27 -27
- package/dist/chunks/{Dialog-M8kJyYfo.es.js.map → Dialog-7Yf08giu.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-DZJUM9R0.es.js → FocusScope-DI1zU4s2.es.js} +40 -40
- package/dist/chunks/{FocusScope-DZJUM9R0.es.js.map → FocusScope-DI1zU4s2.es.js.map} +1 -1
- package/dist/chunks/{Group-BARE8__M.es.js → Group-GVlDKuLP.es.js} +8 -8
- package/dist/chunks/{Group-BARE8__M.es.js.map → Group-GVlDKuLP.es.js.map} +1 -1
- package/dist/chunks/{Header-Q93EHFv5.es.js → Header-BQ99pNEi.es.js} +5 -5
- package/dist/chunks/{Header-Q93EHFv5.es.js.map → Header-BQ99pNEi.es.js.map} +1 -1
- package/dist/chunks/{Heading-BJcmpbAP.es.js → Heading-C0SIgP_B.es.js} +15 -15
- package/dist/chunks/{Heading-BJcmpbAP.es.js.map → Heading-C0SIgP_B.es.js.map} +1 -1
- package/dist/chunks/{Input-CuunJByD.es.js → Input-CXkgRPwc.es.js} +5 -5
- package/dist/chunks/{Input-CuunJByD.es.js.map → Input-CXkgRPwc.es.js.map} +1 -1
- package/dist/chunks/{Label-DzlUkY7S.es.js → Label-BPLFvUwR.es.js} +2 -2
- package/dist/chunks/{Label-DzlUkY7S.es.js.map → Label-BPLFvUwR.es.js.map} +1 -1
- package/dist/chunks/{ListBox-ClTyOL5N.es.js → ListBox-Bp_3E18l.es.js} +18 -18
- package/dist/chunks/{ListBox-ClTyOL5N.es.js.map → ListBox-Bp_3E18l.es.js.map} +1 -1
- package/dist/chunks/{Modal-CsAnzEA5.es.js → Modal-DCxn1MEV.es.js} +8 -8
- package/dist/chunks/{Modal-CsAnzEA5.es.js.map → Modal-DCxn1MEV.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-CF56mwyl.es.js → OverlayArrow-DQTbb80n.es.js} +4 -4
- package/dist/chunks/{OverlayArrow-CF56mwyl.es.js.map → OverlayArrow-DQTbb80n.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DTI_fLJA.es.js → ProgressBar-DByVsgd2.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DTI_fLJA.es.js.map → ProgressBar-DByVsgd2.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-SxlEWGRG.es.js → SelectionManager-GNsyMc-q.es.js} +27 -27
- package/dist/chunks/{SelectionManager-SxlEWGRG.es.js.map → SelectionManager-GNsyMc-q.es.js.map} +1 -1
- package/dist/chunks/{Separator-BgEvikbj.es.js → Separator-DFaT-SpI.es.js} +4 -4
- package/dist/chunks/{Separator-BgEvikbj.es.js.map → Separator-DFaT-SpI.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-qFo3cWiy.es.js → ToggleButton-BwI1d60i.es.js} +7 -7
- package/dist/chunks/{ToggleButton-qFo3cWiy.es.js.map → ToggleButton-BwI1d60i.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-DLqPGJYq.es.js → VisuallyHidden-BW_C1pFq.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-DLqPGJYq.es.js.map → VisuallyHidden-BW_C1pFq.es.js.map} +1 -1
- package/dist/chunks/{accordion-CPHlDEVX.cjs.js → accordion-6JxQb_15.cjs.js} +2 -2
- package/dist/chunks/{accordion-CPHlDEVX.cjs.js.map → accordion-6JxQb_15.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BOPhM_Jo.es.js → accordion-KXi53sSd.es.js} +2 -2
- package/dist/chunks/{accordion-BOPhM_Jo.es.js.map → accordion-KXi53sSd.es.js.map} +1 -1
- package/dist/chunks/accordion.content-DWXekiUB.cjs.js +2 -0
- package/dist/chunks/accordion.content-DWXekiUB.cjs.js.map +1 -0
- package/dist/chunks/{accordion.content-fGWou3mO.es.js → accordion.content-I6FlZR6t.es.js} +23 -24
- package/dist/chunks/accordion.content-I6FlZR6t.es.js.map +1 -0
- package/dist/chunks/{alert-CsKET1Gk.cjs.js → alert-BYLSKkn9.cjs.js} +2 -2
- package/dist/chunks/{alert-CsKET1Gk.cjs.js.map → alert-BYLSKkn9.cjs.js.map} +1 -1
- package/dist/chunks/{alert-BP6cBJLk.es.js → alert-Npb00ttk.es.js} +2 -2
- package/dist/chunks/{alert-BP6cBJLk.es.js.map → alert-Npb00ttk.es.js.map} +1 -1
- package/dist/chunks/{animation-Bohcm6xh.es.js → animation-BfmkkMe7.es.js} +2 -2
- package/dist/chunks/{animation-Bohcm6xh.es.js.map → animation-BfmkkMe7.es.js.map} +1 -1
- package/dist/chunks/{badge-CXp4Uw9R.es.js → badge-DwmHoD-d.es.js} +2 -2
- package/dist/chunks/{badge-CXp4Uw9R.es.js.map → badge-DwmHoD-d.es.js.map} +1 -1
- package/dist/chunks/{button-CV_nkeaG.es.js → button-BX2O6MQP.es.js} +10 -10
- package/dist/chunks/{button-CV_nkeaG.es.js.map → button-BX2O6MQP.es.js.map} +1 -1
- package/dist/chunks/{button-Co7BsYzy.cjs.js → button-CkOEhYmQ.cjs.js} +2 -2
- package/dist/chunks/{button-Co7BsYzy.cjs.js.map → button-CkOEhYmQ.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-DyaRBars.es.js → calendar-B3GH1VKH.es.js} +9 -9
- package/dist/chunks/{calendar-DyaRBars.es.js.map → calendar-B3GH1VKH.es.js.map} +1 -1
- package/dist/chunks/{calendar-hRRhcG4n.cjs.js → calendar-BvkyaZlH.cjs.js} +2 -2
- package/dist/chunks/{calendar-hRRhcG4n.cjs.js.map → calendar-BvkyaZlH.cjs.js.map} +1 -1
- package/dist/chunks/{card-CLmYClW5.cjs.js → card-CItWGkci.cjs.js} +2 -2
- package/dist/chunks/{card-CLmYClW5.cjs.js.map → card-CItWGkci.cjs.js.map} +1 -1
- package/dist/chunks/{card-VQ8L4o8w.es.js → card-DOAYigZ-.es.js} +2 -2
- package/dist/chunks/{card-VQ8L4o8w.es.js.map → card-DOAYigZ-.es.js.map} +1 -1
- package/dist/chunks/{checkbox-cBmFBUSR.es.js → checkbox-CJUPY60M.es.js} +10 -10
- package/dist/chunks/{checkbox-cBmFBUSR.es.js.map → checkbox-CJUPY60M.es.js.map} +1 -1
- package/dist/chunks/{checkbox-KxX5q1OG.cjs.js → checkbox-CR01KJUY.cjs.js} +2 -2
- package/dist/chunks/{checkbox-KxX5q1OG.cjs.js.map → checkbox-CR01KJUY.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-DlnghKT1.es.js → collapsible-motion-Bwe4uYjG.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-DlnghKT1.es.js.map → collapsible-motion-Bwe4uYjG.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-ltyb400N.cjs.js → collapsible-motion-DABh6_9S.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-ltyb400N.cjs.js.map → collapsible-motion-DABh6_9S.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-DtTdcQkc.es.js → combobox-AL2qS_XE.es.js} +17 -17
- package/dist/chunks/{combobox-DtTdcQkc.es.js.map → combobox-AL2qS_XE.es.js.map} +1 -1
- package/dist/chunks/{combobox-BNOIdBf1.cjs.js → combobox-D18Ve8b6.cjs.js} +2 -2
- package/dist/chunks/{combobox-BNOIdBf1.cjs.js.map → combobox-D18Ve8b6.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-DMIZlF6C.cjs.js → data-table-CVlB5Rbj.cjs.js} +2 -2
- package/dist/chunks/{data-table-DMIZlF6C.cjs.js.map → data-table-CVlB5Rbj.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-IcfKQg-w.es.js → data-table-DIjfeoZV.es.js} +40 -40
- package/dist/chunks/{data-table-IcfKQg-w.es.js.map → data-table-DIjfeoZV.es.js.map} +1 -1
- package/dist/chunks/{date-input-C94D4EH7.cjs.js → date-input-BNB2-LIz.cjs.js} +2 -2
- package/dist/chunks/{date-input-C94D4EH7.cjs.js.map → date-input-BNB2-LIz.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-8YTFQGQj.es.js → date-input-BVYLw6C7.es.js} +4 -4
- package/dist/chunks/{date-input-8YTFQGQj.es.js.map → date-input-BVYLw6C7.es.js.map} +1 -1
- package/dist/chunks/{date-picker-CiLuELiv.cjs.js → date-picker-B2Yy3mWL.cjs.js} +2 -2
- package/dist/chunks/{date-picker-CiLuELiv.cjs.js.map → date-picker-B2Yy3mWL.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-B9-w058u.es.js → date-picker-Bf6mnb0_.es.js} +14 -14
- package/dist/chunks/{date-picker-B9-w058u.es.js.map → date-picker-Bf6mnb0_.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-B5nXcpiZ.cjs.js → date-range-picker-BilHqUh_.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-B5nXcpiZ.cjs.js.map → date-range-picker-BilHqUh_.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-trLoOp4W.es.js → date-range-picker-BvlE8omk.es.js} +14 -14
- package/dist/chunks/{date-range-picker-trLoOp4W.es.js.map → date-range-picker-BvlE8omk.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-B_UuUZKz.cjs.js → date-range-picker-field-BSc2xWVb.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-B_UuUZKz.cjs.js.map → date-range-picker-field-BSc2xWVb.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-C6iaFXnh.es.js → date-range-picker-field-CGZAROT8.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-C6iaFXnh.es.js.map → date-range-picker-field-CGZAROT8.es.js.map} +1 -1
- package/dist/chunks/{dialog-Cd7taRQY.es.js → dialog-Cx2LGEGu.es.js} +7 -7
- package/dist/chunks/{dialog-Cd7taRQY.es.js.map → dialog-Cx2LGEGu.es.js.map} +1 -1
- package/dist/chunks/{dialog-BWVWFLDL.cjs.js → dialog-Czqg8k3n.cjs.js} +2 -2
- package/dist/chunks/{dialog-BWVWFLDL.cjs.js.map → dialog-Czqg8k3n.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-CJQEWWPQ.cjs.js → draggable-list-CkbU9E2z.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-CJQEWWPQ.cjs.js.map → draggable-list-CkbU9E2z.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-CiFXn1_f.es.js → draggable-list-DeqhG9IM.es.js} +24 -24
- package/dist/chunks/{draggable-list-CiFXn1_f.es.js.map → draggable-list-DeqhG9IM.es.js.map} +1 -1
- package/dist/chunks/{drawer-ByIDScYN.cjs.js → drawer-0RwFqzio.cjs.js} +2 -2
- package/dist/chunks/{drawer-ByIDScYN.cjs.js.map → drawer-0RwFqzio.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-D-JHvaz8.es.js → drawer-D3HSC52_.es.js} +8 -8
- package/dist/chunks/{drawer-D-JHvaz8.es.js.map → drawer-D3HSC52_.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-jefkSR4f.es.js → extract-style-props-CMyV-es-.es.js} +2 -2
- package/dist/chunks/{extract-style-props-jefkSR4f.es.js.map → extract-style-props-CMyV-es-.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-Cgzzl5ll.cjs.js → extract-style-props-DVhOcGEi.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-Cgzzl5ll.cjs.js.map → extract-style-props-DVhOcGEi.cjs.js.map} +1 -1
- package/dist/chunks/{focusSafely-DZeAUpaj.es.js → focusSafely-hLKtxoJI.es.js} +3 -3
- package/dist/chunks/{focusSafely-DZeAUpaj.es.js.map → focusSafely-hLKtxoJI.es.js.map} +1 -1
- package/dist/chunks/{form-field-BAaKrrLV.es.js → form-field-ClimvHF6.es.js} +4 -4
- package/dist/chunks/{form-field-BAaKrrLV.es.js.map → form-field-ClimvHF6.es.js.map} +1 -1
- package/dist/chunks/{form-field-Duc1Eb8n.cjs.js → form-field-MU91QwOC.cjs.js} +2 -2
- package/dist/chunks/{form-field-Duc1Eb8n.cjs.js.map → form-field-MU91QwOC.cjs.js.map} +1 -1
- package/dist/chunks/{getScrollParent-9BMFoy3y.es.js → getScrollParent-vifdmp1X.es.js} +2 -2
- package/dist/chunks/{getScrollParent-9BMFoy3y.es.js.map → getScrollParent-vifdmp1X.es.js.map} +1 -1
- package/dist/chunks/{group-D1WUO_Du.es.js → group-DaIVSXIi.es.js} +2 -2
- package/dist/chunks/{group-D1WUO_Du.es.js.map → group-DaIVSXIi.es.js.map} +1 -1
- package/dist/chunks/{heading-Do6Fi3LG.es.js → heading-XNj70e-u.es.js} +2 -2
- package/dist/chunks/{heading-Do6Fi3LG.es.js.map → heading-XNj70e-u.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Bx79lcHn.cjs.js → icon-button-CVdz2C9L.cjs.js} +2 -2
- package/dist/chunks/{icon-button-Bx79lcHn.cjs.js.map → icon-button-CVdz2C9L.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-C0ddJ1nS.es.js → icon-button-DQaOMIAe.es.js} +2 -2
- package/dist/chunks/{icon-button-C0ddJ1nS.es.js.map → icon-button-DQaOMIAe.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CixqrbrD.es.js → icon-toggle-button-DuHJLVGq.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CixqrbrD.es.js.map → icon-toggle-button-DuHJLVGq.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DssoEpEK.cjs.js → icon-toggle-button-PgDgcgLU.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DssoEpEK.cjs.js.map → icon-toggle-button-PgDgcgLU.cjs.js.map} +1 -1
- package/dist/chunks/{index-ntBf0TCA.cjs.js → index-Dzrt5_tw.cjs.js} +3 -3
- package/dist/chunks/index-Dzrt5_tw.cjs.js.map +1 -0
- package/dist/chunks/{index-M22cGCuy.es.js → index-N3Xxo-X9.es.js} +189 -189
- package/dist/chunks/index-N3Xxo-X9.es.js.map +1 -0
- package/dist/chunks/{kbd-B-9uYYMm.es.js → kbd-My9zh63h.es.js} +2 -2
- package/dist/chunks/{kbd-B-9uYYMm.es.js.map → kbd-My9zh63h.es.js.map} +1 -1
- package/dist/chunks/{link-B9qwTpvZ.es.js → link-BGMgyeHe.es.js} +10 -10
- package/dist/chunks/{link-B9qwTpvZ.es.js.map → link-BGMgyeHe.es.js.map} +1 -1
- package/dist/chunks/{list-SHrs2740.cjs.js → list-Bf2f5ZXl.cjs.js} +2 -2
- package/dist/chunks/{list-SHrs2740.cjs.js.map → list-Bf2f5ZXl.cjs.js.map} +1 -1
- package/dist/chunks/{list-C_D0XhTD.es.js → list-DX71g25l.es.js} +2 -2
- package/dist/chunks/{list-C_D0XhTD.es.js.map → list-DX71g25l.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-DWX01IWC.es.js → loading-spinner-BQGkInuH.es.js} +6 -6
- package/dist/chunks/{loading-spinner-DWX01IWC.es.js.map → loading-spinner-BQGkInuH.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BTDBtnK7.cjs.js → localized-field-rZG712BE.cjs.js} +2 -2
- package/dist/chunks/{localized-field-BTDBtnK7.cjs.js.map → localized-field-rZG712BE.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-BGZdWUsZ.es.js → localized-field-y1Maik4X.es.js} +13 -13
- package/dist/chunks/{localized-field-BGZdWUsZ.es.js.map → localized-field-y1Maik4X.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-ChBDnGJN.es.js → make-element-focusable-DPGCjzPa.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-ChBDnGJN.es.js.map → make-element-focusable-DPGCjzPa.es.js.map} +1 -1
- package/dist/chunks/{menu-D_6WqM4D.es.js → menu-5MhPfzoZ.es.js} +6 -6
- package/dist/chunks/{menu-D_6WqM4D.es.js.map → menu-5MhPfzoZ.es.js.map} +1 -1
- package/dist/chunks/{menu-bkLzjhsT.cjs.js → menu-CDp97GJ1.cjs.js} +2 -2
- package/dist/chunks/{menu-bkLzjhsT.cjs.js.map → menu-CDp97GJ1.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-CP2fi9RL.es.js → mergeProps-B-cqsBhL.es.js} +3 -3
- package/dist/chunks/{mergeProps-CP2fi9RL.es.js.map → mergeProps-B-cqsBhL.es.js.map} +1 -1
- package/dist/chunks/{money-input-B_8Y-PeL.es.js → money-input-BuTBQcdW.es.js} +9 -9
- package/dist/chunks/{money-input-B_8Y-PeL.es.js.map → money-input-BuTBQcdW.es.js.map} +1 -1
- package/dist/chunks/{money-input-rl9XSovK.cjs.js → money-input-DaAN91Cb.cjs.js} +2 -2
- package/dist/chunks/{money-input-rl9XSovK.cjs.js.map → money-input-DaAN91Cb.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-C03ekDLk.es.js → money-input-field-CjQUDzmL.es.js} +3 -3
- package/dist/chunks/{money-input-field-C03ekDLk.es.js.map → money-input-field-CjQUDzmL.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-B3lQft0S.cjs.js → money-input-field-DZNz2p6a.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-B3lQft0S.cjs.js.map → money-input-field-DZNz2p6a.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-Cse5YRq2.cjs.js → multiline-text-input-COs7r-ny.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-Cse5YRq2.cjs.js.map → multiline-text-input-COs7r-ny.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BaTtWC6h.es.js → multiline-text-input-DZ31Npjo.es.js} +8 -8
- package/dist/chunks/{multiline-text-input-BaTtWC6h.es.js.map → multiline-text-input-DZ31Npjo.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-CLK7gddi.es.js → multiline-text-input-field-DG3Z_FtW.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-CLK7gddi.es.js.map → multiline-text-input-field-DG3Z_FtW.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-BKZK_eKT.cjs.js → multiline-text-input-field-DSCSslNP.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-BKZK_eKT.cjs.js.map → multiline-text-input-field-DSCSslNP.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CNOrrHxu.es.js → nimbus-provider-jT9Us430.es.js} +3 -3
- package/dist/chunks/{nimbus-provider-CNOrrHxu.es.js.map → nimbus-provider-jT9Us430.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-AImf4t_Y.cjs.js → nimbus-provider-lSSS3DBl.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-AImf4t_Y.cjs.js.map → nimbus-provider-lSSS3DBl.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CHL9s8eD.es.js → number-input-BAaT6aky.es.js} +16 -16
- package/dist/chunks/{number-input-CHL9s8eD.es.js.map → number-input-BAaT6aky.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-tE1vbQZK.cjs.js → number-input-field-CR72sZ0B.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-tE1vbQZK.cjs.js.map → number-input-field-CR72sZ0B.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-Cn5sQkJU.es.js → number-input-field-DTcyApYE.es.js} +3 -3
- package/dist/chunks/{number-input-field-Cn5sQkJU.es.js.map → number-input-field-DTcyApYE.es.js.map} +1 -1
- package/dist/chunks/{number-input-C6FXyT-S.cjs.js → number-input-fpKod4xh.cjs.js} +2 -2
- package/dist/chunks/{number-input-C6FXyT-S.cjs.js.map → number-input-fpKod4xh.cjs.js.map} +1 -1
- package/dist/chunks/{openLink-HsZR1nGD.es.js → openLink-m90p5mer.es.js} +4 -4
- package/dist/chunks/{openLink-HsZR1nGD.es.js.map → openLink-m90p5mer.es.js.map} +1 -1
- package/dist/chunks/{pagination-B_4yqvPS.es.js → pagination-CjC5FnAe.es.js} +5 -5
- package/dist/chunks/{pagination-B_4yqvPS.es.js.map → pagination-CjC5FnAe.es.js.map} +1 -1
- package/dist/chunks/{pagination-ywS_giqo.cjs.js → pagination-DQW-J4s-.cjs.js} +2 -2
- package/dist/chunks/{pagination-ywS_giqo.cjs.js.map → pagination-DQW-J4s-.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-BVI6GvAN.cjs.js → password-input-6omRqui-.cjs.js} +2 -2
- package/dist/chunks/{password-input-BVI6GvAN.cjs.js.map → password-input-6omRqui-.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-BxIBbkRh.es.js → password-input-Bx-R47Zb.es.js} +4 -4
- package/dist/chunks/{password-input-BxIBbkRh.es.js.map → password-input-Bx-R47Zb.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-UuhEOVc7.es.js → password-input-field-9j6mejHc.es.js} +3 -3
- package/dist/chunks/{password-input-field-UuhEOVc7.es.js.map → password-input-field-9j6mejHc.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-DdtPws7k.cjs.js → password-input-field-Buevk_ZR.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-DdtPws7k.cjs.js.map → password-input-field-Buevk_ZR.cjs.js.map} +1 -1
- package/dist/chunks/{popover-CvzYfaag.es.js → popover-BLYu6bVv.es.js} +2 -2
- package/dist/chunks/{popover-CvzYfaag.es.js.map → popover-BLYu6bVv.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-BO3f67nC.cjs.js → progress-bar-C4fVFQKR.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-BO3f67nC.cjs.js.map → progress-bar-C4fVFQKR.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-Du5iCNgE.es.js → progress-bar-DN8o_d_N.es.js} +4 -4
- package/dist/chunks/{progress-bar-Du5iCNgE.es.js.map → progress-bar-DN8o_d_N.es.js.map} +1 -1
- package/dist/chunks/{radio-input-La77HvGF.cjs.js → radio-input-DL_BrFJv.cjs.js} +2 -2
- package/dist/chunks/{radio-input-La77HvGF.cjs.js.map → radio-input-DL_BrFJv.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-Ck1JgXwq.es.js → radio-input-okw9zJHo.es.js} +47 -47
- package/dist/chunks/{radio-input-Ck1JgXwq.es.js.map → radio-input-okw9zJHo.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-B0ipO1VD.cjs.js → range-calendar-BjL5mXPm.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-B0ipO1VD.cjs.js.map → range-calendar-BjL5mXPm.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-D8atg783.es.js → range-calendar-BkRTn3qu.es.js} +10 -10
- package/dist/chunks/{range-calendar-D8atg783.es.js.map → range-calendar-BkRTn3qu.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-C9So3rih.es.js → rich-text-input-Bo_zGUyj.es.js} +13 -13
- package/dist/chunks/{rich-text-input-C9So3rih.es.js.map → rich-text-input-Bo_zGUyj.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-D60gnuEf.cjs.js → rich-text-input-m4_Uz1tN.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-D60gnuEf.cjs.js.map → rich-text-input-m4_Uz1tN.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-lfXucygF.cjs.js → scoped-search-input-B-TZHf9x.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-lfXucygF.cjs.js.map → scoped-search-input-B-TZHf9x.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-C9ZgV1W3.es.js → scoped-search-input-DEidPWv8.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-C9ZgV1W3.es.js.map → scoped-search-input-DEidPWv8.es.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-Batjaaff.es.js → scrollIntoView-Btu7DgIo.es.js} +2 -2
- package/dist/chunks/{scrollIntoView-Batjaaff.es.js.map → scrollIntoView-Btu7DgIo.es.js.map} +1 -1
- package/dist/chunks/{search-input-CuSHISKc.cjs.js → search-input-CHgJfpe5.cjs.js} +2 -2
- package/dist/chunks/{search-input-CuSHISKc.cjs.js.map → search-input-CHgJfpe5.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-B2LUHM84.es.js → search-input-DkAInzQF.es.js} +11 -11
- package/dist/chunks/{search-input-B2LUHM84.es.js.map → search-input-DkAInzQF.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-ClrteUdq.es.js → search-input-field-DlDp4rYa.es.js} +3 -3
- package/dist/chunks/{search-input-field-ClrteUdq.es.js.map → search-input-field-DlDp4rYa.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-BaLzJQCP.cjs.js → search-input-field-yGIVkKiM.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-BaLzJQCP.cjs.js.map → search-input-field-yGIVkKiM.cjs.js.map} +1 -1
- package/dist/chunks/{select-CveCDLWV.cjs.js → select-6-aki3A5.cjs.js} +2 -2
- package/dist/chunks/{select-CveCDLWV.cjs.js.map → select-6-aki3A5.cjs.js.map} +1 -1
- package/dist/chunks/{select-ipXMH8aF.es.js → select-DiSjgVZP.es.js} +21 -21
- package/dist/chunks/{select-ipXMH8aF.es.js.map → select-DiSjgVZP.es.js.map} +1 -1
- package/dist/chunks/{separator-BsoEYBzS.es.js → separator-D5lH4oxr.es.js} +4 -4
- package/dist/chunks/{separator-BsoEYBzS.es.js.map → separator-D5lH4oxr.es.js.map} +1 -1
- package/dist/chunks/{separator-DS72a2lw.cjs.js → separator-DEF3wV-L.cjs.js} +2 -2
- package/dist/chunks/{separator-DS72a2lw.cjs.js.map → separator-DEF3wV-L.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-Culay-4y.es.js → split-button-CLnOcTUc.es.js} +4 -4
- package/dist/chunks/{split-button-Culay-4y.es.js.map → split-button-CLnOcTUc.es.js.map} +1 -1
- package/dist/chunks/{split-button-WO01eNsw.cjs.js → split-button-spKE5zVJ.cjs.js} +2 -2
- package/dist/chunks/{split-button-WO01eNsw.cjs.js.map → split-button-spKE5zVJ.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DZNkW95d.es.js → switch-CgLZJ152.es.js} +7 -7
- package/dist/chunks/{switch-DZNkW95d.es.js.map → switch-CgLZJ152.es.js.map} +1 -1
- package/dist/chunks/{switch-BOfgFOYF.cjs.js → switch-DHpWscLY.cjs.js} +2 -2
- package/dist/chunks/{switch-BOfgFOYF.cjs.js.map → switch-DHpWscLY.cjs.js.map} +1 -1
- package/dist/chunks/{table-DVy5RfE0.es.js → table-BubQFrTk.es.js} +2 -2
- package/dist/chunks/{table-DVy5RfE0.es.js.map → table-BubQFrTk.es.js.map} +1 -1
- package/dist/chunks/{table-EVDS4ikV.cjs.js → table-CqYjQffW.cjs.js} +2 -2
- package/dist/chunks/{table-EVDS4ikV.cjs.js.map → table-CqYjQffW.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-BaC_3pzc.cjs.js → tabs-Cu8XxNOl.cjs.js} +2 -2
- package/dist/chunks/{tabs-BaC_3pzc.cjs.js.map → tabs-Cu8XxNOl.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-BK-VeEtr.es.js → tabs-D9Q3mypg.es.js} +14 -14
- package/dist/chunks/{tabs-BK-VeEtr.es.js.map → tabs-D9Q3mypg.es.js.map} +1 -1
- package/dist/chunks/{tag-group-BUmOFytw.cjs.js → tag-group-CMUX_3pt.cjs.js} +2 -2
- package/dist/chunks/{tag-group-BUmOFytw.cjs.js.map → tag-group-CMUX_3pt.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CGbCN48j.es.js → tag-group-DHArWJRl.es.js} +20 -20
- package/dist/chunks/{tag-group-CGbCN48j.es.js.map → tag-group-DHArWJRl.es.js.map} +1 -1
- package/dist/chunks/{text-CvFOJhe2.es.js → text-iTgAZrNO.es.js} +2 -2
- package/dist/chunks/{text-CvFOJhe2.es.js.map → text-iTgAZrNO.es.js.map} +1 -1
- package/dist/chunks/{text-input-Dukgyb5K.cjs.js → text-input-BcnTka1I.cjs.js} +2 -2
- package/dist/chunks/{text-input-Dukgyb5K.cjs.js.map → text-input-BcnTka1I.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-DzwmIuAk.es.js → text-input-DMqogV2V.es.js} +7 -7
- package/dist/chunks/{text-input-DzwmIuAk.es.js.map → text-input-DMqogV2V.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-XgUiAt5N.es.js → text-input-field-B9Ctttd2.es.js} +3 -3
- package/dist/chunks/{text-input-field-XgUiAt5N.es.js.map → text-input-field-B9Ctttd2.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-D1bwFK7r.cjs.js → text-input-field-CcOUc96b.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-D1bwFK7r.cjs.js.map → text-input-field-CcOUc96b.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-CU6dxYWj.cjs.js → time-input-CqsOklvt.cjs.js} +2 -2
- package/dist/chunks/{time-input-CU6dxYWj.cjs.js.map → time-input-CqsOklvt.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-D6dDaJC2.es.js → time-input-DQLuVFMb.es.js} +4 -4
- package/dist/chunks/{time-input-D6dDaJC2.es.js.map → time-input-DQLuVFMb.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-CNt2F7SM.es.js → toggle-button-CLxsTQTu.es.js} +4 -4
- package/dist/chunks/{toggle-button-CNt2F7SM.es.js.map → toggle-button-CLxsTQTu.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BYlrIPfh.cjs.js → toggle-button-CtCn05Nm.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BYlrIPfh.cjs.js.map → toggle-button-CtCn05Nm.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-DfTxfy9g.es.js → toggle-button-group-8QKQg546.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-DfTxfy9g.es.js.map → toggle-button-group-8QKQg546.es.js.map} +1 -1
- package/dist/chunks/{toolbar-B5wjgCL6.cjs.js → toolbar-CX6F_Hyi.cjs.js} +2 -2
- package/dist/chunks/{toolbar-B5wjgCL6.cjs.js.map → toolbar-CX6F_Hyi.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar--dnaKPe4.es.js → toolbar-CyTAGF7Q.es.js} +6 -6
- package/dist/chunks/{toolbar--dnaKPe4.es.js.map → toolbar-CyTAGF7Q.es.js.map} +1 -1
- package/dist/chunks/{tooltip-QnXUuSf_.es.js → tooltip-cwtXJhIK.es.js} +8 -8
- package/dist/chunks/{tooltip-QnXUuSf_.es.js.map → tooltip-cwtXJhIK.es.js.map} +1 -1
- package/dist/chunks/{useButton-Oyke80AJ.es.js → useButton-C0YxSZ4p.es.js} +4 -4
- package/dist/chunks/{useButton-Oyke80AJ.es.js.map → useButton-C0YxSZ4p.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BBIX2vDx.es.js → useDateFormatter-C0T2-xr7.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-BBIX2vDx.es.js.map → useDateFormatter-C0T2-xr7.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-D-ENlB_M.es.js → useDisclosureState-CPUsvP5-.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-D-ENlB_M.es.js.map → useDisclosureState-CPUsvP5-.es.js.map} +1 -1
- package/dist/chunks/{useEffectEvent-CDKQ-4ck.es.js → useEffectEvent-B4Fd4l1o.es.js} +2 -2
- package/dist/chunks/{useEffectEvent-CDKQ-4ck.es.js.map → useEffectEvent-B4Fd4l1o.es.js.map} +1 -1
- package/dist/chunks/{useEvent-ChC28h8y.es.js → useEvent-CKoH5wGJ.es.js} +2 -2
- package/dist/chunks/{useEvent-ChC28h8y.es.js.map → useEvent-CKoH5wGJ.es.js.map} +1 -1
- package/dist/chunks/{useField-Df9R2O8F.es.js → useField-BxLfE_kx.es.js} +8 -8
- package/dist/chunks/{useField-Df9R2O8F.es.js.map → useField-BxLfE_kx.es.js.map} +1 -1
- package/dist/chunks/{useFocus-D31c90ZE.es.js → useFocus-DWn32Fi6.es.js} +2 -2
- package/dist/chunks/{useFocus-D31c90ZE.es.js.map → useFocus-DWn32Fi6.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-VLcnwlwE.es.js → useFocusRing-CZQUsztf.es.js} +4 -4
- package/dist/chunks/{useFocusRing-VLcnwlwE.es.js.map → useFocusRing-CZQUsztf.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-CzoZm_xz.es.js → useFocusVisible-_CKiSck5.es.js} +10 -10
- package/dist/chunks/{useFocusVisible-CzoZm_xz.es.js.map → useFocusVisible-_CKiSck5.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-EsZPm3DS.es.js → useFocusWithin-CdBYoNiQ.es.js} +2 -2
- package/dist/chunks/{useFocusWithin-EsZPm3DS.es.js.map → useFocusWithin-CdBYoNiQ.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-D24hL72x.es.js → useFocusable-C4Re42UX.es.js} +5 -5
- package/dist/chunks/{useFocusable-D24hL72x.es.js.map → useFocusable-C4Re42UX.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-y7qNJ2iU.es.js → useFormReset-Dl03QHFW.es.js} +2 -2
- package/dist/chunks/{useFormReset-y7qNJ2iU.es.js.map → useFormReset-Dl03QHFW.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BlAmXNQy.es.js → useFormValidation-Cx9rG8-b.es.js} +4 -4
- package/dist/chunks/{useFormValidation-BlAmXNQy.es.js.map → useFormValidation-Cx9rG8-b.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-DVPHpG58.es.js → useGridListItem-CZn3RZIy.es.js} +12 -12
- package/dist/chunks/{useGridListItem-DVPHpG58.es.js.map → useGridListItem-CZn3RZIy.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-mrm6j09J.es.js → useHasTabbableChild-BKDz3bMI.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-mrm6j09J.es.js.map → useHasTabbableChild-BKDz3bMI.es.js.map} +1 -1
- package/dist/chunks/{useHover-cEFCf4Kd.es.js → useHover-BiPYlZr_.es.js} +2 -2
- package/dist/chunks/{useHover-cEFCf4Kd.es.js.map → useHover-BiPYlZr_.es.js.map} +1 -1
- package/dist/chunks/{useLabel-ChlrFxEx.es.js → useLabel-D521nHvC.es.js} +5 -5
- package/dist/chunks/{useLabel-ChlrFxEx.es.js.map → useLabel-D521nHvC.es.js.map} +1 -1
- package/dist/chunks/{useLabels-D98u_8qP.es.js → useLabels-BOBP8-HM.es.js} +2 -2
- package/dist/chunks/{useLabels-D98u_8qP.es.js.map → useLabels-BOBP8-HM.es.js.map} +1 -1
- package/dist/chunks/{useListState-DpF32Git.es.js → useListState-BxWOm_-s.es.js} +2 -2
- package/dist/chunks/{useListState-DpF32Git.es.js.map → useListState-BxWOm_-s.es.js.map} +1 -1
- package/dist/chunks/{usePress-CWSuTWYS.es.js → usePress-UxAvyvOO.es.js} +16 -16
- package/dist/chunks/{usePress-CWSuTWYS.es.js.map → usePress-UxAvyvOO.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar-MgiiNmNk.es.js → useProgressBar-B1hDpeFj.es.js} +7 -7
- package/dist/chunks/{useProgressBar-MgiiNmNk.es.js.map → useProgressBar-B1hDpeFj.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-Daqs5d5m.es.js → useSpinButton-BiyDsWG5.es.js} +2 -2
- package/dist/chunks/{useSpinButton-Daqs5d5m.es.js.map → useSpinButton-BiyDsWG5.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-BVVaaY1O.es.js → useSyncRef-BGo3C9WN.es.js} +2 -2
- package/dist/chunks/{useSyncRef-BVVaaY1O.es.js.map → useSyncRef-BGo3C9WN.es.js.map} +1 -1
- package/dist/chunks/{useTextField-B1RNQAQX.es.js → useTextField-Def10i_1.es.js} +6 -6
- package/dist/chunks/{useTextField-B1RNQAQX.es.js.map → useTextField-Def10i_1.es.js.map} +1 -1
- package/dist/chunks/{useToggle-DVYZlPti.es.js → useToggle-DPaFYvr8.es.js} +5 -5
- package/dist/chunks/{useToggle-DVYZlPti.es.js.map → useToggle-DPaFYvr8.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-BC48H5rv.es.js → useToolbar-NGUPId3z.es.js} +3 -3
- package/dist/chunks/{useToolbar-BC48H5rv.es.js.map → useToolbar-NGUPId3z.es.js.map} +1 -1
- package/dist/chunks/{useUpdateEffect-DxyDU-ko.es.js → useUpdateEffect-CxkSZ4PM.es.js} +2 -2
- package/dist/chunks/{useUpdateEffect-DxyDU-ko.es.js.map → useUpdateEffect-CxkSZ4PM.es.js.map} +1 -1
- package/dist/chunks/{utils-DtvkSiIX.es.js → utils-CrjF8U_E.es.js} +2 -2
- package/dist/chunks/{utils-DtvkSiIX.es.js.map → utils-CrjF8U_E.es.js.map} +1 -1
- package/dist/chunks/{utils-DH2mlFI_.es.js → utils-V7nfNEif.es.js} +7 -7
- package/dist/chunks/{utils-DH2mlFI_.es.js.map → utils-V7nfNEif.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-CRJSxyW9.es.js → visually-hidden-DVHn3y3w.es.js} +2 -2
- package/dist/chunks/{visually-hidden-CRJSxyW9.es.js.map → visually-hidden-DVHn3y3w.es.js.map} +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +1 -1
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.recipe.d.ts +1 -1
- package/dist/components/alert/alert.slots.d.ts +3 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/badge/badge.slots.d.ts +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.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.recipe.d.ts +1 -1
- package/dist/components/combobox/combobox.slots.d.ts +12 -12
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.slots.d.ts +12 -12
- 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/date-picker.recipe.d.ts +1 -1
- package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
- 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.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/dialog.slots.d.ts +9 -9
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- 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/drawer.slots.d.ts +10 -10
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field/form-field.recipe.d.ts +1 -1
- package/dist/components/form-field/form-field.slots.d.ts +2 -2
- 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/list.cjs +1 -1
- package/dist/components/list.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
- 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/money-input/money-input.slots.d.ts +6 -6
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
- package/dist/components/multiline-text-input-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.slots.d.ts +6 -6
- package/dist/components/number-input-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.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 +7 -7
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar/progress-bar.slots.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/radio-input.slots.d.ts +2 -2
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- 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.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.slots.d.ts +7 -7
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/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.slots.d.ts +3 -3
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +1 -1
- package/dist/components/tabs/tabs.slots.d.ts +3 -3
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.es.js +1 -1
- 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.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.es.js +2 -2
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +66 -66
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-fGWou3mO.es.js.map +0 -1
- package/dist/chunks/accordion.content-gfMoEM9H.cjs.js +0 -2
- package/dist/chunks/accordion.content-gfMoEM9H.cjs.js.map +0 -1
- package/dist/chunks/index-M22cGCuy.es.js.map +0 -1
- package/dist/chunks/index-ntBf0TCA.cjs.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-CsKET1Gk.cjs.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/intl/en.ts","../../src/components/alert/intl/de.ts","../../src/components/alert/intl/es.ts","../../src/components/alert/intl/fr-FR.ts","../../src/components/alert/intl/pt-BR.ts","../../src/components/alert/alert.messages.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusAlert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","/**\n * Pre-compiled en messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dismiss` };\n","/**\n * Pre-compiled de messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Verwerfen` };\n","/**\n * Pre-compiled es messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Desechar` };\n","/**\n * Pre-compiled fr-FR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Fermer` };\n","/**\n * Pre-compiled pt-BR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dispensar` };\n","/**\n * Pre-compiled localized messages for Alert component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport alertMessages_en from \"./intl/en\";\nimport alertMessages_de from \"./intl/de\";\nimport alertMessages_es from \"./intl/es\";\nimport alertMessages_fr from \"./intl/fr-FR\";\nimport alertMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const alertMessagesStrings: LocalizedStrings<string, LocalizedString> = {\n en: normalizeMessages(alertMessages_en),\n de: normalizeMessages(alertMessages_de),\n es: normalizeMessages(alertMessages_es),\n \"fr-FR\": normalizeMessages(alertMessages_fr),\n \"pt-BR\": normalizeMessages(alertMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Alert component\n */\nexport type AlertMessageKey = \"dismiss\";\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { alertMessagesStrings } from \"../alert.messages\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const msg = useLocalizedStringFormatter(alertMessagesStrings);\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={msg.format(\"dismiss\")}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","alertMessages_en","alertMessages_de","alertMessages_es","alertMessages_fr","alertMessages_pt","alertMessagesStrings","normalizeMessages","msg","useLocalizedStringFormatter","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"sNAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAEYC,EAAYH,EACvB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,OACF,E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bC,EAAkE,CAC7E,GAAIC,EAAAA,kBAAkBN,CAAgB,EACtC,GAAIM,EAAAA,kBAAkBL,CAAgB,EACtC,GAAIK,EAAAA,kBAAkBJ,CAAgB,EACtC,QAASI,EAAAA,kBAAkBH,CAAgB,EAC3C,QAASG,EAAAA,kBAAkBF,CAAgB,CAC7C,ECjBapB,EAAqB,CAAC,CAAE,GAAGO,KAAqC,CAC3E,MAAMgB,EAAMC,EAAAA,4BAA4BH,CAAoB,EAE5D,aACGI,EAAA,CACC,SAAAb,EAAAA,IAACc,EAAAA,WAAA,CACC,aAAYH,EAAI,OAAO,SAAS,EAC/B,GAAGhB,EACJ,QAAQ,QACR,KAAK,MAEL,SAAAK,EAAAA,IAACe,EAAAA,MAAA,CAAM,KAAK,KAAA,CAAM,CAAA,CAAA,EAEtB,CAEJ,EAEA3B,EAAmB,YAAc,sBCN1B,MAAM4B,EAAQ,CAenB,KAAMjC,EAcN,MAAOC,EAeP,YAAaC,EAkBb,QAASE,EAgBT,cAAeC,CACjB"}
|
|
1
|
+
{"version":3,"file":"alert-BYLSKkn9.cjs.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/intl/en.ts","../../src/components/alert/intl/de.ts","../../src/components/alert/intl/es.ts","../../src/components/alert/intl/fr-FR.ts","../../src/components/alert/intl/pt-BR.ts","../../src/components/alert/alert.messages.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusAlert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","/**\n * Pre-compiled en messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dismiss` };\n","/**\n * Pre-compiled de messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Verwerfen` };\n","/**\n * Pre-compiled es messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Desechar` };\n","/**\n * Pre-compiled fr-FR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Fermer` };\n","/**\n * Pre-compiled pt-BR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dispensar` };\n","/**\n * Pre-compiled localized messages for Alert component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport alertMessages_en from \"./intl/en\";\nimport alertMessages_de from \"./intl/de\";\nimport alertMessages_es from \"./intl/es\";\nimport alertMessages_fr from \"./intl/fr-FR\";\nimport alertMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const alertMessagesStrings: LocalizedStrings<string, LocalizedString> = {\n en: normalizeMessages(alertMessages_en),\n de: normalizeMessages(alertMessages_de),\n es: normalizeMessages(alertMessages_es),\n \"fr-FR\": normalizeMessages(alertMessages_fr),\n \"pt-BR\": normalizeMessages(alertMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Alert component\n */\nexport type AlertMessageKey = \"dismiss\";\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { alertMessagesStrings } from \"../alert.messages\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const msg = useLocalizedStringFormatter(alertMessagesStrings);\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={msg.format(\"dismiss\")}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","alertMessages_en","alertMessages_de","alertMessages_es","alertMessages_fr","alertMessages_pt","alertMessagesStrings","normalizeMessages","msg","useLocalizedStringFormatter","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"sNAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAEYC,EAAYH,EACvB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,OACF,EAEaI,EAAmBJ,EAG9B,MAAO,aAAa,EAETK,EAAYL,EACvB,MACA,MACF,EAEaM,EAAeN,EAC1B,MACA,SACF,EAIaO,EAAqBP,EAGhC,MAAO,eAAe,ECnClBQ,EAA2BC,GAA6C,CAC5E,OAAQA,EAAA,CACN,IAAK,WACH,aAAQC,EAAAA,aAAA,EAAa,EACvB,IAAK,OACH,aAAQC,EAAAA,KAAA,EAAK,EACf,IAAK,UACH,aAAQC,EAAAA,aAAA,EAAa,EACvB,IAAK,WACH,aAAQC,EAAAA,mBAAA,EAAmB,EAC7B,QACE,OAAO,IAAA,CAEb,EAOaX,EAAiCY,GAAU,CACtD,KAAM,CAAE,IAAAC,EAAK,SAAAC,EAAU,GAAGC,GAAcH,EAExC,cACGI,EAAA,CAAc,IAAAH,EAAW,GAAGE,EAAW,KAAK,QAC3C,SAAA,CAAAE,MAACd,GAAU,WAAW,aACnB,SAAAG,E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jC,EAcN,MAAOC,EAeP,YAAaC,EAkBb,QAASE,EAgBT,cAAeC,CACjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as A, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { createSlotRecipeContext as u } from "@chakra-ui/react";
|
|
3
3
|
import { CheckCircleOutline as p, WarningAmber as g, Info as f, ErrorOutline as h, Clear as D } from "@commercetools/nimbus-icons";
|
|
4
|
-
import { I as v } from "./icon-button-
|
|
4
|
+
import { I as v } from "./icon-button-DQaOMIAe.es.js";
|
|
5
5
|
import { n as r, u as x } from "./normalize-messages-BN9BAFXe.es.js";
|
|
6
6
|
const { withProvider: B, withContext: i } = /* @__PURE__ */ u({
|
|
7
7
|
key: "nimbusAlert"
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
n as d,
|
|
156
156
|
l as e
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=alert-
|
|
158
|
+
//# sourceMappingURL=alert-Npb00ttk.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-BP6cBJLk.es.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/intl/en.ts","../../src/components/alert/intl/de.ts","../../src/components/alert/intl/es.ts","../../src/components/alert/intl/fr-FR.ts","../../src/components/alert/intl/pt-BR.ts","../../src/components/alert/alert.messages.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusAlert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","/**\n * Pre-compiled en messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dismiss` };\n","/**\n * Pre-compiled de messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Verwerfen` };\n","/**\n * Pre-compiled es messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Desechar` };\n","/**\n * Pre-compiled fr-FR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Fermer` };\n","/**\n * Pre-compiled pt-BR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dispensar` };\n","/**\n * Pre-compiled localized messages for Alert component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport alertMessages_en from \"./intl/en\";\nimport alertMessages_de from \"./intl/de\";\nimport alertMessages_es from \"./intl/es\";\nimport alertMessages_fr from \"./intl/fr-FR\";\nimport alertMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const alertMessagesStrings: LocalizedStrings<string, LocalizedString> = {\n en: normalizeMessages(alertMessages_en),\n de: normalizeMessages(alertMessages_de),\n es: normalizeMessages(alertMessages_es),\n \"fr-FR\": normalizeMessages(alertMessages_fr),\n \"pt-BR\": normalizeMessages(alertMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Alert component\n */\nexport type AlertMessageKey = \"dismiss\";\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { alertMessagesStrings } from \"../alert.messages\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const msg = useLocalizedStringFormatter(alertMessagesStrings);\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={msg.format(\"dismiss\")}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","alertMessages_en","alertMessages_de","alertMessages_es","alertMessages_fr","alertMessages_pt","alertMessagesStrings","normalizeMessages","msg","useLocalizedStringFormatter","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAAY,gBAAAH;AAAA,EACvB;AAAA,EACA;AACF,GAEaI,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AACF,GAEaI,IAAmB,gBAAAJ,EAG9B,OAAO,aAAa,GAETK,IAAY,gBAAAL;AAAA,EACvB;AAAA,EACA;AACF,GAEaM,IAAe,gBAAAN;AAAA,EAC1B;AAAA,EACA;AACF,GAIaO,IAAqB,gBAAAP,EAGhC,OAAO,eAAe,GCnClBQ,IAA0B,CAACC,MAA6C;AAC5E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAK;AAAA,IACf,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAmB;AAAA,IAC7B;AACE,aAAO;AAAA,EAAA;AAEb,GAOaX,IAAgC,CAACY,MAAU;AACtD,QAAM,EAAE,KAAA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,cAAYH,EAAI,OAAO,SAAS;AAAA,MAC/B,GAAGhB;AAAA,MACJ,SAAQ;AAAA,MACR,MAAK;AAAA,MAEL,UAAA,gBAAAK,EAACe,GAAA,EAAM,MAAK,MAAA,CAAM;AAAA,IAAA;AAAA,EAAA,GAEtB;AAEJ;AAEA3B,EAAmB,cAAc;ACN1B,MAAM4B,IAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAenB,MAAMjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcN,OAAOC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeP,aAAaC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBb,SAASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBT,eAAeC;AACjB;"}
|
|
1
|
+
{"version":3,"file":"alert-Npb00ttk.es.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/intl/en.ts","../../src/components/alert/intl/de.ts","../../src/components/alert/intl/es.ts","../../src/components/alert/intl/fr-FR.ts","../../src/components/alert/intl/pt-BR.ts","../../src/components/alert/alert.messages.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusAlert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","/**\n * Pre-compiled en messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dismiss` };\n","/**\n * Pre-compiled de messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Verwerfen` };\n","/**\n * Pre-compiled es messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Desechar` };\n","/**\n * Pre-compiled fr-FR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Fermer` };\n","/**\n * Pre-compiled pt-BR messages for Alert\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { dismiss: `Dispensar` };\n","/**\n * Pre-compiled localized messages for Alert component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport alertMessages_en from \"./intl/en\";\nimport alertMessages_de from \"./intl/de\";\nimport alertMessages_es from \"./intl/es\";\nimport alertMessages_fr from \"./intl/fr-FR\";\nimport alertMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const alertMessagesStrings: LocalizedStrings<string, LocalizedString> = {\n en: normalizeMessages(alertMessages_en),\n de: normalizeMessages(alertMessages_de),\n es: normalizeMessages(alertMessages_es),\n \"fr-FR\": normalizeMessages(alertMessages_fr),\n \"pt-BR\": normalizeMessages(alertMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Alert component\n */\nexport type AlertMessageKey = \"dismiss\";\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { alertMessagesStrings } from \"../alert.messages\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const msg = useLocalizedStringFormatter(alertMessagesStrings);\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={msg.format(\"dismiss\")}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","alertMessages_en","alertMessages_de","alertMessages_es","alertMessages_fr","alertMessages_pt","alertMessagesStrings","normalizeMessages","msg","useLocalizedStringFormatter","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAAY,gBAAAH;AAAA,EACvB;AAAA,EACA;AACF,GAEaI,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AACF,GAEaI,IAAmB,gBAAAJ,EAG9B,OAAO,aAAa,GAETK,IAAY,gBAAAL;AAAA,EACvB;AAAA,EACA;AACF,GAEaM,IAAe,gBAAAN;AAAA,EAC1B;AAAA,EACA;AACF,GAIaO,IAAqB,gBAAAP,EAGhC,OAAO,eAAe,GCnClBQ,IAA0B,CAACC,MAA6C;AAC5E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAK;AAAA,IACf,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACv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GAAGO,QAAqC;AAC3E,QAAMgB,IAAMC,EAA4BH,CAAoB;AAE5D,2BACGI,GAAA,EACC,UAAA,gBAAAb;AAAA,IAACc;AAAA,IAAA;AAAA,MACC,cAAYH,EAAI,OAAO,SAAS;AAAA,MAC/B,GAAGhB;AAAA,MACJ,SAAQ;AAAA,MACR,MAAK;AAAA,MAEL,UAAA,gBAAAK,EAACe,GAAA,EAAM,MAAK,MAAA,CAAM;AAAA,IAAA;AAAA,EAAA,GAEtB;AAEJ;AAEA3B,EAAmB,cAAc;ACN1B,MAAM4B,IAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAenB,MAAMjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcN,OAAOC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeP,aAAaC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBb,SAASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBT,eAAeC;AACjB;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as c } from "./mergeProps-
|
|
1
|
+
import { b as c } from "./mergeProps-B-cqsBhL.es.js";
|
|
2
2
|
import { flushSync as u } from "react-dom";
|
|
3
3
|
import { useState as o, useCallback as s } from "react";
|
|
4
4
|
function $(t, n = !0) {
|
|
@@ -59,4 +59,4 @@ export {
|
|
|
59
59
|
g as $,
|
|
60
60
|
$ as a
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=animation-
|
|
62
|
+
//# sourceMappingURL=animation-BfmkkMe7.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-
|
|
1
|
+
{"version":3,"file":"animation-BfmkkMe7.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.32.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/animation.mjs"],"sourcesContent":["import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {flushSync as $jJMAe$flushSync} from \"react-dom\";\nimport {useState as $jJMAe$useState, useCallback as $jJMAe$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {\n let [isEntering, setEntering] = (0, $jJMAe$useState)(true);\n let isAnimationReady = isEntering && isReady;\n // There are two cases for entry animations:\n // 1. CSS @keyframes. The `animation` property is set during the isEntering state, and it is removed after the animation finishes.\n // 2. CSS transitions. The initial styles are applied during the isEntering state, and removed immediately, causing the transition to occur.\n //\n // In the second case, cancel any transitions that were triggered prior to the isEntering = false state (when the transition is supposed to start).\n // This can happen when isReady starts as false (e.g. popovers prior to placement calculation).\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (isAnimationReady && ref.current && 'getAnimations' in ref.current) {\n for (let animation of ref.current.getAnimations())if (animation instanceof CSSTransition) animation.cancel();\n }\n }, [\n ref,\n isAnimationReady\n ]);\n $d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, $jJMAe$useCallback)(()=>setEntering(false), []));\n return isAnimationReady;\n}\nfunction $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {\n let [exitState, setExitState] = (0, $jJMAe$useState)(isOpen ? 'open' : 'closed');\n switch(exitState){\n case 'open':\n // If isOpen becomes false, set the state to exiting.\n if (!isOpen) setExitState('exiting');\n break;\n case 'closed':\n case 'exiting':\n // If we are exiting and isOpen becomes true, the animation was interrupted.\n // Reset the state to open.\n if (isOpen) setExitState('open');\n break;\n }\n let isExiting = exitState === 'exiting';\n $d3f049242431219c$var$useAnimation(ref, isExiting, (0, $jJMAe$useCallback)(()=>{\n // Set the state to closed, which will cause the element to be unmounted.\n setExitState((state)=>state === 'exiting' ? 'closed' : state);\n }, []));\n return isExiting;\n}\nfunction $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (isActive && ref.current) {\n if (!('getAnimations' in ref.current)) {\n // JSDOM\n onEnd();\n return;\n }\n let animations = ref.current.getAnimations();\n if (animations.length === 0) {\n onEnd();\n return;\n }\n let canceled = false;\n Promise.all(animations.map((a)=>a.finished)).then(()=>{\n if (!canceled) (0, $jJMAe$flushSync)(()=>{\n onEnd();\n });\n }).catch(()=>{});\n return ()=>{\n canceled = true;\n };\n }\n }, [\n ref,\n isActive,\n onEnd\n ]);\n}\n\n\nexport {$d3f049242431219c$export$6d3443f2c48bfc20 as useEnterAnimation, $d3f049242431219c$export$45fda7c47f93fd48 as useExitAnimation};\n//# sourceMappingURL=animation.module.js.map\n"],"names":["$d3f049242431219c$export$6d3443f2c48bfc20","ref","isReady","isEntering","setEntering","$jJMAe$useState","isAnimationReady","$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","animation","$d3f049242431219c$var$useAnimation","$jJMAe$useCallback","$d3f049242431219c$export$45fda7c47f93fd48","isOpen","exitState","setExitState","isExiting","state","isActive","onEnd","animations","canceled","a","$jJMAe$flushSync"],"mappings":";;;A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CAAC,EAAE,KAAK,MAAI;AAClD,QAAKD,KAAcE,EAAkB,MAAI;AACrC,UAAAJ,EAAK;AAAA,QACT,CAAC;AAAA,MACL,CAAC,EAAE,MAAM,MAAI;AAAA,MAAC,CAAC,GACR,MAAI;AACP,QAAAE,IAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ,GAAG;AAAA,IACCnB;AAAA,IACAgB;AAAA,IACAC;AAAA,EACR,CAAK;AACL;","x_google_ignoreList":[0]}
|
|
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as m } from "react";
|
|
3
3
|
import { createRecipeContext as n, mergeRefs as c } from "@chakra-ui/react";
|
|
4
4
|
import { $ as d } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { $ as p } from "./mergeProps-B-cqsBhL.es.js";
|
|
6
6
|
const { withContext: i } = /* @__PURE__ */ n({ key: "nimbusBadge" }), $ = /* @__PURE__ */ i(
|
|
7
7
|
"span"
|
|
8
8
|
), l = (e) => {
|
|
@@ -13,4 +13,4 @@ l.displayName = "Badge";
|
|
|
13
13
|
export {
|
|
14
14
|
l as B
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=badge-
|
|
16
|
+
//# sourceMappingURL=badge-DwmHoD-d.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-
|
|
1
|
+
{"version":3,"file":"badge-DwmHoD-d.es.js","sources":["../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { BadgeRootSlotProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ key: \"nimbusBadge\" });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootSlotProps>(\n \"span\"\n);\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return <BadgeRoot {...mergeProps(rest, { ref })}>{children}</BadgeRoot>;\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;AAGA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,eAAe,GAErDC,IAAY,gBAAAF;AAAA,EACvB;AACF,GCMaG,IAAQ,CAACC,MAAsB;AAC1C,QAAM,EAAE,KAAKC,GAAc,UAAAC,GAAU,GAAGC,MAASH,GAE3CI,IAAWC,EAAwB,IAAI,GACvCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC;AAE1D,SAAO,gBAAAQ,EAACX,KAAW,GAAGY,EAAWP,GAAM,EAAE,KAAAG,EAAA,CAAK,GAAI,UAAAJ,GAAS;AAC7D;AAEAH,EAAM,cAAc;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { $ as c } from "./Button-
|
|
4
|
-
import { $ as P } from "./utils-
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { $ as c } from "./Button-C9AKe3Kt.es.js";
|
|
4
|
+
import { $ as P } from "./utils-CrjF8U_E.es.js";
|
|
5
5
|
import { createRecipeContext as x, mergeRefs as R } from "@chakra-ui/react";
|
|
6
6
|
import { i as v } from "./emotion-is-prop-valid.esm-BUuA3iy8.es.js";
|
|
7
|
-
import { s as C } from "./index-
|
|
7
|
+
import { s as C } from "./index-N3Xxo-X9.es.js";
|
|
8
8
|
import { $ as h } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
9
|
-
import {
|
|
10
|
-
import { $ as y } from "./useButton-
|
|
9
|
+
import { $ as E } from "./mergeProps-B-cqsBhL.es.js";
|
|
10
|
+
import { $ as y } from "./useButton-C0YxSZ4p.es.js";
|
|
11
11
|
const B = [
|
|
12
12
|
"onPress",
|
|
13
13
|
"onPressStart",
|
|
@@ -40,7 +40,7 @@ const B = [
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
), d = (o) => {
|
|
43
|
-
const { ref: t, as: e, asChild: r, children: i, ...f } = o, m =
|
|
43
|
+
const { ref: t, as: e, asChild: r, children: i, ...f } = o, m = u(null), p = h(R(m, t)), [s, a] = P(
|
|
44
44
|
f,
|
|
45
45
|
p,
|
|
46
46
|
c
|
|
@@ -60,7 +60,7 @@ const B = [
|
|
|
60
60
|
*/
|
|
61
61
|
slot: s.slot || void 0
|
|
62
62
|
});
|
|
63
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ $(
|
|
64
64
|
A,
|
|
65
65
|
{
|
|
66
66
|
ref: a,
|
|
@@ -78,4 +78,4 @@ const N = /* @__PURE__ */ Object.assign(d, {
|
|
|
78
78
|
export {
|
|
79
79
|
N as B
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=button-
|
|
81
|
+
//# sourceMappingURL=button-BX2O6MQP.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-BX2O6MQP.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ButtonRootSlotProps } from \"./button.types\";\n\n/**\n * React Aria-specific event props that should NOT be forwarded to DOM elements.\n * These are custom event handlers that React Aria uses internally but are not\n * valid DOM event handlers.\n *\n * @see https://react-spectrum.adobe.com/react-aria/interactions.html\n */\nconst REACT_ARIA_EVENT_PROPS = [\n \"onPress\",\n \"onPressStart\",\n \"onPressEnd\",\n \"onPressChange\",\n \"onPressUp\",\n \"onFocusChange\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onHoverChange\",\n \"onMoveStart\",\n \"onMove\",\n \"onMoveEnd\",\n];\n\n/**\n * Checks if a prop is a React Aria-specific event handler that should not\n * be forwarded to the DOM.\n */\nconst isReactAriaEventProp = (prop: string): boolean =>\n REACT_ARIA_EVENT_PROPS.some((ariaProp) => prop.includes(ariaProp));\n\nconst { withContext } = createRecipeContext({\n key: \"nimbusButton\",\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootSlotProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /**\n * Filter out React Aria-specific props that shouldn't reach the DOM.\n * These props are consumed by useButton() but may still be present in\n * contextProps from ButtonContext slots.\n */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return (\n shouldForwardProp(prop) && chakraSfp && !isReactAriaEventProp(prop)\n );\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nconst ButtonComponent = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const baseRef = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps, contextRef] = useContextProps(\n rest,\n baseRef,\n ButtonContext\n );\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n contextRef\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={contextRef}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButtonComponent.displayName = \"Button\";\n\n/**\n * ### Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button: typeof ButtonComponent & {\n // TypeScript can't properly name the internal React Aria types when inferring\n // Button.Context, so we explicitly type it using typeof and Object.assign\n /**\n * ### Button.Context\n *\n * Re-exports React-Aria's `ButtonContext`\n *\n * For advanced use cases, **you generally will not need this**\n *\n * @see {@link https://react-spectrum.adobe.com/react-aria/advanced.html#contexts}\n * @see {@link https://react-spectrum.adobe.com/react-aria/Button.html#contexts}\n */\n Context: typeof ButtonContext;\n} = Object.assign(ButtonComponent, {\n Context: ButtonContext,\n});\n"],"names":["REACT_ARIA_EVENT_PROPS","isReactAriaEventProp","prop","ariaProp","withContext","createRecipeContext","ButtonRoot","variantKeys","chakraSfp","system","shouldForwardProp","ButtonComponent","props","forwardedRef","as","asChild","children","rest","localRef","useRef","baseRef","useObjectRef","mergeRefs","contextProps","contextRef","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx","Button"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAyB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAMMC,IAAuB,CAACC,MAC5BF,EAAuB,KAAK,CAACG,MAAaD,EAAK,SAASC,CAAQ,CAAC,GAE7D,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IAAa,gBAAAF;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOR,kBAAkBF,GAAMK,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASL,CAAI,KAAK,CAACO,EAAO,gBAAgBP,CAAI;AAC9D,aACEQ,EAAkBR,CAAI,KAAKM,KAAa,CAACP,EAAqBC,CAAI;AAAA,IAEtE;AAAA,EAAA;AAEJ,GC/CMS,IAAkB,CAACC,MAAuB;AAC9C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAUC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGxD,CAACU,GAAcC,CAAU,IAAIC;AAAAA,IACjCR;AAAA,IACAG;AAAA,IACAM;AAAAA,EAAA,GAMIC,IAAcb,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAa,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGN;AAAA,MACH,aAAAI;AAAA,IAAA;AAAA,IAEFH;AAAA,EAAA,GAGIM,IAAiBC,EAAWR,GAAcK,GAAa;AAAA,IAC3D,IAAAd;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAS;AAAA,IAAC1B;AAAA,IAAA;AAAA,MACC,KAAKkB;AAAA,MACJ,GAAGM;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAd;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAgB,cAAc;AASvB,MAAMsB,IAcT,uBAAO,OAAOtB,GAAiB;AAAA,EACjC,SAASe;AACX,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const P=require("react/jsx-runtime"),R=require("react"),a=require("./Button-C92vyQPT.cjs.js"),x=require("./utils-BNYGVv6l.cjs.js"),d=require("@chakra-ui/react"),m=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),q=require("./index-
|
|
2
|
-
//# sourceMappingURL=button-
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),R=require("react"),a=require("./Button-C92vyQPT.cjs.js"),x=require("./utils-BNYGVv6l.cjs.js"),d=require("@chakra-ui/react"),m=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),q=require("./index-Dzrt5_tw.cjs.js"),v=require("./useObjectRef-4v2MxSjQ.cjs.js"),C=require("./mergeProps-DD8aR8go.cjs.js"),h=require("./useButton-Dp2NwAPA.cjs.js"),B=["onPress","onPressStart","onPressEnd","onPressChange","onPressUp","onFocusChange","onHoverStart","onHoverEnd","onHoverChange","onMoveStart","onMove","onMoveEnd"],E=e=>B.some(t=>e.includes(t)),{withContext:g}=d.createRecipeContext({key:"nimbusButton"}),y=g("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const o=!t?.includes(e)&&!q.system.isValidProperty(e);return m.isPropValid(e)&&o&&!E(e)}}),i=e=>{const{ref:t,as:o,asChild:r,children:u,...b}=e,f=R.useRef(null),l=v.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(f,t)),[n,c]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(b,l,a.$d2b4bc8c273e7be6$export$24d547caef80ccd1),$=o||(r?"a":"button"),{buttonProps:p}=h.$701a24aa0da5b062$export$ea18c227d4417cc3({...n,elementType:$},c),s=C.$3ef42575df84b30b$export$9d1611c77c2fe928(n,p,{as:o,asChild:r,slot:n.slot||void 0});return P.jsx(y,{ref:c,...s,"aria-disabled":s.isDisabled||void 0,"data-disabled":s.isDisabled||void 0,children:u})};i.displayName="Button";const S=Object.assign(i,{Context:a.$d2b4bc8c273e7be6$export$24d547caef80ccd1});exports.Button=S;
|
|
2
|
+
//# sourceMappingURL=button-CkOEhYmQ.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-CkOEhYmQ.cjs.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ButtonRootSlotProps } from \"./button.types\";\n\n/**\n * React Aria-specific event props that should NOT be forwarded to DOM elements.\n * These are custom event handlers that React Aria uses internally but are not\n * valid DOM event handlers.\n *\n * @see https://react-spectrum.adobe.com/react-aria/interactions.html\n */\nconst REACT_ARIA_EVENT_PROPS = [\n \"onPress\",\n \"onPressStart\",\n \"onPressEnd\",\n \"onPressChange\",\n \"onPressUp\",\n \"onFocusChange\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onHoverChange\",\n \"onMoveStart\",\n \"onMove\",\n \"onMoveEnd\",\n];\n\n/**\n * Checks if a prop is a React Aria-specific event handler that should not\n * be forwarded to the DOM.\n */\nconst isReactAriaEventProp = (prop: string): boolean =>\n REACT_ARIA_EVENT_PROPS.some((ariaProp) => prop.includes(ariaProp));\n\nconst { withContext } = createRecipeContext({\n key: \"nimbusButton\",\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootSlotProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /**\n * Filter out React Aria-specific props that shouldn't reach the DOM.\n * These props are consumed by useButton() but may still be present in\n * contextProps from ButtonContext slots.\n */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return (\n shouldForwardProp(prop) && chakraSfp && !isReactAriaEventProp(prop)\n );\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nconst ButtonComponent = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const baseRef = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps, contextRef] = useContextProps(\n rest,\n baseRef,\n ButtonContext\n );\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n contextRef\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={contextRef}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButtonComponent.displayName = \"Button\";\n\n/**\n * ### Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button: typeof ButtonComponent & {\n // TypeScript can't properly name the internal React Aria types when inferring\n // Button.Context, so we explicitly type it using typeof and Object.assign\n /**\n * ### Button.Context\n *\n * Re-exports React-Aria's `ButtonContext`\n *\n * For advanced use cases, **you generally will not need this**\n *\n * @see {@link https://react-spectrum.adobe.com/react-aria/advanced.html#contexts}\n * @see {@link https://react-spectrum.adobe.com/react-aria/Button.html#contexts}\n */\n Context: typeof ButtonContext;\n} = Object.assign(ButtonComponent, {\n Context: ButtonContext,\n});\n"],"names":["REACT_ARIA_EVENT_PROPS","isReactAriaEventProp","prop","ariaProp","withContext","createRecipeContext","ButtonRoot","variantKeys","chakraSfp","system","shouldForwardProp","ButtonComponent","props","forwardedRef","as","asChild","children","rest","localRef","useRef","baseRef","useObjectRef","mergeRefs","contextProps","contextRef","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx","Button"],"mappings":"2YAYMA,EAAyB,CAC7B,UACA,eACA,aACA,gBACA,YACA,gBACA,eACA,aACA,gBACA,cACA,SACA,WACF,EAMMC,EAAwBC,GAC5BF,EAAuB,KAAMG,GAAaD,EAAK,SAASC,CAAQ,CAAC,EAE7D,CAAE,YAAAC,CAAA,EAAgBC,sBAAoB,CAC1C,IAAK,cACP,CAAC,EAMYC,EAAaF,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAOR,kBAAkBF,EAAMK,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASL,CAAI,GAAK,CAACO,EAAAA,OAAO,gBAAgBP,CAAI,EAC9D,OACEQ,EAAAA,YAAkBR,CAAI,GAAKM,GAAa,CAACP,EAAqBC,CAAI,CAEtE,CAAA,CAEJ,EC/CMS,EAAmBC,GAAuB,CAC9C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAUC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGxD,CAACU,EAAcC,CAAU,EAAIC,EAAAA,0CACjCR,EACAG,EACAM,EAAAA,yCAAA,EAMIC,EAAcb,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAa,GAAgBC,EAAAA,0CACtB,CACE,GAAGN,EACH,YAAAI,CAAA,EAEFH,CAAA,EAGIM,EAAiBC,EAAAA,0CAAWR,EAAcK,EAAa,CAC3D,GAAAd,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EAED,OACES,EAAAA,IAAC1B,EAAA,CACC,IAAKkB,EACJ,GAAGM,EACJ,gBAAeA,EAAe,YAAc,OAC5C,gBAAeA,EAAe,YAAc,OAE3C,SAAAd,CAAA,CAAA,CAGP,EAGAL,EAAgB,YAAc,SASvB,MAAMsB,EAcT,OAAO,OAAOtB,EAAiB,CACjC,QAASe,EAAAA,yCACX,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { j as S, d as T, e as A, f as F, g as I, h as z, a as P, c as L, k as N } from "./Heading-
|
|
2
|
+
import { j as S, d as T, e as A, f as F, g as I, h as z, a as P, c as L, k as N } from "./Heading-C0SIgP_B.es.js";
|
|
3
3
|
import { createSlotRecipeContext as j } from "@chakra-ui/react";
|
|
4
4
|
import { useSlotRecipe as B } from "@chakra-ui/react/styled-system";
|
|
5
|
-
import { e as G } from "./extract-style-props-
|
|
6
|
-
import { c as l, d as H } from "./useDateFormatter-
|
|
5
|
+
import { e as G } from "./extract-style-props-CMyV-es-.es.js";
|
|
6
|
+
import { c as l, d as H } from "./useDateFormatter-C0T2-xr7.es.js";
|
|
7
7
|
import { useContext as u } from "react";
|
|
8
|
-
import { $ } from "./Button-
|
|
9
|
-
import { e as _, c as w } from "./utils-
|
|
8
|
+
import { $ } from "./Button-C9AKe3Kt.es.js";
|
|
9
|
+
import { e as _, c as w } from "./utils-CrjF8U_E.es.js";
|
|
10
10
|
import { $ as v } from "./Text-DOcU1ycg.es.js";
|
|
11
11
|
import { n as f, u as k } from "./normalize-messages-BN9BAFXe.es.js";
|
|
12
12
|
import { $ as D } from "./context-BfHy4NgG.es.js";
|
|
13
13
|
import { KeyboardArrowLeft as g, KeyboardArrowRight as y } from "@commercetools/nimbus-icons";
|
|
14
|
-
import { T as C } from "./text-
|
|
14
|
+
import { T as C } from "./text-iTgAZrNO.es.js";
|
|
15
15
|
import { F as V } from "./flex-BqxAMF-7.es.js";
|
|
16
16
|
import { S as M } from "./stack-CoNreM7B.es.js";
|
|
17
|
-
import { V as J } from "./visually-hidden-
|
|
18
|
-
import { I as p } from "./icon-button-
|
|
17
|
+
import { V as J } from "./visually-hidden-DVHn3y3w.es.js";
|
|
18
|
+
import { I as p } from "./icon-button-DQaOMIAe.es.js";
|
|
19
19
|
import { B as R } from "./box-DuBoAZvq.es.js";
|
|
20
20
|
const { withProvider: K, withContext: s } = /* @__PURE__ */ j({
|
|
21
21
|
key: "nimbusCalendar"
|
|
@@ -224,4 +224,4 @@ const { withProvider: K, withContext: s } = /* @__PURE__ */ j({
|
|
|
224
224
|
export {
|
|
225
225
|
Ye as C
|
|
226
226
|
};
|
|
227
|
-
//# sourceMappingURL=calendar-
|
|
227
|
+
//# sourceMappingURL=calendar-B3GH1VKH.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-DyaRBars.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/intl/en.ts","../../src/components/calendar/intl/de.ts","../../src/components/calendar/intl/es.ts","../../src/components/calendar/intl/fr-FR.ts","../../src/components/calendar/intl/pt-BR.ts","../../src/components/calendar/calendar.messages.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCalendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","/**\n * Pre-compiled en messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Next month`,\n nextYear: `Next year`,\n previousMonth: `Previous month`,\n previousYear: `Previous year`,\n};\n","/**\n * Pre-compiled de messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Nächsten Monat`,\n nextYear: `Nächstes Jahr`,\n previousMonth: `Letzten Monat`,\n previousYear: `Letztes Jahr`,\n};\n","/**\n * Pre-compiled es messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mes`,\n nextYear: `Próximo año`,\n previousMonth: `Mes anterior`,\n previousYear: `Año anterior`,\n};\n","/**\n * Pre-compiled fr-FR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Mois suivant`,\n nextYear: `Année suivante`,\n previousMonth: `Mois précédent`,\n previousYear: `Année précédente`,\n};\n","/**\n * Pre-compiled pt-BR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mês`,\n nextYear: `Próximo ano`,\n previousMonth: `Mês anterior`,\n previousYear: `Ano anterior`,\n};\n","/**\n * Pre-compiled localized messages for Calendar component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport calendarMessages_en from \"./intl/en\";\nimport calendarMessages_de from \"./intl/de\";\nimport calendarMessages_es from \"./intl/es\";\nimport calendarMessages_fr from \"./intl/fr-FR\";\nimport calendarMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const calendarMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(calendarMessages_en),\n de: normalizeMessages(calendarMessages_de),\n es: normalizeMessages(calendarMessages_es),\n \"fr-FR\": normalizeMessages(calendarMessages_fr),\n \"pt-BR\": normalizeMessages(calendarMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Calendar component\n */\nexport type CalendarMessageKey =\n | \"nextMonth\"\n | \"nextYear\"\n | \"previousMonth\"\n | \"previousYear\";\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { calendarMessagesStrings } from \"../calendar.messages\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const msg = useLocalizedStringFormatter(calendarMessagesStrings);\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": msg.format(\"nextMonth\"),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": msg.format(\"previousMonth\"),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": msg.format(\"nextYear\"),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": msg.format(\"previousYear\"),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"nimbusCalendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","calendarMessages_en","calendarMessages_de","calendarMessages_es","calendarMessages_fr","calendarMessages_pt","calendarMessagesStrings","normalizeMessages","CalendarCustomContext","children","locale","useLocale","msg","useLocalizedStringFormatter","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,OAAO,MAAM,GAExDI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAEJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAEHK,IAAyB,gBAAAL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A,EAAkB,GAAGyE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"calendar-B3GH1VKH.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/intl/en.ts","../../src/components/calendar/intl/de.ts","../../src/components/calendar/intl/es.ts","../../src/components/calendar/intl/fr-FR.ts","../../src/components/calendar/intl/pt-BR.ts","../../src/components/calendar/calendar.messages.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusCalendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","/**\n * Pre-compiled en messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Next month`,\n nextYear: `Next year`,\n previousMonth: `Previous month`,\n previousYear: `Previous year`,\n};\n","/**\n * Pre-compiled de messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Nächsten Monat`,\n nextYear: `Nächstes Jahr`,\n previousMonth: `Letzten Monat`,\n previousYear: `Letztes Jahr`,\n};\n","/**\n * Pre-compiled es messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mes`,\n nextYear: `Próximo año`,\n previousMonth: `Mes anterior`,\n previousYear: `Año anterior`,\n};\n","/**\n * Pre-compiled fr-FR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Mois suivant`,\n nextYear: `Année suivante`,\n previousMonth: `Mois précédent`,\n previousYear: `Année précédente`,\n};\n","/**\n * Pre-compiled pt-BR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mês`,\n nextYear: `Próximo ano`,\n previousMonth: `Mês anterior`,\n previousYear: `Ano anterior`,\n};\n","/**\n * Pre-compiled localized messages for Calendar component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport calendarMessages_en from \"./intl/en\";\nimport calendarMessages_de from \"./intl/de\";\nimport calendarMessages_es from \"./intl/es\";\nimport calendarMessages_fr from \"./intl/fr-FR\";\nimport calendarMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const calendarMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(calendarMessages_en),\n de: normalizeMessages(calendarMessages_de),\n es: normalizeMessages(calendarMessages_es),\n \"fr-FR\": normalizeMessages(calendarMessages_fr),\n \"pt-BR\": normalizeMessages(calendarMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Calendar component\n */\nexport type CalendarMessageKey =\n | \"nextMonth\"\n | \"nextYear\"\n | \"previousMonth\"\n | \"previousYear\";\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { calendarMessagesStrings } from \"../calendar.messages\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const msg = useLocalizedStringFormatter(calendarMessagesStrings);\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": msg.format(\"nextMonth\"),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": msg.format(\"previousMonth\"),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": msg.format(\"nextYear\"),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": msg.format(\"previousYear\"),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"nimbusCalendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","calendarMessages_en","calendarMessages_de","calendarMessages_es","calendarMessages_fr","calendarMessages_pt","calendarMessagesStrings","normalizeMessages","CalendarCustomContext","children","locale","useLocale","msg","useLocalizedStringFormatter","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,OAAO,MAAM,GAExDI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAEJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAEHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAERM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAEJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAEVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAEPS,IAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAERU,KAAmB,gBAAAV,EAG9B,MAAM,UAAU,GCvDlBW,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCYaC,KAGT;AAAA,EACF,IAAI,gBAAAC,EAAkBN,EAAmB;AAAA,EACzC,IAAI,gBAAAM,EAAkBL,EAAmB;AAAA,EACzC,IAAI,gBAAAK,EAAkBJ,EAAmB;AAAA,EACzC,SAAS,gBAAAI,EAAkBH,EAAmB;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AA,UACL,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,cAAa;AAAA,UAEb,4BAACG,GAAA,CAAA,CAAmB;AAAA,QAAA;AAAA,MAAA;AAAA,IACtB,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ,GCtEaC,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAc,EAAE,KAAK,kBAAkB,GAChD,CAACC,GAAaC,CAAc,IAAIH,EAAO,kBAAkBD,CAAK,GAC9D,CAACK,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAvC,EAACnC,GAAA,EAAkB,GAAGyE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("./Heading-DZs_EBvf.cjs.js"),w=require("@chakra-ui/react"),q=require("@chakra-ui/react/styled-system"),D=require("./extract-style-props-
|
|
2
|
-
//# sourceMappingURL=calendar-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("./Heading-DZs_EBvf.cjs.js"),w=require("@chakra-ui/react"),q=require("@chakra-ui/react/styled-system"),D=require("./extract-style-props-DVhOcGEi.cjs.js"),i=require("./useDateFormatter-DcND0YZj.cjs.js"),b=require("react"),v=require("./Button-C92vyQPT.cjs.js"),p=require("./utils-BNYGVv6l.cjs.js"),y=require("./Text-BWSfeB9p.cjs.js"),f=require("./normalize-messages-DtVffO09.cjs.js"),M=require("./context-XwB7Jud0.cjs.js"),u=require("@commercetools/nimbus-icons"),j=require("./text-CH7Y0lWq.cjs.js"),R=require("./flex-DwGL6TCj.cjs.js"),C=require("./stack-CIN13EDn.cjs.js"),z=require("./visually-hidden-CE1SDmBy.cjs.js"),$=require("./icon-button-CVdz2C9L.cjs.js"),S=require("./box-CWni3A32.cjs.js"),{withProvider:I,withContext:c}=w.createSlotRecipeContext({key:"nimbusCalendar"}),T=I("div","root"),Y=c("div","header"),A=c("div","grids"),B=c("div","monthTitle"),F=c("table","grid"),L=c("thead","gridHeader"),H=c("th","headerCell"),N=c("tbody","gridBody"),k=c("td","bodyCell"),G={nextMonth:"Next month",nextYear:"Next year",previousMonth:"Previous month",previousYear:"Previous year"},_={nextMonth:"Nächsten Monat",nextYear:"Nächstes Jahr",previousMonth:"Letzten Monat",previousYear:"Letztes Jahr"},K={nextMonth:"Próximo mes",nextYear:"Próximo año",previousMonth:"Mes anterior",previousYear:"Año anterior"},J={nextMonth:"Mois suivant",nextYear:"Année suivante",previousMonth:"Mois précédent",previousYear:"Année précédente"},V={nextMonth:"Próximo mês",nextYear:"Próximo ano",previousMonth:"Mês anterior",previousYear:"Ano anterior"},W={en:f.normalizeMessages(G),de:f.normalizeMessages(_),es:f.normalizeMessages(K),"fr-FR":f.normalizeMessages(J),"pt-BR":f.normalizeMessages(V)},E=({children:d})=>{const{locale:n}=M.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=f.useLocalizedStringFormatter(W),r=b.useContext(v.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=b.useContext(y.$514c0188e459b4c0$export$9afb8bc826b033ea),o=b.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),g={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":t.format("nextMonth")},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":t.format("previousMonth")},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":t.format("nextYear")},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":t.format("previousYear")}},x=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),m=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),h=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:x},monthRange:{children:m},year:{children:h}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...g}}],[y.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},O=()=>{const{locale:d}=M.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=b.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,s=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),o=r>1;return e.jsx(A,{children:Array.from({length:r},(g,x)=>{const m=t.visibleRange.start.add({months:x}),h=new Intl.DateTimeFormat(d,{month:"long"}).format(m.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(S.Box,{width:r==1?"full":"auto",children:[o&&e.jsx(B,{children:h}),e.jsx(F,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:x},weekdayStyle:"short",children:[e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(H,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const P=l.compare(s)===0;return e.jsx(k,{asChild:!0,"data-today":P,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},h)})})},Q=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(Y,{children:e.jsxs(R.Flex,{children:[e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(z.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx($.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(j.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx($.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(S.Box,{flexGrow:"1"}),e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx($.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(j.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx($.IconButton,{slot:"next-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},U=d=>{const n=q.useSlotRecipe({key:"nimbusCalendar"}),[t,r]=n.splitVariantProps(d),[s,o]=D.extractStyleProps(r);return e.jsx(T,{...t,...s,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...o,children:e.jsxs(E,{children:[e.jsx(Q,{}),e.jsx(O,{})]})})})};exports.Calendar=U;
|
|
2
|
+
//# sourceMappingURL=calendar-BvkyaZlH.cjs.js.map
|