@commercetools/nimbus 0.0.0-canary-20250812202252 → 0.0.0-canary-20250813190648
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +2 -2
- package/dist/alert.d.ts +5 -5
- package/dist/avatar.d.ts +4 -4
- package/dist/badge.d.ts +4 -4
- package/dist/box.d.ts +1 -1
- package/dist/button.d.ts +3 -3
- package/dist/calendar.d.ts +2 -2
- package/dist/card.d.ts +4 -4
- package/dist/checkbox.d.ts +2 -2
- package/dist/chunks/{accordion-xfgQQjFK.es.js → accordion-CqRxcnoE.es.js} +19 -17
- package/dist/chunks/accordion-CqRxcnoE.es.js.map +1 -0
- package/dist/chunks/accordion-DJNATyjS.cjs.js +2 -0
- package/dist/chunks/accordion-DJNATyjS.cjs.js.map +1 -0
- package/dist/chunks/alert-BffSjlyM.cjs.js +2 -0
- package/dist/chunks/alert-BffSjlyM.cjs.js.map +1 -0
- package/dist/chunks/{alert-BkF91mJ0.es.js → alert-Ctgl9RlR.es.js} +26 -25
- package/dist/chunks/alert-Ctgl9RlR.es.js.map +1 -0
- package/dist/chunks/{avatar-DgvfEdwK.es.js → avatar-DDCMu1RQ.es.js} +11 -10
- package/dist/chunks/avatar-DDCMu1RQ.es.js.map +1 -0
- package/dist/chunks/avatar-Dps7PI8I.cjs.js +2 -0
- package/dist/chunks/avatar-Dps7PI8I.cjs.js.map +1 -0
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +2 -0
- package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +1 -0
- package/dist/chunks/{avatar.recipe-BSmmqvwQ.es.js → avatar.recipe-CxXQlkH6.es.js} +2 -2
- package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +1 -0
- package/dist/chunks/{badge-DVDR3-fy.es.js → badge-CmLLB9Kf.es.js} +9 -7
- package/dist/chunks/badge-CmLLB9Kf.es.js.map +1 -0
- package/dist/chunks/badge-Do9L64AE.cjs.js +2 -0
- package/dist/chunks/badge-Do9L64AE.cjs.js.map +1 -0
- package/dist/chunks/box-BOsRGQEm.cjs.js +2 -0
- package/dist/chunks/box-BOsRGQEm.cjs.js.map +1 -0
- package/dist/chunks/box-Cd4iddEV.es.js +13 -0
- package/dist/chunks/box-Cd4iddEV.es.js.map +1 -0
- package/dist/chunks/button--WwulbmL.cjs.js +2 -0
- package/dist/chunks/button--WwulbmL.cjs.js.map +1 -0
- package/dist/chunks/button-D0vEDRkY.es.js +57 -0
- package/dist/chunks/button-D0vEDRkY.es.js.map +1 -0
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +2 -0
- package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +1 -0
- package/dist/chunks/{button.recipe-DzOS_Bqm.es.js → button.recipe-D9e9Gh9L.es.js} +2 -2
- package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +1 -0
- package/dist/chunks/calendar-BU6VJNGi.cjs.js +2 -0
- package/dist/chunks/calendar-BU6VJNGi.cjs.js.map +1 -0
- package/dist/chunks/{calendar-B4nCYXn4.es.js → calendar-BxI6atN6.es.js} +20 -18
- package/dist/chunks/calendar-BxI6atN6.es.js.map +1 -0
- package/dist/chunks/card-C7xJPUxQ.cjs.js +2 -0
- package/dist/chunks/card-C7xJPUxQ.cjs.js.map +1 -0
- package/dist/chunks/{card-CvY06qIE.es.js → card-OJ-C7GGY.es.js} +24 -23
- package/dist/chunks/card-OJ-C7GGY.es.js.map +1 -0
- package/dist/chunks/checkbox-BBesM-2s.cjs.js +2 -0
- package/dist/chunks/checkbox-BBesM-2s.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-yo64B6Gz.es.js → checkbox-uHIP3eGd.es.js} +15 -14
- package/dist/chunks/checkbox-uHIP3eGd.es.js.map +1 -0
- package/dist/chunks/code-7P3tH99x.cjs.js +2 -0
- package/dist/chunks/code-7P3tH99x.cjs.js.map +1 -0
- package/dist/chunks/code-C44qm68X.es.js +8 -0
- package/dist/chunks/code-C44qm68X.es.js.map +1 -0
- package/dist/chunks/{combobox-DWSsUEVz.es.js → combobox-BinlFC76.es.js} +110 -108
- package/dist/chunks/{combobox-DWSsUEVz.es.js.map → combobox-BinlFC76.es.js.map} +1 -1
- package/dist/chunks/combobox-J_QFtJde.cjs.js +2 -0
- package/dist/chunks/{combobox-D5lDtav9.cjs.js.map → combobox-J_QFtJde.cjs.js.map} +1 -1
- package/dist/chunks/config-Mt8_uyhI.cjs.js +2 -0
- package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -0
- package/dist/chunks/config-ufbQ08Vi.es.js +6 -0
- package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -0
- package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js +2 -0
- package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js.map +1 -0
- package/dist/chunks/create-recipe-context-c0qjq1fz.es.js +62 -0
- package/dist/chunks/create-recipe-context-c0qjq1fz.es.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js +2 -0
- package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js +104 -0
- package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js.map +1 -0
- package/dist/chunks/date-input-BxN-H9P6.es.js +17 -0
- package/dist/chunks/date-input-BxN-H9P6.es.js.map +1 -0
- package/dist/chunks/date-input-CM4AIKke.cjs.js +2 -0
- package/dist/chunks/date-input-CM4AIKke.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-CrV9TJ_O.es.js → date-picker-Anq88Byq.es.js} +39 -38
- package/dist/chunks/date-picker-Anq88Byq.es.js.map +1 -0
- package/dist/chunks/date-picker-mVAaj9Pj.cjs.js +2 -0
- package/dist/chunks/date-picker-mVAaj9Pj.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-ByLVQAiA.es.js → date-range-picker-CZTsX2-y.es.js} +14 -13
- package/dist/chunks/date-range-picker-CZTsX2-y.es.js.map +1 -0
- package/dist/chunks/date-range-picker-CgL8fH17.cjs.js +2 -0
- package/dist/chunks/date-range-picker-CgL8fH17.cjs.js.map +1 -0
- package/dist/chunks/dialog-7iIFtc75.cjs.js +2 -0
- package/dist/chunks/dialog-7iIFtc75.cjs.js.map +1 -0
- package/dist/chunks/dialog-CbMKp4zh.es.js +1874 -0
- package/dist/chunks/dialog-CbMKp4zh.es.js.map +1 -0
- package/dist/chunks/{divider-m0ZtHIMJ.es.js → divider-CVqryFNj.es.js} +4 -2
- package/dist/chunks/divider-CVqryFNj.es.js.map +1 -0
- package/dist/chunks/divider-D8xdfux3.cjs.js +2 -0
- package/dist/chunks/divider-D8xdfux3.cjs.js.map +1 -0
- package/dist/chunks/empty-B5_AO6Pg.cjs.js +2 -0
- package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -0
- package/dist/chunks/empty-D7ZFmvo6.es.js +8 -0
- package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -0
- package/dist/chunks/extractStyleProps-B7kwDyYx.es.js +11 -0
- package/dist/chunks/extractStyleProps-B7kwDyYx.es.js.map +1 -0
- package/dist/chunks/extractStyleProps-Br2UMow5.cjs.js +2 -0
- package/dist/chunks/extractStyleProps-Br2UMow5.cjs.js.map +1 -0
- package/dist/chunks/factory-BpGQXckI.es.js +266 -0
- package/dist/chunks/factory-BpGQXckI.es.js.map +1 -0
- package/dist/chunks/factory-DNbWS0Ob.cjs.js +3 -0
- package/dist/chunks/factory-DNbWS0Ob.cjs.js.map +1 -0
- package/dist/chunks/flex-DgabwPpo.es.js +40 -0
- package/dist/chunks/flex-DgabwPpo.es.js.map +1 -0
- package/dist/chunks/flex-DgsstZZT.cjs.js +2 -0
- package/dist/chunks/flex-DgsstZZT.cjs.js.map +1 -0
- package/dist/chunks/{form-field-CBFyTAo8.cjs.js → form-field-BFeTiFeX.cjs.js} +3 -3
- package/dist/chunks/form-field-BFeTiFeX.cjs.js.map +1 -0
- package/dist/chunks/{form-field-C9PpQYF0.es.js → form-field-CRWPeZsB.es.js} +31 -30
- package/dist/chunks/form-field-CRWPeZsB.es.js.map +1 -0
- package/dist/chunks/grid-D2EDS3Nw.cjs.js +2 -0
- package/dist/chunks/grid-D2EDS3Nw.cjs.js.map +1 -0
- package/dist/chunks/grid-item-BHKNxWuU.es.js +75 -0
- package/dist/chunks/grid-item-BHKNxWuU.es.js.map +1 -0
- package/dist/chunks/grid-item-Bwt35oD8.cjs.js +2 -0
- package/dist/chunks/grid-item-Bwt35oD8.cjs.js.map +1 -0
- package/dist/chunks/grid-ksgCqjX_.es.js +14 -0
- package/dist/chunks/grid-ksgCqjX_.es.js.map +1 -0
- package/dist/chunks/heading-C9DC5cG8.es.js +8 -0
- package/dist/chunks/heading-C9DC5cG8.es.js.map +1 -0
- package/dist/chunks/heading-CbGsyynP.cjs.js +2 -0
- package/dist/chunks/heading-CbGsyynP.cjs.js.map +1 -0
- package/dist/chunks/{icon-BFNYuilh.es.js → icon-BSGub7AG.es.js} +10 -9
- package/dist/chunks/icon-BSGub7AG.es.js.map +1 -0
- package/dist/chunks/icon-H-rP9kq5.cjs.js +2 -0
- package/dist/chunks/icon-H-rP9kq5.cjs.js.map +1 -0
- package/dist/chunks/{icon-button-BEaNe4rE.cjs.js → icon-button-C-Orugq3.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BEaNe4rE.cjs.js.map → icon-button-C-Orugq3.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-DqkVeZCx.es.js → icon-button-CJHH2Msr.es.js} +2 -2
- package/dist/chunks/{icon-button-DqkVeZCx.es.js.map → icon-button-CJHH2Msr.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CuzGWc2s.es.js → icon-toggle-button-BeyRptXX.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CuzGWc2s.es.js.map → icon-toggle-button-BeyRptXX.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CvLwJfJE.cjs.js → icon-toggle-button-BvmRCp0M.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CvLwJfJE.cjs.js.map → icon-toggle-button-BvmRCp0M.cjs.js.map} +1 -1
- package/dist/chunks/image-B-WEdENT.cjs.js +2 -0
- package/dist/chunks/image-B-WEdENT.cjs.js.map +1 -0
- package/dist/chunks/image-BVUCjLWP.es.js +22 -0
- package/dist/chunks/image-BVUCjLWP.es.js.map +1 -0
- package/dist/chunks/image-BwlmPt3P.es.js +8 -0
- package/dist/chunks/image-BwlmPt3P.es.js.map +1 -0
- package/dist/chunks/image-CIQlu9WX.cjs.js +2 -0
- package/dist/chunks/image-CIQlu9WX.cjs.js.map +1 -0
- package/dist/chunks/index-DdQ9V6B1.es.js +3370 -0
- package/dist/chunks/index-DdQ9V6B1.es.js.map +1 -0
- package/dist/chunks/index-LEpCeLVL.cjs.js +4 -0
- package/dist/chunks/index-LEpCeLVL.cjs.js.map +1 -0
- package/dist/chunks/kbd-CJWAjmm3.es.js +16 -0
- package/dist/chunks/kbd-CJWAjmm3.es.js.map +1 -0
- package/dist/chunks/kbd-D4NGKYuV.cjs.js +2 -0
- package/dist/chunks/kbd-D4NGKYuV.cjs.js.map +1 -0
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +2 -0
- package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +1 -0
- package/dist/chunks/{kbd.recipe-BONVaPQN.es.js → kbd.recipe-BTW0MQqx.es.js} +2 -2
- package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +1 -0
- package/dist/chunks/link-DioynlqV.cjs.js +2 -0
- package/dist/chunks/link-DioynlqV.cjs.js.map +1 -0
- package/dist/chunks/{link-BS1jRPrC.es.js → link-WoVkNCsH.es.js} +6 -5
- package/dist/chunks/link-WoVkNCsH.es.js.map +1 -0
- package/dist/chunks/{link.recipe-Ba2by0OG.es.js → link.recipe-BRnFQ5bP.es.js} +2 -2
- package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +1 -0
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +2 -0
- package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +1 -0
- package/dist/chunks/list-BaX7-sRB.cjs.js +2 -0
- package/dist/chunks/list-BaX7-sRB.cjs.js.map +1 -0
- package/dist/chunks/list-BhODpevn.es.js +23 -0
- package/dist/chunks/list-BhODpevn.es.js.map +1 -0
- package/dist/chunks/{loading-spinner-DwN-yshK.es.js → loading-spinner-CLsuIMu8.es.js} +7 -6
- package/dist/chunks/loading-spinner-CLsuIMu8.es.js.map +1 -0
- package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js.map +1 -0
- package/dist/chunks/{menu-BpACcVBO.es.js → menu-B83imnEP.es.js} +15 -15
- package/dist/chunks/menu-B83imnEP.es.js.map +1 -0
- package/dist/chunks/menu-CJYawkvo.cjs.js +2 -0
- package/dist/chunks/menu-CJYawkvo.cjs.js.map +1 -0
- package/dist/chunks/{multiline-text-input-sSdbj6tb.es.js → multiline-text-input-CqgvtbhN.es.js} +15 -12
- package/dist/chunks/multiline-text-input-CqgvtbhN.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-Dqg0eKRI.cjs.js +12 -0
- package/dist/chunks/multiline-text-input-Dqg0eKRI.cjs.js.map +1 -0
- package/dist/chunks/namespace-BXD5i_90.cjs.js +2 -0
- package/dist/chunks/namespace-BXD5i_90.cjs.js.map +1 -0
- package/dist/chunks/namespace-BmDr3F-d.es.js +74 -0
- package/dist/chunks/namespace-BmDr3F-d.es.js.map +1 -0
- package/dist/chunks/nimbus-provider--BLRh-Uv.cjs.js +2 -0
- package/dist/chunks/nimbus-provider--BLRh-Uv.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-C2CEn-eC.es.js +101 -0
- package/dist/chunks/nimbus-provider-C2CEn-eC.es.js.map +1 -0
- package/dist/chunks/{number-input-DzwHfylo.es.js → number-input-CTJ6er_k.es.js} +12 -11
- package/dist/chunks/{number-input-DzwHfylo.es.js.map → number-input-CTJ6er_k.es.js.map} +1 -1
- package/dist/chunks/number-input-DBjXTpXm.cjs.js +2 -0
- package/dist/chunks/{number-input-BU6yMXV8.cjs.js.map → number-input-DBjXTpXm.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-DpINXGwE.cjs.js → password-input-B8sRYG6_.cjs.js} +2 -2
- package/dist/chunks/{password-input-DpINXGwE.cjs.js.map → password-input-B8sRYG6_.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-DdJ9gDUr.es.js → password-input-cW7vrwPv.es.js} +5 -5
- package/dist/chunks/{password-input-DdJ9gDUr.es.js.map → password-input-cW7vrwPv.es.js.map} +1 -1
- package/dist/chunks/progress-bar-B7jPo_Tr.cjs.js +2 -0
- package/dist/chunks/progress-bar-B7jPo_Tr.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-CCyJEPoU.es.js → progress-bar-NxgV8zFn.es.js} +20 -18
- package/dist/chunks/progress-bar-NxgV8zFn.es.js.map +1 -0
- package/dist/chunks/provider-CUesptNK.cjs.js +16 -0
- package/dist/chunks/provider-CUesptNK.cjs.js.map +1 -0
- package/dist/chunks/provider-D5u1b72_.es.js +989 -0
- package/dist/chunks/provider-D5u1b72_.es.js.map +1 -0
- package/dist/chunks/{radio-input-CCm7Xqcz.es.js → radio-input-CUyRuKg2.es.js} +40 -40
- package/dist/chunks/{radio-input-CCm7Xqcz.es.js.map → radio-input-CUyRuKg2.es.js.map} +1 -1
- package/dist/chunks/radio-input-CkWvEex9.cjs.js +2 -0
- package/dist/chunks/{radio-input-BLVHJidw.cjs.js.map → radio-input-CkWvEex9.cjs.js.map} +1 -1
- package/dist/chunks/range-calendar-BtViOWLD.cjs.js +2 -0
- package/dist/chunks/range-calendar-BtViOWLD.cjs.js.map +1 -0
- package/dist/chunks/{range-calendar-C-qR1QHT.es.js → range-calendar-D2MlUnBw.es.js} +22 -20
- package/dist/chunks/range-calendar-D2MlUnBw.es.js.map +1 -0
- package/dist/chunks/select-0SJSIvQi.cjs.js +2 -0
- package/dist/chunks/{select-BZ2fZDHJ.cjs.js.map → select-0SJSIvQi.cjs.js.map} +1 -1
- package/dist/chunks/{select-Cx0Yiwr-.es.js → select-D1P8VLDI.es.js} +67 -65
- package/dist/chunks/{select-Cx0Yiwr-.es.js.map → select-D1P8VLDI.es.js.map} +1 -1
- package/dist/chunks/simple-grid-BYgtLdTo.cjs.js +2 -0
- package/dist/chunks/simple-grid-BYgtLdTo.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-QwCuXJDe.es.js +38 -0
- package/dist/chunks/simple-grid-QwCuXJDe.es.js.map +1 -0
- package/dist/chunks/stack-CFOuBCxS.es.js +89 -0
- package/dist/chunks/stack-CFOuBCxS.es.js.map +1 -0
- package/dist/chunks/stack-CSKcZxll.cjs.js +2 -0
- package/dist/chunks/stack-CSKcZxll.cjs.js.map +1 -0
- package/dist/chunks/switch-3KIpk4ks.cjs.js +2 -0
- package/dist/chunks/switch-3KIpk4ks.cjs.js.map +1 -0
- package/dist/chunks/{switch-BriJIKqx.es.js → switch-DRsQP8Z7.es.js} +10 -9
- package/dist/chunks/switch-DRsQP8Z7.es.js.map +1 -0
- package/dist/chunks/tag-group-2RUxMfVr.cjs.js +2 -0
- package/dist/chunks/{tag-group-D7GNkec5.cjs.js.map → tag-group-2RUxMfVr.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-8CojIACI.es.js → tag-group-BjRA3GJh.es.js} +46 -46
- package/dist/chunks/{tag-group-8CojIACI.es.js.map → tag-group-BjRA3GJh.es.js.map} +1 -1
- package/dist/chunks/text-input-CDZWoQpD.es.js +19 -0
- package/dist/chunks/text-input-CDZWoQpD.es.js.map +1 -0
- package/dist/chunks/text-input-_x_TUbxj.cjs.js +2 -0
- package/dist/chunks/text-input-_x_TUbxj.cjs.js.map +1 -0
- package/dist/chunks/text-tO5nXPfT.cjs.js +2 -0
- package/dist/chunks/text-tO5nXPfT.cjs.js.map +1 -0
- package/dist/chunks/text-uojQ1XH5.es.js +26 -0
- package/dist/chunks/text-uojQ1XH5.es.js.map +1 -0
- package/dist/chunks/time-input-CAI-K0L0.cjs.js +2 -0
- package/dist/chunks/time-input-CAI-K0L0.cjs.js.map +1 -0
- package/dist/chunks/{time-input-pPM_sx2J.es.js → time-input-DgGtoKk8.es.js} +8 -6
- package/dist/chunks/time-input-DgGtoKk8.es.js.map +1 -0
- package/dist/chunks/toggle-button-BFYCOJoj.cjs.js +2 -0
- package/dist/chunks/toggle-button-BFYCOJoj.cjs.js.map +1 -0
- package/dist/chunks/{toggle-button-group-BQfaNSZf.es.js → toggle-button-group-Cs4SQjtM.es.js} +15 -14
- package/dist/chunks/toggle-button-group-Cs4SQjtM.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-DLVSXDvN.cjs.js +2 -0
- package/dist/chunks/toggle-button-group-DLVSXDvN.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-l1Pb1Miz.es.js +30 -0
- package/dist/chunks/toggle-button-l1Pb1Miz.es.js.map +1 -0
- package/dist/chunks/{toolbar-DZrjQLFq.es.js → toolbar-Dd7Gl-f7.es.js} +3 -3
- package/dist/chunks/{toolbar-DZrjQLFq.es.js.map → toolbar-Dd7Gl-f7.es.js.map} +1 -1
- package/dist/chunks/toolbar-m0KbmT1E.cjs.js +2 -0
- package/dist/chunks/{toolbar-O-t4_xhL.cjs.js.map → toolbar-m0KbmT1E.cjs.js.map} +1 -1
- package/dist/chunks/tooltip-BuQb6UvD.cjs.js +2 -0
- package/dist/chunks/{tooltip-DwXtfA_x.cjs.js.map → tooltip-BuQb6UvD.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-Bi0556u1.es.js → tooltip-Cobyf8Kh.es.js} +4 -4
- package/dist/chunks/{tooltip-Bi0556u1.es.js.map → tooltip-Cobyf8Kh.es.js.map} +1 -1
- package/dist/chunks/{tooltip.recipe-B9-7OFCi.es.js → tooltip.recipe-DsVUEki2.es.js} +2 -2
- package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +1 -0
- package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +2 -0
- package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +1 -0
- package/dist/chunks/use-recipe-CJAjTxPP.cjs.js +2 -0
- package/dist/chunks/use-recipe-CJAjTxPP.cjs.js.map +1 -0
- package/dist/chunks/use-recipe-dUXCQYfa.es.js +13 -0
- package/dist/chunks/use-recipe-dUXCQYfa.es.js.map +1 -0
- package/dist/chunks/walk-object-BGye4E3_.cjs.js +2 -0
- package/dist/chunks/walk-object-BGye4E3_.cjs.js.map +1 -0
- package/dist/chunks/walk-object-D9P1kanu.es.js +27 -0
- package/dist/chunks/walk-object-D9P1kanu.es.js.map +1 -0
- package/dist/combobox.d.ts +3 -3
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/box.cjs +1 -1
- package/dist/components/box.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/code.cjs +1 -1
- package/dist/components/code.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +72 -70
- package/dist/components/components.es.js.map +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/flex.cjs +1 -1
- package/dist/components/flex.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/grid.cjs +1 -1
- package/dist/components/grid.es.js +1 -1
- package/dist/components/heading.cjs +1 -1
- package/dist/components/heading.es.js +2 -2
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image.cjs +1 -1
- package/dist/components/image.es.js +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/simple-grid.cjs +1 -1
- package/dist/components/simple-grid.es.js +1 -1
- package/dist/components/stack.cjs +1 -1
- package/dist/components/stack.es.js +1 -1
- 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 +2 -2
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components.d.ts +24 -20
- package/dist/date-input.d.ts +4 -4
- package/dist/date-picker.d.ts +4 -4
- package/dist/date-range-picker.d.ts +4 -4
- package/dist/dialog.d.ts +1 -1
- package/dist/divider.d.ts +4 -4
- package/dist/flex.d.ts +1 -1
- package/dist/form-field.d.ts +3 -3
- package/dist/grid.d.ts +1 -1
- package/dist/heading.d.ts +1 -1
- package/dist/icon-button.d.ts +3 -3
- package/dist/icon-toggle-button.d.ts +3 -3
- package/dist/icon.d.ts +4 -4
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -20
- package/dist/index.es.js +124 -121
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +1 -1
- package/dist/link.d.ts +4 -4
- package/dist/list.d.ts +1 -1
- package/dist/loading-spinner.d.ts +4 -4
- package/dist/multiline-text-input.d.ts +3 -3
- package/dist/number-input.d.ts +3 -3
- package/dist/password-input.d.ts +3 -3
- package/dist/progress-bar.d.ts +4 -4
- package/dist/radio-input.d.ts +3 -3
- package/dist/range-calendar.d.ts +2 -2
- package/dist/select.d.ts +2 -2
- package/dist/simple-grid.d.ts +1 -1
- package/dist/stack.d.ts +1 -1
- package/dist/switch.d.ts +2 -2
- package/dist/table.d.ts +1 -1
- package/dist/tag-group.d.ts +3 -3
- package/dist/text-input.d.ts +3 -3
- package/dist/text.d.ts +1 -1
- package/dist/time-input.d.ts +4 -4
- package/dist/toggle-button-group.d.ts +3 -3
- package/dist/toggle-button.d.ts +3 -3
- package/dist/tooltip.d.ts +4 -4
- package/package.json +5 -5
- package/dist/chunks/accordion-Bn6CnY0Y.cjs.js +0 -2
- package/dist/chunks/accordion-Bn6CnY0Y.cjs.js.map +0 -1
- package/dist/chunks/accordion-xfgQQjFK.es.js.map +0 -1
- package/dist/chunks/alert-BkF91mJ0.es.js.map +0 -1
- package/dist/chunks/alert-CQLVvNDD.cjs.js +0 -2
- package/dist/chunks/alert-CQLVvNDD.cjs.js.map +0 -1
- package/dist/chunks/avatar-BLun8TXk.cjs.js +0 -2
- package/dist/chunks/avatar-BLun8TXk.cjs.js.map +0 -1
- package/dist/chunks/avatar-DgvfEdwK.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js.map +0 -1
- package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js +0 -2
- package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js.map +0 -1
- package/dist/chunks/badge-CFwI3HLf.cjs.js +0 -2
- package/dist/chunks/badge-CFwI3HLf.cjs.js.map +0 -1
- package/dist/chunks/badge-DVDR3-fy.es.js.map +0 -1
- package/dist/chunks/box-DD4jYgS7.es.js +0 -11
- package/dist/chunks/box-DD4jYgS7.es.js.map +0 -1
- package/dist/chunks/box-FU6tRPFs.cjs.js +0 -2
- package/dist/chunks/box-FU6tRPFs.cjs.js.map +0 -1
- package/dist/chunks/button-BBwNbl7S.cjs.js +0 -2
- package/dist/chunks/button-BBwNbl7S.cjs.js.map +0 -1
- package/dist/chunks/button-BTpQweka.es.js +0 -55
- package/dist/chunks/button-BTpQweka.es.js.map +0 -1
- package/dist/chunks/button.recipe-DHk13lGU.cjs.js +0 -2
- package/dist/chunks/button.recipe-DHk13lGU.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-DzOS_Bqm.es.js.map +0 -1
- package/dist/chunks/calendar-B4nCYXn4.es.js.map +0 -1
- package/dist/chunks/calendar-CKVscUm-.cjs.js +0 -2
- package/dist/chunks/calendar-CKVscUm-.cjs.js.map +0 -1
- package/dist/chunks/calendar.recipe-B2sMokBn.es.js +0 -101
- package/dist/chunks/calendar.recipe-B2sMokBn.es.js.map +0 -1
- package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js +0 -2
- package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js.map +0 -1
- package/dist/chunks/card-B9z3AknN.cjs.js +0 -2
- package/dist/chunks/card-B9z3AknN.cjs.js.map +0 -1
- package/dist/chunks/card-CvY06qIE.es.js.map +0 -1
- package/dist/chunks/checkbox-DywApPQh.cjs.js +0 -2
- package/dist/chunks/checkbox-DywApPQh.cjs.js.map +0 -1
- package/dist/chunks/checkbox-yo64B6Gz.es.js.map +0 -1
- package/dist/chunks/code-CI8aUhmu.es.js +0 -6
- package/dist/chunks/code-CI8aUhmu.es.js.map +0 -1
- package/dist/chunks/code-Dg4Larbo.cjs.js +0 -2
- package/dist/chunks/code-Dg4Larbo.cjs.js.map +0 -1
- package/dist/chunks/combobox-D5lDtav9.cjs.js +0 -2
- package/dist/chunks/combobox.recipe-CJl9E8AK.cjs.js +0 -2
- package/dist/chunks/combobox.recipe-CJl9E8AK.cjs.js.map +0 -1
- package/dist/chunks/combobox.recipe-DfgnwaPj.es.js +0 -380
- package/dist/chunks/combobox.recipe-DfgnwaPj.es.js.map +0 -1
- package/dist/chunks/date-input-4hsVHJJo.es.js +0 -16
- package/dist/chunks/date-input-4hsVHJJo.es.js.map +0 -1
- package/dist/chunks/date-input-CGy4NHpW.cjs.js +0 -2
- package/dist/chunks/date-input-CGy4NHpW.cjs.js.map +0 -1
- package/dist/chunks/date-input.recipe-BGVIdrvQ.cjs.js +0 -2
- package/dist/chunks/date-input.recipe-BGVIdrvQ.cjs.js.map +0 -1
- package/dist/chunks/date-input.recipe-DENfjb1Z.es.js +0 -127
- package/dist/chunks/date-input.recipe-DENfjb1Z.es.js.map +0 -1
- package/dist/chunks/date-picker-BSOum_Vm.cjs.js +0 -2
- package/dist/chunks/date-picker-BSOum_Vm.cjs.js.map +0 -1
- package/dist/chunks/date-picker-CrV9TJ_O.es.js.map +0 -1
- package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js +0 -2
- package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js.map +0 -1
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js +0 -82
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js.map +0 -1
- package/dist/chunks/date-range-picker-Bvgghg-M.cjs.js +0 -2
- package/dist/chunks/date-range-picker-Bvgghg-M.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-ByLVQAiA.es.js.map +0 -1
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js +0 -2
- package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js +0 -124
- package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js.map +0 -1
- package/dist/chunks/dialog-C1HRMUcF.es.js +0 -33
- package/dist/chunks/dialog-C1HRMUcF.es.js.map +0 -1
- package/dist/chunks/dialog-amEwvIoM.cjs.js +0 -2
- package/dist/chunks/dialog-amEwvIoM.cjs.js.map +0 -1
- package/dist/chunks/divider-D3ah61jw.cjs.js +0 -2
- package/dist/chunks/divider-D3ah61jw.cjs.js.map +0 -1
- package/dist/chunks/divider-m0ZtHIMJ.es.js.map +0 -1
- package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +0 -2
- package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +0 -1
- package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +0 -16
- package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +0 -1
- package/dist/chunks/extractStyleProps-CxgBrz3O.es.js +0 -11
- package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +0 -1
- package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js +0 -2
- package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +0 -1
- package/dist/chunks/form-field-C9PpQYF0.es.js.map +0 -1
- package/dist/chunks/form-field-CBFyTAo8.cjs.js.map +0 -1
- package/dist/chunks/grid-CugcJxRP.es.js +0 -14
- package/dist/chunks/grid-CugcJxRP.es.js.map +0 -1
- package/dist/chunks/grid-xr2A-OqD.cjs.js +0 -2
- package/dist/chunks/grid-xr2A-OqD.cjs.js.map +0 -1
- package/dist/chunks/icon-BFNYuilh.es.js.map +0 -1
- package/dist/chunks/icon-D50i-dqv.cjs.js +0 -2
- package/dist/chunks/icon-D50i-dqv.cjs.js.map +0 -1
- package/dist/chunks/image-DCirAAnr.cjs.js +0 -2
- package/dist/chunks/image-DCirAAnr.cjs.js.map +0 -1
- package/dist/chunks/image-rXPA3shk.es.js +0 -8
- package/dist/chunks/image-rXPA3shk.es.js.map +0 -1
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js +0 -2
- package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +0 -1
- package/dist/chunks/kbd-Gxvodc1U.es.js +0 -15
- package/dist/chunks/kbd-Gxvodc1U.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-BONVaPQN.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js +0 -2
- package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js.map +0 -1
- package/dist/chunks/link-BS1jRPrC.es.js.map +0 -1
- package/dist/chunks/link-COqOFX5Z.cjs.js +0 -2
- package/dist/chunks/link-COqOFX5Z.cjs.js.map +0 -1
- package/dist/chunks/link.recipe-Ba2by0OG.es.js.map +0 -1
- package/dist/chunks/link.recipe-CG3leGAx.cjs.js +0 -2
- package/dist/chunks/link.recipe-CG3leGAx.cjs.js.map +0 -1
- package/dist/chunks/list-8yfreyzi.cjs.js +0 -2
- package/dist/chunks/list-8yfreyzi.cjs.js.map +0 -1
- package/dist/chunks/list-B21joBrq.es.js +0 -13
- package/dist/chunks/list-B21joBrq.es.js.map +0 -1
- package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js +0 -2
- package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js.map +0 -1
- package/dist/chunks/loading-spinner-DwN-yshK.es.js.map +0 -1
- package/dist/chunks/menu-BpACcVBO.es.js.map +0 -1
- package/dist/chunks/menu-CTiF7BX_.cjs.js +0 -2
- package/dist/chunks/menu-CTiF7BX_.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-BCHcfgz9.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-BCHcfgz9.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-sSdbj6tb.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-Bf7NgBYl.cjs.js +0 -4
- package/dist/chunks/nimbus-provider-Bf7NgBYl.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-DiytQtCG.es.js +0 -1829
- package/dist/chunks/nimbus-provider-DiytQtCG.es.js.map +0 -1
- package/dist/chunks/number-input-BU6yMXV8.cjs.js +0 -2
- package/dist/chunks/number-input.recipe-B1kAID71.cjs.js +0 -2
- package/dist/chunks/number-input.recipe-B1kAID71.cjs.js.map +0 -1
- package/dist/chunks/number-input.recipe-CYgMvPKy.es.js +0 -210
- package/dist/chunks/number-input.recipe-CYgMvPKy.es.js.map +0 -1
- package/dist/chunks/progress-bar-CCyJEPoU.es.js.map +0 -1
- package/dist/chunks/progress-bar-pMjw8h4h.cjs.js +0 -2
- package/dist/chunks/progress-bar-pMjw8h4h.cjs.js.map +0 -1
- package/dist/chunks/radio-input-BLVHJidw.cjs.js +0 -2
- package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js +0 -75
- package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js.map +0 -1
- package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js +0 -2
- package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-13GVqWSL.cjs.js +0 -2
- package/dist/chunks/range-calendar-13GVqWSL.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-C-qR1QHT.es.js.map +0 -1
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js +0 -129
- package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js.map +0 -1
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js +0 -2
- package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js.map +0 -1
- package/dist/chunks/select-BZ2fZDHJ.cjs.js +0 -2
- package/dist/chunks/select.recipe-B7-wzxnS.es.js +0 -204
- package/dist/chunks/select.recipe-B7-wzxnS.es.js.map +0 -1
- package/dist/chunks/select.recipe-DhuuNbSx.cjs.js +0 -2
- package/dist/chunks/select.recipe-DhuuNbSx.cjs.js.map +0 -1
- package/dist/chunks/simple-grid-CFOP9g2P.es.js +0 -14
- package/dist/chunks/simple-grid-CFOP9g2P.es.js.map +0 -1
- package/dist/chunks/simple-grid-CHgTayx6.cjs.js +0 -2
- package/dist/chunks/simple-grid-CHgTayx6.cjs.js.map +0 -1
- package/dist/chunks/stack-__ugxVHD.es.js +0 -11
- package/dist/chunks/stack-__ugxVHD.es.js.map +0 -1
- package/dist/chunks/stack-wFUhYQQb.cjs.js +0 -2
- package/dist/chunks/stack-wFUhYQQb.cjs.js.map +0 -1
- package/dist/chunks/switch-BriJIKqx.es.js.map +0 -1
- package/dist/chunks/switch-GFsEXE6w.cjs.js +0 -2
- package/dist/chunks/switch-GFsEXE6w.cjs.js.map +0 -1
- package/dist/chunks/switch.recipe-CWOjEnIy.es.js +0 -100
- package/dist/chunks/switch.recipe-CWOjEnIy.es.js.map +0 -1
- package/dist/chunks/switch.recipe-DHopLj_g.cjs.js +0 -2
- package/dist/chunks/switch.recipe-DHopLj_g.cjs.js.map +0 -1
- package/dist/chunks/tag-group-D7GNkec5.cjs.js +0 -2
- package/dist/chunks/text--fhvW47o.cjs.js +0 -2
- package/dist/chunks/text--fhvW47o.cjs.js.map +0 -1
- package/dist/chunks/text-CFsPSPPs.es.js +0 -24
- package/dist/chunks/text-CFsPSPPs.es.js.map +0 -1
- package/dist/chunks/text-input-Dg1LSvlo.es.js +0 -17
- package/dist/chunks/text-input-Dg1LSvlo.es.js.map +0 -1
- package/dist/chunks/text-input-DzIZYD16.cjs.js +0 -2
- package/dist/chunks/text-input-DzIZYD16.cjs.js.map +0 -1
- package/dist/chunks/text-input.recipe-BoPfTFYK.cjs.js +0 -2
- package/dist/chunks/text-input.recipe-BoPfTFYK.cjs.js.map +0 -1
- package/dist/chunks/text-input.recipe-C5rrWDU0.es.js +0 -65
- package/dist/chunks/text-input.recipe-C5rrWDU0.es.js.map +0 -1
- package/dist/chunks/time-input-ByUOjN2R.cjs.js +0 -2
- package/dist/chunks/time-input-ByUOjN2R.cjs.js.map +0 -1
- package/dist/chunks/time-input-pPM_sx2J.es.js.map +0 -1
- package/dist/chunks/toggle-button-BcbQQcBy.cjs.js +0 -2
- package/dist/chunks/toggle-button-BcbQQcBy.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-DhnBl8Gb.es.js +0 -29
- package/dist/chunks/toggle-button-DhnBl8Gb.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-BQfaNSZf.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-C5nvmHRc.cjs.js +0 -2
- package/dist/chunks/toggle-button-group-C5nvmHRc.cjs.js.map +0 -1
- package/dist/chunks/toggle-button.recipe-COtV4niJ.es.js +0 -64
- package/dist/chunks/toggle-button.recipe-COtV4niJ.es.js.map +0 -1
- package/dist/chunks/toggle-button.recipe-Cz4g2WY9.cjs.js +0 -2
- package/dist/chunks/toggle-button.recipe-Cz4g2WY9.cjs.js.map +0 -1
- package/dist/chunks/toolbar-O-t4_xhL.cjs.js +0 -2
- package/dist/chunks/toolbar.recipe-4zTJxMys.cjs.js +0 -2
- package/dist/chunks/toolbar.recipe-4zTJxMys.cjs.js.map +0 -1
- package/dist/chunks/toolbar.recipe-DQHsyTVO.es.js +0 -56
- package/dist/chunks/toolbar.recipe-DQHsyTVO.es.js.map +0 -1
- package/dist/chunks/tooltip-DwXtfA_x.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box-DD4jYgS7.es.js","sources":["../../src/components/box/box.tsx"],"sourcesContent":["import { Box as ChakraBox, type HTMLChakraProps } from \"@chakra-ui/react\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","props","ref","restProps","jsx","ChakraBox"],"mappings":";;AAcO,MAAMA,IAAM,CAACC,MAAoB;AACtC,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACC,GAAA,EAAU,KAAAH,GAAW,GAAGC,EAAA,CAAW;AAC7C;AAEAH,EAAI,cAAc;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box-FU6tRPFs.cjs.js","sources":["../../src/components/box/box.tsx"],"sourcesContent":["import { Box as ChakraBox, type HTMLChakraProps } from \"@chakra-ui/react\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","props","ref","restProps","jsx","ChakraBox"],"mappings":"gFAcaA,EAAOC,GAAoB,CACtC,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACC,EAAAA,IAAA,CAAU,IAAAH,EAAW,GAAGC,CAAA,CAAW,CAC7C,EAEAH,EAAI,YAAc"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const $=require("react/jsx-runtime"),b=require("react"),p=require("./Button-gAaN5cZZ.cjs.js"),q=require("./utils-sWqo2nmW.cjs.js"),c=require("@chakra-ui/react"),x=require("./button.recipe-DHk13lGU.cjs.js"),R=require("./emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js"),P=require("./useObjectRef-4v2MxSjQ.cjs.js"),m=require("./mergeProps-VvQrkhSh.cjs.js"),B=require("./useButton-BwALyWHX.cjs.js"),{withContext:h}=c.createRecipeContext({recipe:x.buttonRecipe}),y=h("button",{defaultProps:{type:"button"},shouldForwardProp(e,o){const t=!o?.includes(e)&&!c.defaultSystem.isValidProperty(e);return R.isPropValid(e)&&t&&!e.includes("onPress")}}),u=e=>{const{ref:o,as:t,asChild:n,children:i,...a}=e,d=b.useRef(null),r=P.$df56164dff5785e2$export$4338b53315abf666(c.mergeRefs(d,o)),[s]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(a,r,p.$d2b4bc8c273e7be6$export$24d547caef80ccd1),f=t||(n?"a":"button"),{buttonProps:l}=B.$701a24aa0da5b062$export$ea18c227d4417cc3({...s,elementType:f},r);return $.jsx(y,{...m.$3ef42575df84b30b$export$9d1611c77c2fe928(s,l,{as:t,asChild:n,slot:s.slot||void 0}),ref:r,children:i})};u.displayName="Button";exports.Button=u;
|
|
2
|
-
//# sourceMappingURL=button-BBwNbl7S.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-BBwNbl7S.cjs.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\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, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\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 */\nexport const Button = (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 ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\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 ref\n );\n\n return (\n <ButtonRoot\n {...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 ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":"mZA2BM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBI,EAAMC,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASD,CAAI,GAAK,CAACG,EAAAA,cAAc,gBAAgBH,CAAI,EACrE,OAAOI,EAAAA,YAAkBJ,CAAI,GAAKE,GAAa,CAACF,EAAK,SAAS,SAAS,CACzE,CAAA,CAEJ,EClCaK,EAAUC,GAAuB,CAC5C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGpD,CAACU,CAAY,EAAIC,EAAAA,0CAAgBP,EAAMG,EAAKK,EAAAA,yCAAa,EAKzDC,EAAcZ,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAY,GAAgBC,EAAAA,0CACtB,CACE,GAAGL,EACH,YAAAG,CAAA,EAEFN,CAAA,EAGF,OACES,EAAAA,IAACxB,EAAA,CACE,GAAGyB,EAAAA,0CAAWP,EAAcI,EAAa,CACxC,GAAAb,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EACD,IAAAH,EAEC,SAAAJ,CAAA,CAAA,CAGP,EAGAL,EAAO,YAAc"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as p } from "react";
|
|
3
|
-
import { $ } from "./Button-D19EX1Wq.es.js";
|
|
4
|
-
import { $ as l } from "./utils-CEdpnSRC.es.js";
|
|
5
|
-
import { createRecipeContext as u, defaultSystem as b, mergeRefs as x } from "@chakra-ui/react";
|
|
6
|
-
import { b as P } from "./button.recipe-DzOS_Bqm.es.js";
|
|
7
|
-
import { i as R } from "./emotion-is-prop-valid.esm-qvxbqhmq.es.js";
|
|
8
|
-
import { $ as h } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
9
|
-
import { $ as y } from "./mergeProps-Bn6EInU5.es.js";
|
|
10
|
-
import { $ as B } from "./useButton-DBC3JhMz.es.js";
|
|
11
|
-
const { withContext: w } = /* @__PURE__ */ u({
|
|
12
|
-
recipe: P
|
|
13
|
-
}), C = /* @__PURE__ */ w(
|
|
14
|
-
"button",
|
|
15
|
-
{
|
|
16
|
-
defaultProps: {
|
|
17
|
-
type: "button"
|
|
18
|
-
},
|
|
19
|
-
/** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */
|
|
20
|
-
shouldForwardProp(t, e) {
|
|
21
|
-
const o = !e?.includes(t) && !b.isValidProperty(t);
|
|
22
|
-
return R(t) && o && !t.includes("onPress");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
), S = (t) => {
|
|
26
|
-
const { ref: e, as: o, asChild: a, children: f, ...c } = t, n = p(null), r = h(x(n, e)), [s] = l(c, r, $), d = o || (a ? "a" : "button"), { buttonProps: i } = B(
|
|
27
|
-
{
|
|
28
|
-
...s,
|
|
29
|
-
elementType: d
|
|
30
|
-
},
|
|
31
|
-
r
|
|
32
|
-
);
|
|
33
|
-
return /* @__PURE__ */ m(
|
|
34
|
-
C,
|
|
35
|
-
{
|
|
36
|
-
...y(s, i, {
|
|
37
|
-
as: o,
|
|
38
|
-
asChild: a,
|
|
39
|
-
/**
|
|
40
|
-
* In case `slot` was null, the `useContextProps` hook already
|
|
41
|
-
* processed it at this point, so it's safe to not attach it
|
|
42
|
-
* to the DOM element
|
|
43
|
-
*/
|
|
44
|
-
slot: s.slot || void 0
|
|
45
|
-
}),
|
|
46
|
-
ref: r,
|
|
47
|
-
children: f
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
S.displayName = "Button";
|
|
52
|
-
export {
|
|
53
|
-
S as B
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=button-BTpQweka.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-BTpQweka.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\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, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\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 */\nexport const Button = (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 ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\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 ref\n );\n\n return (\n <ButtonRoot\n {...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 ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":";;;;;;;;;;AA2BA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAc,gBAAgBH,CAAI;AACrE,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GClCaK,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA;AAGF,SACE,gBAAAS;AAAA,IAACxB;AAAA,IAAA;AAAA,MACE,GAAGyB,EAAWP,GAAcI,GAAa;AAAA,QACxC,IAAAb;AAAA,QACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMA,MAAMQ,EAAa,QAAQ;AAAA,MAAA,CAC5B;AAAA,MACD,KAAAH;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("@chakra-ui/react"),t=e.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});exports.buttonRecipe=t;
|
|
2
|
-
//# sourceMappingURL=button.recipe-DHk13lGU.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.recipe-DHk13lGU.cjs.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":"iDAEaA,EAAeC,EAAAA,aAAa,CACvC,UAAW,gBACX,KAAM,CACJ,aAAc,MACd,QAAS,cACT,WAAY,OACZ,WAAY,SACZ,eAAgB,SAChB,WAAY,OACZ,SAAU,WACV,WAAY,SACZ,cAAe,SACf,YAAa,MACb,YAAa,cACb,OAAQ,SACR,WAAY,IACZ,QAAS,IACT,WAAY,MACZ,UAAW,UACX,WAAY,MACZ,mBAAoB,SACpB,mBAAoB,WACpB,iBAAkB,UAClB,UAAW,CACT,WAAY,UAAA,EAEd,MAAO,CACL,WAAY,GAAA,CACd,EAEF,SAAU,CACR,KAAM,CACJ,MAAO,CACL,EAAG,MACH,KAAM,MACN,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,EAAG,MACH,KAAM,MACN,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAaF,GAAI,CACF,EAAG,OACH,KAAM,OACN,SAAU,MACV,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,CACF,EAmCF,QAAS,CACP,MAAO,CACL,GAAI,iBACJ,MAAO,wBACP,OAAQ,CACN,GAAI,iBAAA,EAEN,UAAW,CACT,GAAI,iBAAA,CACN,EAEF,OAAQ,CACN,GAAI,iBACJ,MAAO,kBACP,OAAQ,CACN,GAAI,gBAAA,EAEN,UAAW,CACT,GAAI,gBAAA,CACN,EAEF,QAAS,CACP,YAAa,MACb,YAAa,iBACb,MAAO,kBACP,mBAAoB,wCACpB,mBAAoB,WACpB,OAAQ,CACN,GAAI,iBACJ,YAAa,gBAAA,EAEf,UAAW,CACT,GAAI,qBAAA,CACN,EAEF,MAAO,CACL,MAAO,kBACP,OAAQ,CACN,GAAI,gBAAA,EAEN,UAAW,CACT,GAAI,gBAAA,CACN,EAEF,KAAM,CACJ,MAAO,kBACP,OAAQ,CACN,eAAgB,WAAA,CAClB,CACF,EAEF,KAAM,CACJ,QAAS,CACP,aAAc,SAAA,EAEhB,SAAU,CACR,aAAc,UAAA,EAEhB,QAAS,CACP,aAAc,SAAA,EAEhB,KAAM,CACJ,aAAc,MAAA,CAChB,CACF,EAEF,gBAAiB,CACf,KAAM,KACN,QAAS,QAAA,CAEb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.recipe-DzOS_Bqm.es.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":";AAEO,MAAMA,IAAe,gBAAAC,EAAa;AAAA,EACvC,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,aAAa;AAAA,IACb,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,WAAW;AAAA,MACT,YAAY;AAAA,IAAA;AAAA,IAEd,OAAO;AAAA,MACL,YAAY;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,GAAG;AAAA,QACH,MAAM;AAAA,QACN,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,KAAK;AAAA,QACL,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,MAEF,IAAI;AAAA,QACF,GAAG;AAAA,QACH,MAAM;AAAA,QACN,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,KAAK;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AA,QAAA;AAAA,MACN;AAAA,MAEF,MAAM;AAAA,QACJ,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,gBAAgB;AAAA,QAAA;AAAA,MAClB;AAAA,IACF;AAAA,IAEF,MAAM;AAAA,MACJ,SAAS;AAAA,QACP,cAAc;AAAA,MAAA;AAAA,MAEhB,UAAU;AAAA,QACR,cAAc;AAAA,MAAA;AAAA,MAEhB,SAAS;AAAA,QACP,cAAc;AAAA,MAAA;AAAA,MAEhB,MAAM;AAAA,QACJ,cAAc;AAAA,MAAA;AAAA,IAChB;AAAA,EACF;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-B4nCYXn4.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAmB,gBAAAH,EAG9B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAGJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAGHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAGRM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAGJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAGVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAGPS,IAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAGRU,IAAmB,gBAAAV,EAG9B,MAAM,UAAU,GC5CLW,KAAgB,MAAM;AACjC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAUC,EAAkBC,CAAe,GAC3CC,IAAgBC,EAAWC,CAAoB,GAC/CC,IAAqBN,GAAS,iBAAiB,UAAU,GACzDO,IAAYC,EAAMC,GAAkB,GACpCC,IAAkBJ,IAAqB;AAE7C,SACE,gBAAAK,EAACrB,GAAA,EACE,UAAA,MAAM,KAAK,EAAE,QAAQgB,EAAA,GAAsB,CAACM,GAAGC,MAAU;AACxD,UAAMC,IAAWX,EAAc,aAAa,MAAM,IAAI;AAAA,MACpD,QAAQU;AAAA,IAAA,CACT,GACKE,IAAY,IAAI,KAAK,eAAejB,GAAQ;AAAA,MAChD,OAAO;AAAA,IAAA,CACR,EAAE,OAAOgB,EAAS,OAAOL,EAAA,C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.cjs.js"),p=require("@chakra-ui/react"),u=require("react"),c=require("./useDateFormatter-IFC8SANB.cjs.js"),m=require("./utils-sWqo2nmW.cjs.js"),S=require("./box-FU6tRPFs.cjs.js"),w=require("./context-DURpz5en.cjs.js"),h=require("./icon-button-BEaNe4rE.cjs.js"),y=require("./text--fhvW47o.cjs.js"),C=require("./stack-wFUhYQQb.cjs.js"),P=require("./visually-hidden-KeFRLonC.cjs.js"),$=require("@commercetools/nimbus-icons"),q=require("./calendar.recipe-gUaUNltl.cjs.js"),R=require("./extractStyleProps-lyk7D-zN.cjs.js"),g=require("./Button-gAaN5cZZ.cjs.js"),v=require("./Text-BWSfeB9p.cjs.js"),{withProvider:I,withContext:s}=p.createSlotRecipeContext({key:"calendar"}),T=I("div","root"),B=s("div","header"),H=s("div","grids"),A=s("div","monthTitle"),F=s("table","grid"),G=s("thead","gridHeader"),L=s("th","headerCell"),k=s("tbody","gridBody"),M=s("td","bodyCell"),N=()=>{const{locale:d}=w.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(H,{children:Array.from({length:r},(j,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(S.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(A,{children:f}),e.jsx(F,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(G,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const D=x.compare(o)===0;return e.jsx(M,{asChild:!0,"data-today":D,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},z=()=>{const t=(m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(B,{children:e.jsxs(p.Flex,{children:[e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(P.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowRight,{})})]}),e.jsx(S.Box,{flexGrow:"1"}),e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowRight,{})})]})]})})},K=({children:d})=>{const{locale:n}=w.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=u.useContext(g.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=u.useContext(v.$514c0188e459b4c0$export$9afb8bc826b033ea),o=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},j=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:j},monthRange:{children:l},year:{children:b}};return e.jsx(m.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[g.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[v.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},V=d=>{const n=p.useRecipe({recipe:q.calendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=R.extractStyleProps(r);return e.jsx(T,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...i,children:e.jsxs(K,{children:[e.jsx(z,{}),e.jsx(N,{})]})})})};exports.Calendar=V;
|
|
2
|
-
//# sourceMappingURL=calendar-CKVscUm-.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-CKVscUm-.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"+pBAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAOYC,EAAmBH,EAG9B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,QAAQ,EAGJI,EAAoBJ,EAG/B,MAAO,OAAO,EAGHK,EAAyBL,EAGpC,MAAO,YAAY,EAGRM,EAAmBN,EAG9B,QAAS,MAAM,EAGJO,EAAyBP,EAGpC,QAAS,YAAY,EAGVQ,EAAyBR,EAGp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-ui/react";
|
|
2
|
-
const r = /* @__PURE__ */ e({
|
|
3
|
-
slots: [
|
|
4
|
-
"root",
|
|
5
|
-
"header",
|
|
6
|
-
"grids",
|
|
7
|
-
"monthTitle",
|
|
8
|
-
"grid",
|
|
9
|
-
"gridHeader",
|
|
10
|
-
"headerCell",
|
|
11
|
-
"gridBody",
|
|
12
|
-
"bodyCell"
|
|
13
|
-
],
|
|
14
|
-
className: "nimbus-calendar",
|
|
15
|
-
base: {
|
|
16
|
-
// the container element
|
|
17
|
-
root: {
|
|
18
|
-
display: "inline-block",
|
|
19
|
-
maxWidth: "100%"
|
|
20
|
-
},
|
|
21
|
-
header: {
|
|
22
|
-
height: "1200",
|
|
23
|
-
p: "200",
|
|
24
|
-
mb: "300",
|
|
25
|
-
borderBottom: "solid-25",
|
|
26
|
-
borderColor: "neutral.3"
|
|
27
|
-
},
|
|
28
|
-
// the container contianing the month(s) grid(s)
|
|
29
|
-
grids: {
|
|
30
|
-
display: "flex",
|
|
31
|
-
flexWrap: "wrap",
|
|
32
|
-
gap: "800",
|
|
33
|
-
mx: "200",
|
|
34
|
-
maxWidth: "full"
|
|
35
|
-
},
|
|
36
|
-
// Month title above each grid
|
|
37
|
-
monthTitle: {
|
|
38
|
-
textAlign: "center",
|
|
39
|
-
fontSize: "400",
|
|
40
|
-
fontWeight: "600",
|
|
41
|
-
color: "neutral.11",
|
|
42
|
-
mb: "300",
|
|
43
|
-
px: "200"
|
|
44
|
-
},
|
|
45
|
-
// A single grid (<table>) containing a months days
|
|
46
|
-
grid: {
|
|
47
|
-
w: "full",
|
|
48
|
-
minW: "fit-content",
|
|
49
|
-
flex: "1 1 auto"
|
|
50
|
-
},
|
|
51
|
-
// Weekday Row
|
|
52
|
-
gridHeader: {},
|
|
53
|
-
// Weekday Item
|
|
54
|
-
headerCell: {
|
|
55
|
-
p: "200",
|
|
56
|
-
pb: "300",
|
|
57
|
-
textAlign: "center",
|
|
58
|
-
color: "neutral.9",
|
|
59
|
-
fontSize: "300",
|
|
60
|
-
lineHeight: "350",
|
|
61
|
-
fontWeight: "500"
|
|
62
|
-
},
|
|
63
|
-
gridBody: {},
|
|
64
|
-
// Day Item
|
|
65
|
-
bodyCell: {
|
|
66
|
-
cursor: "pointer",
|
|
67
|
-
p: "200",
|
|
68
|
-
minW: "1400",
|
|
69
|
-
borderRadius: "200",
|
|
70
|
-
fontSize: "350",
|
|
71
|
-
lineHeight: "500",
|
|
72
|
-
fontWeight: "400",
|
|
73
|
-
transitionProperty: "all",
|
|
74
|
-
transitionDuration: "fastest",
|
|
75
|
-
textAlign: "center",
|
|
76
|
-
color: "neutral.12",
|
|
77
|
-
display: "flex",
|
|
78
|
-
alignItems: "center",
|
|
79
|
-
justifyContent: "center",
|
|
80
|
-
mb: "200",
|
|
81
|
-
focusRing: "outside",
|
|
82
|
-
"&[aria-disabled=true]": {
|
|
83
|
-
layerStyle: "disabled"
|
|
84
|
-
},
|
|
85
|
-
"&[data-hovered=true]": {
|
|
86
|
-
bg: "primary.3"
|
|
87
|
-
},
|
|
88
|
-
"&[data-today=true]": {
|
|
89
|
-
bg: "neutral.3"
|
|
90
|
-
},
|
|
91
|
-
"&[data-selected=true]": {
|
|
92
|
-
bg: "primary.9",
|
|
93
|
-
color: "primary.contrast"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
r as c
|
|
100
|
-
};
|
|
101
|
-
//# sourceMappingURL=calendar.recipe-B2sMokBn.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.recipe-B2sMokBn.es.js","sources":["../../src/components/calendar/calendar.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const calendarSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"header\",\n \"grids\",\n \"monthTitle\",\n \"grid\",\n \"gridHeader\",\n \"headerCell\",\n \"gridBody\",\n \"bodyCell\",\n ],\n className: \"nimbus-calendar\",\n base: {\n // the container element\n root: {\n display: \"inline-block\",\n maxWidth: \"100%\",\n },\n header: {\n height: \"1200\",\n p: \"200\",\n mb: \"300\",\n borderBottom: \"solid-25\",\n borderColor: \"neutral.3\",\n },\n // the container contianing the month(s) grid(s)\n grids: {\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: \"800\",\n mx: \"200\",\n maxWidth: \"full\",\n },\n // Month title above each grid\n monthTitle: {\n textAlign: \"center\",\n fontSize: \"400\",\n fontWeight: \"600\",\n color: \"neutral.11\",\n mb: \"300\",\n px: \"200\",\n },\n // A single grid (<table>) containing a months days\n grid: {\n w: \"full\",\n minW: \"fit-content\",\n flex: \"1 1 auto\",\n },\n // Weekday Row\n gridHeader: {},\n // Weekday Item\n headerCell: {\n p: \"200\",\n pb: \"300\",\n textAlign: \"center\",\n color: \"neutral.9\",\n fontSize: \"300\",\n lineHeight: \"350\",\n fontWeight: \"500\",\n },\n gridBody: {},\n\n // Day Item\n bodyCell: {\n cursor: \"pointer\",\n p: \"200\",\n minW: \"1400\",\n borderRadius: \"200\",\n fontSize: \"350\",\n lineHeight: \"500\",\n fontWeight: \"400\",\n transitionProperty: \"all\",\n transitionDuration: \"fastest\",\n textAlign: \"center\",\n color: \"neutral.12\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n mb: \"200\",\n focusRing: \"outside\",\n\n \"&[aria-disabled=true]\": {\n layerStyle: \"disabled\",\n },\n\n \"&[data-hovered=true]\": {\n bg: \"primary.3\",\n },\n\n \"&[data-today=true]\": {\n bg: \"neutral.3\",\n },\n\n \"&[data-selected=true]\": {\n bg: \"primary.9\",\n color: \"primary.contrast\",\n },\n },\n },\n});\n"],"names":["calendarSlotRecipe","defineSlotRecipe"],"mappings":";AAEO,MAAMA,IAAqB,gBAAAC,EAAiB;AAAA,EACjD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAA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AA,MAGN,sBAAsB;AAAA,QACpB,IAAI;AAAA,MAAA;AAAA,MAGN,yBAAyB;AAAA,QACvB,IAAI;AAAA,QACJ,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,EACF;AAEJ,CAAC;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("@chakra-ui/react"),t=e.defineSlotRecipe({slots:["root","header","grids","monthTitle","grid","gridHeader","headerCell","gridBody","bodyCell"],className:"nimbus-calendar",base:{root:{display:"inline-block",maxWidth:"100%"},header:{height:"1200",p:"200",mb:"300",borderBottom:"solid-25",borderColor:"neutral.3"},grids:{display:"flex",flexWrap:"wrap",gap:"800",mx:"200",maxWidth:"full"},monthTitle:{textAlign:"center",fontSize:"400",fontWeight:"600",color:"neutral.11",mb:"300",px:"200"},grid:{w:"full",minW:"fit-content",flex:"1 1 auto"},gridHeader:{},headerCell:{p:"200",pb:"300",textAlign:"center",color:"neutral.9",fontSize:"300",lineHeight:"350",fontWeight:"500"},gridBody:{},bodyCell:{cursor:"pointer",p:"200",minW:"1400",borderRadius:"200",fontSize:"350",lineHeight:"500",fontWeight:"400",transitionProperty:"all",transitionDuration:"fastest",textAlign:"center",color:"neutral.12",display:"flex",alignItems:"center",justifyContent:"center",mb:"200",focusRing:"outside","&[aria-disabled=true]":{layerStyle:"disabled"},"&[data-hovered=true]":{bg:"primary.3"},"&[data-today=true]":{bg:"neutral.3"},"&[data-selected=true]":{bg:"primary.9",color:"primary.contrast"}}}});exports.calendarSlotRecipe=t;
|
|
2
|
-
//# sourceMappingURL=calendar.recipe-gUaUNltl.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.recipe-gUaUNltl.cjs.js","sources":["../../src/components/calendar/calendar.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const calendarSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"header\",\n \"grids\",\n \"monthTitle\",\n \"grid\",\n \"gridHeader\",\n \"headerCell\",\n \"gridBody\",\n \"bodyCell\",\n ],\n className: \"nimbus-calendar\",\n base: {\n // the container element\n root: {\n display: \"inline-block\",\n maxWidth: \"100%\",\n },\n header: {\n height: \"1200\",\n p: \"200\",\n mb: \"300\",\n borderBottom: \"solid-25\",\n borderColor: \"neutral.3\",\n },\n // the container contianing the month(s) grid(s)\n grids: {\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: \"800\",\n mx: \"200\",\n maxWidth: \"full\",\n },\n // Month title above each grid\n monthTitle: {\n textAlign: \"center\",\n fontSize: \"400\",\n fontWeight: \"600\",\n color: \"neutral.11\",\n mb: \"300\",\n px: \"200\",\n },\n // A single grid (<table>) containing a months days\n grid: {\n w: \"full\",\n minW: \"fit-content\",\n flex: \"1 1 auto\",\n },\n // Weekday Row\n gridHeader: {},\n // Weekday Item\n headerCell: {\n p: \"200\",\n pb: \"300\",\n textAlign: \"center\",\n color: \"neutral.9\",\n fontSize: \"300\",\n lineHeight: \"350\",\n fontWeight: \"500\",\n },\n gridBody: {},\n\n // Day Item\n bodyCell: {\n cursor: \"pointer\",\n p: \"200\",\n minW: \"1400\",\n borderRadius: \"200\",\n fontSize: \"350\",\n lineHeight: \"500\",\n fontWeight: \"400\",\n transitionProperty: \"all\",\n transitionDuration: \"fastest\",\n textAlign: \"center\",\n color: \"neutral.12\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n mb: \"200\",\n focusRing: \"outside\",\n\n \"&[aria-disabled=true]\": {\n layerStyle: \"disabled\",\n },\n\n \"&[data-hovered=true]\": {\n bg: \"primary.3\",\n },\n\n \"&[data-today=true]\": {\n bg: \"neutral.3\",\n },\n\n \"&[data-selected=true]\": {\n bg: \"primary.9\",\n color: \"primary.contrast\",\n },\n },\n },\n});\n"],"names":["calendarSlotRecipe","defineSlotRecipe"],"mappings":"iDAEaA,EAAqBC,EAAAA,iBAAiB,CACjD,MAAO,CACL,OACA,SACA,QACA,aACA,OACA,aACA,aACA,WACA,UAAA,EAEF,UAAW,kBACX,KAAM,CAEJ,KAAM,CACJ,QAAS,eACT,SAAU,MAAA,EAEZ,OAAQ,CACN,OAAQ,OACR,EAAG,MACH,GAAI,MACJ,aAAc,WACd,YAAa,WAAA,EAGf,MAAO,CACL,QAAS,OACT,SAAU,OACV,IAAK,MACL,GAAI,MACJ,SAAU,MAAA,EAGZ,WAAY,CACV,UAAW,SACX,SAAU,MACV,WAAY,MACZ,MAAO,aACP,GAAI,MACJ,GAAI,KAAA,EAGN,KAAM,CACJ,EAAG,OACH,KAAM,cACN,KAAM,UAAA,EAGR,WAAY,CAAA,EAEZ,WAAY,CACV,EAAG,MACH,GAAI,MACJ,UAAW,SACX,MAAO,YACP,SAAU,MACV,WAAY,MACZ,WAAY,KAAA,EAEd,SAAU,CAAA,EAGV,SAAU,CACR,OAAQ,UACR,EAAG,MACH,KAAM,OACN,aAAc,MACd,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,mBAAoB,MACpB,mBAAoB,UACpB,UAAW,SACX,MAAO,aACP,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,GAAI,MACJ,UAAW,UAEX,wBAAyB,CACvB,WAAY,UAAA,EAGd,uBAAwB,CACtB,GAAI,WAAA,EAGN,qBAAsB,CACpB,GAAI,WAAA,EAGN,wBAAyB,CACvB,GAAI,YACJ,MAAO,kBAAA,CACT,CACF,CAEJ,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),t=require("react"),C=require("@chakra-ui/react"),R=require("./stack-wFUhYQQb.cjs.js"),p=require("./useFocusRing-OubPN-pd.cjs.js"),$=require("./mergeProps-VvQrkhSh.cjs.js"),P=C.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:H,withContext:f}=C.createSlotRecipeContext({recipe:P}),S=H("div","root"),h=f("div","header"),j=f("div","content"),a=t.createContext(void 0),d=({children:o,ref:r,...e})=>{const{isFocused:n,isFocusVisible:x,focusProps:b}=p.$f7dceffc5ad7768b$export$4e328f61c538687f(),[m,l]=t.useState(null),[g,u]=t.useState(null),v=t.useMemo(()=>({setHeader:l,setContent:u}),[l,u]);return s.jsx(a.Provider,{value:v,children:s.jsxs(S,{ref:r,...$.$3ef42575df84b30b$export$9d1611c77c2fe928(e,b),"data-focus":n||void 0,"data-focus-visible":x||void 0,tabIndex:0,children:[s.jsxs(R.Stack,{direction:"column",gap:"200",children:[m,g]}),o]})})};d.displayName="Card.Root";const c=({children:o,...r})=>{const e=t.useContext(a);return t.useEffect(()=>{if(e){const n=s.jsx(h,{...r,children:o});return e.setHeader(n),()=>e.setHeader(null)}},[o,r]),null};c.displayName="Card.Header";const i=({children:o,...r})=>{const e=t.useContext(a);return t.useEffect(()=>{if(e){const n=s.jsx(j,{...r,children:o});return e.setContent(n),()=>e.setContent(null)}},[o,r]),null};i.displayName="Card.Content";const q={Root:d,Header:c,Content:i};exports.Card=q;exports.CardContent=i;exports.CardHeader=c;exports.CardRoot=d;
|
|
2
|
-
//# sourceMappingURL=card-B9z3AknN.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-B9z3AknN.cjs.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"8NAMaA,EAAaC,EAAAA,iBAAiB,CACzC,MAAO,CAAC,OAAQ,SAAU,SAAS,EAEnC,UAAW,cAEX,KAAM,CACJ,KAAM,CACJ,aAAc,QACd,QAAS,cACT,WAAY,aACZ,aAAc,MACd,iBAAkB,SAAA,CACpB,EAGF,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CAAAW,EAAAA,KAACG,EAAAA,MAAA,CAAM,UAAU,SAAS,IAAI,MAC3B,SAAA,CAAAX,EACAG,CAAA,EACH,EAGCV,CAAA,CAAA,CAAA,EAEL,CAEJ,EAEAL,EAAS,YAAc,YCnDhB,MAAMC,EAAa,CAAC,CAAE,SAAAI,EAAU,GAAGE,KAA6B,CACrE,MAAMiB,EAAUC,EAAAA,WAAWtB,CAAW,EAEtCuB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJR,EAAAA,IAACS,EAAA,CAAgB,GAAGrB,EAAQ,SAAAF,EAAS,EAGvC,OAAAmB,EAAQ,UAAUG,CAAW,EAGtB,IAAMH,EAAQ,UAAU,IAAI,CACrC,CACF,EAAG,CAACnB,EAAUE,CAAK,CAAC,EAEb,IACT,EACAN,EAAW,YAAc,cClBlB,MAAMC,EAAc,CAAC,CAAE,SAAAG,EAAU,GAAGE,KAA8B,CACvE,MAAMiB,EAAUC,EAAAA,WAAWtB,CAAW,EAEtCuB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJR,EAAAA,IAACU,EAAA,CAAiB,GAAGtB,EAAQ,SAAAF,EAAS,EAGxC,OAAAmB,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACnB,EAAUE,CAAK,CAAC,EAEb,IACT,EAEAL,EAAY,YAAc,eCtBnB,MAAM4B,EAAO,CAClB,KAAM9B,EACN,OAAQC,EACR,QAASC,CACX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-CvY06qIE.es.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * # Card\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAMO,MAAMA,IAAa,gBAAAC,EAAiB;AAAA,EACzC,OAAO,CAAC,QAAQ,UAAU,SAAS;AAAA,EAEnC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,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GAAQ,UAAAF,GAAS;AAGxC,aAAAmB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AAEAL,EAAY,cAAc;ACtBnB,MAAM4B,IAAO;AAAA,EAClB,MAAM9B;AAAA,EACN,QAAQC;AAAA,EACR,SAASC;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),v=require("@chakra-ui/react"),j=require("./visually-hidden-KeFRLonC.cjs.js"),q=require("@commercetools/nimbus-icons"),C=require("./extractStyleProps-lyk7D-zN.cjs.js"),g=require("./useObjectRef-4v2MxSjQ.cjs.js"),R=require("./mergeProps-VvQrkhSh.cjs.js"),D=require("./useToggleState-bO90kfqG.cjs.js"),x=require("./useFormValidation-BO3gq4Zd.cjs.js"),V=require("./usePress-B_X5gQWX.cjs.js"),E=require("./useToggle-CxdJa1OC.cjs.js"),O=require("./useFocusRing-OubPN-pd.cjs.js");function w(e,o,i){let s=x.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:o.isSelected}),{isInvalid:d,validationErrors:f,validationDetails:u}=s.displayValidation,{labelProps:n,inputProps:b,isSelected:l,isPressed:$,isDisabled:a,isReadOnly:r}=E.$d2c8e2b0480f3f34$export$cbe85ee05b554577({...e,isInvalid:d},o,i);x.$e93e671b31057976$export$b8473d3665f3a75a(e,s,i);let{isIndeterminate:c,isRequired:P,validationBehavior:h="aria"}=e;p.useEffect(()=>{i.current&&(i.current.indeterminate=!!c)});let{pressProps:y}=V.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:a||r,onPress(){let{[x.$e5be200c675c3b3a$export$a763b9476acd3eb]:m}=e,{commitValidation:I}=m||s;I()}});return{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(n,y),inputProps:{...b,checked:l,"aria-required":P&&h==="aria"||void 0,required:P&&h==="native"},isSelected:l,isPressed:$,isDisabled:a,isReadOnly:r,isInvalid:d,validationErrors:f,validationDetails:u}}const{withProvider:F,withContext:S}=v.createSlotRecipeContext({key:"checkbox"}),B=F("label","root"),H=S("span","label"),T=S("span","indicator"),k=e=>{const{ref:o}=e,i=p.useRef(null),s=g.$df56164dff5785e2$export$4338b53315abf666(v.mergeRefs(i,o)),d=v.useSlotRecipe({key:"checkbox"}),[f]=d.splitVariantProps(e),[u]=C.extractStyleProps(e),n=D.$3017fa7ffdddec74$export$8042c6c013fd5226(e),{inputProps:b}=w(e,n,s),{isFocused:l,focusProps:$}=O.$f7dceffc5ad7768b$export$4e328f61c538687f(),a=n.isSelected&&!e.isIndeterminate,r=e.isIndeterminate,c={"data-selected":a,"data-indeterminate":r,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":l||void 0};return t.jsxs(B,{"data-slot":"root",...f,...c,...u,children:[t.jsxs(T,{"data-slot":"indicator",...c,children:[a&&t.jsx(q.Check,{}),r&&t.jsx(q.Remove,{}),t.jsx(j.VisuallyHidden,{as:"span",children:t.jsx("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(b,$),ref:s})})]}),e.children&&t.jsx(H,{"data-slot":"label",...c,children:e.children})]})};k.displayName="Checkbox";exports.Checkbox=k;
|
|
2
|
-
//# sourceMappingURL=checkbox-DywApPQh.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-DywApPQh.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+checkbox@3.15.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useEffect as $jNP0e$useEffect} from \"react\";\nimport {mergeProps as $jNP0e$mergeProps} from \"@react-aria/utils\";\nimport {useFormValidationState as $jNP0e$useFormValidationState, privateValidationStateProp as $jNP0e$privateValidationStateProp} from \"@react-stately/form\";\nimport {useFormValidation as $jNP0e$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $jNP0e$usePress} from \"@react-aria/interactions\";\nimport {useToggle as $jNP0e$useToggle} from \"@react-aria/toggle\";\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\n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jNP0e$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $jNP0e$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $jNP0e$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = 'aria' } = props;\n (0, $jNP0e$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n // Reset validation state on label press for checkbox with a hidden input.\n let { pressProps: pressProps } = (0, $jNP0e$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n // @ts-expect-error\n let { [(0, $jNP0e$privateValidationStateProp)]: groupValidationState } = props;\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n }\n });\n return {\n labelProps: (0, $jNP0e$mergeProps)(labelProps, pressProps),\n inputProps: {\n ...inputProps,\n checked: isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native'\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$406796ff087fe49b$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { checkboxSlotRecipe } from \"./checkbox.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"checkbox\",\n});\n\nexport interface CheckboxRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof checkboxSlotRecipe>\n > {}\nexport const CheckboxRoot = withProvider<HTMLLabelElement, CheckboxRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface CheckboxLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const CheckboxLabel = withContext<HTMLSpanElement, CheckboxLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface CheckboxIndicatorProps extends HTMLChakraProps<\"span\"> {}\nexport const CheckboxIndicator = withContext<\n HTMLSpanElement,\n CheckboxIndicatorProps\n>(\"span\", \"indicator\");\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { VisuallyHidden } from \"@/components\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nimport {\n useFocusRing,\n useCheckbox,\n useObjectRef,\n mergeProps,\n} from \"react-aria\";\n\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef } = props;\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const recipe = useSlotRecipe({ key: \"checkbox\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n const [styleProps] = extractStyleProps(props);\n\n const state = useToggleState(props);\n const { inputProps } = useCheckbox(props, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n const isSelected = state.isSelected && !props.isIndeterminate;\n const isIndeterminate = props.isIndeterminate;\n\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <CheckboxRoot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n <VisuallyHidden as=\"span\">\n <input {...mergeProps(inputProps, focusProps)} ref={ref} />\n </VisuallyHidden>\n </CheckboxIndicator>\n\n {props.children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {props.children}\n </CheckboxLabel>\n )}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"names":["$406796ff087fe49b$export$e375f10ce42261c5","props","state","inputRef","validationState","$jNP0e$useFormValidationState","isInvalid","validationErrors","validationDetails","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$jNP0e$useToggle","$jNP0e$useFormValidation","isIndeterminate","isRequired","validationBehavior","$jNP0e$useEffect","pressProps","$jNP0e$usePress","$jNP0e$privateValidationStateProp","groupValidationState","commitValidation","$jNP0e$mergeProps","withProvider","withContext","createSlotRecipeContext","CheckboxRoot","CheckboxLabel","CheckboxIndicator","Checkbox","forwardedRef","localRef","useRef","ref","useObjectRef","mergeRefs","recipe","useSlotRecipe","recipeProps","styleProps","extractStyleProps","useToggleState","useCheckbox","isFocused","focusProps","useFocusRing","stateProps","jsxs","Check","Minus","jsx","VisuallyHidden","mergeProps"],"mappings":"8hBAuBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAU,CAEvE,IAAIC,EAAsBC,4CAA+B,CACrD,GAAGJ,EACH,MAAOC,EAAM,UACrB,CAAK,EACG,CAAE,UAAWI,EAAW,iBAAkBC,EAAkB,kBAAmBC,GAAsBJ,EAAgB,kBACrH,CAAE,WAAYK,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,CAAU,EAASC,4CAAkB,CACzK,GAAGd,EACH,UAAWK,CACnB,EAAOJ,EAAOC,CAAQ,EACda,4CAA0Bf,EAAOG,EAAiBD,CAAQ,EAC9D,GAAI,CAAE,gBAAiBc,EAAiB,WAAYC,EAAY,mBAAoBC,EAAqB,MAAM,EAAKlB,EAChHmB,EAAAA,UAAkB,IAAI,CAGlBjB,EAAS,UAASA,EAAS,QAAQ,cAAgB,CAAC,CAACc,EAC7D,CAAC,EAED,GAAI,CAAE,WAAYI,CAAU,EAASC,EAAAA,0CAAiB,CAClD,WAAYT,GAAcC,EAC1B,SAAW,CAEP,GAAI,CAAE,CAAKS,EAAAA,0CAAqCC,CAAoB,EAAKvB,EACrE,CAAE,iBAAkBwB,CAAgB,EAAKD,GAA8CpB,EAC3FqB,EAAgB,CACpB,CACR,CAAK,EACD,MAAO,CACH,WAAgBC,EAAAA,0CAAmBjB,EAAYY,CAAU,EACzD,WAAY,CACR,GAAGX,EACH,QAASC,EACT,gBAAiBO,GAAcC,IAAuB,QAAU,OAChE,SAAUD,GAAcC,IAAuB,QAC3D,EACQ,WAAYR,EACZ,UAAWC,E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IAAC,QAAA,CAAO,GAAGE,EAAAA,0CAAW9C,EAAYsC,CAAU,EAAG,IAAAX,CAAA,CAAU,CAAA,CAC3D,CAAA,EACF,EAECpC,EAAM,UACLqD,MAACvB,EAAA,CAAc,YAAU,QAAS,GAAGmB,EAClC,SAAAjD,EAAM,QAAA,CACT,CAAA,CAAA,CAAA,CAIR,EACAgC,EAAS,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-yo64B6Gz.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+checkbox@3.15.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useEffect as $jNP0e$useEffect} from \"react\";\nimport {mergeProps as $jNP0e$mergeProps} from \"@react-aria/utils\";\nimport {useFormValidationState as $jNP0e$useFormValidationState, privateValidationStateProp as $jNP0e$privateValidationStateProp} from \"@react-stately/form\";\nimport {useFormValidation as $jNP0e$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $jNP0e$usePress} from \"@react-aria/interactions\";\nimport {useToggle as $jNP0e$useToggle} from \"@react-aria/toggle\";\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\n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jNP0e$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $jNP0e$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $jNP0e$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = 'aria' } = props;\n (0, $jNP0e$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n // Reset validation state on label press for checkbox with a hidden input.\n let { pressProps: pressProps } = (0, $jNP0e$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n // @ts-expect-error\n let { [(0, $jNP0e$privateValidationStateProp)]: groupValidationState } = props;\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n }\n });\n return {\n labelProps: (0, $jNP0e$mergeProps)(labelProps, pressProps),\n inputProps: {\n ...inputProps,\n checked: isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native'\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$406796ff087fe49b$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { checkboxSlotRecipe } from \"./checkbox.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"checkbox\",\n});\n\nexport interface CheckboxRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof checkboxSlotRecipe>\n > {}\nexport const CheckboxRoot = withProvider<HTMLLabelElement, CheckboxRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface CheckboxLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const CheckboxLabel = withContext<HTMLSpanElement, CheckboxLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface CheckboxIndicatorProps extends HTMLChakraProps<\"span\"> {}\nexport const CheckboxIndicator = withContext<\n HTMLSpanElement,\n CheckboxIndicatorProps\n>(\"span\", \"indicator\");\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { VisuallyHidden } from \"@/components\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nimport {\n useFocusRing,\n useCheckbox,\n useObjectRef,\n mergeProps,\n} from \"react-aria\";\n\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef } = props;\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const recipe = useSlotRecipe({ key: \"checkbox\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n const [styleProps] = extractStyleProps(props);\n\n const state = useToggleState(props);\n const { inputProps } = useCheckbox(props, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n const isSelected = state.isSelected && !props.isIndeterminate;\n const isIndeterminate = props.isIndeterminate;\n\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <CheckboxRoot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n <VisuallyHidden as=\"span\">\n <input {...mergeProps(inputProps, focusProps)} ref={ref} />\n </VisuallyHidden>\n </CheckboxIndicator>\n\n {props.children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {props.children}\n </CheckboxLabel>\n )}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"names":["$406796ff087fe49b$export$e375f10ce42261c5","props","state","inputRef","validationState","$jNP0e$useFormValidationState","isInvalid","validationErrors","validationDetails","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$jNP0e$useToggle","$jNP0e$useFormValidation","isIndeterminate","isRequired","validationBehavior","$jNP0e$useEffect","pressProps","$jNP0e$usePress","$jNP0e$privateValidationStateProp","groupValidationState","commitValidation","$jNP0e$mergeProps","withProvider","withContext","createSlotRecipeContext","CheckboxRoot","CheckboxLabel","CheckboxIndicator","Checkbox","forwardedRef","localRef","useRef","ref","useObjectRef","mergeRefs","recipe","useSlotRecipe","recipeProps","styleProps","extractStyleProps","useToggleState","useCheckbox","isFocused","focusProps","useFocusRing","stateProps","jsxs","Check","Minus","jsx","VisuallyHidden","mergeProps"],"mappings":";;;;;;;;;;;;;AAuBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAU;AAEvE,MAAIC,IAAsBC,EAA+B;AAAA,IACrD,GAAGJ;AAAA,IACH,OAAOC,EAAM;AAAA,EACrB,CAAK,GACG,EAAE,WAAWI,GAAW,kBAAkBC,GAAkB,mBAAmBC,MAAsBJ,EAAgB,mBACrH,EAAE,YAAYK,GAAY,YAAYC,GAAY,YAAYC,GAAY,WAAWC,GAAW,YAAYC,GAAY,YAAYC,EAAU,IAASC,EAAkB;AAAA,IACzK,GAA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code-CI8aUhmu.es.js","sources":["../../src/components/code/code.tsx"],"sourcesContent":["import { Code as ChakraCode } from \"@chakra-ui/react\";\n\n/**\n * # Code\n *\n * renders code blocks\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/code}\n *\n * @experimental This component is experimental and may change or be removed in future versions.\n */\nexport const Code = ChakraCode;\n"],"names":["Code","ChakraCode"],"mappings":";AAWO,MAAMA,IAAOC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-Dg4Larbo.cjs.js","sources":["../../src/components/code/code.tsx"],"sourcesContent":["import { Code as ChakraCode } from \"@chakra-ui/react\";\n\n/**\n * # Code\n *\n * renders code blocks\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/code}\n *\n * @experimental This component is experimental and may change or be removed in future versions.\n */\nexport const Code = ChakraCode;\n"],"names":["Code","ChakraCode"],"mappings":"iDAWaA,EAAOC,EAAAA"}
|