@commercetools/nimbus 0.0.0-canary-20251008065712 → 0.0.0-canary-20251009112243

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.
Files changed (330) hide show
  1. package/dist/chunks/{Button-BvIjIGsV.es.js → Button-DbDspzBf.es.js} +3 -3
  2. package/dist/chunks/{Button-BvIjIGsV.es.js.map → Button-DbDspzBf.es.js.map} +1 -1
  3. package/dist/chunks/{DateField-5ys1kBci.es.js → DateField-BnqI8eDK.es.js} +5 -5
  4. package/dist/chunks/{DateField-5ys1kBci.es.js.map → DateField-BnqI8eDK.es.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-YExF9ktq.es.js → DatePicker-Df88_VwG.es.js} +9 -9
  6. package/dist/chunks/{DatePicker-YExF9ktq.es.js.map → DatePicker-Df88_VwG.es.js.map} +1 -1
  7. package/dist/chunks/{Dialog-CWqCOpjC.es.js → Dialog-FtshtbuD.es.js} +27 -27
  8. package/dist/chunks/{Dialog-CWqCOpjC.es.js.map → Dialog-FtshtbuD.es.js.map} +1 -1
  9. package/dist/chunks/{Group-BpLIGg06.es.js → Group-BBaUrRF9.es.js} +2 -2
  10. package/dist/chunks/{Group-BpLIGg06.es.js.map → Group-BBaUrRF9.es.js.map} +1 -1
  11. package/dist/chunks/{Header-LnHmzVuk.es.js → Header-_Z7cZ9Ql.es.js} +10 -10
  12. package/dist/chunks/{Header-LnHmzVuk.es.js.map → Header-_Z7cZ9Ql.es.js.map} +1 -1
  13. package/dist/chunks/{Heading-D7ETzhN-.es.js → Heading-D_yp5JbO.es.js} +3 -3
  14. package/dist/chunks/{Heading-D7ETzhN-.es.js.map → Heading-D_yp5JbO.es.js.map} +1 -1
  15. package/dist/chunks/{Input-DFGgeFov.es.js → Input-Da2oLmEN.es.js} +2 -2
  16. package/dist/chunks/{Input-DFGgeFov.es.js.map → Input-Da2oLmEN.es.js.map} +1 -1
  17. package/dist/chunks/{Label-Bnr234yV.es.js → Label-qcXzazih.es.js} +2 -2
  18. package/dist/chunks/{Label-Bnr234yV.es.js.map → Label-qcXzazih.es.js.map} +1 -1
  19. package/dist/chunks/{ListBox-C_uejm2i.es.js → ListBox-CA_ARARw.es.js} +7 -7
  20. package/dist/chunks/{ListBox-C_uejm2i.es.js.map → ListBox-CA_ARARw.es.js.map} +1 -1
  21. package/dist/chunks/{ListKeyboardDelegate-4wjSpyhj.es.js → ListKeyboardDelegate-XLAitX9C.es.js} +2 -2
  22. package/dist/chunks/{ListKeyboardDelegate-4wjSpyhj.es.js.map → ListKeyboardDelegate-XLAitX9C.es.js.map} +1 -1
  23. package/dist/chunks/Modal-CVOcKPNx.cjs.js +2 -0
  24. package/dist/chunks/Modal-CVOcKPNx.cjs.js.map +1 -0
  25. package/dist/chunks/Modal-CVRxKbK2.es.js +197 -0
  26. package/dist/chunks/Modal-CVRxKbK2.es.js.map +1 -0
  27. package/dist/chunks/{OverlayArrow-CTv6jme7.es.js → OverlayArrow-CwYMJqgj.es.js} +6 -6
  28. package/dist/chunks/{OverlayArrow-CTv6jme7.es.js.map → OverlayArrow-CwYMJqgj.es.js.map} +1 -1
  29. package/dist/chunks/{ProgressBar-8CLctnNS.es.js → ProgressBar-dYIUhB6B.es.js} +3 -3
  30. package/dist/chunks/{ProgressBar-8CLctnNS.es.js.map → ProgressBar-dYIUhB6B.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-CRACdKnk.es.js → SelectionManager-C9i8k50b.es.js} +8 -8
  32. package/dist/chunks/{SelectionManager-CRACdKnk.es.js.map → SelectionManager-C9i8k50b.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-C9c_wOg5.es.js → Separator-DyXjJGoH.es.js} +2 -2
  34. package/dist/chunks/{Separator-C9c_wOg5.es.js.map → Separator-DyXjJGoH.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-ynzwaXdc.es.js → TextArea-DItoG16s.es.js} +2 -2
  36. package/dist/chunks/{TextArea-ynzwaXdc.es.js.map → TextArea-DItoG16s.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-DmBKvuoG.es.js → ToggleButton-C5u-GV4F.es.js} +2 -2
  38. package/dist/chunks/{ToggleButton-DmBKvuoG.es.js.map → ToggleButton-C5u-GV4F.es.js.map} +1 -1
  39. package/dist/chunks/{accordion-DJmN_bJq.es.js → accordion-C4MjwWsC.es.js} +4 -4
  40. package/dist/chunks/{accordion-DJmN_bJq.es.js.map → accordion-C4MjwWsC.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-C2cc3Wn5.cjs.js → accordion-CxA_B4rs.cjs.js} +2 -2
  42. package/dist/chunks/{accordion-C2cc3Wn5.cjs.js.map → accordion-CxA_B4rs.cjs.js.map} +1 -1
  43. package/dist/chunks/{alert-D2CGReLt.cjs.js → alert-CA04iXvr.cjs.js} +2 -2
  44. package/dist/chunks/{alert-D2CGReLt.cjs.js.map → alert-CA04iXvr.cjs.js.map} +1 -1
  45. package/dist/chunks/{alert-DkIw1imV.es.js → alert-C_eKOpkm.es.js} +2 -2
  46. package/dist/chunks/{alert-DkIw1imV.es.js.map → alert-C_eKOpkm.es.js.map} +1 -1
  47. package/dist/chunks/{button-CN72KuLp.es.js → button-Be0U44e7.es.js} +4 -4
  48. package/dist/chunks/{button-CN72KuLp.es.js.map → button-Be0U44e7.es.js.map} +1 -1
  49. package/dist/chunks/{button-DwowuU7n.cjs.js → button-DTE97NpD.cjs.js} +2 -2
  50. package/dist/chunks/{button-DwowuU7n.cjs.js.map → button-DTE97NpD.cjs.js.map} +1 -1
  51. package/dist/chunks/{calendar-BeLNlFT1.es.js → calendar-C33Q6JGN.es.js} +8 -8
  52. package/dist/chunks/{calendar-BeLNlFT1.es.js.map → calendar-C33Q6JGN.es.js.map} +1 -1
  53. package/dist/chunks/{calendar-CmRpEeaV.cjs.js → calendar-GA5ACIqm.cjs.js} +2 -2
  54. package/dist/chunks/{calendar-CmRpEeaV.cjs.js.map → calendar-GA5ACIqm.cjs.js.map} +1 -1
  55. package/dist/chunks/{checkbox-DPAM4M8p.es.js → checkbox-BKBd4kHr.es.js} +3 -3
  56. package/dist/chunks/{checkbox-DPAM4M8p.es.js.map → checkbox-BKBd4kHr.es.js.map} +1 -1
  57. package/dist/chunks/{checkbox-B_7h5MW8.cjs.js → checkbox-Bh5DxcKC.cjs.js} +2 -2
  58. package/dist/chunks/{checkbox-B_7h5MW8.cjs.js.map → checkbox-Bh5DxcKC.cjs.js.map} +1 -1
  59. package/dist/chunks/{collapsible-motion-DqQSB6-D.es.js → collapsible-motion-BSsz8na-.es.js} +3 -3
  60. package/dist/chunks/{collapsible-motion-DqQSB6-D.es.js.map → collapsible-motion-BSsz8na-.es.js.map} +1 -1
  61. package/dist/chunks/{collapsible-motion-CJQJsU4W.cjs.js → collapsible-motion-hU9KTv8o.cjs.js} +2 -2
  62. package/dist/chunks/{collapsible-motion-CJQJsU4W.cjs.js.map → collapsible-motion-hU9KTv8o.cjs.js.map} +1 -1
  63. package/dist/chunks/{combobox-DxZTQoKT.cjs.js → combobox-BghQKCQt.cjs.js} +2 -2
  64. package/dist/chunks/{combobox-DxZTQoKT.cjs.js.map → combobox-BghQKCQt.cjs.js.map} +1 -1
  65. package/dist/chunks/{combobox-Ds2AjwlE.es.js → combobox-D4M76aw1.es.js} +19 -19
  66. package/dist/chunks/{combobox-Ds2AjwlE.es.js.map → combobox-D4M76aw1.es.js.map} +1 -1
  67. package/dist/chunks/{data-table-CqRdiTa7.cjs.js → data-table-BBvjFAkE.cjs.js} +2 -2
  68. package/dist/chunks/{data-table-CqRdiTa7.cjs.js.map → data-table-BBvjFAkE.cjs.js.map} +1 -1
  69. package/dist/chunks/{data-table-CkB6mGKq.es.js → data-table-CJMHQ1O2.es.js} +12 -12
  70. package/dist/chunks/{data-table-CkB6mGKq.es.js.map → data-table-CJMHQ1O2.es.js.map} +1 -1
  71. package/dist/chunks/{date-input-C7BR3eTg.cjs.js → date-input-CUWc63rA.cjs.js} +2 -2
  72. package/dist/chunks/{date-input-C7BR3eTg.cjs.js.map → date-input-CUWc63rA.cjs.js.map} +1 -1
  73. package/dist/chunks/{date-input-DOiFNdVS.es.js → date-input-Dab_Fdrq.es.js} +4 -4
  74. package/dist/chunks/{date-input-DOiFNdVS.es.js.map → date-input-Dab_Fdrq.es.js.map} +1 -1
  75. package/dist/chunks/{date-picker-Cm9gyNP-.cjs.js → date-picker-C6A6CiIu.cjs.js} +2 -2
  76. package/dist/chunks/{date-picker-Cm9gyNP-.cjs.js.map → date-picker-C6A6CiIu.cjs.js.map} +1 -1
  77. package/dist/chunks/{date-picker-yZG8AJhH.es.js → date-picker-CT6jwApn.es.js} +18 -18
  78. package/dist/chunks/{date-picker-yZG8AJhH.es.js.map → date-picker-CT6jwApn.es.js.map} +1 -1
  79. package/dist/chunks/{date-range-picker-D-81vyFH.es.js → date-range-picker-BICRnCsn.es.js} +20 -20
  80. package/dist/chunks/{date-range-picker-D-81vyFH.es.js.map → date-range-picker-BICRnCsn.es.js.map} +1 -1
  81. package/dist/chunks/{date-range-picker-zS1_WvWT.cjs.js → date-range-picker-vER5F2HJ.cjs.js} +2 -2
  82. package/dist/chunks/{date-range-picker-zS1_WvWT.cjs.js.map → date-range-picker-vER5F2HJ.cjs.js.map} +1 -1
  83. package/dist/chunks/{dialog-DeZMe0yJ.es.js → dialog-4Rx0vFFN.es.js} +2 -2
  84. package/dist/chunks/dialog-4Rx0vFFN.es.js.map +1 -0
  85. package/dist/chunks/{dialog-BypIffa5.cjs.js → dialog-CDyF_zvK.cjs.js} +2 -2
  86. package/dist/chunks/dialog-CDyF_zvK.cjs.js.map +1 -0
  87. package/dist/chunks/dialog.title-5mHI--iF.es.js +152 -0
  88. package/dist/chunks/dialog.title-5mHI--iF.es.js.map +1 -0
  89. package/dist/chunks/dialog.title-CtQfDha4.cjs.js +2 -0
  90. package/dist/chunks/dialog.title-CtQfDha4.cjs.js.map +1 -0
  91. package/dist/chunks/drawer-DzYXHVbg.cjs.js +2 -0
  92. package/dist/chunks/drawer-DzYXHVbg.cjs.js.map +1 -0
  93. package/dist/chunks/drawer-wpiy6Y4h.es.js +304 -0
  94. package/dist/chunks/drawer-wpiy6Y4h.es.js.map +1 -0
  95. package/dist/chunks/{extractStyleProps-DikjPnnl.es.js → extractStyleProps-CNXOLneR.es.js} +2 -2
  96. package/dist/chunks/{extractStyleProps-DikjPnnl.es.js.map → extractStyleProps-CNXOLneR.es.js.map} +1 -1
  97. package/dist/chunks/{extractStyleProps-Dm0IZP1e.cjs.js → extractStyleProps-G58aSXl8.cjs.js} +2 -2
  98. package/dist/chunks/{extractStyleProps-Dm0IZP1e.cjs.js.map → extractStyleProps-G58aSXl8.cjs.js.map} +1 -1
  99. package/dist/chunks/{form-field-BDfFWeqm.cjs.js → form-field-2NMmaZgp.cjs.js} +2 -2
  100. package/dist/chunks/{form-field-BDfFWeqm.cjs.js.map → form-field-2NMmaZgp.cjs.js.map} +1 -1
  101. package/dist/chunks/{form-field-DWeU1qy1.es.js → form-field-BrU_qJq3.es.js} +10 -10
  102. package/dist/chunks/{form-field-DWeU1qy1.es.js.map → form-field-BrU_qJq3.es.js.map} +1 -1
  103. package/dist/chunks/{group-BOu3usq9.es.js → group-F6OwMVlM.es.js} +2 -2
  104. package/dist/chunks/{group-BOu3usq9.es.js.map → group-F6OwMVlM.es.js.map} +1 -1
  105. package/dist/chunks/{heading-DpAKPw0U.es.js → heading-BtazVUd5.es.js} +2 -2
  106. package/dist/chunks/{heading-DpAKPw0U.es.js.map → heading-BtazVUd5.es.js.map} +1 -1
  107. package/dist/chunks/{icon-button-Bwkgcdyv.cjs.js → icon-button-CkjZc6Br.cjs.js} +2 -2
  108. package/dist/chunks/{icon-button-Bwkgcdyv.cjs.js.map → icon-button-CkjZc6Br.cjs.js.map} +1 -1
  109. package/dist/chunks/{icon-button-CbjASJ_F.es.js → icon-button-D4w1XTVg.es.js} +2 -2
  110. package/dist/chunks/{icon-button-CbjASJ_F.es.js.map → icon-button-D4w1XTVg.es.js.map} +1 -1
  111. package/dist/chunks/{icon-toggle-button-DC2DD7q-.cjs.js → icon-toggle-button-Bsj4XLsI.cjs.js} +2 -2
  112. package/dist/chunks/{icon-toggle-button-DC2DD7q-.cjs.js.map → icon-toggle-button-Bsj4XLsI.cjs.js.map} +1 -1
  113. package/dist/chunks/{icon-toggle-button-1ZhwPLkv.es.js → icon-toggle-button-CqILSznm.es.js} +2 -2
  114. package/dist/chunks/{icon-toggle-button-1ZhwPLkv.es.js.map → icon-toggle-button-CqILSznm.es.js.map} +1 -1
  115. package/dist/chunks/{index-DhO4Z_an.cjs.js → index-Bx9ez6gh.cjs.js} +5 -5
  116. package/dist/chunks/index-Bx9ez6gh.cjs.js.map +1 -0
  117. package/dist/chunks/{index-D26EXIvZ.es.js → index-DthLdwMN.es.js} +289 -85
  118. package/dist/chunks/index-DthLdwMN.es.js.map +1 -0
  119. package/dist/chunks/{kbd-B-9k-UDU.es.js → kbd-B--GEgRt.es.js} +2 -2
  120. package/dist/chunks/{kbd-B-9k-UDU.es.js.map → kbd-B--GEgRt.es.js.map} +1 -1
  121. package/dist/chunks/{localized-field-BEQbGU6A.cjs.js → localized-field-BqUMaU2Z.cjs.js} +2 -2
  122. package/dist/chunks/{localized-field-BEQbGU6A.cjs.js.map → localized-field-BqUMaU2Z.cjs.js.map} +1 -1
  123. package/dist/chunks/{localized-field-9JF_RJHm.es.js → localized-field-CV69UdIU.es.js} +11 -11
  124. package/dist/chunks/{localized-field-9JF_RJHm.es.js.map → localized-field-CV69UdIU.es.js.map} +1 -1
  125. package/dist/chunks/{menu-Bmph9lXW.es.js → menu-BvZy65zm.es.js} +13 -13
  126. package/dist/chunks/{menu-Bmph9lXW.es.js.map → menu-BvZy65zm.es.js.map} +1 -1
  127. package/dist/chunks/{menu-BGmtow-5.cjs.js → menu-CW4QVk-m.cjs.js} +2 -2
  128. package/dist/chunks/{menu-BGmtow-5.cjs.js.map → menu-CW4QVk-m.cjs.js.map} +1 -1
  129. package/dist/chunks/{money-input-CUR36zLn.cjs.js → money-input-BklJuHw0.cjs.js} +2 -2
  130. package/dist/chunks/{money-input-CUR36zLn.cjs.js.map → money-input-BklJuHw0.cjs.js.map} +1 -1
  131. package/dist/chunks/{money-input-B7wnGMVu.es.js → money-input-CavdTx-o.es.js} +6 -6
  132. package/dist/chunks/{money-input-B7wnGMVu.es.js.map → money-input-CavdTx-o.es.js.map} +1 -1
  133. package/dist/chunks/{multiline-text-input-CkziMMuo.cjs.js → multiline-text-input-4kwHZ5HO.cjs.js} +2 -2
  134. package/dist/chunks/{multiline-text-input-CkziMMuo.cjs.js.map → multiline-text-input-4kwHZ5HO.cjs.js.map} +1 -1
  135. package/dist/chunks/{multiline-text-input-DtDQeO0Q.es.js → multiline-text-input-BrE5zqv5.es.js} +3 -3
  136. package/dist/chunks/{multiline-text-input-DtDQeO0Q.es.js.map → multiline-text-input-BrE5zqv5.es.js.map} +1 -1
  137. package/dist/chunks/{nimbus-provider-B8IUnP0U.cjs.js → nimbus-provider-ChOIcVt6.cjs.js} +2 -2
  138. package/dist/chunks/{nimbus-provider-B8IUnP0U.cjs.js.map → nimbus-provider-ChOIcVt6.cjs.js.map} +1 -1
  139. package/dist/chunks/{nimbus-provider-BOlU4kA1.es.js → nimbus-provider-YB6qmSSk.es.js} +2 -2
  140. package/dist/chunks/{nimbus-provider-BOlU4kA1.es.js.map → nimbus-provider-YB6qmSSk.es.js.map} +1 -1
  141. package/dist/chunks/{number-input-C3zjMkHS.es.js → number-input-Cq95vVse.es.js} +30 -30
  142. package/dist/chunks/{number-input-C3zjMkHS.es.js.map → number-input-Cq95vVse.es.js.map} +1 -1
  143. package/dist/chunks/{number-input-C40q3d4I.cjs.js → number-input-DA_yy5BZ.cjs.js} +2 -2
  144. package/dist/chunks/{number-input-C40q3d4I.cjs.js.map → number-input-DA_yy5BZ.cjs.js.map} +1 -1
  145. package/dist/chunks/{pagination-fMz7HL5l.es.js → pagination-CBrMi7gy.es.js} +5 -5
  146. package/dist/chunks/{pagination-fMz7HL5l.es.js.map → pagination-CBrMi7gy.es.js.map} +1 -1
  147. package/dist/chunks/{pagination-BDx3pJkE.cjs.js → pagination-DUCo0L7g.cjs.js} +2 -2
  148. package/dist/chunks/{pagination-BDx3pJkE.cjs.js.map → pagination-DUCo0L7g.cjs.js.map} +1 -1
  149. package/dist/chunks/{password-input-D94jZSI9.cjs.js → password-input-DMbxYno4.cjs.js} +2 -2
  150. package/dist/chunks/{password-input-D94jZSI9.cjs.js.map → password-input-DMbxYno4.cjs.js.map} +1 -1
  151. package/dist/chunks/{password-input-1KfvAXxj.es.js → password-input-De29PFv6.es.js} +4 -4
  152. package/dist/chunks/{password-input-1KfvAXxj.es.js.map → password-input-De29PFv6.es.js.map} +1 -1
  153. package/dist/chunks/{popover-CiLVE71i.es.js → popover-yeZXM_2G.es.js} +2 -2
  154. package/dist/chunks/{popover-CiLVE71i.es.js.map → popover-yeZXM_2G.es.js.map} +1 -1
  155. package/dist/chunks/{progress-bar-h-SZWJrX.es.js → progress-bar-1XrmZIIp.es.js} +4 -4
  156. package/dist/chunks/{progress-bar-h-SZWJrX.es.js.map → progress-bar-1XrmZIIp.es.js.map} +1 -1
  157. package/dist/chunks/{progress-bar-BHCSpjRr.cjs.js → progress-bar-BBy8IR_W.cjs.js} +2 -2
  158. package/dist/chunks/{progress-bar-BHCSpjRr.cjs.js.map → progress-bar-BBy8IR_W.cjs.js.map} +1 -1
  159. package/dist/chunks/{radio-input-DRHL2tKC.es.js → radio-input-8sawPicQ.es.js} +5 -5
  160. package/dist/chunks/{radio-input-DRHL2tKC.es.js.map → radio-input-8sawPicQ.es.js.map} +1 -1
  161. package/dist/chunks/{radio-input-B0dnF7hm.cjs.js → radio-input-DK5681L5.cjs.js} +2 -2
  162. package/dist/chunks/{radio-input-B0dnF7hm.cjs.js.map → radio-input-DK5681L5.cjs.js.map} +1 -1
  163. package/dist/chunks/{range-calendar-C6yPojX-.es.js → range-calendar-C0InkSSo.es.js} +8 -8
  164. package/dist/chunks/{range-calendar-C6yPojX-.es.js.map → range-calendar-C0InkSSo.es.js.map} +1 -1
  165. package/dist/chunks/{range-calendar-RB6cR7Zf.cjs.js → range-calendar-CrHUTeyY.cjs.js} +2 -2
  166. package/dist/chunks/{range-calendar-RB6cR7Zf.cjs.js.map → range-calendar-CrHUTeyY.cjs.js.map} +1 -1
  167. package/dist/chunks/{rich-text-input-CXNeJFfO.cjs.js → rich-text-input-BygekdK5.cjs.js} +2 -2
  168. package/dist/chunks/{rich-text-input-CXNeJFfO.cjs.js.map → rich-text-input-BygekdK5.cjs.js.map} +1 -1
  169. package/dist/chunks/{rich-text-input-BzOdpZJX.es.js → rich-text-input-CUAI0VeV.es.js} +11 -11
  170. package/dist/chunks/{rich-text-input-BzOdpZJX.es.js.map → rich-text-input-CUAI0VeV.es.js.map} +1 -1
  171. package/dist/chunks/{search-input-C9ne8p91.es.js → search-input-DkFkEdiE.es.js} +43 -43
  172. package/dist/chunks/{search-input-C9ne8p91.es.js.map → search-input-DkFkEdiE.es.js.map} +1 -1
  173. package/dist/chunks/{search-input-Dh6MuIpa.cjs.js → search-input-r6P-vAgp.cjs.js} +2 -2
  174. package/dist/chunks/{search-input-Dh6MuIpa.cjs.js.map → search-input-r6P-vAgp.cjs.js.map} +1 -1
  175. package/dist/chunks/{select-CUjrJRUT.es.js → select-CWttUH5b.es.js} +70 -70
  176. package/dist/chunks/{select-CUjrJRUT.es.js.map → select-CWttUH5b.es.js.map} +1 -1
  177. package/dist/chunks/{select-CwAyhevQ.cjs.js → select-D_HPNSo0.cjs.js} +2 -2
  178. package/dist/chunks/{select-CwAyhevQ.cjs.js.map → select-D_HPNSo0.cjs.js.map} +1 -1
  179. package/dist/chunks/{separator-BbfyHuLb.cjs.js → separator-BBuhLJdN.cjs.js} +2 -2
  180. package/dist/chunks/{separator-BbfyHuLb.cjs.js.map → separator-BBuhLJdN.cjs.js.map} +1 -1
  181. package/dist/chunks/{separator-BoqnKRYR.es.js → separator-D7elp8bN.es.js} +3 -3
  182. package/dist/chunks/{separator-BoqnKRYR.es.js.map → separator-D7elp8bN.es.js.map} +1 -1
  183. package/dist/chunks/{split-button-jG61RIMv.es.js → split-button-Bczcosj2.es.js} +5 -5
  184. package/dist/chunks/{split-button-jG61RIMv.es.js.map → split-button-Bczcosj2.es.js.map} +1 -1
  185. package/dist/chunks/{split-button-C0suLBEJ.cjs.js → split-button-EHp7Svv4.cjs.js} +2 -2
  186. package/dist/chunks/{split-button-C0suLBEJ.cjs.js.map → split-button-EHp7Svv4.cjs.js.map} +1 -1
  187. package/dist/chunks/{switch-C_hXU6lZ.cjs.js → switch-CwJ5OFLP.cjs.js} +2 -2
  188. package/dist/chunks/{switch-C_hXU6lZ.cjs.js.map → switch-CwJ5OFLP.cjs.js.map} +1 -1
  189. package/dist/chunks/{switch-DxdWKUjM.es.js → switch-D_NMKG3Q.es.js} +3 -3
  190. package/dist/chunks/{switch-DxdWKUjM.es.js.map → switch-D_NMKG3Q.es.js.map} +1 -1
  191. package/dist/chunks/{tabs-BIfLcZNC.cjs.js → tabs-Cklmbi45.cjs.js} +2 -2
  192. package/dist/chunks/{tabs-BIfLcZNC.cjs.js.map → tabs-Cklmbi45.cjs.js.map} +1 -1
  193. package/dist/chunks/{tabs-c_3pvA8t.es.js → tabs-UlU9sGFI.es.js} +6 -6
  194. package/dist/chunks/{tabs-c_3pvA8t.es.js.map → tabs-UlU9sGFI.es.js.map} +1 -1
  195. package/dist/chunks/{tag-group-Vypgj2V2.cjs.js → tag-group-Cgs8C7Xc.cjs.js} +2 -2
  196. package/dist/chunks/{tag-group-Vypgj2V2.cjs.js.map → tag-group-Cgs8C7Xc.cjs.js.map} +1 -1
  197. package/dist/chunks/{tag-group-DrHF4Hpe.es.js → tag-group-uIKmx4eU.es.js} +31 -31
  198. package/dist/chunks/{tag-group-DrHF4Hpe.es.js.map → tag-group-uIKmx4eU.es.js.map} +1 -1
  199. package/dist/chunks/{text-hbdb3OKq.es.js → text-BgiP8ZB6.es.js} +2 -2
  200. package/dist/chunks/{text-hbdb3OKq.es.js.map → text-BgiP8ZB6.es.js.map} +1 -1
  201. package/dist/chunks/{text-input-BYpxoT5T.cjs.js → text-input-DHyVy0pg.cjs.js} +2 -2
  202. package/dist/chunks/{text-input-BYpxoT5T.cjs.js.map → text-input-DHyVy0pg.cjs.js.map} +1 -1
  203. package/dist/chunks/{text-input-BIJx8kgm.es.js → text-input-DWJ-CPVR.es.js} +4 -4
  204. package/dist/chunks/{text-input-BIJx8kgm.es.js.map → text-input-DWJ-CPVR.es.js.map} +1 -1
  205. package/dist/chunks/{time-input-BbCVYXM4.es.js → time-input-CwfMLg_y.es.js} +3 -3
  206. package/dist/chunks/{time-input-BbCVYXM4.es.js.map → time-input-CwfMLg_y.es.js.map} +1 -1
  207. package/dist/chunks/{time-input-BCBvliVc.cjs.js → time-input-UNOO6gaq.cjs.js} +2 -2
  208. package/dist/chunks/{time-input-BCBvliVc.cjs.js.map → time-input-UNOO6gaq.cjs.js.map} +1 -1
  209. package/dist/chunks/{toggle-button-u8DA8u8k.cjs.js → toggle-button-BHOVooIy.cjs.js} +2 -2
  210. package/dist/chunks/{toggle-button-u8DA8u8k.cjs.js.map → toggle-button-BHOVooIy.cjs.js.map} +1 -1
  211. package/dist/chunks/{toggle-button-BlyysRNw.es.js → toggle-button-CdJftdD2.es.js} +4 -4
  212. package/dist/chunks/{toggle-button-BlyysRNw.es.js.map → toggle-button-CdJftdD2.es.js.map} +1 -1
  213. package/dist/chunks/{toggle-button-group-B5PFZHXJ.es.js → toggle-button-group-D2eN4VNE.es.js} +2 -2
  214. package/dist/chunks/{toggle-button-group-B5PFZHXJ.es.js.map → toggle-button-group-D2eN4VNE.es.js.map} +1 -1
  215. package/dist/chunks/{toolbar-BJlA8UZl.cjs.js → toolbar-0yDwxKuL.cjs.js} +2 -2
  216. package/dist/chunks/{toolbar-BJlA8UZl.cjs.js.map → toolbar-0yDwxKuL.cjs.js.map} +1 -1
  217. package/dist/chunks/{toolbar-BFUzjQC7.es.js → toolbar-DXDZ5G0Q.es.js} +4 -4
  218. package/dist/chunks/{toolbar-BFUzjQC7.es.js.map → toolbar-DXDZ5G0Q.es.js.map} +1 -1
  219. package/dist/chunks/{tooltip-D0dkVEDQ.es.js → tooltip-CgzrzHZy.es.js} +3 -3
  220. package/dist/chunks/{tooltip-D0dkVEDQ.es.js.map → tooltip-CgzrzHZy.es.js.map} +1 -1
  221. package/dist/chunks/{useListState-Bdz8ihfA.es.js → useListState-wotFHS2D.es.js} +2 -2
  222. package/dist/chunks/{useListState-Bdz8ihfA.es.js.map → useListState-wotFHS2D.es.js.map} +1 -1
  223. package/dist/chunks/{useSingleSelectListState-C0k_6pJ5.es.js → useSingleSelectListState-CYr_aJQU.es.js} +2 -2
  224. package/dist/chunks/{useSingleSelectListState-C0k_6pJ5.es.js.map → useSingleSelectListState-CYr_aJQU.es.js.map} +1 -1
  225. package/dist/chunks/{utils-D5g6AoR2.es.js → utils-Cyja2WdR.es.js} +5 -5
  226. package/dist/chunks/{utils-D5g6AoR2.es.js.map → utils-Cyja2WdR.es.js.map} +1 -1
  227. package/dist/components/accordion.cjs +1 -1
  228. package/dist/components/accordion.es.js +1 -1
  229. package/dist/components/alert.cjs +1 -1
  230. package/dist/components/alert.es.js +1 -1
  231. package/dist/components/button.cjs +1 -1
  232. package/dist/components/button.es.js +1 -1
  233. package/dist/components/calendar.cjs +1 -1
  234. package/dist/components/calendar.es.js +1 -1
  235. package/dist/components/checkbox.cjs +1 -1
  236. package/dist/components/checkbox.es.js +1 -1
  237. package/dist/components/collapsible-motion.cjs +1 -1
  238. package/dist/components/collapsible-motion.es.js +1 -1
  239. package/dist/components/combobox.cjs +1 -1
  240. package/dist/components/combobox.es.js +1 -1
  241. package/dist/components/components.cjs +1 -1
  242. package/dist/components/components.es.js +1 -1
  243. package/dist/components/data-table.cjs +1 -1
  244. package/dist/components/data-table.es.js +1 -1
  245. package/dist/components/date-input.cjs +1 -1
  246. package/dist/components/date-input.es.js +1 -1
  247. package/dist/components/date-picker.cjs +1 -1
  248. package/dist/components/date-picker.es.js +1 -1
  249. package/dist/components/date-range-picker.cjs +1 -1
  250. package/dist/components/date-range-picker.es.js +1 -1
  251. package/dist/components/dialog.cjs +1 -1
  252. package/dist/components/dialog.es.js +1 -1
  253. package/dist/components/drawer.cjs +2 -0
  254. package/dist/components/drawer.cjs.map +1 -0
  255. package/dist/components/drawer.es.js +5 -0
  256. package/dist/components/drawer.es.js.map +1 -0
  257. package/dist/components/form-field.cjs +1 -1
  258. package/dist/components/form-field.es.js +1 -1
  259. package/dist/components/group.es.js +1 -1
  260. package/dist/components/heading.es.js +1 -1
  261. package/dist/components/icon-button.cjs +1 -1
  262. package/dist/components/icon-button.es.js +1 -1
  263. package/dist/components/icon-toggle-button.cjs +1 -1
  264. package/dist/components/icon-toggle-button.es.js +1 -1
  265. package/dist/components/kbd.es.js +1 -1
  266. package/dist/components/localized-field.cjs +1 -1
  267. package/dist/components/localized-field.es.js +1 -1
  268. package/dist/components/money-input.cjs +1 -1
  269. package/dist/components/money-input.es.js +1 -1
  270. package/dist/components/multiline-text-input.cjs +1 -1
  271. package/dist/components/multiline-text-input.es.js +1 -1
  272. package/dist/components/nimbus-provider.cjs +1 -1
  273. package/dist/components/nimbus-provider.es.js +1 -1
  274. package/dist/components/number-input.cjs +1 -1
  275. package/dist/components/number-input.es.js +1 -1
  276. package/dist/components/pagination.cjs +1 -1
  277. package/dist/components/pagination.es.js +1 -1
  278. package/dist/components/password-input.cjs +1 -1
  279. package/dist/components/password-input.es.js +1 -1
  280. package/dist/components/popover.es.js +1 -1
  281. package/dist/components/progress-bar.cjs +1 -1
  282. package/dist/components/progress-bar.es.js +1 -1
  283. package/dist/components/radio-input.cjs +1 -1
  284. package/dist/components/radio-input.es.js +1 -1
  285. package/dist/components/range-calendar.cjs +1 -1
  286. package/dist/components/range-calendar.es.js +1 -1
  287. package/dist/components/rich-text-input.cjs +1 -1
  288. package/dist/components/rich-text-input.es.js +1 -1
  289. package/dist/components/scoped-search-input.cjs +1 -1
  290. package/dist/components/scoped-search-input.es.js +4 -4
  291. package/dist/components/search-input.cjs +1 -1
  292. package/dist/components/search-input.es.js +1 -1
  293. package/dist/components/select.cjs +1 -1
  294. package/dist/components/select.es.js +1 -1
  295. package/dist/components/separator.cjs +1 -1
  296. package/dist/components/separator.es.js +1 -1
  297. package/dist/components/split-button.cjs +1 -1
  298. package/dist/components/split-button.es.js +1 -1
  299. package/dist/components/switch.cjs +1 -1
  300. package/dist/components/switch.es.js +1 -1
  301. package/dist/components/tabs.cjs +1 -1
  302. package/dist/components/tabs.es.js +1 -1
  303. package/dist/components/tag-group.cjs +1 -1
  304. package/dist/components/tag-group.es.js +1 -1
  305. package/dist/components/text-input.cjs +1 -1
  306. package/dist/components/text-input.es.js +1 -1
  307. package/dist/components/text.es.js +1 -1
  308. package/dist/components/time-input.cjs +1 -1
  309. package/dist/components/time-input.es.js +1 -1
  310. package/dist/components/toggle-button-group.es.js +1 -1
  311. package/dist/components/toggle-button.cjs +1 -1
  312. package/dist/components/toggle-button.es.js +1 -1
  313. package/dist/components/toolbar.cjs +1 -1
  314. package/dist/components/toolbar.es.js +1 -1
  315. package/dist/components/tooltip.es.js +1 -1
  316. package/dist/dialog.d.ts +1 -1
  317. package/dist/drawer.d.ts +577 -0
  318. package/dist/index.cjs +1 -1
  319. package/dist/index.cjs.map +1 -1
  320. package/dist/index.es.js +56 -54
  321. package/dist/index.es.js.map +1 -1
  322. package/package.json +5 -5
  323. package/dist/chunks/dialog-BypIffa5.cjs.js.map +0 -1
  324. package/dist/chunks/dialog-DeZMe0yJ.es.js.map +0 -1
  325. package/dist/chunks/dialog.title-BmS1MORJ.es.js +0 -341
  326. package/dist/chunks/dialog.title-BmS1MORJ.es.js.map +0 -1
  327. package/dist/chunks/dialog.title-CsuOBAm8.cjs.js +0 -2
  328. package/dist/chunks/dialog.title-CsuOBAm8.cjs.js.map +0 -1
  329. package/dist/chunks/index-D26EXIvZ.es.js.map +0 -1
  330. package/dist/chunks/index-DhO4Z_an.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("@chakra-ui/react/styled-system"),c=require("./index-DhO4Z_an.cjs.js"),n=require("./DateField-CDTSjqvQ.cjs.js"),S=require("./extractStyleProps-Dm0IZP1e.cjs.js"),{withProvider:g,withContext:t}=s.createSlotRecipeContext({recipe:c.dateInputSlotRecipe}),j=g("div","root"),I=t("div","leadingElement"),D=t("div","trailingElement"),$=t("div","segmentGroup"),f=t("div","segment"),o=l=>{const p=s.useRecipe({recipe:c.dateInputSlotRecipe}),{leadingElement:r,trailingElement:i,...a}=l,[d,u]=p.splitVariantProps({...a}),[x,m]=S.extractStyleProps(u);return e.jsx(j,{...d,...x,asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$d9781c7894a82487,{...m,children:e.jsxs(e.Fragment,{children:[r&&e.jsx(I,{children:r}),e.jsx($,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:h=>e.jsx(f,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:h})})})}),i&&e.jsx(D,{children:i})]})})})};o.displayName="DateInput";exports.DateInput=o;
2
- //# sourceMappingURL=date-input-C7BR3eTg.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("@chakra-ui/react/styled-system"),c=require("./index-Bx9ez6gh.cjs.js"),n=require("./DateField-CDTSjqvQ.cjs.js"),S=require("./extractStyleProps-G58aSXl8.cjs.js"),{withProvider:g,withContext:t}=s.createSlotRecipeContext({recipe:c.dateInputSlotRecipe}),j=g("div","root"),I=t("div","leadingElement"),D=t("div","trailingElement"),$=t("div","segmentGroup"),f=t("div","segment"),o=l=>{const p=s.useRecipe({recipe:c.dateInputSlotRecipe}),{leadingElement:r,trailingElement:i,...a}=l,[d,u]=p.splitVariantProps({...a}),[x,m]=S.extractStyleProps(u);return e.jsx(j,{...d,...x,asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$d9781c7894a82487,{...m,children:e.jsxs(e.Fragment,{children:[r&&e.jsx(I,{children:r}),e.jsx($,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:h=>e.jsx(f,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:h})})})}),i&&e.jsx(D,{children:i})]})})})};o.displayName="DateInput";exports.DateInput=o;
2
+ //# sourceMappingURL=date-input-CUWc63rA.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-input-C7BR3eTg.cjs.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateInputSlotRecipe } from \"./date-input.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 DateInputRecipeProps 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 DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":"6NAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,mBACV,CAAC,EAMYC,EAAoBJ,EAG/B,MAAO,MAAM,EAEFK,EAA8BJ,EAGzC,MAAO,gBAAgB,EAEZK,EAA+BL,EAG1C,MAAO,iBAAiB,EAKbM,EAA4BN,EAGvC,MAAO,cAAc,EAKVO,EAAuBP,EAGlC,MAAO,SAAS,ECrCLQ,EAAaC,GAA0B,CAClD,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQT,EAAAA,oBAAqB,EAClD,CAAE,eAAAU,EAAgB,gBAAAC,EAAiB,GAAGC,GAASL,EAC/C,CAACM,EAAaC,CAAe,EAAIN,EAAO,kBAAkB,CAAE,GAAGI,EAAM,EACrE,CAACG,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEvE,OACEI,EAAAA,IAACjB,EAAA,CAAmB,GAAGY,EAAc,GAAGE,EAAY,QAAO,GACzD,SAAAG,EAAAA,IAACC,EAAAA,0CAAA,CAAW,GAAGH,EACb,SAAAI,OAAAC,EAAAA,SAAA,CACG,SAAA,CAAAX,GACCQ,EAAAA,IAAChB,GACE,SAAAQ,CAAA,CACH,QAEDN,EAAA,CAA0B,QAAO,GAChC,SAAAc,EAAAA,IAACI,6CACE,SAACC,GACAL,EAAAA,IAACb,EAAA,CAAqB,QAAO,GAC3B,SAAAa,EAAAA,IAACM,6CAAY,QAAAD,CAAA,CAAkB,EACjC,EAEJ,CAAA,CACF,EACCZ,GACCO,EAAAA,IAACf,EAAA,CACE,SAAAQ,CAAA,CACH,CAAA,CAAA,CAEJ,EACF,EACF,CAEJ,EAEAL,EAAU,YAAc"}
1
+ {"version":3,"file":"date-input-CUWc63rA.cjs.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateInputSlotRecipe } from \"./date-input.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 DateInputRecipeProps 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 DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":"6NAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,mBACV,CAAC,EAMYC,EAAoBJ,EAG/B,MAAO,MAAM,EAEFK,EAA8BJ,EAGzC,MAAO,gBAAgB,EAEZK,EAA+BL,EAG1C,MAAO,iBAAiB,EAKbM,EAA4BN,EAGvC,MAAO,cAAc,EAKVO,EAAuBP,EAGlC,MAAO,SAAS,ECrCLQ,EAAaC,GAA0B,CAClD,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQT,EAAAA,oBAAqB,EAClD,CAAE,eAAAU,EAAgB,gBAAAC,EAAiB,GAAGC,GAASL,EAC/C,CAACM,EAAaC,CAAe,EAAIN,EAAO,kBAAkB,CAAE,GAAGI,EAAM,EACrE,CAACG,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEvE,OACEI,EAAAA,IAACjB,EAAA,CAAmB,GAAGY,EAAc,GAAGE,EAAY,QAAO,GACzD,SAAAG,EAAAA,IAACC,EAAAA,0CAAA,CAAW,GAAGH,EACb,SAAAI,OAAAC,EAAAA,SAAA,CACG,SAAA,CAAAX,GACCQ,EAAAA,IAAChB,GACE,SAAAQ,CAAA,CACH,QAEDN,EAAA,CAA0B,QAAO,GAChC,SAAAc,EAAAA,IAACI,6CACE,SAACC,GACAL,EAAAA,IAACb,EAAA,CAAqB,QAAO,GAC3B,SAAAa,EAAAA,IAACM,6CAAY,QAAAD,CAAA,CAAkB,EACjC,EAEJ,CAAA,CACF,EACCZ,GACCO,EAAAA,IAACf,EAAA,CACE,SAAAQ,CAAA,CACH,CAAA,CAAA,CAEJ,EACF,EACF,CAEJ,EAEAL,EAAU,YAAc"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as u, Fragment as f } from "react/jsx-runtime";
2
2
  import { createSlotRecipeContext as h, useRecipe as g } from "@chakra-ui/react/styled-system";
3
- import { d as o } from "./index-D26EXIvZ.es.js";
4
- import { $ as S, a as $, b as x } from "./DateField-5ys1kBci.es.js";
5
- import { e as D } from "./extractStyleProps-DikjPnnl.es.js";
3
+ import { d as o } from "./index-DthLdwMN.es.js";
4
+ import { $ as S, a as $, b as x } from "./DateField-BnqI8eDK.es.js";
5
+ import { e as D } from "./extractStyleProps-CNXOLneR.es.js";
6
6
  const { withProvider: I, withContext: t } = /* @__PURE__ */ h({
7
7
  recipe: o
8
8
  }), b = /* @__PURE__ */ I("div", "root"), P = /* @__PURE__ */ t("div", "leadingElement"), v = /* @__PURE__ */ t("div", "trailingElement"), E = /* @__PURE__ */ t("div", "segmentGroup"), C = /* @__PURE__ */ t("div", "segment"), R = (i) => {
@@ -17,4 +17,4 @@ R.displayName = "DateInput";
17
17
  export {
18
18
  R as D
19
19
  };
20
- //# sourceMappingURL=date-input-DOiFNdVS.es.js.map
20
+ //# sourceMappingURL=date-input-Dab_Fdrq.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-input-DOiFNdVS.es.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateInputSlotRecipe } from \"./date-input.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 DateInputRecipeProps 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 DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":";;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAoB,gBAAAJ,EAG/B,OAAO,MAAM,GAEFK,IAA8B,gBAAAJ,EAGzC,OAAO,gBAAgB,GAEZK,IAA+B,gBAAAL,EAG1C,OAAO,iBAAiB,GAKbM,IAA4B,gBAAAN,EAGvC,OAAO,cAAc,GAKVO,IAAuB,gBAAAP,EAGlC,OAAO,SAAS,GCrCLQ,IAAY,CAACC,MAA0B;AAClD,QAAMC,IAASC,EAAU,EAAE,QAAQT,GAAqB,GAClD,EAAE,gBAAAU,GAAgB,iBAAAC,GAAiB,GAAGC,MAASL,GAC/C,CAACM,GAAaC,CAAe,IAAIN,EAAO,kBAAkB,EAAE,GAAGI,GAAM,GACrE,CAACG,GAAYC,CAAe,IAAIC,EAAkBH,CAAe;AAEvE,SACE,gBAAAI,EAACjB,GAAA,EAAmB,GAAGY,GAAc,GAAGE,GAAY,SAAO,IACzD,UAAA,gBAAAG,EAACC,GAAA,EAAW,GAAGH,GACb,UAAA,gBAAAI,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAX,KACC,gBAAAQ,EAAChB,KACE,UAAAQ,EAAA,CACH;AAAA,sBAEDN,GAAA,EAA0B,SAAO,IAChC,UAAA,gBAAAc,EAACI,KACE,UAAA,CAACC,MACA,gBAAAL,EAACb,GAAA,EAAqB,SAAO,IAC3B,UAAA,gBAAAa,EAACM,KAAY,SAAAD,EAAA,CAAkB,GACjC,GAEJ,EAAA,CACF;AAAA,IACCZ,KACC,gBAAAO,EAACf,GAAA,EACE,UAAAQ,EAAA,CACH;AAAA,EAAA,EAAA,CAEJ,GACF,GACF;AAEJ;AAEAL,EAAU,cAAc;"}
1
+ {"version":3,"file":"date-input-Dab_Fdrq.es.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateInputSlotRecipe } from \"./date-input.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 DateInputRecipeProps 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 DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":";;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAoB,gBAAAJ,EAG/B,OAAO,MAAM,GAEFK,IAA8B,gBAAAJ,EAGzC,OAAO,gBAAgB,GAEZK,IAA+B,gBAAAL,EAG1C,OAAO,iBAAiB,GAKbM,IAA4B,gBAAAN,EAGvC,OAAO,cAAc,GAKVO,IAAuB,gBAAAP,EAGlC,OAAO,SAAS,GCrCLQ,IAAY,CAACC,MAA0B;AAClD,QAAMC,IAASC,EAAU,EAAE,QAAQT,GAAqB,GAClD,EAAE,gBAAAU,GAAgB,iBAAAC,GAAiB,GAAGC,MAASL,GAC/C,CAACM,GAAaC,CAAe,IAAIN,EAAO,kBAAkB,EAAE,GAAGI,GAAM,GACrE,CAACG,GAAYC,CAAe,IAAIC,EAAkBH,CAAe;AAEvE,SACE,gBAAAI,EAACjB,GAAA,EAAmB,GAAGY,GAAc,GAAGE,GAAY,SAAO,IACzD,UAAA,gBAAAG,EAACC,GAAA,EAAW,GAAGH,GACb,UAAA,gBAAAI,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAX,KACC,gBAAAQ,EAAChB,KACE,UAAAQ,EAAA,CACH;AAAA,sBAEDN,GAAA,EAA0B,SAAO,IAChC,UAAA,gBAAAc,EAACI,KACE,UAAA,CAACC,MACA,gBAAAL,EAACb,GAAA,EAAqB,SAAO,IAC3B,UAAA,gBAAAa,EAACM,KAAY,SAAAD,EAAA,CAAkB,GACjC,GAEJ,EAAA,CACF;AAAA,IACCZ,KACC,gBAAAO,EAACf,GAAA,EACE,UAAAQ,EAAA,CACH;AAAA,EAAA,EAAA,CAEJ,GACF,GACF;AAEJ;AAEAL,EAAU,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),D=require("@chakra-ui/react/styled-system"),j=require("./index-DhO4Z_an.cjs.js"),P=require("@commercetools/nimbus-icons"),x=require("./DatePicker-DCjrqg4Q.cjs.js"),T=require("./Dialog-XGXh4NXU.cjs.js"),C=require("./Group-BX1EpD9E.cjs.js"),q=require("./extractStyleProps-Dm0IZP1e.cjs.js"),f=require("react"),h=require("react-intl"),I=require("./time-input-BCBvliVc.cjs.js"),M=require("@chakra-ui/react/flex"),R=require("./text-CCW9kDT_.cjs.js"),S=require("./Button-CFZnLKVR.cjs.js"),k=require("./utils-BHdR5Nww.cjs.js"),E=require("./DateField-CDTSjqvQ.cjs.js"),H=require("./date-input-C7BR3eTg.cjs.js"),N=require("./calendar-CmRpEeaV.cjs.js"),V=require("./box-CWni3A32.cjs.js"),y=require("./icon-button-Bwkgcdyv.cjs.js"),{withProvider:B,withContext:g}=D.createSlotRecipeContext({recipe:j.datePickerSlotRecipe}),w=B("div","root"),z=g("div","group"),F=g("div","popover"),G=g("div","calendar"),m=h.defineMessages({clearInput:{id:"Nimbus.DatePicker.clearInput",description:"aria-label for clear input button in date picker",defaultMessage:"Clear input value"},enterTime:{id:"Nimbus.DatePicker.Time.enterTime",description:"aria-label for time input field in date picker",defaultMessage:"Enter time"},enterTimeHour:{id:"Nimbus.DatePicker.Time.enterTimeHour",description:"aria-label for hour-only time input in date picker",defaultMessage:"Enter time (hour)"},enterTimeHourMinute:{id:"Nimbus.DatePicker.Time.enterTimeHourMinute",description:"aria-label for hour and minute time input in date picker",defaultMessage:"Enter time (hour and minute)"},enterTimeHourMinuteSecond:{id:"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond",description:"aria-label for full time input with seconds in date picker",defaultMessage:"Enter time (hour, minute, and second)"},startTime:{id:"Nimbus.DatePicker.Time.startTime",description:"Label for start time in date picker",defaultMessage:"Start time"}}),A=({hideTimeZone:n,hourCycle:r})=>{const s=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:o,dateValue:t}=s,a=f.useRef(null),u=f.useRef(t);return o==="day"?null:(f.useEffect(()=>{let i;if(t&&u.current?.compare(t)!==0){const c=a.current,l=document.activeElement;c?.contains(l)&&l?.getAttribute("role")==="spinbutton"||(i=setTimeout(()=>{c&&c.querySelector('[role="spinbutton"]')?.focus()},50))}return u.current=t,()=>{i&&clearTimeout(i)}},[t]),e.jsxs(M.Flex,{ref:a,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(R.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:e.jsx(h.FormattedMessage,{...m.startTime})}),e.jsx(I.TimeInput,{slot:"timeInput",variant:"ghost",size:"sm",hideTimeZone:n,hourCycle:r})]}))},L=({children:n})=>{const r=h.useIntl(),s=k.$64fa3d84918910a7$export$fabf2dc03a41866e(S.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},o=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),t=o?.dateValue===null,{timeValue:a,setTimeValue:u,granularity:i}=o,c=s?.isDisabled,l=()=>{switch(i){case"hour":return r.formatMessage(m.enterTimeHour);case"minute":return r.formatMessage(m.enterTimeHourMinute);case"second":return r.formatMessage(m.enterTimeHourMinuteSecond);default:return r.formatMessage(m.enterTime)}},b={calendarToggle:{...s,onPress:d=>{const $=document?.activeElement;$&&$.blur(),s.onPress?.(d)}},clear:{onPress:()=>o?.setValue(null),"aria-label":r.formatMessage(m.clearInput),isDisabled:c,style:t?{display:"none"}:void 0,"aria-hidden":t?!0:void 0}},p={timeInput:{value:a,onChange:d=>{d!==null&&u(d)},granularity:i==="day"?void 0:i,"aria-label":l()}};return e.jsx(k.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[S.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:b}],[E.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:p}]],children:n})},v=n=>{const{size:r="md",variant:s,granularity:o="day",hideTimeZone:t,hourCycle:a}=n,u=D.useSlotRecipe({recipe:j.datePickerSlotRecipe}),[i,c]=u.splitVariantProps(n),[l,b]=q.extractStyleProps(c),p=r==="md"?"xs":"2xs",d=o==="day"?n.shouldCloseOnSelect:!1;return e.jsx(w,{...i,...l,asChild:!0,children:e.jsx(x.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...b,shouldCloseOnSelect:d,children:e.jsxs(L,{children:[e.jsx(z,{asChild:!0,children:e.jsx(C.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:e.jsx(H.DateInput,{size:r,variant:s,width:"full",hideTimeZone:t,hourCycle:a,trailingElement:e.jsxs(V.Box,{children:[e.jsx(y.IconButton,{tone:"primary",variant:"ghost",size:p,slot:"clear",children:e.jsx(P.Close,{})}),e.jsx(y.IconButton,{tone:"primary",variant:"ghost",size:p,slot:"calendarToggle",children:e.jsx(P.CalendarMonth,{})})]})})})}),e.jsx(F,{asChild:!0,children:e.jsx(T.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(T.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(G,{children:e.jsx(N.Calendar,{})}),e.jsx(A,{hideTimeZone:t,hourCycle:a})]})})})]})})})};v.displayName="DatePicker";exports.DatePicker=v;
2
- //# sourceMappingURL=date-picker-Cm9gyNP-.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),D=require("@chakra-ui/react/styled-system"),j=require("./index-Bx9ez6gh.cjs.js"),P=require("@commercetools/nimbus-icons"),x=require("./DatePicker-DCjrqg4Q.cjs.js"),T=require("./Dialog-XGXh4NXU.cjs.js"),C=require("./Group-BX1EpD9E.cjs.js"),q=require("./extractStyleProps-G58aSXl8.cjs.js"),f=require("react"),h=require("react-intl"),I=require("./time-input-UNOO6gaq.cjs.js"),M=require("@chakra-ui/react/flex"),R=require("./text-CCW9kDT_.cjs.js"),S=require("./Button-CFZnLKVR.cjs.js"),k=require("./utils-BHdR5Nww.cjs.js"),E=require("./DateField-CDTSjqvQ.cjs.js"),H=require("./date-input-CUWc63rA.cjs.js"),N=require("./calendar-GA5ACIqm.cjs.js"),V=require("./box-CWni3A32.cjs.js"),y=require("./icon-button-CkjZc6Br.cjs.js"),{withProvider:B,withContext:g}=D.createSlotRecipeContext({recipe:j.datePickerSlotRecipe}),w=B("div","root"),z=g("div","group"),F=g("div","popover"),G=g("div","calendar"),m=h.defineMessages({clearInput:{id:"Nimbus.DatePicker.clearInput",description:"aria-label for clear input button in date picker",defaultMessage:"Clear input value"},enterTime:{id:"Nimbus.DatePicker.Time.enterTime",description:"aria-label for time input field in date picker",defaultMessage:"Enter time"},enterTimeHour:{id:"Nimbus.DatePicker.Time.enterTimeHour",description:"aria-label for hour-only time input in date picker",defaultMessage:"Enter time (hour)"},enterTimeHourMinute:{id:"Nimbus.DatePicker.Time.enterTimeHourMinute",description:"aria-label for hour and minute time input in date picker",defaultMessage:"Enter time (hour and minute)"},enterTimeHourMinuteSecond:{id:"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond",description:"aria-label for full time input with seconds in date picker",defaultMessage:"Enter time (hour, minute, and second)"},startTime:{id:"Nimbus.DatePicker.Time.startTime",description:"Label for start time in date picker",defaultMessage:"Start time"}}),A=({hideTimeZone:n,hourCycle:r})=>{const s=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:o,dateValue:t}=s,a=f.useRef(null),u=f.useRef(t);return o==="day"?null:(f.useEffect(()=>{let i;if(t&&u.current?.compare(t)!==0){const c=a.current,l=document.activeElement;c?.contains(l)&&l?.getAttribute("role")==="spinbutton"||(i=setTimeout(()=>{c&&c.querySelector('[role="spinbutton"]')?.focus()},50))}return u.current=t,()=>{i&&clearTimeout(i)}},[t]),e.jsxs(M.Flex,{ref:a,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(R.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:e.jsx(h.FormattedMessage,{...m.startTime})}),e.jsx(I.TimeInput,{slot:"timeInput",variant:"ghost",size:"sm",hideTimeZone:n,hourCycle:r})]}))},L=({children:n})=>{const r=h.useIntl(),s=k.$64fa3d84918910a7$export$fabf2dc03a41866e(S.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},o=f.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),t=o?.dateValue===null,{timeValue:a,setTimeValue:u,granularity:i}=o,c=s?.isDisabled,l=()=>{switch(i){case"hour":return r.formatMessage(m.enterTimeHour);case"minute":return r.formatMessage(m.enterTimeHourMinute);case"second":return r.formatMessage(m.enterTimeHourMinuteSecond);default:return r.formatMessage(m.enterTime)}},b={calendarToggle:{...s,onPress:d=>{const $=document?.activeElement;$&&$.blur(),s.onPress?.(d)}},clear:{onPress:()=>o?.setValue(null),"aria-label":r.formatMessage(m.clearInput),isDisabled:c,style:t?{display:"none"}:void 0,"aria-hidden":t?!0:void 0}},p={timeInput:{value:a,onChange:d=>{d!==null&&u(d)},granularity:i==="day"?void 0:i,"aria-label":l()}};return e.jsx(k.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[S.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:b}],[E.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:p}]],children:n})},v=n=>{const{size:r="md",variant:s,granularity:o="day",hideTimeZone:t,hourCycle:a}=n,u=D.useSlotRecipe({recipe:j.datePickerSlotRecipe}),[i,c]=u.splitVariantProps(n),[l,b]=q.extractStyleProps(c),p=r==="md"?"xs":"2xs",d=o==="day"?n.shouldCloseOnSelect:!1;return e.jsx(w,{...i,...l,asChild:!0,children:e.jsx(x.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...b,shouldCloseOnSelect:d,children:e.jsxs(L,{children:[e.jsx(z,{asChild:!0,children:e.jsx(C.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:e.jsx(H.DateInput,{size:r,variant:s,width:"full",hideTimeZone:t,hourCycle:a,trailingElement:e.jsxs(V.Box,{children:[e.jsx(y.IconButton,{tone:"primary",variant:"ghost",size:p,slot:"clear",children:e.jsx(P.Close,{})}),e.jsx(y.IconButton,{tone:"primary",variant:"ghost",size:p,slot:"calendarToggle",children:e.jsx(P.CalendarMonth,{})})]})})})}),e.jsx(F,{asChild:!0,children:e.jsx(T.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(T.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(G,{children:e.jsx(N.Calendar,{})}),e.jsx(A,{hideTimeZone:t,hourCycle:a})]})})})]})})})};v.displayName="DatePicker";exports.DatePicker=v;
2
+ //# sourceMappingURL=date-picker-C6A6CiIu.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker-Cm9gyNP-.cjs.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { datePickerSlotRecipe } from \"./date-picker.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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport default defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":"kwBAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,oBACV,CAAC,EAMYC,EAAqBJ,EAGhC,MAAO,MAAM,EAKFK,EAAsBJ,EAGjC,MAAO,OAAO,EAKHK,EAAwBL,EAGnC,MAAO,SAAS,EAKLM,EAAyBN,EAGpC,MAAO,UAAU,EC1DnBO,EAAeC,iBAAe,CAC5B,WAAY,CACV,GAAI,+BACJ,YAAa,mDACb,eAAgB,mBAAA,EAElB,UAAW,CACT,GAAI,mCACJ,YAAa,iDACb,eAAgB,YAAA,EAElB,cAAe,CACb,GAAI,uCACJ,YAAa,qDACb,eAAgB,mBAAA,EAElB,oBAAqB,CACnB,GAAI,6CACJ,YAAa,2DACb,eAAgB,8BAAA,EAElB,0BAA2B,CACzB,GAAI,mDACJ,YAAa,6DACb,eAAgB,uCAAA,EAElB,UAAW,CACT,GAAI,mCACJ,YAAa,sCACb,eAAgB,YAAA,CAEpB,CAAC,EC1BYC,EAAsB,CAAC,CAClC,aAAAC,EACA,UAAAC,CACF,IAAgC,C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date-picker-C6A6CiIu.cjs.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { datePickerSlotRecipe } from \"./date-picker.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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport default defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":"kwBAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,oBACV,CAAC,EAMYC,EAAqBJ,EAGhC,MAAO,M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AA,WAAA,CACC,KAAK,UACL,QAAQ,QACR,KAAMN,EACN,KAAK,iBAEL,eAACQ,EAAAA,cAAA,CAAA,CAAc,CAAA,CAAA,CACjB,CAAA,CACF,CAAA,CAAA,EAGN,CAAA,CACF,EACAzC,EAAAA,IAACrB,GAAsB,QAAO,GAC5B,eAAC+D,EAAAA,0CAAA,CAAQ,UAAU,aACjB,SAAA5C,EAAAA,KAAC6C,EAAAA,0CAAA,CACC,SAAA,CAAA3C,EAAAA,IAACpB,EAAA,CACC,SAAAoB,EAAAA,IAAC4C,EAAAA,SAAA,CAAA,CAAS,EACZ,EACA5C,EAAAA,IAACjB,EAAA,CACC,aAAAC,EACA,UAAAC,CAAA,CAAA,CACF,CAAA,CACF,EACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ,CAEJ,EAEAqC,EAAW,YAAc"}
@@ -1,23 +1,23 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { createSlotRecipeContext as D, useSlotRecipe as v } from "@chakra-ui/react/styled-system";
3
- import { h as x } from "./index-D26EXIvZ.es.js";
3
+ import { h as x } from "./index-DthLdwMN.es.js";
4
4
  import { Close as y, CalendarMonth as C } from "@commercetools/nimbus-icons";
5
- import { b as S, c as M } from "./DatePicker-YExF9ktq.es.js";
6
- import { $ as I, a as E } from "./Dialog-CWqCOpjC.es.js";
7
- import { $ as H } from "./Group-BpLIGg06.es.js";
8
- import { e as N } from "./extractStyleProps-DikjPnnl.es.js";
5
+ import { b as S, c as M } from "./DatePicker-Df88_VwG.es.js";
6
+ import { g as I, h as E } from "./Dialog-FtshtbuD.es.js";
7
+ import { $ as H } from "./Group-BBaUrRF9.es.js";
8
+ import { e as N } from "./extractStyleProps-CNXOLneR.es.js";
9
9
  import { useContext as k, useRef as T, useEffect as R } from "react";
10
10
  import { defineMessages as V, FormattedMessage as w, useIntl as z } from "react-intl";
11
- import { T as B } from "./time-input-BbCVYXM4.es.js";
11
+ import { T as B } from "./time-input-CwfMLg_y.es.js";
12
12
  import { Flex as F } from "@chakra-ui/react/flex";
13
- import { T as j } from "./text-hbdb3OKq.es.js";
14
- import { $ } from "./Button-BvIjIGsV.es.js";
15
- import { c as A, d as G } from "./utils-D5g6AoR2.es.js";
16
- import { d as L } from "./DateField-5ys1kBci.es.js";
17
- import { D as O } from "./date-input-DOiFNdVS.es.js";
18
- import { C as q } from "./calendar-BeLNlFT1.es.js";
13
+ import { T as j } from "./text-BgiP8ZB6.es.js";
14
+ import { $ as P } from "./Button-DbDspzBf.es.js";
15
+ import { e as A, d as G } from "./utils-Cyja2WdR.es.js";
16
+ import { d as L } from "./DateField-BnqI8eDK.es.js";
17
+ import { D as O } from "./date-input-Dab_Fdrq.es.js";
18
+ import { C as q } from "./calendar-C33Q6JGN.es.js";
19
19
  import { B as W } from "./box-DuBoAZvq.es.js";
20
- import { I as P } from "./icon-button-CbjASJ_F.es.js";
20
+ import { I as $ } from "./icon-button-D4w1XTVg.es.js";
21
21
  const { withProvider: Z, withContext: h } = /* @__PURE__ */ D({
22
22
  recipe: x
23
23
  }), J = /* @__PURE__ */ Z("div", "root"), K = /* @__PURE__ */ h("div", "group"), Q = /* @__PURE__ */ h("div", "popover"), U = /* @__PURE__ */ h("div", "calendar"), u = /* @__PURE__ */ V({
@@ -98,7 +98,7 @@ const { withProvider: Z, withContext: h } = /* @__PURE__ */ D({
98
98
  }, Y = ({
99
99
  children: o
100
100
  }) => {
101
- const r = z(), a = A($) || {}, n = k(S), t = n?.dateValue === null, { timeValue: s, setTimeValue: l, granularity: i } = n, c = a?.isDisabled, d = () => {
101
+ const r = z(), a = A(P) || {}, n = k(S), t = n?.dateValue === null, { timeValue: s, setTimeValue: l, granularity: i } = n, c = a?.isDisabled, d = () => {
102
102
  switch (i) {
103
103
  case "hour":
104
104
  return r.formatMessage(u.enterTimeHour);
@@ -142,7 +142,7 @@ const { withProvider: Z, withContext: h } = /* @__PURE__ */ D({
142
142
  {
143
143
  values: [
144
144
  [
145
- $,
145
+ P,
146
146
  {
147
147
  slots: f
148
148
  }
@@ -176,7 +176,7 @@ const { withProvider: Z, withContext: h } = /* @__PURE__ */ D({
176
176
  hourCycle: s,
177
177
  trailingElement: /* @__PURE__ */ b(W, { children: [
178
178
  /* @__PURE__ */ e(
179
- P,
179
+ $,
180
180
  {
181
181
  tone: "primary",
182
182
  variant: "ghost",
@@ -186,7 +186,7 @@ const { withProvider: Z, withContext: h } = /* @__PURE__ */ D({
186
186
  }
187
187
  ),
188
188
  /* @__PURE__ */ e(
189
- P,
189
+ $,
190
190
  {
191
191
  tone: "primary",
192
192
  variant: "ghost",
@@ -216,4 +216,4 @@ _.displayName = "DatePicker";
216
216
  export {
217
217
  _ as D
218
218
  };
219
- //# sourceMappingURL=date-picker-yZG8AJhH.es.js.map
219
+ //# sourceMappingURL=date-picker-CT6jwApn.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker-yZG8AJhH.es.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { datePickerSlotRecipe } from \"./date-picker.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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport default defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAqB,gBAAAJ,EAGhC,OAAO,MAAM,GAKFK,IAAsB,gBAAAJ,EAGjC,OAAO,OAAO,GAKHK,IAAwB,gBAAAL,EAGnC,OAAO,SAAS,GAKLM,IAAyB,gBAAAN,EAGpC,OAAO,UAAU,GC1DnBO,IAAe,gBAAAC,EAAe;AAAA,EAC5B,YAAY;AAAA,IACV,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,qBAAqB;AAAA,IACnB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,2BAA2B;AAAA,IACzB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,WAAW;AAAA,IACT,IAAI;AAAA,I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MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACO,GAAA,CAAA,CAAM;AAAA,gBAAA;AAAA,cAAA;AAAA,cAGT,gBAAAxC;AAAA,gBAACuC;AAAA,gBAAA;AAAA,kBACC,MAAK;AAAA,kBACL,SAAQ;AAAA,kBACR,MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACQ,GAAA,CAAA,CAAc;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB,EAAA,CACF;AAAA,UAAA;AAAA,QAAA,GAGN,EAAA,CACF;AAAA,QACA,gBAAAzC,EAACrB,KAAsB,SAAO,IAC5B,4BAAC+D,GAAA,EAAQ,WAAU,cACjB,UAAA,gBAAA5C,EAAC6C,GAAA,EACC,UAAA;AAAA,UAAA,gBAAA3C,EAACpB,GAAA,EACC,UAAA,gBAAAoB,EAAC4C,GAAA,CAAA,CAAS,GACZ;AAAA,UACA,gBAAA5C;AAAA,YAACjB;AAAA,YAAA;AAAA,cACC,cAAAC;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,GACF,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEAqC,EAAW,cAAc;"}
1
+ {"version":3,"file":"date-picker-CT6jwApn.es.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/date-picker.i18n.ts","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { datePickerSlotRecipe } from \"./date-picker.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 DatePickerRecipeProps 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 DatePickerRootProps\n extends HTMLChakraProps<\"div\", DatePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: datePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport default defineMessages({\n clearInput: {\n id: \"Nimbus.DatePicker.clearInput\",\n description: \"aria-label for clear input button in date picker\",\n defaultMessage: \"Clear input value\",\n },\n enterTime: {\n id: \"Nimbus.DatePicker.Time.enterTime\",\n description: \"aria-label for time input field in date picker\",\n defaultMessage: \"Enter time\",\n },\n enterTimeHour: {\n id: \"Nimbus.DatePicker.Time.enterTimeHour\",\n description: \"aria-label for hour-only time input in date picker\",\n defaultMessage: \"Enter time (hour)\",\n },\n enterTimeHourMinute: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinute\",\n description: \"aria-label for hour and minute time input in date picker\",\n defaultMessage: \"Enter time (hour and minute)\",\n },\n enterTimeHourMinuteSecond: {\n id: \"Nimbus.DatePicker.Time.enterTimeHourMinuteSecond\",\n description: \"aria-label for full time input with seconds in date picker\",\n defaultMessage: \"Enter time (hour, minute, and second)\",\n },\n startTime: {\n id: \"Nimbus.DatePicker.Time.startTime\",\n description: \"Label for start time in date picker\",\n defaultMessage: \"Start time\",\n },\n});\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { FormattedMessage } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n <FormattedMessage {...messages.startTime} />\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useIntl } from \"react-intl\";\nimport messages from \"../date-picker.i18n\";\n\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return intl.formatMessage(messages.enterTimeHour);\n case \"minute\":\n return intl.formatMessage(messages.enterTimeHourMinute);\n case \"second\":\n return intl.formatMessage(messages.enterTimeHourMinuteSecond);\n default:\n return intl.formatMessage(messages.enterTime);\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": intl.formatMessage(messages.clearInput),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput } from \"./components/date-picker.time-input\";\nimport { DatePickerCustomContext } from \"./components/date-picker.custom-context\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","datePickerSlotRecipe","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","messages","defineMessages","DatePickerTimeInput","hideTimeZone","hourCycle","datePickerState","useContext","DatePickerStateContext","granularity","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","activeElement","jsxs","Flex","jsx","Text","FormattedMessage","TimeInput","DatePickerCustomContext","children","intl","useIntl","buttonContext","useSlottedContext","ButtonContext","noInputValue","timeValue","setTimeValue","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","timeInputSlots","value","Provider","TimeFieldContext","DatePicker","props","size","variant","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAqB,gBAAAJ,EAGhC,OAAO,MAAM,GAKFK,IAAsB,gBAAAJ,EAGjC,OAAO,OAAO,GAKHK,IAAwB,gBAAAL,EAGnC,OAAO,SAAS,GAKLM,IAAyB,gBAAAN,EAGpC,OAAO,UAAU,GC1DnBO,IAAe,gBAAAC,EAAe;AAAA,EAC5B,YAAY;AAAA,IACV,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBA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A,UAAA;AAAA,YACC,MAAAb;AAAA,YACA,SAAAC;AAAA,YACA,OAAM;AAAA,YACN,cAAAzC;AAAA,YACA,WAAAC;AAAA,YACA,mCACGqD,GAAA,EAEC,UAAA;AAAA,cAAA,gBAAAtC;AAAA,gBAACuC;AAAA,gBAAA;AAAA,kBACC,MAAK;AAAA,kBACL,SAAQ;AAAA,kBACR,MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACO,GAAA,CAAA,CAAM;AAAA,gBAAA;AAAA,cAAA;AAAA,cAGT,gBAAAxC;AAAA,gBAACuC;AAAA,gBAAA;AAAA,kBACC,MAAK;AAAA,kBACL,SAAQ;AAAA,kBACR,MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACQ,GAAA,CAAA,CAAc;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB,EAAA,CACF;AAAA,UAAA;AAAA,QAAA,GAGN,EAAA,CACF;AAAA,QACA,gBAAAzC,EAACrB,KAAsB,SAAO,IAC5B,4BAAC+D,GAAA,EAAQ,WAAU,cACjB,UAAA,gBAAA5C,EAAC6C,GAAA,EACC,UAAA;AAAA,UAAA,gBAAA3C,EAACpB,GAAA,EACC,UAAA,gBAAAoB,EAAC4C,GAAA,CAAA,CAAS,GACZ;AAAA,UACA,gBAAA5C;AAAA,YAACjB;AAAA,YAAA;AAAA,cACC,cAAAC;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,GACF,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEAqC,EAAW,cAAc;"}
@@ -1,24 +1,24 @@
1
1
  import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
2
  import { createSlotRecipeContext as V, useSlotRecipe as E } from "@chakra-ui/react/styled-system";
3
- import { g as T } from "./index-D26EXIvZ.es.js";
3
+ import { g as T } from "./index-DthLdwMN.es.js";
4
4
  import { Close as w, CalendarMonth as z } from "@commercetools/nimbus-icons";
5
- import { $ as I, a as W } from "./DatePicker-YExF9ktq.es.js";
6
- import { $ as j, a as F } from "./Dialog-CWqCOpjC.es.js";
7
- import { $ as A } from "./Group-BpLIGg06.es.js";
8
- import { e as B } from "./extractStyleProps-DikjPnnl.es.js";
5
+ import { $ as I, a as W } from "./DatePicker-Df88_VwG.es.js";
6
+ import { g as j, h as F } from "./Dialog-FtshtbuD.es.js";
7
+ import { $ as A } from "./Group-BBaUrRF9.es.js";
8
+ import { e as B } from "./extractStyleProps-CNXOLneR.es.js";
9
9
  import { useContext as k, useRef as y, useEffect as G } from "react";
10
10
  import { Flex as x } from "@chakra-ui/react/flex";
11
- import { T as S } from "./text-hbdb3OKq.es.js";
12
- import { T as C } from "./time-input-BbCVYXM4.es.js";
13
- import { $ as D } from "./Button-BvIjIGsV.es.js";
14
- import { c as O, d as q } from "./utils-D5g6AoR2.es.js";
15
- import { d as H } from "./DateField-5ys1kBci.es.js";
16
- import { R as L } from "./range-calendar-C6yPojX-.es.js";
17
- import { D as P } from "./date-input-DOiFNdVS.es.js";
18
- import { I as R } from "./icon-button-CbjASJ_F.es.js";
19
- const { withProvider: M, withContext: $ } = /* @__PURE__ */ V({
11
+ import { T as S } from "./text-BgiP8ZB6.es.js";
12
+ import { T as C } from "./time-input-CwfMLg_y.es.js";
13
+ import { $ as D } from "./Button-DbDspzBf.es.js";
14
+ import { e as O, d as q } from "./utils-Cyja2WdR.es.js";
15
+ import { d as H } from "./DateField-BnqI8eDK.es.js";
16
+ import { R as L } from "./range-calendar-C0InkSSo.es.js";
17
+ import { D as P } from "./date-input-Dab_Fdrq.es.js";
18
+ import { I as R } from "./icon-button-D4w1XTVg.es.js";
19
+ const { withProvider: M, withContext: v } = /* @__PURE__ */ V({
20
20
  recipe: T
21
- }), N = /* @__PURE__ */ M("div", "root"), J = /* @__PURE__ */ $("div", "group"), K = /* @__PURE__ */ $("div", "trigger"), Q = /* @__PURE__ */ $("div", "popover"), U = /* @__PURE__ */ $("div", "calendar"), X = ({
21
+ }), N = /* @__PURE__ */ M("div", "root"), J = /* @__PURE__ */ v("div", "group"), K = /* @__PURE__ */ v("div", "trigger"), Q = /* @__PURE__ */ v("div", "popover"), U = /* @__PURE__ */ v("div", "calendar"), X = ({
22
22
  hideTimeZone: s,
23
23
  hourCycle: l
24
24
  }) => {
@@ -139,14 +139,14 @@ const { withProvider: M, withContext: $ } = /* @__PURE__ */ V({
139
139
  if (t !== null && e?.value?.start) {
140
140
  const r = e.value, f = r.start, h = r.end;
141
141
  if (f && h) {
142
- const v = f.set({
142
+ const $ = f.set({
143
143
  hour: t.hour,
144
144
  minute: t.minute || 0,
145
145
  second: t.second || 0,
146
146
  millisecond: t.millisecond || 0
147
147
  });
148
148
  e.setValue({
149
- start: v,
149
+ start: $,
150
150
  end: h
151
151
  });
152
152
  }
@@ -161,7 +161,7 @@ const { withProvider: M, withContext: $ } = /* @__PURE__ */ V({
161
161
  if (t !== null && e?.value?.end) {
162
162
  const r = e.value, f = r.start, h = r.end;
163
163
  if (f && h) {
164
- const v = h.set({
164
+ const $ = h.set({
165
165
  hour: t.hour,
166
166
  minute: t.minute || 0,
167
167
  second: t.second || 0,
@@ -169,7 +169,7 @@ const { withProvider: M, withContext: $ } = /* @__PURE__ */ V({
169
169
  });
170
170
  e.setValue({
171
171
  start: f,
172
- end: v
172
+ end: $
173
173
  });
174
174
  }
175
175
  }
@@ -277,4 +277,4 @@ Z.displayName = "DateRangePicker";
277
277
  export {
278
278
  Z as D
279
279
  };
280
- //# sourceMappingURL=date-range-picker-D-81vyFH.es.js.map
280
+ //# sourceMappingURL=date-range-picker-BICRnCsn.es.js.map