@commercetools/nimbus 2.8.0 → 2.9.0

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 (341) hide show
  1. package/dist/chunks/{accordion-DW96w8SO.cjs.js → accordion-BScTN0pM.cjs.js} +2 -2
  2. package/dist/chunks/{accordion-DW96w8SO.cjs.js.map → accordion-BScTN0pM.cjs.js.map} +1 -1
  3. package/dist/chunks/{accordion-w2snPAFa.es.js → accordion-DJNZyfL7.es.js} +2 -2
  4. package/dist/chunks/{accordion-w2snPAFa.es.js.map → accordion-DJNZyfL7.es.js.map} +1 -1
  5. package/dist/chunks/{accordion.content-B0YHoSnW.cjs.js → accordion.content-CbWvTo-e.cjs.js} +2 -2
  6. package/dist/chunks/{accordion.content-B0YHoSnW.cjs.js.map → accordion.content-CbWvTo-e.cjs.js.map} +1 -1
  7. package/dist/chunks/{accordion.content-DfOG_PZm.es.js → accordion.content-Df8zRXv1.es.js} +2 -2
  8. package/dist/chunks/{accordion.content-DfOG_PZm.es.js.map → accordion.content-Df8zRXv1.es.js.map} +1 -1
  9. package/dist/chunks/{alert-Bk6m8bhe.cjs.js → alert-Bf1eVQu0.cjs.js} +2 -2
  10. package/dist/chunks/{alert-Bk6m8bhe.cjs.js.map → alert-Bf1eVQu0.cjs.js.map} +1 -1
  11. package/dist/chunks/{alert-BdHXhgWQ.es.js → alert-TZJpmSZi.es.js} +2 -2
  12. package/dist/chunks/{alert-BdHXhgWQ.es.js.map → alert-TZJpmSZi.es.js.map} +1 -1
  13. package/dist/chunks/{button-8SLj5U1n.es.js → button-C4KD0BhM.es.js} +2 -2
  14. package/dist/chunks/{button-8SLj5U1n.es.js.map → button-C4KD0BhM.es.js.map} +1 -1
  15. package/dist/chunks/{button-Dp5zCqqo.cjs.js → button-CAzKhQhT.cjs.js} +2 -2
  16. package/dist/chunks/{button-Dp5zCqqo.cjs.js.map → button-CAzKhQhT.cjs.js.map} +1 -1
  17. package/dist/chunks/{calendar-DvOZQUUz.es.js → calendar-BUMjfnCM.es.js} +3 -3
  18. package/dist/chunks/{calendar-DvOZQUUz.es.js.map → calendar-BUMjfnCM.es.js.map} +1 -1
  19. package/dist/chunks/{calendar-DvKmJdxP.cjs.js → calendar-C8d8whAA.cjs.js} +2 -2
  20. package/dist/chunks/{calendar-DvKmJdxP.cjs.js.map → calendar-C8d8whAA.cjs.js.map} +1 -1
  21. package/dist/chunks/{card-BtoTvzfy.cjs.js → card-C6XmGdIp.cjs.js} +2 -2
  22. package/dist/chunks/{card-BtoTvzfy.cjs.js.map → card-C6XmGdIp.cjs.js.map} +1 -1
  23. package/dist/chunks/{card-DO1Aj8a4.es.js → card-CJhECjUb.es.js} +2 -2
  24. package/dist/chunks/{card-DO1Aj8a4.es.js.map → card-CJhECjUb.es.js.map} +1 -1
  25. package/dist/chunks/{checkbox-NDwP5yso.cjs.js → checkbox-1lqXPqlH.cjs.js} +2 -2
  26. package/dist/chunks/{checkbox-NDwP5yso.cjs.js.map → checkbox-1lqXPqlH.cjs.js.map} +1 -1
  27. package/dist/chunks/{checkbox-DB_2vX8q.es.js → checkbox-DRxunzAe.es.js} +2 -2
  28. package/dist/chunks/{checkbox-DB_2vX8q.es.js.map → checkbox-DRxunzAe.es.js.map} +1 -1
  29. package/dist/chunks/{collapsible-motion-B4lvbw3B.cjs.js → collapsible-motion-5siO08MB.cjs.js} +2 -2
  30. package/dist/chunks/{collapsible-motion-B4lvbw3B.cjs.js.map → collapsible-motion-5siO08MB.cjs.js.map} +1 -1
  31. package/dist/chunks/{collapsible-motion-CyvkDH8J.es.js → collapsible-motion-Dd4U5qdn.es.js} +2 -2
  32. package/dist/chunks/{collapsible-motion-CyvkDH8J.es.js.map → collapsible-motion-Dd4U5qdn.es.js.map} +1 -1
  33. package/dist/chunks/{combobox-Cwg7Jjco.es.js → combobox-BWSQAYPQ.es.js} +4 -4
  34. package/dist/chunks/{combobox-Cwg7Jjco.es.js.map → combobox-BWSQAYPQ.es.js.map} +1 -1
  35. package/dist/chunks/{combobox-DJ5qTOSW.cjs.js → combobox-D3kJCGUw.cjs.js} +2 -2
  36. package/dist/chunks/{combobox-DJ5qTOSW.cjs.js.map → combobox-D3kJCGUw.cjs.js.map} +1 -1
  37. package/dist/chunks/{data-table-DTj-VXDE.es.js → data-table-8L4TOSCO.es.js} +12 -12
  38. package/dist/chunks/{data-table-DTj-VXDE.es.js.map → data-table-8L4TOSCO.es.js.map} +1 -1
  39. package/dist/chunks/{data-table-BXyUohZe.cjs.js → data-table-BMAW6iyx.cjs.js} +2 -2
  40. package/dist/chunks/{data-table-BXyUohZe.cjs.js.map → data-table-BMAW6iyx.cjs.js.map} +1 -1
  41. package/dist/chunks/{date-input-BEiFdI-1.cjs.js → date-input-CN9SKsEo.cjs.js} +2 -2
  42. package/dist/chunks/{date-input-BEiFdI-1.cjs.js.map → date-input-CN9SKsEo.cjs.js.map} +1 -1
  43. package/dist/chunks/{date-input-CKWu7-nx.es.js → date-input-DbihYBK7.es.js} +3 -3
  44. package/dist/chunks/{date-input-CKWu7-nx.es.js.map → date-input-DbihYBK7.es.js.map} +1 -1
  45. package/dist/chunks/{date-picker-DRciIJ3I.cjs.js → date-picker-BrwUBLzY.cjs.js} +2 -2
  46. package/dist/chunks/{date-picker-DRciIJ3I.cjs.js.map → date-picker-BrwUBLzY.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-picker-ndD6PWRc.es.js → date-picker-C6PSx6wa.es.js} +7 -7
  48. package/dist/chunks/{date-picker-ndD6PWRc.es.js.map → date-picker-C6PSx6wa.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-AXe8_SzX.cjs.js → date-range-picker-DF3rmWAx.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-AXe8_SzX.cjs.js.map → date-range-picker-DF3rmWAx.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-IL3e2pv7.es.js → date-range-picker-NCpnIadb.es.js} +7 -7
  52. package/dist/chunks/{date-range-picker-IL3e2pv7.es.js.map → date-range-picker-NCpnIadb.es.js.map} +1 -1
  53. package/dist/chunks/{date-range-picker-field-6-s9fQl8.es.js → date-range-picker-field-4OMHZSww.es.js} +3 -3
  54. package/dist/chunks/{date-range-picker-field-6-s9fQl8.es.js.map → date-range-picker-field-4OMHZSww.es.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker-field-CiVL2apb.cjs.js → date-range-picker-field-DnEPJBTf.cjs.js} +2 -2
  56. package/dist/chunks/{date-range-picker-field-CiVL2apb.cjs.js.map → date-range-picker-field-DnEPJBTf.cjs.js.map} +1 -1
  57. package/dist/chunks/{dialog-B1lCwAIp.es.js → dialog-7MIk-7Ft.es.js} +3 -3
  58. package/dist/chunks/{dialog-B1lCwAIp.es.js.map → dialog-7MIk-7Ft.es.js.map} +1 -1
  59. package/dist/chunks/{dialog-DuN4dj-A.cjs.js → dialog-uwBRMvUN.cjs.js} +2 -2
  60. package/dist/chunks/{dialog-DuN4dj-A.cjs.js.map → dialog-uwBRMvUN.cjs.js.map} +1 -1
  61. package/dist/chunks/{draggable-list-BTDXUK8V.es.js → draggable-list-2ZEDpAqd.es.js} +5 -5
  62. package/dist/chunks/{draggable-list-BTDXUK8V.es.js.map → draggable-list-2ZEDpAqd.es.js.map} +1 -1
  63. package/dist/chunks/{draggable-list-BD2dmQqO.cjs.js → draggable-list-9vFa6LUC.cjs.js} +2 -2
  64. package/dist/chunks/{draggable-list-BD2dmQqO.cjs.js.map → draggable-list-9vFa6LUC.cjs.js.map} +1 -1
  65. package/dist/chunks/{drawer-CgKSSEc-.es.js → drawer-CesM9R4I.es.js} +4 -4
  66. package/dist/chunks/{drawer-CgKSSEc-.es.js.map → drawer-CesM9R4I.es.js.map} +1 -1
  67. package/dist/chunks/{drawer-BbTuL5zl.cjs.js → drawer-DlAHFB8k.cjs.js} +2 -2
  68. package/dist/chunks/{drawer-BbTuL5zl.cjs.js.map → drawer-DlAHFB8k.cjs.js.map} +1 -1
  69. package/dist/chunks/{extract-style-props-xZ29rO70.cjs.js → extract-style-props-7Kq9mybq.cjs.js} +2 -2
  70. package/dist/chunks/{extract-style-props-xZ29rO70.cjs.js.map → extract-style-props-7Kq9mybq.cjs.js.map} +1 -1
  71. package/dist/chunks/{extract-style-props-DuSHABTl.es.js → extract-style-props-DD3XZzbq.es.js} +2 -2
  72. package/dist/chunks/{extract-style-props-DuSHABTl.es.js.map → extract-style-props-DD3XZzbq.es.js.map} +1 -1
  73. package/dist/chunks/{form-field-BG-I9QxC.es.js → form-field-BcNFX196.es.js} +2 -2
  74. package/dist/chunks/{form-field-BG-I9QxC.es.js.map → form-field-BcNFX196.es.js.map} +1 -1
  75. package/dist/chunks/{form-field-Da4KAAE9.cjs.js → form-field-TY4tZsBZ.cjs.js} +2 -2
  76. package/dist/chunks/{form-field-Da4KAAE9.cjs.js.map → form-field-TY4tZsBZ.cjs.js.map} +1 -1
  77. package/dist/chunks/{icon-button-TUo0Zh3-.cjs.js → icon-button-BV_okpOb.cjs.js} +2 -2
  78. package/dist/chunks/{icon-button-TUo0Zh3-.cjs.js.map → icon-button-BV_okpOb.cjs.js.map} +1 -1
  79. package/dist/chunks/{icon-button-BCeQqBD7.es.js → icon-button-CwI7ZK2q.es.js} +2 -2
  80. package/dist/chunks/{icon-button-BCeQqBD7.es.js.map → icon-button-CwI7ZK2q.es.js.map} +1 -1
  81. package/dist/chunks/{icon-toggle-button-CBersNeg.es.js → icon-toggle-button-DusSXhr7.es.js} +2 -2
  82. package/dist/chunks/{icon-toggle-button-CBersNeg.es.js.map → icon-toggle-button-DusSXhr7.es.js.map} +1 -1
  83. package/dist/chunks/{icon-toggle-button-Bq919oWc.cjs.js → icon-toggle-button-zsbPyHd7.cjs.js} +2 -2
  84. package/dist/chunks/{icon-toggle-button-Bq919oWc.cjs.js.map → icon-toggle-button-zsbPyHd7.cjs.js.map} +1 -1
  85. package/dist/chunks/{index-N3LCjK2b.es.js → index-CbPHv6Ml.es.js} +5 -1
  86. package/dist/chunks/{index-N3LCjK2b.es.js.map → index-CbPHv6Ml.es.js.map} +1 -1
  87. package/dist/chunks/{index-CB18bWc-.cjs.js → index-D8ffoMG1.cjs.js} +2 -2
  88. package/dist/chunks/{index-CB18bWc-.cjs.js.map → index-D8ffoMG1.cjs.js.map} +1 -1
  89. package/dist/chunks/{list-D2cUzD9o.es.js → list-BFURlArt.es.js} +2 -2
  90. package/dist/chunks/{list-D2cUzD9o.es.js.map → list-BFURlArt.es.js.map} +1 -1
  91. package/dist/chunks/{list-pfnNUdGl.cjs.js → list-CftBWdp5.cjs.js} +2 -2
  92. package/dist/chunks/{list-pfnNUdGl.cjs.js.map → list-CftBWdp5.cjs.js.map} +1 -1
  93. package/dist/chunks/{localized-field-DRZO0b7x.cjs.js → localized-field-C24LwqjD.cjs.js} +2 -2
  94. package/dist/chunks/{localized-field-DRZO0b7x.cjs.js.map → localized-field-C24LwqjD.cjs.js.map} +1 -1
  95. package/dist/chunks/{localized-field-BaUY0tn2.es.js → localized-field-CQ_ejsDF.es.js} +8 -8
  96. package/dist/chunks/{localized-field-BaUY0tn2.es.js.map → localized-field-CQ_ejsDF.es.js.map} +1 -1
  97. package/dist/chunks/{menu-DDoPo75I.es.js → menu-CgG__utb.es.js} +2 -2
  98. package/dist/chunks/{menu-DDoPo75I.es.js.map → menu-CgG__utb.es.js.map} +1 -1
  99. package/dist/chunks/{menu-CBq8uLF4.cjs.js → menu-DdPHozye.cjs.js} +2 -2
  100. package/dist/chunks/{menu-CBq8uLF4.cjs.js.map → menu-DdPHozye.cjs.js.map} +1 -1
  101. package/dist/chunks/{money-input-NvahgygE.cjs.js → money-input-B3rZIIip.cjs.js} +2 -2
  102. package/dist/chunks/{money-input-NvahgygE.cjs.js.map → money-input-B3rZIIip.cjs.js.map} +1 -1
  103. package/dist/chunks/{money-input-BtRMHiwE.es.js → money-input-BVSUW0mV.es.js} +5 -5
  104. package/dist/chunks/{money-input-BtRMHiwE.es.js.map → money-input-BVSUW0mV.es.js.map} +1 -1
  105. package/dist/chunks/{money-input-field-CLTzaE8n.cjs.js → money-input-field-m1j1DLSq.cjs.js} +2 -2
  106. package/dist/chunks/{money-input-field-CLTzaE8n.cjs.js.map → money-input-field-m1j1DLSq.cjs.js.map} +1 -1
  107. package/dist/chunks/{money-input-field-Bl4ZqzLj.es.js → money-input-field-wTLEvYtD.es.js} +3 -3
  108. package/dist/chunks/{money-input-field-Bl4ZqzLj.es.js.map → money-input-field-wTLEvYtD.es.js.map} +1 -1
  109. package/dist/chunks/{multiline-text-input-Y4Sd30Xq.es.js → multiline-text-input-AHuJMS1C.es.js} +3 -3
  110. package/dist/chunks/{multiline-text-input-Y4Sd30Xq.es.js.map → multiline-text-input-AHuJMS1C.es.js.map} +1 -1
  111. package/dist/chunks/{multiline-text-input-KQNER4oO.cjs.js → multiline-text-input-C3FdwmZc.cjs.js} +2 -2
  112. package/dist/chunks/{multiline-text-input-KQNER4oO.cjs.js.map → multiline-text-input-C3FdwmZc.cjs.js.map} +1 -1
  113. package/dist/chunks/{multiline-text-input-field-Cw6GupLc.cjs.js → multiline-text-input-field-CIaHBNTp.cjs.js} +2 -2
  114. package/dist/chunks/{multiline-text-input-field-Cw6GupLc.cjs.js.map → multiline-text-input-field-CIaHBNTp.cjs.js.map} +1 -1
  115. package/dist/chunks/{multiline-text-input-field-DLR7B3Ob.es.js → multiline-text-input-field-Cn3WyOO9.es.js} +3 -3
  116. package/dist/chunks/{multiline-text-input-field-DLR7B3Ob.es.js.map → multiline-text-input-field-Cn3WyOO9.es.js.map} +1 -1
  117. package/dist/chunks/{nimbus-provider-Z3gJkPBJ.cjs.js → nimbus-provider-CdfH64_b.cjs.js} +2 -2
  118. package/dist/chunks/{nimbus-provider-Z3gJkPBJ.cjs.js.map → nimbus-provider-CdfH64_b.cjs.js.map} +1 -1
  119. package/dist/chunks/{nimbus-provider-CGTqRM1E.es.js → nimbus-provider-DZt7Dxqv.es.js} +3 -3
  120. package/dist/chunks/{nimbus-provider-CGTqRM1E.es.js.map → nimbus-provider-DZt7Dxqv.es.js.map} +1 -1
  121. package/dist/chunks/{number-input-DoDxKLSN.es.js → number-input-5fI6bo_C.es.js} +3 -3
  122. package/dist/chunks/{number-input-DoDxKLSN.es.js.map → number-input-5fI6bo_C.es.js.map} +1 -1
  123. package/dist/chunks/{number-input-IR820qje.cjs.js → number-input-CCHDH_Ql.cjs.js} +2 -2
  124. package/dist/chunks/{number-input-IR820qje.cjs.js.map → number-input-CCHDH_Ql.cjs.js.map} +1 -1
  125. package/dist/chunks/{number-input-field-DcWTW8HX.cjs.js → number-input-field-BEsVOIbM.cjs.js} +2 -2
  126. package/dist/chunks/{number-input-field-DcWTW8HX.cjs.js.map → number-input-field-BEsVOIbM.cjs.js.map} +1 -1
  127. package/dist/chunks/{number-input-field-DTk_pXDQ.es.js → number-input-field-Dv5zCbln.es.js} +3 -3
  128. package/dist/chunks/{number-input-field-DTk_pXDQ.es.js.map → number-input-field-Dv5zCbln.es.js.map} +1 -1
  129. package/dist/chunks/{pagination-D59xquoX.cjs.js → pagination-BpNjPrUa.cjs.js} +2 -2
  130. package/dist/chunks/{pagination-D59xquoX.cjs.js.map → pagination-BpNjPrUa.cjs.js.map} +1 -1
  131. package/dist/chunks/{pagination-DpgEL5m7.es.js → pagination-CoOO13j7.es.js} +4 -4
  132. package/dist/chunks/{pagination-DpgEL5m7.es.js.map → pagination-CoOO13j7.es.js.map} +1 -1
  133. package/dist/chunks/{password-input-BQs2tc7Z.cjs.js → password-input-C1yj2l-t.cjs.js} +2 -2
  134. package/dist/chunks/{password-input-BQs2tc7Z.cjs.js.map → password-input-C1yj2l-t.cjs.js.map} +1 -1
  135. package/dist/chunks/{password-input-field-B-ADdwQI.es.js → password-input-field-BqcNoRR_.es.js} +3 -3
  136. package/dist/chunks/{password-input-field-B-ADdwQI.es.js.map → password-input-field-BqcNoRR_.es.js.map} +1 -1
  137. package/dist/chunks/{password-input-field-C14F6Fhe.cjs.js → password-input-field-CxkrPIuf.cjs.js} +2 -2
  138. package/dist/chunks/{password-input-field-C14F6Fhe.cjs.js.map → password-input-field-CxkrPIuf.cjs.js.map} +1 -1
  139. package/dist/chunks/{password-input-Bh0jllNR.es.js → password-input-oUqWPfJ5.es.js} +3 -3
  140. package/dist/chunks/{password-input-Bh0jllNR.es.js.map → password-input-oUqWPfJ5.es.js.map} +1 -1
  141. package/dist/chunks/{progress-bar-Brzwm511.cjs.js → progress-bar-B8Z0iZIg.cjs.js} +2 -2
  142. package/dist/chunks/{progress-bar-Brzwm511.cjs.js.map → progress-bar-B8Z0iZIg.cjs.js.map} +1 -1
  143. package/dist/chunks/{progress-bar-DttNpI6T.es.js → progress-bar-DF06rCPA.es.js} +2 -2
  144. package/dist/chunks/{progress-bar-DttNpI6T.es.js.map → progress-bar-DF06rCPA.es.js.map} +1 -1
  145. package/dist/chunks/{radio-input-CU7jAtai.es.js → radio-input-C18hFGFa.es.js} +3 -3
  146. package/dist/chunks/{radio-input-CU7jAtai.es.js.map → radio-input-C18hFGFa.es.js.map} +1 -1
  147. package/dist/chunks/{radio-input-DS7BKazN.cjs.js → radio-input-DeQk883P.cjs.js} +2 -2
  148. package/dist/chunks/{radio-input-DS7BKazN.cjs.js.map → radio-input-DeQk883P.cjs.js.map} +1 -1
  149. package/dist/chunks/{range-calendar-DvfjIcvD.es.js → range-calendar-BOkdgYw0.es.js} +4 -4
  150. package/dist/chunks/{range-calendar-DvfjIcvD.es.js.map → range-calendar-BOkdgYw0.es.js.map} +1 -1
  151. package/dist/chunks/{range-calendar-165da7OP.cjs.js → range-calendar-xyzRk9tN.cjs.js} +2 -2
  152. package/dist/chunks/{range-calendar-165da7OP.cjs.js.map → range-calendar-xyzRk9tN.cjs.js.map} +1 -1
  153. package/dist/chunks/{rich-text-input-CWdFIIJl.es.js → rich-text-input-DLgk2NgC.es.js} +8 -8
  154. package/dist/chunks/{rich-text-input-CWdFIIJl.es.js.map → rich-text-input-DLgk2NgC.es.js.map} +1 -1
  155. package/dist/chunks/{rich-text-input-jnrEcbPy.cjs.js → rich-text-input-kk9rtBb2.cjs.js} +2 -2
  156. package/dist/chunks/{rich-text-input-jnrEcbPy.cjs.js.map → rich-text-input-kk9rtBb2.cjs.js.map} +1 -1
  157. package/dist/chunks/{scoped-search-input-CIJktjQ4.cjs.js → scoped-search-input-BQwOQwaP.cjs.js} +2 -2
  158. package/dist/chunks/{scoped-search-input-CIJktjQ4.cjs.js.map → scoped-search-input-BQwOQwaP.cjs.js.map} +1 -1
  159. package/dist/chunks/{scoped-search-input-G2Ut6yTr.es.js → scoped-search-input-QljA__zn.es.js} +5 -5
  160. package/dist/chunks/{scoped-search-input-G2Ut6yTr.es.js.map → scoped-search-input-QljA__zn.es.js.map} +1 -1
  161. package/dist/chunks/{search-input-DaCfHjO2.cjs.js → search-input-CDRgTQeG.cjs.js} +2 -2
  162. package/dist/chunks/{search-input-DaCfHjO2.cjs.js.map → search-input-CDRgTQeG.cjs.js.map} +1 -1
  163. package/dist/chunks/{search-input-DjPnnH_T.es.js → search-input-CbKzOt2W.es.js} +4 -4
  164. package/dist/chunks/{search-input-DjPnnH_T.es.js.map → search-input-CbKzOt2W.es.js.map} +1 -1
  165. package/dist/chunks/{search-input-field-Xr_SnIN3.cjs.js → search-input-field-BAK_Q8D3.cjs.js} +2 -2
  166. package/dist/chunks/{search-input-field-Xr_SnIN3.cjs.js.map → search-input-field-BAK_Q8D3.cjs.js.map} +1 -1
  167. package/dist/chunks/{search-input-field-BbvHjWLH.es.js → search-input-field-DkQiv4oU.es.js} +3 -3
  168. package/dist/chunks/{search-input-field-BbvHjWLH.es.js.map → search-input-field-DkQiv4oU.es.js.map} +1 -1
  169. package/dist/chunks/{select-BCclMTCA.es.js → select-BBTH3cVj.es.js} +4 -4
  170. package/dist/chunks/{select-BCclMTCA.es.js.map → select-BBTH3cVj.es.js.map} +1 -1
  171. package/dist/chunks/{select-ExTJjtrC.cjs.js → select-DKYKaxPB.cjs.js} +2 -2
  172. package/dist/chunks/{select-ExTJjtrC.cjs.js.map → select-DKYKaxPB.cjs.js.map} +1 -1
  173. package/dist/chunks/{separator-EzWfz9T4.cjs.js → separator-BCgD1L7m.cjs.js} +2 -2
  174. package/dist/chunks/{separator-EzWfz9T4.cjs.js.map → separator-BCgD1L7m.cjs.js.map} +1 -1
  175. package/dist/chunks/{separator-8zTJ3WbE.es.js → separator-nbzofauL.es.js} +3 -3
  176. package/dist/chunks/{separator-8zTJ3WbE.es.js.map → separator-nbzofauL.es.js.map} +1 -1
  177. package/dist/chunks/{split-button-CpPcC1ma.es.js → split-button-BU-qVsoU.es.js} +4 -4
  178. package/dist/chunks/{split-button-CpPcC1ma.es.js.map → split-button-BU-qVsoU.es.js.map} +1 -1
  179. package/dist/chunks/{split-button-AbOGF7a2.cjs.js → split-button-BxATaqTd.cjs.js} +2 -2
  180. package/dist/chunks/{split-button-AbOGF7a2.cjs.js.map → split-button-BxATaqTd.cjs.js.map} +1 -1
  181. package/dist/chunks/{steps-BjarSCK8.es.js → steps-D4PGBn9S.es.js} +2 -2
  182. package/dist/chunks/{steps-BjarSCK8.es.js.map → steps-D4PGBn9S.es.js.map} +1 -1
  183. package/dist/chunks/{steps-BGPeyd5K.cjs.js → steps-hFnqvgs5.cjs.js} +2 -2
  184. package/dist/chunks/{steps-BGPeyd5K.cjs.js.map → steps-hFnqvgs5.cjs.js.map} +1 -1
  185. package/dist/chunks/switch-DBI4STeG.cjs.js +2 -0
  186. package/dist/chunks/switch-DBI4STeG.cjs.js.map +1 -0
  187. package/dist/chunks/switch-dLnIGxMu.es.js +75 -0
  188. package/dist/chunks/switch-dLnIGxMu.es.js.map +1 -0
  189. package/dist/chunks/{table-CglTnQuK.es.js → table-BQ9EfDVA.es.js} +2 -2
  190. package/dist/chunks/{table-CglTnQuK.es.js.map → table-BQ9EfDVA.es.js.map} +1 -1
  191. package/dist/chunks/{table-VGN0xVbn.cjs.js → table-I9vNdwDu.cjs.js} +2 -2
  192. package/dist/chunks/{table-VGN0xVbn.cjs.js.map → table-I9vNdwDu.cjs.js.map} +1 -1
  193. package/dist/chunks/{tabs-CVx3v_oi.cjs.js → tabs-Ce76FEWP.cjs.js} +2 -2
  194. package/dist/chunks/{tabs-CVx3v_oi.cjs.js.map → tabs-Ce76FEWP.cjs.js.map} +1 -1
  195. package/dist/chunks/{tabs-vCbqDoL9.es.js → tabs-Vvz4_UY5.es.js} +2 -2
  196. package/dist/chunks/{tabs-vCbqDoL9.es.js.map → tabs-Vvz4_UY5.es.js.map} +1 -1
  197. package/dist/chunks/{tag-group-C1kfOOIe.es.js → tag-group-BqWFD-bc.es.js} +2 -2
  198. package/dist/chunks/{tag-group-C1kfOOIe.es.js.map → tag-group-BqWFD-bc.es.js.map} +1 -1
  199. package/dist/chunks/{tag-group-lmqnOpRQ.cjs.js → tag-group-jRz5HeHG.cjs.js} +2 -2
  200. package/dist/chunks/{tag-group-lmqnOpRQ.cjs.js.map → tag-group-jRz5HeHG.cjs.js.map} +1 -1
  201. package/dist/chunks/{text-input-CYhoaXwn.es.js → text-input-D4Res1fI.es.js} +3 -3
  202. package/dist/chunks/{text-input-CYhoaXwn.es.js.map → text-input-D4Res1fI.es.js.map} +1 -1
  203. package/dist/chunks/{text-input-CbG9GsIH.cjs.js → text-input-D5kp2Woq.cjs.js} +2 -2
  204. package/dist/chunks/{text-input-CbG9GsIH.cjs.js.map → text-input-D5kp2Woq.cjs.js.map} +1 -1
  205. package/dist/chunks/{text-input-field-De9VXhYd.es.js → text-input-field-BeQQ0J5G.es.js} +3 -3
  206. package/dist/chunks/{text-input-field-De9VXhYd.es.js.map → text-input-field-BeQQ0J5G.es.js.map} +1 -1
  207. package/dist/chunks/{text-input-field-P1gmf8qH.cjs.js → text-input-field-t6s8Tn-I.cjs.js} +2 -2
  208. package/dist/chunks/{text-input-field-P1gmf8qH.cjs.js.map → text-input-field-t6s8Tn-I.cjs.js.map} +1 -1
  209. package/dist/chunks/{time-input-Dd8Bm7rA.cjs.js → time-input-3SGaEjmk.cjs.js} +2 -2
  210. package/dist/chunks/{time-input-Dd8Bm7rA.cjs.js.map → time-input-3SGaEjmk.cjs.js.map} +1 -1
  211. package/dist/chunks/{time-input-BOGcS3Uy.es.js → time-input-JLSumOe-.es.js} +3 -3
  212. package/dist/chunks/{time-input-BOGcS3Uy.es.js.map → time-input-JLSumOe-.es.js.map} +1 -1
  213. package/dist/chunks/{toast.outlet-C8fv8YzY.es.js → toast.outlet-CGE1xY7p.es.js} +3 -3
  214. package/dist/chunks/{toast.outlet-C8fv8YzY.es.js.map → toast.outlet-CGE1xY7p.es.js.map} +1 -1
  215. package/dist/chunks/{toast.outlet-Ojazv9Da.cjs.js → toast.outlet-Cg1OtgY0.cjs.js} +2 -2
  216. package/dist/chunks/{toast.outlet-Ojazv9Da.cjs.js.map → toast.outlet-Cg1OtgY0.cjs.js.map} +1 -1
  217. package/dist/chunks/{toggle-button-CZjsgZAb.es.js → toggle-button-Bc3b0Mdz.es.js} +3 -3
  218. package/dist/chunks/{toggle-button-CZjsgZAb.es.js.map → toggle-button-Bc3b0Mdz.es.js.map} +1 -1
  219. package/dist/chunks/{toggle-button-VjKDjHMu.cjs.js → toggle-button-DW5INNYc.cjs.js} +2 -2
  220. package/dist/chunks/{toggle-button-VjKDjHMu.cjs.js.map → toggle-button-DW5INNYc.cjs.js.map} +1 -1
  221. package/dist/chunks/{toolbar-D7siAVmx.es.js → toolbar-CV2NCv0p.es.js} +3 -3
  222. package/dist/chunks/{toolbar-D7siAVmx.es.js.map → toolbar-CV2NCv0p.es.js.map} +1 -1
  223. package/dist/chunks/{toolbar-q5-QMUWS.cjs.js → toolbar-DIEmU_vh.cjs.js} +2 -2
  224. package/dist/chunks/{toolbar-q5-QMUWS.cjs.js.map → toolbar-DIEmU_vh.cjs.js.map} +1 -1
  225. package/dist/components/accordion.cjs +1 -1
  226. package/dist/components/accordion.es.js +2 -2
  227. package/dist/components/alert.cjs +1 -1
  228. package/dist/components/alert.es.js +1 -1
  229. package/dist/components/button.cjs +1 -1
  230. package/dist/components/button.es.js +1 -1
  231. package/dist/components/calendar.cjs +1 -1
  232. package/dist/components/calendar.es.js +1 -1
  233. package/dist/components/card.cjs +1 -1
  234. package/dist/components/card.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-field.cjs +1 -1
  250. package/dist/components/date-range-picker-field.es.js +1 -1
  251. package/dist/components/date-range-picker.cjs +1 -1
  252. package/dist/components/date-range-picker.es.js +1 -1
  253. package/dist/components/dialog.cjs +1 -1
  254. package/dist/components/dialog.es.js +1 -1
  255. package/dist/components/draggable-list.cjs +1 -1
  256. package/dist/components/draggable-list.es.js +1 -1
  257. package/dist/components/drawer.cjs +1 -1
  258. package/dist/components/drawer.es.js +1 -1
  259. package/dist/components/fields.cjs +1 -1
  260. package/dist/components/fields.es.js +7 -7
  261. package/dist/components/form-field.cjs +1 -1
  262. package/dist/components/form-field.es.js +1 -1
  263. package/dist/components/icon-button.cjs +1 -1
  264. package/dist/components/icon-button.es.js +1 -1
  265. package/dist/components/icon-toggle-button.cjs +1 -1
  266. package/dist/components/icon-toggle-button.es.js +1 -1
  267. package/dist/components/list.cjs +1 -1
  268. package/dist/components/list.es.js +1 -1
  269. package/dist/components/localized-field.cjs +1 -1
  270. package/dist/components/localized-field.es.js +1 -1
  271. package/dist/components/money-input-field.cjs +1 -1
  272. package/dist/components/money-input-field.es.js +1 -1
  273. package/dist/components/money-input.cjs +1 -1
  274. package/dist/components/money-input.es.js +1 -1
  275. package/dist/components/multiline-text-input-field.cjs +1 -1
  276. package/dist/components/multiline-text-input-field.es.js +1 -1
  277. package/dist/components/multiline-text-input.cjs +1 -1
  278. package/dist/components/multiline-text-input.es.js +1 -1
  279. package/dist/components/nimbus-provider.cjs +1 -1
  280. package/dist/components/nimbus-provider.es.js +1 -1
  281. package/dist/components/number-input-field.cjs +1 -1
  282. package/dist/components/number-input-field.es.js +1 -1
  283. package/dist/components/number-input.cjs +1 -1
  284. package/dist/components/number-input.es.js +1 -1
  285. package/dist/components/pagination.cjs +1 -1
  286. package/dist/components/pagination.es.js +1 -1
  287. package/dist/components/password-input-field.cjs +1 -1
  288. package/dist/components/password-input-field.es.js +1 -1
  289. package/dist/components/password-input.cjs +1 -1
  290. package/dist/components/password-input.es.js +1 -1
  291. package/dist/components/patterns.cjs +1 -1
  292. package/dist/components/patterns.es.js +7 -7
  293. package/dist/components/progress-bar.cjs +1 -1
  294. package/dist/components/progress-bar.es.js +1 -1
  295. package/dist/components/radio-input.cjs +1 -1
  296. package/dist/components/radio-input.es.js +1 -1
  297. package/dist/components/range-calendar.cjs +1 -1
  298. package/dist/components/range-calendar.es.js +1 -1
  299. package/dist/components/rich-text-input.cjs +1 -1
  300. package/dist/components/rich-text-input.es.js +1 -1
  301. package/dist/components/scoped-search-input.cjs +1 -1
  302. package/dist/components/scoped-search-input.es.js +1 -1
  303. package/dist/components/search-input-field.cjs +1 -1
  304. package/dist/components/search-input-field.es.js +1 -1
  305. package/dist/components/search-input.cjs +1 -1
  306. package/dist/components/search-input.es.js +1 -1
  307. package/dist/components/select.cjs +1 -1
  308. package/dist/components/select.es.js +1 -1
  309. package/dist/components/separator.cjs +1 -1
  310. package/dist/components/separator.es.js +1 -1
  311. package/dist/components/split-button.cjs +1 -1
  312. package/dist/components/split-button.es.js +1 -1
  313. package/dist/components/steps.cjs +1 -1
  314. package/dist/components/steps.es.js +1 -1
  315. package/dist/components/switch.cjs +1 -1
  316. package/dist/components/switch.es.js +1 -1
  317. package/dist/components/table.cjs +1 -1
  318. package/dist/components/table.es.js +1 -1
  319. package/dist/components/tabs.cjs +1 -1
  320. package/dist/components/tabs.es.js +1 -1
  321. package/dist/components/tag-group.cjs +1 -1
  322. package/dist/components/tag-group.es.js +1 -1
  323. package/dist/components/text-input-field.cjs +1 -1
  324. package/dist/components/text-input-field.es.js +1 -1
  325. package/dist/components/text-input.cjs +1 -1
  326. package/dist/components/text-input.es.js +1 -1
  327. package/dist/components/time-input.cjs +1 -1
  328. package/dist/components/time-input.es.js +1 -1
  329. package/dist/components/toast.cjs +1 -1
  330. package/dist/components/toast.es.js +1 -1
  331. package/dist/components/toggle-button.cjs +1 -1
  332. package/dist/components/toggle-button.es.js +1 -1
  333. package/dist/components/toolbar.cjs +1 -1
  334. package/dist/components/toolbar.es.js +1 -1
  335. package/dist/index.cjs +1 -1
  336. package/dist/index.es.js +57 -57
  337. package/package.json +11 -11
  338. package/dist/chunks/switch-By_KtP6e.cjs.js +0 -2
  339. package/dist/chunks/switch-By_KtP6e.cjs.js.map +0 -1
  340. package/dist/chunks/switch-JzEkZe3S.es.js +0 -73
  341. package/dist/chunks/switch-JzEkZe3S.es.js.map +0 -1
@@ -0,0 +1,75 @@
1
+ import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
+ import { useRef as $ } from "react";
3
+ import { e as w } from "./extract-style-props-DD3XZzbq.es.js";
4
+ import { m as R } from "./merge-refs-D-zSwpoh.es.js";
5
+ import { createSlotRecipeContext as y, useSlotRecipe as k } from "@chakra-ui/react/styled-system";
6
+ import { e as D } from "./index-CbPHv6Ml.es.js";
7
+ import { $ as v } from "./useObjectRef-CaJ5pgjX.es.js";
8
+ import { a as O } from "./mergeProps-Dg8WqJiN.es.js";
9
+ import { $ as T } from "./useToggleState-DWm4nWJh.es.js";
10
+ import { $ as V } from "./useToggle-Zw1unmxY.es.js";
11
+ import { $ as j } from "./useFocusRing-BUzNZISS.es.js";
12
+ import { $ as C } from "./useFocusable-B3Z_s4s7.es.js";
13
+ import { V as F } from "./visually-hidden-D6p_jGM-.es.js";
14
+ function L(t, e, s) {
15
+ let { labelProps: o, inputProps: c, isSelected: r, isPressed: l, isDisabled: d, isReadOnly: n } = V(t, e, s);
16
+ return {
17
+ labelProps: o,
18
+ inputProps: {
19
+ ...c,
20
+ role: "switch",
21
+ checked: r
22
+ },
23
+ isSelected: r,
24
+ isPressed: l,
25
+ isDisabled: d,
26
+ isReadOnly: n
27
+ };
28
+ }
29
+ const { withProvider: g, withContext: p } = /* @__PURE__ */ y({
30
+ key: "nimbusSwitch"
31
+ }), A = /* @__PURE__ */ g("label", "root"), H = /* @__PURE__ */ p("span", "label"), I = /* @__PURE__ */ p("span", "track"), N = /* @__PURE__ */ p("span", "thumb"), q = ({ ref: t, ...e }) => {
32
+ const s = $(null), o = v(
33
+ t ? R(s, t) : s
34
+ ), c = k({ recipe: D }), [r, l] = c.splitVariantProps(e), [d, n] = w(l), f = e["aria-disabled"] === !0 || e["aria-disabled"] === "true", m = T(e), { inputProps: h } = L(n, m, o), { isFocused: P, focusProps: S } = j(), b = $(null), { focusableProps: x } = C(
35
+ { excludeFromTabOrder: !0 },
36
+ b
37
+ ), i = {
38
+ "data-selected": m.isSelected,
39
+ "data-invalid": e.isInvalid,
40
+ "data-disabled": e.isDisabled || f,
41
+ "data-focus": P || void 0
42
+ };
43
+ return /* @__PURE__ */ u(
44
+ A,
45
+ {
46
+ "data-slot": "root",
47
+ ...r,
48
+ ...i,
49
+ ...d,
50
+ ...x,
51
+ ...f && { "data-allow-pointer": !0 },
52
+ ref: b,
53
+ children: [
54
+ /* @__PURE__ */ u(I, { "data-slot": "track", ...i, children: [
55
+ /* @__PURE__ */ a(N, { "data-slot": "thumb", ...i }),
56
+ /* @__PURE__ */ a(F, { as: "span", children: /* @__PURE__ */ a(
57
+ "input",
58
+ {
59
+ "data-slot": "input",
60
+ ...O(h, S),
61
+ ...f && { disabled: !0 },
62
+ ref: o
63
+ }
64
+ ) })
65
+ ] }),
66
+ e.children && /* @__PURE__ */ a(H, { "data-slot": "label", ...i, children: e.children })
67
+ ]
68
+ }
69
+ );
70
+ };
71
+ q.displayName = "Switch";
72
+ export {
73
+ q as S
74
+ };
75
+ //# sourceMappingURL=switch-dLnIGxMu.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-dLnIGxMu.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.11_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n SwitchRootSlotProps,\n SwitchLabelSlotProps,\n SwitchTrackSlotProps,\n SwitchThumbSlotProps,\n} from \"./switch.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusSwitch\",\n});\n\nexport const SwitchRootSlot: SlotComponent<\n HTMLLabelElement,\n SwitchRootSlotProps\n> = withProvider<HTMLLabelElement, SwitchRootSlotProps>(\"label\", \"root\");\n\nexport const SwitchLabelSlot = withContext<\n HTMLSpanElement,\n SwitchLabelSlotProps\n>(\"span\", \"label\");\n\nexport const SwitchTrackSlot = withContext<\n HTMLSpanElement,\n SwitchTrackSlotProps\n>(\"span\", \"track\");\n\nexport const SwitchThumbSlot = withContext<\n HTMLSpanElement,\n SwitchThumbSlotProps\n>(\"span\", \"thumb\");\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport {\n useFocusRing,\n useSwitch,\n useObjectRef,\n useFocusable,\n mergeProps,\n} from \"react-aria\";\nimport { extractStyleProps, mergeRefs } from \"@/utils\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const isAriaDisabled =\n props[\"aria-disabled\"] === true || props[\"aria-disabled\"] === \"true\";\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n // Enable tooltip trigger support: reads from FocusableContext (set by Tooltip.Root)\n // to apply hover/focus handlers to the visible label element. No-op outside tooltips.\n // Must be called after useSwitch so the ref sync targets rootRef, not the hidden input.\n const rootRef = useRef<HTMLLabelElement>(null);\n const { focusableProps } = useFocusable(\n { excludeFromTabOrder: true },\n rootRef\n );\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled || isAriaDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n {...focusableProps}\n {...(isAriaDisabled && { \"data-allow-pointer\": true })}\n ref={rootRef}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n {...(isAriaDisabled && { disabled: true })}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","isAriaDisabled","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","rootRef","focusableProps","useFocusable","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":";;;;;;;;;;;;;AAaA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,GAAY,YAAYC,GAAY,YAAYC,GAAY,WAAWC,GAAW,YAAYC,GAAY,YAAYC,EAAU,IAASC,EAAkBT,GAAOC,GAAOC,CAAG;AAC9L,SAAO;AAAA,IACH,YAAYC;AAAA,IACZ,YAAY;AAAA,MACR,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,SAASC;AAAA,IACrB;AAAA,IACQ,YAAYA;AAAA,IACZ,WAAWC;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,EACpB;AACA;AClBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,SAAS,MAAM,GAE1DI,IAAkB,gBAAAH,EAG7B,QAAQ,OAAO,GAEJI,IAAkB,gBAAAJ,EAG7B,QAAQ,OAAO,GAEJK,IAAkB,gBAAAL,EAG7B,QAAQ,OAAO,GCHJM,IAAS,CAAC,EAAE,KAAKC,GAAa,GAAGlB,QAAyB;AACrE,QAAMmB,IAAWC,EAAyB,IAAI,GACxClB,IAAMmB;AAAAA,IACVH,IAAcI,EAAUH,GAAUD,CAAW,IAAIC;AAAA,EAAA,GAG7CI,IAASC,EAAc,EAAE,QAAQC,GAAkB,GAEnD,CAACC,GAAaC,CAAe,IAAIJ,EAAO,kBAAkBvB,CAAK,GAC/D,CAAC4B,GAAYC,CAAe,IAAIC,EAAkBH,CAAe,GAEjEI,IACJ/B,EAAM,eAAe,MAAM,MAAQA,EAAM,eAAe,MAAM,QAE1DC,IAAQ+B,EAAehC,CAAK,GAC5B,EAAE,YAAAI,EAAA,IAAe6B,EAAUJ,GAAiB5B,GAAOC,CAAG,GAEtD,EAAE,WAAAgC,GAAW,YAAAC,EAAA,IAAeC,EAAA,GAK5BC,IAAUjB,EAAyB,IAAI,GACvC,EAAE,gBAAAkB,MAAmBC;AAAAA,IACzB,EAAE,qBAAqB,GAAA;AAAA,IACvBF;AAAA,EAAA,GAGIG,IAAa;AAAA,IACjB,iBAAiBvC,EAAM;AAAA,IACvB,gBAAgBD,EAAM;AAAA,IACtB,iBAAiBA,EAAM,cAAc+B;AAAA,IACrC,cAAcG,KAAa;AAAA,EAAA;AAE7B,SACE,gBAAAO;AAAA,IAAC5B;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACT,GAAGa;AAAA,MACH,GAAGc;AAAA,MACH,GAAGZ;AAAA,MACH,GAAGU;AAAA,MACH,GAAIP,KAAkB,EAAE,sBAAsB,GAAA;AAAA,MAC/C,KAAKM;AAAA,MAEL,UAAA;AAAA,QAAA,gBAAAI,EAAC1B,GAAA,EAAgB,aAAU,SAAS,GAAGyB,GACrC,UAAA;AAAA,UAAA,gBAAAE,EAAC1B,GAAA,EAAgB,aAAU,SAAS,GAAGwB,EAAA,CAAY;AAAA,UACnD,gBAAAE,EAACC,GAAA,EAAe,IAAG,QACjB,UAAA,gBAAAD;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,aAAU;AAAA,cACT,GAAGE,EAAWxC,GAAY+B,CAAU;AAAA,cACpC,GAAIJ,KAAkB,EAAE,UAAU,GAAA;AAAA,cACnC,KAAA7B;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA,GACF;AAAA,QAECF,EAAM,YACL,gBAAA0C,EAAC5B,GAAA,EAAgB,aAAU,SAAS,GAAG0B,GACpC,UAAAxC,EAAM,SAAA,CACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AACAiB,EAAO,cAAc;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { createSlotRecipeContext as H, useSlotRecipe as w } from "@chakra-ui/react/styled-system";
3
- import { e as P } from "./extract-style-props-DuSHABTl.es.js";
3
+ import { e as P } from "./extract-style-props-DD3XZzbq.es.js";
4
4
  import { B as t } from "./box-DuBoAZvq.es.js";
5
5
  const { withProvider: h, withContext: a } = /* @__PURE__ */ H({
6
6
  key: "nimbusTable"
@@ -68,4 +68,4 @@ export {
68
68
  b as j,
69
69
  T as k
70
70
  };
71
- //# sourceMappingURL=table-CglTnQuK.es.js.map
71
+ //# sourceMappingURL=table-BQ9EfDVA.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-CglTnQuK.es.js","sources":["../../src/components/table/table.slots.tsx","../../src/components/table/table.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusTable\",\n});\n\nexport type TableRootSlotProps = HTMLChakraProps<\"table\">;\nexport const TableRootSlot: SlotComponent<\n HTMLTableElement,\n TableRootSlotProps\n> = withProvider<HTMLTableElement, TableRootSlotProps>(\"table\", \"root\");\n\nexport type TableCaptionSlotProps = HTMLChakraProps<\"caption\">;\nexport const TableCaptionSlot: SlotComponent<\n HTMLTableCaptionElement,\n TableCaptionSlotProps\n> = withContext<HTMLTableCaptionElement, TableCaptionSlotProps>(\n \"caption\",\n \"caption\"\n);\n\nexport type TableHeaderSlotProps = HTMLChakraProps<\"thead\">;\nexport const TableHeaderSlot: SlotComponent<\n HTMLTableSectionElement,\n TableHeaderSlotProps\n> = withContext<HTMLTableSectionElement, TableHeaderSlotProps>(\n \"thead\",\n \"header\"\n);\n\nexport type TableBodySlotProps = HTMLChakraProps<\"tbody\">;\nexport const TableBodySlot: SlotComponent<\n HTMLTableSectionElement,\n TableBodySlotProps\n> = withContext<HTMLTableSectionElement, TableBodySlotProps>(\"tbody\", \"body\");\n\nexport type TableFooterSlotProps = HTMLChakraProps<\"tfoot\">;\nexport const TableFooterSlot: SlotComponent<\n HTMLTableSectionElement,\n TableFooterSlotProps\n> = withContext<HTMLTableSectionElement, TableFooterSlotProps>(\n \"tfoot\",\n \"footer\"\n);\n\nexport type TableRowSlotProps = HTMLChakraProps<\"tr\">;\nexport const TableRowSlot: SlotComponent<\n HTMLTableRowElement,\n TableRowSlotProps\n> = withContext<HTMLTableRowElement, TableRowSlotProps>(\"tr\", \"row\");\n\nexport type TableColumnHeaderSlotProps = HTMLChakraProps<\"th\">;\nexport const TableColumnHeaderSlot: SlotComponent<\n HTMLTableCellElement,\n TableColumnHeaderSlotProps\n> = withContext<HTMLTableCellElement, TableColumnHeaderSlotProps>(\n \"th\",\n \"columnHeader\"\n);\n\nexport type TableCellSlotProps = HTMLChakraProps<\"td\">;\nexport const TableCellSlot: SlotComponent<\n HTMLTableCellElement,\n TableCellSlotProps\n> = withContext<HTMLTableCellElement, TableCellSlotProps>(\"td\", \"cell\");\n","import {\n TableRootSlot,\n TableCaptionSlot,\n TableHeaderSlot,\n TableBodySlot,\n TableFooterSlot,\n TableRowSlot,\n TableColumnHeaderSlot,\n TableCellSlot,\n} from \"./table.slots\";\nimport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n} from \"./table.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { Box } from \"../box\";\n\n/**\n * # Table\n *\n * Component for displaying tabular data.\n *\n * Built on top of Chakra UI's Table component with Nimbus theming.\n *\n * @supportsStyleProps\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/table}\n *\n * @example\n * ```tsx\n * <Table.Root>\n * <Table.Header>\n * <Table.Row>\n * <Table.ColumnHeader>Name</Table.ColumnHeader>\n * </Table.Row>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row>\n * <Table.Cell>John</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table.Root>\n * ```\n */\n\n/**\n * Table.Root\n *\n * The root table container that provides context for all table slots.\n *\n * @supportsStyleProps\n */\nexport const TableRoot = (props: TableRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"nimbusTable\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, htmlProps] = extractStyleProps(restRecipeProps);\n\n return (\n <TableRootSlot ref={ref} {...recipeProps} {...styleProps} {...htmlProps} />\n );\n};\nTableRoot.displayName = \"Table.Root\";\n\nexport const TableCaption = (props: TableCaptionProps) => {\n return <TableCaptionSlot {...props} />;\n};\nTableCaption.displayName = \"Table.Caption\";\n\nexport const TableHeader = (props: TableHeaderProps) => {\n return <TableHeaderSlot {...props} />;\n};\nTableHeader.displayName = \"Table.Header\";\n\nexport const TableBody = (props: TableBodyProps) => {\n return <TableBodySlot {...props} />;\n};\nTableBody.displayName = \"Table.Body\";\n\nexport const TableFooter = (props: TableFooterProps) => {\n return <TableFooterSlot {...props} />;\n};\nTableFooter.displayName = \"Table.Footer\";\n\nexport const TableRow = (props: TableRowProps) => {\n return <TableRowSlot {...props} />;\n};\nTableRow.displayName = \"Table.Row\";\n\nexport const TableColumnHeader = (props: TableColumnHeaderProps) => {\n return <TableColumnHeaderSlot {...props} />;\n};\nTableColumnHeader.displayName = \"Table.ColumnHeader\";\n\nexport const TableCell = (props: TableCellProps) => {\n return <TableCellSlot {...props} />;\n};\nTableCell.displayName = \"Table.Cell\";\n\nexport const TableScrollArea = (props: TableScrollAreaProps) => {\n return <Box as=\"div\" overflow=\"auto\" {...props} />;\n};\nTableScrollArea.displayName = \"Table.ScrollArea\";\n\nexport const TableColumnGroup = (props: TableColumnGroupProps) => {\n return <Box as=\"colgroup\" {...props} />;\n};\nTableColumnGroup.displayName = \"Table.ColumnGroup\";\n\nexport const TableColumn = (props: TableColumnProps) => {\n return <Box as=\"col\" {...props} />;\n};\nTableColumn.displayName = \"Table.Column\";\n\n/**\n * Export Table with all sub-components as a compound component\n */\nexport const Table: {\n Root: typeof TableRoot;\n Caption: typeof TableCaption;\n Header: typeof TableHeader;\n Body: typeof TableBody;\n Footer: typeof TableFooter;\n Row: typeof TableRow;\n ColumnHeader: typeof TableColumnHeader;\n Cell: typeof TableCell;\n ScrollArea: typeof TableScrollArea;\n ColumnGroup: typeof TableColumnGroup;\n Column: typeof TableColumn;\n} = {\n Root: TableRoot,\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n ColumnHeader: TableColumnHeader,\n Cell: TableCell,\n ScrollArea: TableScrollArea,\n ColumnGroup: TableColumnGroup,\n Column: TableColumn,\n};\n\nexport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","TableRootSlot","TableCaptionSlot","TableHeaderSlot","TableBodySlot","TableFooterSlot","TableRowSlot","TableColumnHeaderSlot","TableCellSlot","TableRoot","props","ref","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","htmlProps","extractStyleProps","jsx","TableCaption","TableHeader","TableBody","TableFooter","TableRow","TableColumnHeader","TableCell","TableScrollArea","Box","TableColumnGroup","TableColumn","Table"],"mappings":";;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAGT,gBAAAH,EAAmD,SAAS,MAAM,GAGzDI,IAGT,gBAAAH;AAAA,EACF;AAAA,EACA;AACF,GAGaI,IAGT,gBAAAJ;AAAA,EACF;AAAA,EACA;AACF,GAGaK,IAGT,gBAAAL,EAAyD,SAAS,MAAM,GAG/DM,IAGT,gBAAAN;AAAA,EACF;AAAA,EACA;AACF,GAGaO,IAGT,gBAAAP,EAAoD,MAAM,KAAK,GAGtDQ,IAGT,gBAAAR;AAAA,EACF;AAAA,EACA;AACF,GAGaS,IAGT,gBAAAT,EAAsD,MAAM,MAAM,GCNzDU,IAAY,CAACC,MAA0B;AAClD,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF,GACxBG,IAASC,EAAc,EAAE,KAAK,eAAe,GAC7C,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAS,GACnE,CAACK,GAAYC,CAAS,IAAIC,EAAkBH,CAAe;AAEjE,SACE,gBAAAI,EAACnB,KAAc,KAAAU,GAAW,GAAGI,GAAc,GAAGE,GAAa,GAAGC,GAAW;AAE7E;AACAT,EAAU,cAAc;AAEjB,MAAMY,IAAe,CAACX,MACpB,gBAAAU,EAAClB,GAAA,EAAkB,GAAGQ,EAAA,CAAO;AAEtCW,EAAa,cAAc;AAEpB,MAAMC,IAAc,CAACZ,MACnB,gBAAAU,EAACjB,GAAA,EAAiB,GAAGO,EAAA,CAAO;AAErCY,EAAY,cAAc;AAEnB,MAAMC,IAAY,CAACb,MACjB,gBAAAU,EAAChB,GAAA,EAAe,GAAGM,EAAA,CAAO;AAEnCa,EAAU,cAAc;AAEjB,MAAMC,IAAc,CAACd,MACnB,gBAAAU,EAACf,GAAA,EAAiB,GAAGK,EAAA,CAAO;AAErCc,EAAY,cAAc;AAEnB,MAAMC,IAAW,CAACf,MAChB,gBAAAU,EAACd,GAAA,EAAc,GAAGI,EAAA,CAAO;AAElCe,EAAS,cAAc;AAEhB,MAAMC,IAAoB,CAAChB,MACzB,gBAAAU,EAACb,GAAA,EAAuB,GAAGG,EAAA,CAAO;AAE3CgB,EAAkB,cAAc;AAEzB,MAAMC,IAAY,CAACjB,MACjB,gBAAAU,EAACZ,GAAA,EAAe,GAAGE,EAAA,CAAO;AAEnCiB,EAAU,cAAc;AAEjB,MAAMC,IAAkB,CAAClB,wBACtBmB,GAAA,EAAI,IAAG,OAAM,UAAS,QAAQ,GAAGnB,GAAO;AAElDkB,EAAgB,cAAc;AAEvB,MAAME,IAAmB,CAACpB,MACxB,gBAAAU,EAACS,GAAA,EAAI,IAAG,YAAY,GAAGnB,GAAO;AAEvCoB,EAAiB,cAAc;AAExB,MAAMC,IAAc,CAACrB,MACnB,gBAAAU,EAACS,GAAA,EAAI,IAAG,OAAO,GAAGnB,GAAO;AAElCqB,EAAY,cAAc;AAKnB,MAAMC,IAYT;AAAA,EACF,MAAMvB;AAAA,EACN,SAASY;AAAA,EACT,QAAQC;AAAA,EACR,MAAMC;AAAA,EACN,QAAQC;AAAA,EACR,KAAKC;AAAA,EACL,cAAcC;AAAA,EACd,MAAMC;AAAA,EACN,YAAYC;AAAA,EACZ,aAAaE;AAAA,EACb,QAAQC;AACV;"}
1
+ {"version":3,"file":"table-BQ9EfDVA.es.js","sources":["../../src/components/table/table.slots.tsx","../../src/components/table/table.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusTable\",\n});\n\nexport type TableRootSlotProps = HTMLChakraProps<\"table\">;\nexport const TableRootSlot: SlotComponent<\n HTMLTableElement,\n TableRootSlotProps\n> = withProvider<HTMLTableElement, TableRootSlotProps>(\"table\", \"root\");\n\nexport type TableCaptionSlotProps = HTMLChakraProps<\"caption\">;\nexport const TableCaptionSlot: SlotComponent<\n HTMLTableCaptionElement,\n TableCaptionSlotProps\n> = withContext<HTMLTableCaptionElement, TableCaptionSlotProps>(\n \"caption\",\n \"caption\"\n);\n\nexport type TableHeaderSlotProps = HTMLChakraProps<\"thead\">;\nexport const TableHeaderSlot: SlotComponent<\n HTMLTableSectionElement,\n TableHeaderSlotProps\n> = withContext<HTMLTableSectionElement, TableHeaderSlotProps>(\n \"thead\",\n \"header\"\n);\n\nexport type TableBodySlotProps = HTMLChakraProps<\"tbody\">;\nexport const TableBodySlot: SlotComponent<\n HTMLTableSectionElement,\n TableBodySlotProps\n> = withContext<HTMLTableSectionElement, TableBodySlotProps>(\"tbody\", \"body\");\n\nexport type TableFooterSlotProps = HTMLChakraProps<\"tfoot\">;\nexport const TableFooterSlot: SlotComponent<\n HTMLTableSectionElement,\n TableFooterSlotProps\n> = withContext<HTMLTableSectionElement, TableFooterSlotProps>(\n \"tfoot\",\n \"footer\"\n);\n\nexport type TableRowSlotProps = HTMLChakraProps<\"tr\">;\nexport const TableRowSlot: SlotComponent<\n HTMLTableRowElement,\n TableRowSlotProps\n> = withContext<HTMLTableRowElement, TableRowSlotProps>(\"tr\", \"row\");\n\nexport type TableColumnHeaderSlotProps = HTMLChakraProps<\"th\">;\nexport const TableColumnHeaderSlot: SlotComponent<\n HTMLTableCellElement,\n TableColumnHeaderSlotProps\n> = withContext<HTMLTableCellElement, TableColumnHeaderSlotProps>(\n \"th\",\n \"columnHeader\"\n);\n\nexport type TableCellSlotProps = HTMLChakraProps<\"td\">;\nexport const TableCellSlot: SlotComponent<\n HTMLTableCellElement,\n TableCellSlotProps\n> = withContext<HTMLTableCellElement, TableCellSlotProps>(\"td\", \"cell\");\n","import {\n TableRootSlot,\n TableCaptionSlot,\n TableHeaderSlot,\n TableBodySlot,\n TableFooterSlot,\n TableRowSlot,\n TableColumnHeaderSlot,\n TableCellSlot,\n} from \"./table.slots\";\nimport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n} from \"./table.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { Box } from \"../box\";\n\n/**\n * # Table\n *\n * Component for displaying tabular data.\n *\n * Built on top of Chakra UI's Table component with Nimbus theming.\n *\n * @supportsStyleProps\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/table}\n *\n * @example\n * ```tsx\n * <Table.Root>\n * <Table.Header>\n * <Table.Row>\n * <Table.ColumnHeader>Name</Table.ColumnHeader>\n * </Table.Row>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row>\n * <Table.Cell>John</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table.Root>\n * ```\n */\n\n/**\n * Table.Root\n *\n * The root table container that provides context for all table slots.\n *\n * @supportsStyleProps\n */\nexport const TableRoot = (props: TableRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"nimbusTable\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, htmlProps] = extractStyleProps(restRecipeProps);\n\n return (\n <TableRootSlot ref={ref} {...recipeProps} {...styleProps} {...htmlProps} />\n );\n};\nTableRoot.displayName = \"Table.Root\";\n\nexport const TableCaption = (props: TableCaptionProps) => {\n return <TableCaptionSlot {...props} />;\n};\nTableCaption.displayName = \"Table.Caption\";\n\nexport const TableHeader = (props: TableHeaderProps) => {\n return <TableHeaderSlot {...props} />;\n};\nTableHeader.displayName = \"Table.Header\";\n\nexport const TableBody = (props: TableBodyProps) => {\n return <TableBodySlot {...props} />;\n};\nTableBody.displayName = \"Table.Body\";\n\nexport const TableFooter = (props: TableFooterProps) => {\n return <TableFooterSlot {...props} />;\n};\nTableFooter.displayName = \"Table.Footer\";\n\nexport const TableRow = (props: TableRowProps) => {\n return <TableRowSlot {...props} />;\n};\nTableRow.displayName = \"Table.Row\";\n\nexport const TableColumnHeader = (props: TableColumnHeaderProps) => {\n return <TableColumnHeaderSlot {...props} />;\n};\nTableColumnHeader.displayName = \"Table.ColumnHeader\";\n\nexport const TableCell = (props: TableCellProps) => {\n return <TableCellSlot {...props} />;\n};\nTableCell.displayName = \"Table.Cell\";\n\nexport const TableScrollArea = (props: TableScrollAreaProps) => {\n return <Box as=\"div\" overflow=\"auto\" {...props} />;\n};\nTableScrollArea.displayName = \"Table.ScrollArea\";\n\nexport const TableColumnGroup = (props: TableColumnGroupProps) => {\n return <Box as=\"colgroup\" {...props} />;\n};\nTableColumnGroup.displayName = \"Table.ColumnGroup\";\n\nexport const TableColumn = (props: TableColumnProps) => {\n return <Box as=\"col\" {...props} />;\n};\nTableColumn.displayName = \"Table.Column\";\n\n/**\n * Export Table with all sub-components as a compound component\n */\nexport const Table: {\n Root: typeof TableRoot;\n Caption: typeof TableCaption;\n Header: typeof TableHeader;\n Body: typeof TableBody;\n Footer: typeof TableFooter;\n Row: typeof TableRow;\n ColumnHeader: typeof TableColumnHeader;\n Cell: typeof TableCell;\n ScrollArea: typeof TableScrollArea;\n ColumnGroup: typeof TableColumnGroup;\n Column: typeof TableColumn;\n} = {\n Root: TableRoot,\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n ColumnHeader: TableColumnHeader,\n Cell: TableCell,\n ScrollArea: TableScrollArea,\n ColumnGroup: TableColumnGroup,\n Column: TableColumn,\n};\n\nexport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","TableRootSlot","TableCaptionSlot","TableHeaderSlot","TableBodySlot","TableFooterSlot","TableRowSlot","TableColumnHeaderSlot","TableCellSlot","TableRoot","props","ref","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","htmlProps","extractStyleProps","jsx","TableCaption","TableHeader","TableBody","TableFooter","TableRow","TableColumnHeader","TableCell","TableScrollArea","Box","TableColumnGroup","TableColumn","Table"],"mappings":";;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAGT,gBAAAH,EAAmD,SAAS,MAAM,GAGzDI,IAGT,gBAAAH;AAAA,EACF;AAAA,EACA;AACF,GAGaI,IAGT,gBAAAJ;AAAA,EACF;AAAA,EACA;AACF,GAGaK,IAGT,gBAAAL,EAAyD,SAAS,MAAM,GAG/DM,IAGT,gBAAAN;AAAA,EACF;AAAA,EACA;AACF,GAGaO,IAGT,gBAAAP,EAAoD,MAAM,KAAK,GAGtDQ,IAGT,gBAAAR;AAAA,EACF;AAAA,EACA;AACF,GAGaS,IAGT,gBAAAT,EAAsD,MAAM,MAAM,GCNzDU,IAAY,CAACC,MAA0B;AAClD,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF,GACxBG,IAASC,EAAc,EAAE,KAAK,eAAe,GAC7C,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAS,GACnE,CAACK,GAAYC,CAAS,IAAIC,EAAkBH,CAAe;AAEjE,SACE,gBAAAI,EAACnB,KAAc,KAAAU,GAAW,GAAGI,GAAc,GAAGE,GAAa,GAAGC,GAAW;AAE7E;AACAT,EAAU,cAAc;AAEjB,MAAMY,IAAe,CAACX,MACpB,gBAAAU,EAAClB,GAAA,EAAkB,GAAGQ,EAAA,CAAO;AAEtCW,EAAa,cAAc;AAEpB,MAAMC,IAAc,CAACZ,MACnB,gBAAAU,EAACjB,GAAA,EAAiB,GAAGO,EAAA,CAAO;AAErCY,EAAY,cAAc;AAEnB,MAAMC,IAAY,CAACb,MACjB,gBAAAU,EAAChB,GAAA,EAAe,GAAGM,EAAA,CAAO;AAEnCa,EAAU,cAAc;AAEjB,MAAMC,IAAc,CAACd,MACnB,gBAAAU,EAACf,GAAA,EAAiB,GAAGK,EAAA,CAAO;AAErCc,EAAY,cAAc;AAEnB,MAAMC,IAAW,CAACf,MAChB,gBAAAU,EAACd,GAAA,EAAc,GAAGI,EAAA,CAAO;AAElCe,EAAS,cAAc;AAEhB,MAAMC,IAAoB,CAAChB,MACzB,gBAAAU,EAACb,GAAA,EAAuB,GAAGG,EAAA,CAAO;AAE3CgB,EAAkB,cAAc;AAEzB,MAAMC,IAAY,CAACjB,MACjB,gBAAAU,EAACZ,GAAA,EAAe,GAAGE,EAAA,CAAO;AAEnCiB,EAAU,cAAc;AAEjB,MAAMC,IAAkB,CAAClB,wBACtBmB,GAAA,EAAI,IAAG,OAAM,UAAS,QAAQ,GAAGnB,GAAO;AAElDkB,EAAgB,cAAc;AAEvB,MAAME,IAAmB,CAACpB,MACxB,gBAAAU,EAACS,GAAA,EAAI,IAAG,YAAY,GAAGnB,GAAO;AAEvCoB,EAAiB,cAAc;AAExB,MAAMC,IAAc,CAACrB,MACnB,gBAAAU,EAACS,GAAA,EAAI,IAAG,OAAO,GAAGnB,GAAO;AAElCqB,EAAY,cAAc;AAKnB,MAAMC,IAYT;AAAA,EACF,MAAMvB;AAAA,EACN,SAASY;AAAA,EACT,QAAQC;AAAA,EACR,MAAMC;AAAA,EACN,QAAQC;AAAA,EACR,KAAKC;AAAA,EACL,cAAcC;AAAA,EACd,MAAMC;AAAA,EACN,YAAYC;AAAA,EACZ,aAAaE;AAAA,EACb,QAAQC;AACV;"}
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("react/jsx-runtime"),m=require("@chakra-ui/react/styled-system"),N=require("./extract-style-props-xZ29rO70.cjs.js"),t=require("./box-CWni3A32.cjs.js"),{withProvider:w,withContext:l}=m.createSlotRecipeContext({key:"nimbusTable"}),P=w("table","root"),B=l("caption","caption"),h=l("thead","header"),F=l("tbody","body"),f=l("tfoot","footer"),q=l("tr","row"),A=l("th","columnHeader"),G=l("td","cell"),a=e=>{const{ref:y,...C}=e,x=m.useSlotRecipe({key:"nimbusTable"}),[S,R]=x.splitVariantProps(C),[j,H]=N.extractStyleProps(R);return o.jsx(P,{ref:y,...S,...j,...H})};a.displayName="Table.Root";const r=e=>o.jsx(B,{...e});r.displayName="Table.Caption";const s=e=>o.jsx(h,{...e});s.displayName="Table.Header";const n=e=>o.jsx(F,{...e});n.displayName="Table.Body";const b=e=>o.jsx(f,{...e});b.displayName="Table.Footer";const c=e=>o.jsx(q,{...e});c.displayName="Table.Row";const T=e=>o.jsx(A,{...e});T.displayName="Table.ColumnHeader";const u=e=>o.jsx(G,{...e});u.displayName="Table.Cell";const i=e=>o.jsx(t.Box,{as:"div",overflow:"auto",...e});i.displayName="Table.ScrollArea";const p=e=>o.jsx(t.Box,{as:"colgroup",...e});p.displayName="Table.ColumnGroup";const d=e=>o.jsx(t.Box,{as:"col",...e});d.displayName="Table.Column";const v={Root:a,Caption:r,Header:s,Body:n,Footer:b,Row:c,ColumnHeader:T,Cell:u,ScrollArea:i,ColumnGroup:p,Column:d};exports.Table=v;exports.TableBody=n;exports.TableCaption=r;exports.TableCell=u;exports.TableColumn=d;exports.TableColumnGroup=p;exports.TableColumnHeader=T;exports.TableFooter=b;exports.TableHeader=s;exports.TableRoot=a;exports.TableRow=c;exports.TableScrollArea=i;
2
- //# sourceMappingURL=table-VGN0xVbn.cjs.js.map
1
+ "use strict";const o=require("react/jsx-runtime"),m=require("@chakra-ui/react/styled-system"),N=require("./extract-style-props-7Kq9mybq.cjs.js"),t=require("./box-CWni3A32.cjs.js"),{withProvider:w,withContext:l}=m.createSlotRecipeContext({key:"nimbusTable"}),P=w("table","root"),B=l("caption","caption"),h=l("thead","header"),F=l("tbody","body"),f=l("tfoot","footer"),q=l("tr","row"),A=l("th","columnHeader"),G=l("td","cell"),a=e=>{const{ref:y,...C}=e,x=m.useSlotRecipe({key:"nimbusTable"}),[S,R]=x.splitVariantProps(C),[j,H]=N.extractStyleProps(R);return o.jsx(P,{ref:y,...S,...j,...H})};a.displayName="Table.Root";const r=e=>o.jsx(B,{...e});r.displayName="Table.Caption";const s=e=>o.jsx(h,{...e});s.displayName="Table.Header";const n=e=>o.jsx(F,{...e});n.displayName="Table.Body";const b=e=>o.jsx(f,{...e});b.displayName="Table.Footer";const c=e=>o.jsx(q,{...e});c.displayName="Table.Row";const T=e=>o.jsx(A,{...e});T.displayName="Table.ColumnHeader";const u=e=>o.jsx(G,{...e});u.displayName="Table.Cell";const i=e=>o.jsx(t.Box,{as:"div",overflow:"auto",...e});i.displayName="Table.ScrollArea";const p=e=>o.jsx(t.Box,{as:"colgroup",...e});p.displayName="Table.ColumnGroup";const d=e=>o.jsx(t.Box,{as:"col",...e});d.displayName="Table.Column";const v={Root:a,Caption:r,Header:s,Body:n,Footer:b,Row:c,ColumnHeader:T,Cell:u,ScrollArea:i,ColumnGroup:p,Column:d};exports.Table=v;exports.TableBody=n;exports.TableCaption=r;exports.TableCell=u;exports.TableColumn=d;exports.TableColumnGroup=p;exports.TableColumnHeader=T;exports.TableFooter=b;exports.TableHeader=s;exports.TableRoot=a;exports.TableRow=c;exports.TableScrollArea=i;
2
+ //# sourceMappingURL=table-I9vNdwDu.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-VGN0xVbn.cjs.js","sources":["../../src/components/table/table.slots.tsx","../../src/components/table/table.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusTable\",\n});\n\nexport type TableRootSlotProps = HTMLChakraProps<\"table\">;\nexport const TableRootSlot: SlotComponent<\n HTMLTableElement,\n TableRootSlotProps\n> = withProvider<HTMLTableElement, TableRootSlotProps>(\"table\", \"root\");\n\nexport type TableCaptionSlotProps = HTMLChakraProps<\"caption\">;\nexport const TableCaptionSlot: SlotComponent<\n HTMLTableCaptionElement,\n TableCaptionSlotProps\n> = withContext<HTMLTableCaptionElement, TableCaptionSlotProps>(\n \"caption\",\n \"caption\"\n);\n\nexport type TableHeaderSlotProps = HTMLChakraProps<\"thead\">;\nexport const TableHeaderSlot: SlotComponent<\n HTMLTableSectionElement,\n TableHeaderSlotProps\n> = withContext<HTMLTableSectionElement, TableHeaderSlotProps>(\n \"thead\",\n \"header\"\n);\n\nexport type TableBodySlotProps = HTMLChakraProps<\"tbody\">;\nexport const TableBodySlot: SlotComponent<\n HTMLTableSectionElement,\n TableBodySlotProps\n> = withContext<HTMLTableSectionElement, TableBodySlotProps>(\"tbody\", \"body\");\n\nexport type TableFooterSlotProps = HTMLChakraProps<\"tfoot\">;\nexport const TableFooterSlot: SlotComponent<\n HTMLTableSectionElement,\n TableFooterSlotProps\n> = withContext<HTMLTableSectionElement, TableFooterSlotProps>(\n \"tfoot\",\n \"footer\"\n);\n\nexport type TableRowSlotProps = HTMLChakraProps<\"tr\">;\nexport const TableRowSlot: SlotComponent<\n HTMLTableRowElement,\n TableRowSlotProps\n> = withContext<HTMLTableRowElement, TableRowSlotProps>(\"tr\", \"row\");\n\nexport type TableColumnHeaderSlotProps = HTMLChakraProps<\"th\">;\nexport const TableColumnHeaderSlot: SlotComponent<\n HTMLTableCellElement,\n TableColumnHeaderSlotProps\n> = withContext<HTMLTableCellElement, TableColumnHeaderSlotProps>(\n \"th\",\n \"columnHeader\"\n);\n\nexport type TableCellSlotProps = HTMLChakraProps<\"td\">;\nexport const TableCellSlot: SlotComponent<\n HTMLTableCellElement,\n TableCellSlotProps\n> = withContext<HTMLTableCellElement, TableCellSlotProps>(\"td\", \"cell\");\n","import {\n TableRootSlot,\n TableCaptionSlot,\n TableHeaderSlot,\n TableBodySlot,\n TableFooterSlot,\n TableRowSlot,\n TableColumnHeaderSlot,\n TableCellSlot,\n} from \"./table.slots\";\nimport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n} from \"./table.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { Box } from \"../box\";\n\n/**\n * # Table\n *\n * Component for displaying tabular data.\n *\n * Built on top of Chakra UI's Table component with Nimbus theming.\n *\n * @supportsStyleProps\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/table}\n *\n * @example\n * ```tsx\n * <Table.Root>\n * <Table.Header>\n * <Table.Row>\n * <Table.ColumnHeader>Name</Table.ColumnHeader>\n * </Table.Row>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row>\n * <Table.Cell>John</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table.Root>\n * ```\n */\n\n/**\n * Table.Root\n *\n * The root table container that provides context for all table slots.\n *\n * @supportsStyleProps\n */\nexport const TableRoot = (props: TableRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"nimbusTable\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, htmlProps] = extractStyleProps(restRecipeProps);\n\n return (\n <TableRootSlot ref={ref} {...recipeProps} {...styleProps} {...htmlProps} />\n );\n};\nTableRoot.displayName = \"Table.Root\";\n\nexport const TableCaption = (props: TableCaptionProps) => {\n return <TableCaptionSlot {...props} />;\n};\nTableCaption.displayName = \"Table.Caption\";\n\nexport const TableHeader = (props: TableHeaderProps) => {\n return <TableHeaderSlot {...props} />;\n};\nTableHeader.displayName = \"Table.Header\";\n\nexport const TableBody = (props: TableBodyProps) => {\n return <TableBodySlot {...props} />;\n};\nTableBody.displayName = \"Table.Body\";\n\nexport const TableFooter = (props: TableFooterProps) => {\n return <TableFooterSlot {...props} />;\n};\nTableFooter.displayName = \"Table.Footer\";\n\nexport const TableRow = (props: TableRowProps) => {\n return <TableRowSlot {...props} />;\n};\nTableRow.displayName = \"Table.Row\";\n\nexport const TableColumnHeader = (props: TableColumnHeaderProps) => {\n return <TableColumnHeaderSlot {...props} />;\n};\nTableColumnHeader.displayName = \"Table.ColumnHeader\";\n\nexport const TableCell = (props: TableCellProps) => {\n return <TableCellSlot {...props} />;\n};\nTableCell.displayName = \"Table.Cell\";\n\nexport const TableScrollArea = (props: TableScrollAreaProps) => {\n return <Box as=\"div\" overflow=\"auto\" {...props} />;\n};\nTableScrollArea.displayName = \"Table.ScrollArea\";\n\nexport const TableColumnGroup = (props: TableColumnGroupProps) => {\n return <Box as=\"colgroup\" {...props} />;\n};\nTableColumnGroup.displayName = \"Table.ColumnGroup\";\n\nexport const TableColumn = (props: TableColumnProps) => {\n return <Box as=\"col\" {...props} />;\n};\nTableColumn.displayName = \"Table.Column\";\n\n/**\n * Export Table with all sub-components as a compound component\n */\nexport const Table: {\n Root: typeof TableRoot;\n Caption: typeof TableCaption;\n Header: typeof TableHeader;\n Body: typeof TableBody;\n Footer: typeof TableFooter;\n Row: typeof TableRow;\n ColumnHeader: typeof TableColumnHeader;\n Cell: typeof TableCell;\n ScrollArea: typeof TableScrollArea;\n ColumnGroup: typeof TableColumnGroup;\n Column: typeof TableColumn;\n} = {\n Root: TableRoot,\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n ColumnHeader: TableColumnHeader,\n Cell: TableCell,\n ScrollArea: TableScrollArea,\n ColumnGroup: TableColumnGroup,\n Column: TableColumn,\n};\n\nexport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","TableRootSlot","TableCaptionSlot","TableHeaderSlot","TableBodySlot","TableFooterSlot","TableRowSlot","TableColumnHeaderSlot","TableCellSlot","TableRoot","props","ref","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","htmlProps","extractStyleProps","jsx","TableCaption","TableHeader","TableBody","TableFooter","TableRow","TableColumnHeader","TableCell","TableScrollArea","Box","TableColumnGroup","TableColumn","Table"],"mappings":"oLAMM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAGYC,EAGTH,EAAmD,QAAS,MAAM,EAGzDI,EAGTH,EACF,UACA,SACF,EAGaI,EAGTJ,EACF,QACA,QACF,EAGaK,EAGTL,EAAyD,QAAS,MAAM,EAG/DM,EAGTN,EACF,QACA,QACF,EAGaO,EAGTP,EAAoD,KAAM,KAAK,EAGtDQ,EAGTR,EACF,KACA,cACF,EAGaS,EAGTT,EAAsD,KAAM,MAAM,ECNzDU,EAAaC,GAA0B,CAClD,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EACxBG,EAASC,EAAAA,cAAc,CAAE,IAAK,cAAe,EAC7C,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAS,EACnE,CAACK,EAAYC,CAAS,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE,OACEI,EAAAA,IAACnB,GAAc,IAAAU,EAAW,GAAGI,EAAc,GAAGE,EAAa,GAAGC,EAAW,CAE7E,EACAT,EAAU,YAAc,aAEjB,MAAMY,EAAgBX,GACpBU,MAAClB,EAAA,CAAkB,GAAGQ,CAAA,CAAO,EAEtCW,EAAa,YAAc,gBAEpB,MAAMC,EAAeZ,GACnBU,MAACjB,EAAA,CAAiB,GAAGO,CAAA,CAAO,EAErCY,EAAY,YAAc,eAEnB,MAAMC,EAAab,GACjBU,MAAChB,EAAA,CAAe,GAAGM,CAAA,CAAO,EAEnCa,EAAU,YAAc,aAEjB,MAAMC,EAAed,GACnBU,MAACf,EAAA,CAAiB,GAAGK,CAAA,CAAO,EAErCc,EAAY,YAAc,eAEnB,MAAMC,EAAYf,GAChBU,MAACd,EAAA,CAAc,GAAGI,CAAA,CAAO,EAElCe,EAAS,YAAc,YAEhB,MAAMC,EAAqBhB,GACzBU,MAACb,EAAA,CAAuB,GAAGG,CAAA,CAAO,EAE3CgB,EAAkB,YAAc,qBAEzB,MAAMC,EAAajB,GACjBU,MAACZ,EAAA,CAAe,GAAGE,CAAA,CAAO,EAEnCiB,EAAU,YAAc,aAEjB,MAAMC,EAAmBlB,SACtBmB,EAAAA,IAAA,CAAI,GAAG,MAAM,SAAS,OAAQ,GAAGnB,EAAO,EAElDkB,EAAgB,YAAc,mBAEvB,MAAME,EAAoBpB,GACxBU,EAAAA,IAACS,EAAAA,IAAA,CAAI,GAAG,WAAY,GAAGnB,EAAO,EAEvCoB,EAAiB,YAAc,oBAExB,MAAMC,EAAerB,GACnBU,EAAAA,IAACS,EAAAA,IAAA,CAAI,GAAG,MAAO,GAAGnB,EAAO,EAElCqB,EAAY,YAAc,eAKnB,MAAMC,EAYT,CACF,KAAMvB,EACN,QAASY,EACT,OAAQC,EACR,KAAMC,EACN,OAAQC,EACR,IAAKC,EACL,aAAcC,EACd,KAAMC,EACN,WAAYC,EACZ,YAAaE,EACb,OAAQC,CACV"}
1
+ {"version":3,"file":"table-I9vNdwDu.cjs.js","sources":["../../src/components/table/table.slots.tsx","../../src/components/table/table.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react/styled-system\";\nimport type { SlotComponent } from \"@/type-utils\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"nimbusTable\",\n});\n\nexport type TableRootSlotProps = HTMLChakraProps<\"table\">;\nexport const TableRootSlot: SlotComponent<\n HTMLTableElement,\n TableRootSlotProps\n> = withProvider<HTMLTableElement, TableRootSlotProps>(\"table\", \"root\");\n\nexport type TableCaptionSlotProps = HTMLChakraProps<\"caption\">;\nexport const TableCaptionSlot: SlotComponent<\n HTMLTableCaptionElement,\n TableCaptionSlotProps\n> = withContext<HTMLTableCaptionElement, TableCaptionSlotProps>(\n \"caption\",\n \"caption\"\n);\n\nexport type TableHeaderSlotProps = HTMLChakraProps<\"thead\">;\nexport const TableHeaderSlot: SlotComponent<\n HTMLTableSectionElement,\n TableHeaderSlotProps\n> = withContext<HTMLTableSectionElement, TableHeaderSlotProps>(\n \"thead\",\n \"header\"\n);\n\nexport type TableBodySlotProps = HTMLChakraProps<\"tbody\">;\nexport const TableBodySlot: SlotComponent<\n HTMLTableSectionElement,\n TableBodySlotProps\n> = withContext<HTMLTableSectionElement, TableBodySlotProps>(\"tbody\", \"body\");\n\nexport type TableFooterSlotProps = HTMLChakraProps<\"tfoot\">;\nexport const TableFooterSlot: SlotComponent<\n HTMLTableSectionElement,\n TableFooterSlotProps\n> = withContext<HTMLTableSectionElement, TableFooterSlotProps>(\n \"tfoot\",\n \"footer\"\n);\n\nexport type TableRowSlotProps = HTMLChakraProps<\"tr\">;\nexport const TableRowSlot: SlotComponent<\n HTMLTableRowElement,\n TableRowSlotProps\n> = withContext<HTMLTableRowElement, TableRowSlotProps>(\"tr\", \"row\");\n\nexport type TableColumnHeaderSlotProps = HTMLChakraProps<\"th\">;\nexport const TableColumnHeaderSlot: SlotComponent<\n HTMLTableCellElement,\n TableColumnHeaderSlotProps\n> = withContext<HTMLTableCellElement, TableColumnHeaderSlotProps>(\n \"th\",\n \"columnHeader\"\n);\n\nexport type TableCellSlotProps = HTMLChakraProps<\"td\">;\nexport const TableCellSlot: SlotComponent<\n HTMLTableCellElement,\n TableCellSlotProps\n> = withContext<HTMLTableCellElement, TableCellSlotProps>(\"td\", \"cell\");\n","import {\n TableRootSlot,\n TableCaptionSlot,\n TableHeaderSlot,\n TableBodySlot,\n TableFooterSlot,\n TableRowSlot,\n TableColumnHeaderSlot,\n TableCellSlot,\n} from \"./table.slots\";\nimport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n} from \"./table.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { Box } from \"../box\";\n\n/**\n * # Table\n *\n * Component for displaying tabular data.\n *\n * Built on top of Chakra UI's Table component with Nimbus theming.\n *\n * @supportsStyleProps\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/table}\n *\n * @example\n * ```tsx\n * <Table.Root>\n * <Table.Header>\n * <Table.Row>\n * <Table.ColumnHeader>Name</Table.ColumnHeader>\n * </Table.Row>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row>\n * <Table.Cell>John</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table.Root>\n * ```\n */\n\n/**\n * Table.Root\n *\n * The root table container that provides context for all table slots.\n *\n * @supportsStyleProps\n */\nexport const TableRoot = (props: TableRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"nimbusTable\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, htmlProps] = extractStyleProps(restRecipeProps);\n\n return (\n <TableRootSlot ref={ref} {...recipeProps} {...styleProps} {...htmlProps} />\n );\n};\nTableRoot.displayName = \"Table.Root\";\n\nexport const TableCaption = (props: TableCaptionProps) => {\n return <TableCaptionSlot {...props} />;\n};\nTableCaption.displayName = \"Table.Caption\";\n\nexport const TableHeader = (props: TableHeaderProps) => {\n return <TableHeaderSlot {...props} />;\n};\nTableHeader.displayName = \"Table.Header\";\n\nexport const TableBody = (props: TableBodyProps) => {\n return <TableBodySlot {...props} />;\n};\nTableBody.displayName = \"Table.Body\";\n\nexport const TableFooter = (props: TableFooterProps) => {\n return <TableFooterSlot {...props} />;\n};\nTableFooter.displayName = \"Table.Footer\";\n\nexport const TableRow = (props: TableRowProps) => {\n return <TableRowSlot {...props} />;\n};\nTableRow.displayName = \"Table.Row\";\n\nexport const TableColumnHeader = (props: TableColumnHeaderProps) => {\n return <TableColumnHeaderSlot {...props} />;\n};\nTableColumnHeader.displayName = \"Table.ColumnHeader\";\n\nexport const TableCell = (props: TableCellProps) => {\n return <TableCellSlot {...props} />;\n};\nTableCell.displayName = \"Table.Cell\";\n\nexport const TableScrollArea = (props: TableScrollAreaProps) => {\n return <Box as=\"div\" overflow=\"auto\" {...props} />;\n};\nTableScrollArea.displayName = \"Table.ScrollArea\";\n\nexport const TableColumnGroup = (props: TableColumnGroupProps) => {\n return <Box as=\"colgroup\" {...props} />;\n};\nTableColumnGroup.displayName = \"Table.ColumnGroup\";\n\nexport const TableColumn = (props: TableColumnProps) => {\n return <Box as=\"col\" {...props} />;\n};\nTableColumn.displayName = \"Table.Column\";\n\n/**\n * Export Table with all sub-components as a compound component\n */\nexport const Table: {\n Root: typeof TableRoot;\n Caption: typeof TableCaption;\n Header: typeof TableHeader;\n Body: typeof TableBody;\n Footer: typeof TableFooter;\n Row: typeof TableRow;\n ColumnHeader: typeof TableColumnHeader;\n Cell: typeof TableCell;\n ScrollArea: typeof TableScrollArea;\n ColumnGroup: typeof TableColumnGroup;\n Column: typeof TableColumn;\n} = {\n Root: TableRoot,\n Caption: TableCaption,\n Header: TableHeader,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n ColumnHeader: TableColumnHeader,\n Cell: TableCell,\n ScrollArea: TableScrollArea,\n ColumnGroup: TableColumnGroup,\n Column: TableColumn,\n};\n\nexport type {\n TableRootProps,\n TableCaptionProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableColumnHeaderProps,\n TableCellProps,\n TableScrollAreaProps,\n TableColumnGroupProps,\n TableColumnProps,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","TableRootSlot","TableCaptionSlot","TableHeaderSlot","TableBodySlot","TableFooterSlot","TableRowSlot","TableColumnHeaderSlot","TableCellSlot","TableRoot","props","ref","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","htmlProps","extractStyleProps","jsx","TableCaption","TableHeader","TableBody","TableFooter","TableRow","TableColumnHeader","TableCell","TableScrollArea","Box","TableColumnGroup","TableColumn","Table"],"mappings":"oLAMM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAGYC,EAGTH,EAAmD,QAAS,MAAM,EAGzDI,EAGTH,EACF,UACA,SACF,EAGaI,EAGTJ,EACF,QACA,QACF,EAGaK,EAGTL,EAAyD,QAAS,MAAM,EAG/DM,EAGTN,EACF,QACA,QACF,EAGaO,EAGTP,EAAoD,KAAM,KAAK,EAGtDQ,EAGTR,EACF,KACA,cACF,EAGaS,EAGTT,EAAsD,KAAM,MAAM,ECNzDU,EAAaC,GAA0B,CAClD,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EACxBG,EAASC,EAAAA,cAAc,CAAE,IAAK,cAAe,EAC7C,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAS,EACnE,CAACK,EAAYC,CAAS,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE,OACEI,EAAAA,IAACnB,GAAc,IAAAU,EAAW,GAAGI,EAAc,GAAGE,EAAa,GAAGC,EAAW,CAE7E,EACAT,EAAU,YAAc,aAEjB,MAAMY,EAAgBX,GACpBU,MAAClB,EAAA,CAAkB,GAAGQ,CAAA,CAAO,EAEtCW,EAAa,YAAc,gBAEpB,MAAMC,EAAeZ,GACnBU,MAACjB,EAAA,CAAiB,GAAGO,CAAA,CAAO,EAErCY,EAAY,YAAc,eAEnB,MAAMC,EAAab,GACjBU,MAAChB,EAAA,CAAe,GAAGM,CAAA,CAAO,EAEnCa,EAAU,YAAc,aAEjB,MAAMC,EAAed,GACnBU,MAACf,EAAA,CAAiB,GAAGK,CAAA,CAAO,EAErCc,EAAY,YAAc,eAEnB,MAAMC,EAAYf,GAChBU,MAACd,EAAA,CAAc,GAAGI,CAAA,CAAO,EAElCe,EAAS,YAAc,YAEhB,MAAMC,EAAqBhB,GACzBU,MAACb,EAAA,CAAuB,GAAGG,CAAA,CAAO,EAE3CgB,EAAkB,YAAc,qBAEzB,MAAMC,EAAajB,GACjBU,MAACZ,EAAA,CAAe,GAAGE,CAAA,CAAO,EAEnCiB,EAAU,YAAc,aAEjB,MAAMC,EAAmBlB,SACtBmB,EAAAA,IAAA,CAAI,GAAG,MAAM,SAAS,OAAQ,GAAGnB,EAAO,EAElDkB,EAAgB,YAAc,mBAEvB,MAAME,EAAoBpB,GACxBU,EAAAA,IAACS,EAAAA,IAAA,CAAI,GAAG,WAAY,GAAGnB,EAAO,EAEvCoB,EAAiB,YAAc,oBAExB,MAAMC,EAAerB,GACnBU,EAAAA,IAACS,EAAAA,IAAA,CAAI,GAAG,MAAO,GAAGnB,EAAO,EAElCqB,EAAY,YAAc,eAKnB,MAAMC,EAYT,CACF,KAAMvB,EACN,QAASY,EACT,OAAQC,EACR,KAAMC,EACN,OAAQC,EACR,IAAKC,EACL,aAAcC,EACd,KAAMC,EACN,WAAYC,EACZ,YAAaE,EACb,OAAQC,CACV"}
@@ -1,2 +1,2 @@
1
- "use strict";const b=require("react/jsx-runtime"),x=require("./utils-Dn-IhiTh.cjs.js"),K=require("./SelectionManager-DCvmq5pa.cjs.js"),N=require("./SelectionIndicator-Du7-bvy3.cjs.js"),S=require("./CollectionBuilder-C_QqJynd.cjs.js"),W=require("./Hidden-pXvWRTeY.cjs.js"),p=require("./mergeProps-BAXAqyMT.cjs.js"),m=require("./filterDOMProps-AbzzCIX-.cjs.js"),I=require("./useObjectRef-4v2MxSjQ.cjs.js"),M=require("./useListState-xpfKx1uw.cjs.js"),O=require("./animation-BmCHvba5.cjs.js"),r=require("react"),_=require("./useFocusVisible-DXIbYUB8.cjs.js"),G=require("./useFocusable-Tx8137XZ.cjs.js"),V=require("./useLabels-By-QBOAK.cjs.js"),J=require("./useHasTabbableChild-DTwzcNq5.cjs.js"),Q=require("./context-XwB7Jud0.cjs.js"),L=require("./useFocusRing-DQPYgiqV.cjs.js"),X=require("./useHover-BU1r4b8G.cjs.js"),Y=require("./useControlledState-DLAEsTLd.cjs.js"),q=require("@chakra-ui/react/styled-system"),H=require("./extract-style-props-xZ29rO70.cjs.js"),z=new WeakMap;function T(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=z.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function Z(i,e,t){let{key:a,isDisabled:s,shouldSelectOnPressUp:l}=i,{selectionManager:d,selectedKey:c}=e,n=a===c,o=s||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:f,isPressed:u}=K.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:d,key:a,ref:t,isDisabled:o,shouldSelectOnPressUp:l,linkBehavior:"selection"}),y=T(e,a,"tab"),h=T(e,a,"tabpanel"),{tabIndex:v}=f,$=e.collection.getItem(a),g=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($?.props,{labelable:!0});delete g.id;let B=_.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($?.props),{focusableProps:U}=G.$f645667febf57a63$export$4c014de7c8940b4c({...$?.props,isDisabled:o},t);return{tabProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(g,U,B,f,{id:y,"aria-selected":n,"aria-disabled":o||void 0,"aria-controls":n?h:void 0,tabIndex:o?void 0:v,role:"tab"}),isSelected:n,isDisabled:o,isPressed:u}}function ee(i,e,t){let a=J.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var s;const l=T(e,(s=i.id)!==null&&s!==void 0?s:e?.selectedKey,"tabpanel"),d=V.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:l,"aria-labelledby":T(e,e?.selectedKey,"tab")});return{tabPanelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(d,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class te{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,s=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=s,this.tabDirection=a==="horizontal"}}function ie(i,e,t){let{orientation:a="horizontal",keyboardActivation:s="automatic"}=i,{collection:l,selectionManager:d,disabledKeys:c}=e,{direction:n}=Q.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=r.useMemo(()=>new te(l,n,a,c),[l,c,a,n]),{collectionProps:f}=K.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:d,keyboardDelegate:o,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),u=p.$bdb11010cef70236$export$f680877a34711e37();z.set(e,u);let y=V.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:u});return{tabListProps:{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,y),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function ae(i){var e;let[t,a]=Y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i.selectedKey,(e=i.defaultSelectedKey)!==null&&e!==void 0?e:null,i.onSelectionChange),s=r.useMemo(()=>t!=null?[t]:[],[t]),{collection:l,disabledKeys:d,selectionManager:c}=M.$e72dd72e1c76a225$export$2f645645f7bca764({...i,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:o=>{if(o==="all")return;var f;let u=(f=o.values().next().value)!==null&&f!==void 0?f:null;u===t&&i.onSelectionChange&&i.onSelectionChange(u),a(u)}}),n=t!=null?l.getItem(t):null;return{collection:l,disabledKeys:d,selectionManager:c,selectedKey:t,setSelectedKey:a,selectedItem:n}}function le(i){var e,t;let a=ae({...i,onSelectionChange:i.onSelectionChange?n=>{var o;n!=null&&((o=i.onSelectionChange)===null||o===void 0||o.call(i,n))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:k(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:s,collection:l,selectedKey:d}=a,c=r.useRef(d);return r.useEffect(()=>{let n=d;i.selectedKey==null&&(s.isEmpty||n==null||!l.getItem(n))&&(n=k(l,a.disabledKeys),n!=null&&s.setSelectedKeys([n])),(n!=null&&s.focusedKey==null||!s.isFocused&&n!==c.current)&&s.setFocusedKey(n),c.current=n}),{...a,isDisabled:i.isDisabled||!1}}function k(i,e){let t=null;if(i){var a,s,l,d;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((s=i.getItem(t))===null||s===void 0||(a=s.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((d=i.getItem(t))===null||d===void 0||(l=d.props)===null||l===void 0)&&l.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=r.createContext(null),P=r.createContext(null),se=r.forwardRef(function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:s="horizontal"}=e;return a=r.useMemo(()=>typeof a=="function"?a({orientation:s,defaultChildren:null}):a,[a,s]),r.createElement(S.$e1995378a142960e$export$bf788dd355e3a401,{content:a},l=>r.createElement(de,{props:e,collection:l,tabsRef:t}))});function de({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,s=le({...i,collection:t,children:void 0}),{focusProps:l,isFocused:d,isFocusVisible:c}=L.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),n=r.useMemo(()=>({orientation:a,isFocusWithin:d,isFocusVisible:c}),[a,d,c]),o=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:n}),f=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,o,l),ref:e,slot:i.slot||void 0,"data-focused":d||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":s.isDisabled||void 0},r.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[P,s]]},o.children))}const ne=r.forwardRef(function(e,t){return r.useContext(P)?r.createElement(re,{props:e,forwardedRef:t}):r.createElement(S.$e1995378a142960e$export$fb8073518f34e6ec,e)});function re({props:i,forwardedRef:e}){let t=r.useContext(P),{CollectionRoot:a}=r.useContext(K.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:s="horizontal",keyboardActivation:l="automatic"}=x.$64fa3d84918910a7$export$fabf2dc03a41866e(D),d=I.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=ie({...i,orientation:s,keyboardActivation:l},t,d),n=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:s,state:t}}),o=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete o.id,r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,c),ref:d,"data-orientation":s||void 0},r.createElement(N.$c8a5a149f625efcf$export$758399f318e6385a,null,r.createElement(a,{collection:t.collection,persistedKeys:K.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class A extends S.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}A.type="item";const oe=S.$e1995378a142960e$export$18af5c7a9e9b3664(A,(i,e,t)=>{let a=r.useContext(P),s=I.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:l,isSelected:d,isDisabled:c,isPressed:n}=Z({key:t.key,...i},a,s),{focusProps:o,isFocused:f,isFocusVisible:u}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:y,isHovered:h}=X.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),v=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:d,isDisabled:c,isFocused:f,isFocusVisible:u,isPressed:n,isHovered:h}}),$=t.props.href?x.$64fa3d84918910a7$export$df3a06d6289f983e.a:x.$64fa3d84918910a7$export$df3a06d6289f983e.div,g=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete g.id,delete g.onClick,r.createElement($,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(g,v,l,o,y),ref:s,"data-selected":d||void 0,"data-disabled":c||void 0,"data-focused":f||void 0,"data-focus-visible":u||void 0,"data-pressed":n||void 0,"data-hovered":h||void 0},r.createElement(N.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:d}},v.children))}),ce=W.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=r.useContext(P);let s=I.$df56164dff5785e2$export$4338b53315abf666(t),l=a.selectedKey===e.id,[d,c]=r.useState(a.selectedKey!=null?l:null);d==null&&a.selectedKey!=null?c(l):!l&&d&&c(!1);let n=O.$d3f049242431219c$export$45fda7c47f93fd48(s,l);return!l&&!e.shouldForceMount&&!n?null:r.createElement(fe,{...e,tabPanelRef:s,isInitiallySelected:d||!1,isExiting:n})});function fe(i){let e=r.useContext(P),{id:t,tabPanelRef:a,isInitiallySelected:s,isExiting:l,...d}=i,{tabPanelProps:c}=ee(i,e,a),{focusProps:n,isFocused:o,isFocusVisible:f}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),u=e.selectedKey===i.id,y=O.$d3f049242431219c$export$6d3443f2c48bfc20(a)&&!s,h=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-TabPanel",values:{isFocused:o,isFocusVisible:f,isInert:M.$cdc5a6778b766db2$export$a9d04c5684123369(!u),isEntering:y,isExiting:l,state:e}}),v=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(d,{global:!0});delete v.id;let $=u?p.$3ef42575df84b30b$export$9d1611c77c2fe928(v,c,n,h):p.$3ef42575df84b30b$export$9d1611c77c2fe928(v,h);return r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...$,ref:a,"data-focused":o||void 0,"data-focus-visible":f||void 0,inert:M.$cdc5a6778b766db2$export$a9d04c5684123369(!u||i.inert),"data-inert":u?void 0:"true","data-entering":y||void 0,"data-exiting":l||void 0},r.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[P,null]]},r.createElement(K.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:K.$7135fc7d473fd974$export$a164736487e3f0ae},h.children)))}const{withProvider:ue,withContext:C}=q.createSlotRecipeContext({key:"nimbusTabs"}),be=ue("div","root"),$e=C("div","list"),xe=C("button","tab"),pe=C("div","panels"),ye=C("div","panel"),E=({children:i,isDisabled:e,href:t,target:a,rel:s,routerOptions:l,...d})=>b.jsx(xe,{asChild:!0,...d,children:b.jsx(oe,{isDisabled:e,href:t,target:a,rel:s,routerOptions:l,children:i})});E.displayName="Tabs.Tab";const F=({tabs:i,children:e,...t})=>{const[a,s]=H.extractStyleProps(t);if(!i&&!e)throw new Error('Tabs.List: Either provide "tabs" prop or "children" must be provided');return b.jsx($e,{...a,asChild:!0,children:b.jsx(ne,{items:i,...s,children:i?l=>b.jsx(E,{id:l.id,isDisabled:l.isDisabled,href:l.href,target:l.target,rel:l.rel,routerOptions:l.routerOptions,children:l.tabLabel},l.id):e})})};F.displayName="Tabs.List";const R=({children:i,ref:e,shouldForceMount:t,...a})=>{if(!i)throw new Error("Tabs.Panel: children prop is required");return b.jsx(ye,{asChild:!0,ref:e,...a,children:b.jsx(ce,{shouldForceMount:t,children:i})})};R.displayName="Tabs.Panel";const w=({tabs:i,children:e,...t})=>{if(!i&&!e)throw new Error('Tabs.Panels: Either provide "items" prop or "children" must be provided');return b.jsx(pe,{...t,children:i?b.jsx(S.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:a=>b.jsx(R,{id:a.id,children:a.panelContent},a.id)}):e})};w.displayName="Tabs.Panels";const j=({children:i,tabs:e,tabListAriaLabel:t,...a})=>{const s=q.useChakraContext(),l=q.useSlotRecipe({key:"nimbusTabs"}),[d,c]=l.splitVariantProps(a),[n,o]=H.extractStyleProps(c),f=s.normalizeValue(d.orientation);return b.jsx(be,{asChild:!0,...d,...n,children:b.jsx(se,{...o,orientation:f,children:i||b.jsxs(b.Fragment,{children:[b.jsx(F,{tabs:e,"aria-label":t}),b.jsx(w,{tabs:e})]})})})};j.displayName="Tabs.Root";const he={Root:j,List:F,Tab:E,Panels:w,Panel:R};exports.Tabs=he;exports.TabsList=F;exports.TabsPanel=R;exports.TabsPanels=w;exports.TabsRoot=j;exports.TabsTab=E;
2
- //# sourceMappingURL=tabs-CVx3v_oi.cjs.js.map
1
+ "use strict";const b=require("react/jsx-runtime"),x=require("./utils-Dn-IhiTh.cjs.js"),K=require("./SelectionManager-DCvmq5pa.cjs.js"),N=require("./SelectionIndicator-Du7-bvy3.cjs.js"),S=require("./CollectionBuilder-C_QqJynd.cjs.js"),W=require("./Hidden-pXvWRTeY.cjs.js"),p=require("./mergeProps-BAXAqyMT.cjs.js"),m=require("./filterDOMProps-AbzzCIX-.cjs.js"),I=require("./useObjectRef-4v2MxSjQ.cjs.js"),M=require("./useListState-xpfKx1uw.cjs.js"),O=require("./animation-BmCHvba5.cjs.js"),r=require("react"),_=require("./useFocusVisible-DXIbYUB8.cjs.js"),G=require("./useFocusable-Tx8137XZ.cjs.js"),V=require("./useLabels-By-QBOAK.cjs.js"),J=require("./useHasTabbableChild-DTwzcNq5.cjs.js"),Q=require("./context-XwB7Jud0.cjs.js"),L=require("./useFocusRing-DQPYgiqV.cjs.js"),X=require("./useHover-BU1r4b8G.cjs.js"),Y=require("./useControlledState-DLAEsTLd.cjs.js"),q=require("@chakra-ui/react/styled-system"),H=require("./extract-style-props-7Kq9mybq.cjs.js"),z=new WeakMap;function T(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=z.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function Z(i,e,t){let{key:a,isDisabled:s,shouldSelectOnPressUp:l}=i,{selectionManager:d,selectedKey:c}=e,n=a===c,o=s||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:f,isPressed:u}=K.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:d,key:a,ref:t,isDisabled:o,shouldSelectOnPressUp:l,linkBehavior:"selection"}),y=T(e,a,"tab"),h=T(e,a,"tabpanel"),{tabIndex:v}=f,$=e.collection.getItem(a),g=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($?.props,{labelable:!0});delete g.id;let B=_.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($?.props),{focusableProps:U}=G.$f645667febf57a63$export$4c014de7c8940b4c({...$?.props,isDisabled:o},t);return{tabProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(g,U,B,f,{id:y,"aria-selected":n,"aria-disabled":o||void 0,"aria-controls":n?h:void 0,tabIndex:o?void 0:v,role:"tab"}),isSelected:n,isDisabled:o,isPressed:u}}function ee(i,e,t){let a=J.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var s;const l=T(e,(s=i.id)!==null&&s!==void 0?s:e?.selectedKey,"tabpanel"),d=V.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:l,"aria-labelledby":T(e,e?.selectedKey,"tab")});return{tabPanelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(d,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class te{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,s=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=s,this.tabDirection=a==="horizontal"}}function ie(i,e,t){let{orientation:a="horizontal",keyboardActivation:s="automatic"}=i,{collection:l,selectionManager:d,disabledKeys:c}=e,{direction:n}=Q.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=r.useMemo(()=>new te(l,n,a,c),[l,c,a,n]),{collectionProps:f}=K.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:d,keyboardDelegate:o,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),u=p.$bdb11010cef70236$export$f680877a34711e37();z.set(e,u);let y=V.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:u});return{tabListProps:{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,y),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function ae(i){var e;let[t,a]=Y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i.selectedKey,(e=i.defaultSelectedKey)!==null&&e!==void 0?e:null,i.onSelectionChange),s=r.useMemo(()=>t!=null?[t]:[],[t]),{collection:l,disabledKeys:d,selectionManager:c}=M.$e72dd72e1c76a225$export$2f645645f7bca764({...i,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:o=>{if(o==="all")return;var f;let u=(f=o.values().next().value)!==null&&f!==void 0?f:null;u===t&&i.onSelectionChange&&i.onSelectionChange(u),a(u)}}),n=t!=null?l.getItem(t):null;return{collection:l,disabledKeys:d,selectionManager:c,selectedKey:t,setSelectedKey:a,selectedItem:n}}function le(i){var e,t;let a=ae({...i,onSelectionChange:i.onSelectionChange?n=>{var o;n!=null&&((o=i.onSelectionChange)===null||o===void 0||o.call(i,n))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:k(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:s,collection:l,selectedKey:d}=a,c=r.useRef(d);return r.useEffect(()=>{let n=d;i.selectedKey==null&&(s.isEmpty||n==null||!l.getItem(n))&&(n=k(l,a.disabledKeys),n!=null&&s.setSelectedKeys([n])),(n!=null&&s.focusedKey==null||!s.isFocused&&n!==c.current)&&s.setFocusedKey(n),c.current=n}),{...a,isDisabled:i.isDisabled||!1}}function k(i,e){let t=null;if(i){var a,s,l,d;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((s=i.getItem(t))===null||s===void 0||(a=s.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((d=i.getItem(t))===null||d===void 0||(l=d.props)===null||l===void 0)&&l.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=r.createContext(null),P=r.createContext(null),se=r.forwardRef(function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:s="horizontal"}=e;return a=r.useMemo(()=>typeof a=="function"?a({orientation:s,defaultChildren:null}):a,[a,s]),r.createElement(S.$e1995378a142960e$export$bf788dd355e3a401,{content:a},l=>r.createElement(de,{props:e,collection:l,tabsRef:t}))});function de({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,s=le({...i,collection:t,children:void 0}),{focusProps:l,isFocused:d,isFocusVisible:c}=L.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),n=r.useMemo(()=>({orientation:a,isFocusWithin:d,isFocusVisible:c}),[a,d,c]),o=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:n}),f=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,o,l),ref:e,slot:i.slot||void 0,"data-focused":d||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":s.isDisabled||void 0},r.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[P,s]]},o.children))}const ne=r.forwardRef(function(e,t){return r.useContext(P)?r.createElement(re,{props:e,forwardedRef:t}):r.createElement(S.$e1995378a142960e$export$fb8073518f34e6ec,e)});function re({props:i,forwardedRef:e}){let t=r.useContext(P),{CollectionRoot:a}=r.useContext(K.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:s="horizontal",keyboardActivation:l="automatic"}=x.$64fa3d84918910a7$export$fabf2dc03a41866e(D),d=I.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=ie({...i,orientation:s,keyboardActivation:l},t,d),n=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:s,state:t}}),o=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete o.id,r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,c),ref:d,"data-orientation":s||void 0},r.createElement(N.$c8a5a149f625efcf$export$758399f318e6385a,null,r.createElement(a,{collection:t.collection,persistedKeys:K.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class A extends S.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}A.type="item";const oe=S.$e1995378a142960e$export$18af5c7a9e9b3664(A,(i,e,t)=>{let a=r.useContext(P),s=I.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:l,isSelected:d,isDisabled:c,isPressed:n}=Z({key:t.key,...i},a,s),{focusProps:o,isFocused:f,isFocusVisible:u}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:y,isHovered:h}=X.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),v=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:d,isDisabled:c,isFocused:f,isFocusVisible:u,isPressed:n,isHovered:h}}),$=t.props.href?x.$64fa3d84918910a7$export$df3a06d6289f983e.a:x.$64fa3d84918910a7$export$df3a06d6289f983e.div,g=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete g.id,delete g.onClick,r.createElement($,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(g,v,l,o,y),ref:s,"data-selected":d||void 0,"data-disabled":c||void 0,"data-focused":f||void 0,"data-focus-visible":u||void 0,"data-pressed":n||void 0,"data-hovered":h||void 0},r.createElement(N.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:d}},v.children))}),ce=W.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=r.useContext(P);let s=I.$df56164dff5785e2$export$4338b53315abf666(t),l=a.selectedKey===e.id,[d,c]=r.useState(a.selectedKey!=null?l:null);d==null&&a.selectedKey!=null?c(l):!l&&d&&c(!1);let n=O.$d3f049242431219c$export$45fda7c47f93fd48(s,l);return!l&&!e.shouldForceMount&&!n?null:r.createElement(fe,{...e,tabPanelRef:s,isInitiallySelected:d||!1,isExiting:n})});function fe(i){let e=r.useContext(P),{id:t,tabPanelRef:a,isInitiallySelected:s,isExiting:l,...d}=i,{tabPanelProps:c}=ee(i,e,a),{focusProps:n,isFocused:o,isFocusVisible:f}=L.$f7dceffc5ad7768b$export$4e328f61c538687f(),u=e.selectedKey===i.id,y=O.$d3f049242431219c$export$6d3443f2c48bfc20(a)&&!s,h=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-TabPanel",values:{isFocused:o,isFocusVisible:f,isInert:M.$cdc5a6778b766db2$export$a9d04c5684123369(!u),isEntering:y,isExiting:l,state:e}}),v=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(d,{global:!0});delete v.id;let $=u?p.$3ef42575df84b30b$export$9d1611c77c2fe928(v,c,n,h):p.$3ef42575df84b30b$export$9d1611c77c2fe928(v,h);return r.createElement(x.$64fa3d84918910a7$export$df3a06d6289f983e.div,{...$,ref:a,"data-focused":o||void 0,"data-focus-visible":f||void 0,inert:M.$cdc5a6778b766db2$export$a9d04c5684123369(!u||i.inert),"data-inert":u?void 0:"true","data-entering":y||void 0,"data-exiting":l||void 0},r.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[P,null]]},r.createElement(K.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:K.$7135fc7d473fd974$export$a164736487e3f0ae},h.children)))}const{withProvider:ue,withContext:C}=q.createSlotRecipeContext({key:"nimbusTabs"}),be=ue("div","root"),$e=C("div","list"),xe=C("button","tab"),pe=C("div","panels"),ye=C("div","panel"),E=({children:i,isDisabled:e,href:t,target:a,rel:s,routerOptions:l,...d})=>b.jsx(xe,{asChild:!0,...d,children:b.jsx(oe,{isDisabled:e,href:t,target:a,rel:s,routerOptions:l,children:i})});E.displayName="Tabs.Tab";const F=({tabs:i,children:e,...t})=>{const[a,s]=H.extractStyleProps(t);if(!i&&!e)throw new Error('Tabs.List: Either provide "tabs" prop or "children" must be provided');return b.jsx($e,{...a,asChild:!0,children:b.jsx(ne,{items:i,...s,children:i?l=>b.jsx(E,{id:l.id,isDisabled:l.isDisabled,href:l.href,target:l.target,rel:l.rel,routerOptions:l.routerOptions,children:l.tabLabel},l.id):e})})};F.displayName="Tabs.List";const R=({children:i,ref:e,shouldForceMount:t,...a})=>{if(!i)throw new Error("Tabs.Panel: children prop is required");return b.jsx(ye,{asChild:!0,ref:e,...a,children:b.jsx(ce,{shouldForceMount:t,children:i})})};R.displayName="Tabs.Panel";const w=({tabs:i,children:e,...t})=>{if(!i&&!e)throw new Error('Tabs.Panels: Either provide "items" prop or "children" must be provided');return b.jsx(pe,{...t,children:i?b.jsx(S.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:a=>b.jsx(R,{id:a.id,children:a.panelContent},a.id)}):e})};w.displayName="Tabs.Panels";const j=({children:i,tabs:e,tabListAriaLabel:t,...a})=>{const s=q.useChakraContext(),l=q.useSlotRecipe({key:"nimbusTabs"}),[d,c]=l.splitVariantProps(a),[n,o]=H.extractStyleProps(c),f=s.normalizeValue(d.orientation);return b.jsx(be,{asChild:!0,...d,...n,children:b.jsx(se,{...o,orientation:f,children:i||b.jsxs(b.Fragment,{children:[b.jsx(F,{tabs:e,"aria-label":t}),b.jsx(w,{tabs:e})]})})})};j.displayName="Tabs.Root";const he={Root:j,List:F,Tab:E,Panels:w,Panel:R};exports.Tabs=he;exports.TabsList=F;exports.TabsPanel=R;exports.TabsPanels=w;exports.TabsRoot=j;exports.TabsTab=E;
2
+ //# sourceMappingURL=tabs-Ce76FEWP.cjs.js.map