@nice2dev/ui 1.0.17 → 1.0.19

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 (180) hide show
  1. package/CHANGELOG.md +316 -0
  2. package/dist/NiceAlertDialog.doc-BST0-aVs.cjs +14 -0
  3. package/dist/NiceAlertDialog.doc-GRpJU_5Y.js +38 -0
  4. package/dist/NiceAnimatePresence.doc-BrttRpeS.js +36 -0
  5. package/dist/NiceAnimatePresence.doc-IdEWrSnT.cjs +12 -0
  6. package/dist/NiceCalendarScheduler.doc-Cc-DFMhR.js +33 -0
  7. package/dist/NiceCalendarScheduler.doc-TPe0kRBN.cjs +9 -0
  8. package/dist/NiceCameraFeed.doc-BJl0gdWv.js +31 -0
  9. package/dist/NiceCameraFeed.doc-Bt4eZ8MH.cjs +7 -0
  10. package/dist/NiceChip.doc-Bccf4IQe.cjs +7 -0
  11. package/dist/NiceChip.doc-DEsqjL7z.js +31 -0
  12. package/dist/NiceCombobox.doc-8hMzrsdM.js +34 -0
  13. package/dist/NiceCombobox.doc-C5IPnVuz.cjs +10 -0
  14. package/dist/NiceConfigProvider.doc-CKIudO44.js +32 -0
  15. package/dist/NiceConfigProvider.doc-bMLQj3Zx.cjs +8 -0
  16. package/dist/NiceCronEditor.doc-BThdELxx.js +31 -0
  17. package/dist/NiceCronEditor.doc-w_TbOWFo.cjs +7 -0
  18. package/dist/NiceDataList.doc-DHXrpTPT.cjs +9 -0
  19. package/dist/NiceDataList.doc-R8SchHqZ.js +33 -0
  20. package/dist/NiceDiagram.doc-CASS0Tnj.cjs +8 -0
  21. package/dist/NiceDiagram.doc-DGX-Hwhg.js +32 -0
  22. package/dist/NiceDocPage.doc-BVBe27kj.cjs +1 -0
  23. package/dist/NiceDocPage.doc-CDcL3Sqt.js +25 -0
  24. package/dist/NiceDrawingCanvas.doc-DYYFKKMW.js +32 -0
  25. package/dist/NiceDrawingCanvas.doc-wa684gbC.cjs +8 -0
  26. package/dist/NiceDropdown.doc-D2NS9hBT.js +35 -0
  27. package/dist/NiceDropdown.doc-dAgER8da.cjs +11 -0
  28. package/dist/NiceDropzone.doc-CVVNc9SE.cjs +9 -0
  29. package/dist/NiceDropzone.doc-aeajYWqU.js +33 -0
  30. package/dist/NiceEnergyMonitor.doc-BBnVKuwf.js +32 -0
  31. package/dist/NiceEnergyMonitor.doc-lf6CCIYi.cjs +8 -0
  32. package/dist/NiceErrorBoundary-COY0cEsF.js +762 -0
  33. package/dist/NiceErrorBoundary-CR-_ZScD.cjs +1 -0
  34. package/dist/NiceErrorBoundary-DBCCmeyl.js +770 -0
  35. package/dist/NiceErrorBoundary-V6wkSSLP.cjs +1 -0
  36. package/dist/NiceExpressionBuilder.doc-CTjqEcZR.cjs +8 -0
  37. package/dist/NiceExpressionBuilder.doc-Cu_ORFhd.js +32 -0
  38. package/dist/NiceFileExplorer.doc-B0aN041v.js +32 -0
  39. package/dist/NiceFileExplorer.doc-DNHYQF_t.cjs +8 -0
  40. package/dist/NiceFloatingActionButton.doc-BOlJwq4S.cjs +7 -0
  41. package/dist/NiceFloatingActionButton.doc-oYnwvMP9.js +31 -0
  42. package/dist/NiceFontPicker.doc-B10vOqeF.cjs +8 -0
  43. package/dist/NiceFontPicker.doc-DuPp0cDP.js +32 -0
  44. package/dist/NiceForm-COk1rNVa.js +5357 -0
  45. package/dist/NiceForm-CU8Dldq-.cjs +382 -0
  46. package/dist/NiceForm-DLADlHAQ.js +5383 -0
  47. package/dist/NiceForm-DUkduLqG.cjs +382 -0
  48. package/dist/NiceForm.css +1 -1
  49. package/dist/NiceGestureHandler.doc-9GGvVnM5.cjs +8 -0
  50. package/dist/NiceGestureHandler.doc-BduQU3SA.js +32 -0
  51. package/dist/NiceHeader.doc-Cxoy_f_k.cjs +6 -0
  52. package/dist/NiceHeader.doc-DjAVl-T4.js +30 -0
  53. package/dist/NiceImage.doc-COy4iVy1.js +34 -0
  54. package/dist/NiceImage.doc-CvnaTRj8.cjs +10 -0
  55. package/dist/NiceInPlaceEditor.doc-8nC6Kqvn.cjs +1 -0
  56. package/dist/NiceInPlaceEditor.doc-gF1XPyu5.js +25 -0
  57. package/dist/NiceInteractiveTimeline.doc-BTeASFR4.js +50 -0
  58. package/dist/NiceInteractiveTimeline.doc-WMOVQhMe.cjs +11 -0
  59. package/dist/NiceJsonEditor.doc-BpVa-AlY.js +31 -0
  60. package/dist/NiceJsonEditor.doc-DeyoVDQw.cjs +7 -0
  61. package/dist/NiceMegaMenu.doc-CO34gN43.cjs +7 -0
  62. package/dist/NiceMegaMenu.doc-DpchTBL6.js +31 -0
  63. package/dist/NiceMentionInput.doc-O0W58Unu.js +32 -0
  64. package/dist/NiceMentionInput.doc-ZSPjBsZc.cjs +8 -0
  65. package/dist/NiceModal-CIITx65V.cjs +1 -0
  66. package/dist/NiceModal-CN23FZsc.js +95 -0
  67. package/dist/NiceModal-CUdeVj-j.js +95 -0
  68. package/dist/NiceModal-Cc8R-DpX.cjs +1 -0
  69. package/dist/NiceModuleLifecyclePanel-4UEsYB5r.js +6553 -0
  70. package/dist/NiceModuleLifecyclePanel-BDnsr5ZW.js +6349 -0
  71. package/dist/NiceModuleLifecyclePanel-C6agdtTI.cjs +1 -0
  72. package/dist/NiceModuleLifecyclePanel-F1uN0gMh.cjs +1 -0
  73. package/dist/NiceModuleLifecyclePanel.css +1 -1
  74. package/dist/NiceMotion.doc-COF5BldG.cjs +9 -0
  75. package/dist/NiceMotion.doc-utheTBgM.js +33 -0
  76. package/dist/NiceMultiColumnComboBox.doc-Ben0Q0J0.cjs +1 -0
  77. package/dist/NiceMultiColumnComboBox.doc-CK1DppZI.js +25 -0
  78. package/dist/NiceNotificationList.doc-CBWusjJX.cjs +7 -0
  79. package/dist/NiceNotificationList.doc-D7lQIxK0.js +31 -0
  80. package/dist/NiceOfflineSync.doc-BLQFyOf2.cjs +8 -0
  81. package/dist/NiceOfflineSync.doc-CKWFmR3b.js +32 -0
  82. package/dist/NicePagination-B4U0LwZy.js +171 -0
  83. package/dist/NicePagination-CGQf54a9.cjs +1 -0
  84. package/dist/NicePagination-Cqr3Pe_F.js +171 -0
  85. package/dist/NicePagination-DyWWdtb3.cjs +1 -0
  86. package/dist/NicePinCodeInput-C6zJxUVf.cjs +419 -0
  87. package/dist/NicePinCodeInput-DG_-eXXJ.cjs +419 -0
  88. package/dist/NicePinCodeInput-g-yUiepm.js +11875 -0
  89. package/dist/NicePinCodeInput-ltwzQf4r.js +12240 -0
  90. package/dist/NicePinCodeInput.css +1 -1
  91. package/dist/NicePreview.doc-Cl7_5MVR.js +30 -0
  92. package/dist/NicePreview.doc-atKISvmp.cjs +6 -0
  93. package/dist/NicePropertyGrid.doc-D6xljYe1.cjs +7 -0
  94. package/dist/NicePropertyGrid.doc-nX2etusg.js +31 -0
  95. package/dist/NiceRadio.doc-BTURz62X.js +27 -0
  96. package/dist/NiceRadio.doc-Cc8-1vbn.cjs +3 -0
  97. package/dist/NiceRecurrencePicker.doc-78HjPJm0.js +31 -0
  98. package/dist/NiceRecurrencePicker.doc-vC2YmCXF.cjs +7 -0
  99. package/dist/NiceRichTextEditor.doc-ClPCkzCd.cjs +6 -0
  100. package/dist/NiceRichTextEditor.doc-CtmV9UvX.js +30 -0
  101. package/dist/NiceSavedQueryPanel-BIXW0y1X.js +6455 -0
  102. package/dist/NiceSavedQueryPanel-CE3QR4RY.js +6446 -0
  103. package/dist/NiceSavedQueryPanel-CFHwMDIx.cjs +596 -0
  104. package/dist/NiceSavedQueryPanel-DSnj-3Es.cjs +596 -0
  105. package/dist/NiceSavedQueryPanel.css +1 -1
  106. package/dist/NiceSceneSelector.doc-CY2OmaWQ.cjs +7 -0
  107. package/dist/NiceSceneSelector.doc-UsVgDrw1.js +31 -0
  108. package/dist/NiceScrollArea.doc-C6Y-odUa.js +27 -0
  109. package/dist/NiceScrollArea.doc-LdxDrGDY.cjs +3 -0
  110. package/dist/NiceSheet.doc-CsIu3Y1G.cjs +11 -0
  111. package/dist/NiceSheet.doc-DLfSY-MA.js +35 -0
  112. package/dist/NiceSpeedDial.doc-CSWvNR9n.cjs +7 -0
  113. package/dist/NiceSpeedDial.doc-DqnpBcMy.js +31 -0
  114. package/dist/NiceSplitPane.doc-Ck_FvdL6.cjs +9 -0
  115. package/dist/NiceSplitPane.doc-Di68JZuy.js +33 -0
  116. package/dist/NiceSpotlight.doc-CM4PnsHE.js +34 -0
  117. package/dist/NiceSpotlight.doc-Dm_B-kUJ.cjs +10 -0
  118. package/dist/NiceStepNavigation.doc-DXraCs7t.js +31 -0
  119. package/dist/NiceStepNavigation.doc-TSy2dWmf.cjs +7 -0
  120. package/dist/NiceSteps.doc-C_mkhnez.cjs +10 -0
  121. package/dist/NiceSteps.doc-PW1zubHM.js +34 -0
  122. package/dist/NiceSwitch.doc-CLc7OxrE.cjs +6 -0
  123. package/dist/NiceSwitch.doc-dGMMY4es.js +30 -0
  124. package/dist/NiceTabs-32xjguOv.cjs +1 -0
  125. package/dist/NiceTabs-B9zxj6qd.js +1657 -0
  126. package/dist/NiceTabs-Blk0h4jY.js +1624 -0
  127. package/dist/NiceTabs-CNauJ4fu.cjs +1 -0
  128. package/dist/NiceTransition.doc-BmImVoB8.js +35 -0
  129. package/dist/NiceTransition.doc-GA1N91ON.cjs +11 -0
  130. package/dist/NiceTree.doc-D7SCXljC.js +40 -0
  131. package/dist/NiceTree.doc-DZx3hUwY.cjs +16 -0
  132. package/dist/NiceUnitConverter.doc-DmiyYOH_.cjs +10 -0
  133. package/dist/NiceUnitConverter.doc-YnzD3uKT.js +34 -0
  134. package/dist/NiceVirtualGrid.doc-DI2c9ckY.js +35 -0
  135. package/dist/NiceVirtualGrid.doc-rtwudxTG.cjs +11 -0
  136. package/dist/NiceVirtualList.doc-BpoTiXoV.js +31 -0
  137. package/dist/NiceVirtualList.doc-C8q-Hfl0.cjs +7 -0
  138. package/dist/NiceWindow-B4jA_-hi.js +1409 -0
  139. package/dist/NiceWindow-Bo_yCa1o.js +1418 -0
  140. package/dist/NiceWindow-DPzJxOfx.cjs +1 -0
  141. package/dist/NiceWindow-UpKllge7.cjs +1 -0
  142. package/dist/charts-0BEMJ0Xt.js +4657 -0
  143. package/dist/charts-C60va95_.js +4657 -0
  144. package/dist/charts-CbxmU6Z2.cjs +761 -0
  145. package/dist/charts-D_I1iwel.cjs +761 -0
  146. package/dist/charts.cjs +1 -1
  147. package/dist/charts.css +1 -1
  148. package/dist/charts.d.ts +19 -19
  149. package/dist/charts.mjs +1 -1
  150. package/dist/core-BIA5_uSq.js +22316 -0
  151. package/dist/core-Bcc4sz15.cjs +96 -0
  152. package/dist/core-DQYnL6uf.cjs +96 -0
  153. package/dist/core-Da1dGJN3.js +22401 -0
  154. package/dist/data.cjs +1 -1
  155. package/dist/data.d.ts +5 -0
  156. package/dist/data.mjs +1 -1
  157. package/dist/editors.cjs +1 -1
  158. package/dist/editors.d.ts +44 -1
  159. package/dist/editors.mjs +3 -3
  160. package/dist/feedback.cjs +1 -1
  161. package/dist/feedback.d.ts +10 -10
  162. package/dist/feedback.mjs +2 -2
  163. package/dist/index-BjBsn6ad.cjs +5194 -0
  164. package/dist/index-C2Uoywo9.js +63852 -0
  165. package/dist/index-DCDfWfAt.js +64336 -0
  166. package/dist/index-DpiCo0_e.cjs +5194 -0
  167. package/dist/index.cjs +1 -1
  168. package/dist/index.css +1 -1
  169. package/dist/index.d.ts +1798 -57
  170. package/dist/index.mjs +943 -895
  171. package/dist/lazy.cjs +1 -1
  172. package/dist/lazy.d.ts +4 -3
  173. package/dist/lazy.mjs +3 -3
  174. package/dist/navigation.cjs +1 -1
  175. package/dist/navigation.d.ts +15 -1
  176. package/dist/navigation.mjs +30 -30
  177. package/dist/overlays.cjs +1 -1
  178. package/dist/overlays.mjs +53 -53
  179. package/dist/style.css +6 -6
  180. package/package.json +3 -3
package/dist/lazy.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-DXkFBiD4.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-DXkFBiD4.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-DXkFBiD4.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),t=()=>{Promise.resolve().then(()=>require("./devops.cjs"))},r=()=>{Promise.resolve().then(()=>require("./no-code.cjs"))},i=()=>{Promise.resolve().then(()=>require("./data-branching.cjs"))},C=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{t(),r(),i()}):setTimeout(()=>{t(),r(),i()},2e3)};exports.LazyAPIFlow=d;exports.LazyBranchManager=o;exports.LazyChart=G;exports.LazyCodeTemplate=f;exports.LazyDataBranchGraph=m;exports.LazyDataBranchManager=D;exports.LazyDataConflictResolver=B;exports.LazyDataDiffViewer=P;exports.LazyDataMapper=N;exports.LazyDataMergeBuilder=q;exports.LazyDataSnapshot=M;exports.LazyEventOrchestrator=L;exports.LazyGitBlame=s;exports.LazyGitConflictResolver=h;exports.LazyGitDiffViewer=l;exports.LazyGitGraph=n;exports.LazyGitHooks=u;exports.LazyMergeRequestBuilder=z;exports.LazyPipelineEditor=c;exports.LazyPipelineMonitor=y;exports.LazySankey=$;exports.LazyStateDesigner=p;exports.LazyTestBuilder=v;exports.LazyTreemap=g;exports.preloadDataBranching=i;exports.preloadDevOps=t;exports.preloadHeavyModules=C;exports.preloadNoCode=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-D_I1iwel.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-D_I1iwel.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-D_I1iwel.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),t=()=>{Promise.resolve().then(()=>require("./devops.cjs"))},r=()=>{Promise.resolve().then(()=>require("./no-code.cjs"))},i=()=>{Promise.resolve().then(()=>require("./data-branching.cjs"))},C=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{t(),r(),i()}):setTimeout(()=>{t(),r(),i()},2e3)};exports.LazyAPIFlow=d;exports.LazyBranchManager=o;exports.LazyChart=G;exports.LazyCodeTemplate=f;exports.LazyDataBranchGraph=m;exports.LazyDataBranchManager=D;exports.LazyDataConflictResolver=B;exports.LazyDataDiffViewer=P;exports.LazyDataMapper=N;exports.LazyDataMergeBuilder=q;exports.LazyDataSnapshot=M;exports.LazyEventOrchestrator=L;exports.LazyGitBlame=s;exports.LazyGitConflictResolver=h;exports.LazyGitDiffViewer=l;exports.LazyGitGraph=n;exports.LazyGitHooks=u;exports.LazyMergeRequestBuilder=z;exports.LazyPipelineEditor=c;exports.LazyPipelineMonitor=y;exports.LazySankey=$;exports.LazyStateDesigner=p;exports.LazyTestBuilder=v;exports.LazyTreemap=g;exports.preloadDataBranching=i;exports.preloadDevOps=t;exports.preloadHeavyModules=C;exports.preloadNoCode=r;
package/dist/lazy.d.ts CHANGED
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { LazyExoticComponent } from 'react';
4
4
  import { NiceBaseProps } from '@nice2dev/ui-core';
5
+ import { NiceStandardProps } from '@nice2dev/ui-core';
5
6
  import { RefAttributes } from 'react';
6
7
 
7
8
  declare interface ActionParam {
@@ -823,7 +824,7 @@ declare interface NiceChartAnnotation {
823
824
  * Props for the NiceChart component — an SVG-based bar, line, and area chart
824
825
  * with stacking, zoom, crosshair, annotations, legend interaction and PNG export.
825
826
  */
826
- declare interface NiceChartProps extends NiceBaseProps {
827
+ declare interface NiceChartProps extends NiceStandardProps {
827
828
  series: NiceChartSeries[];
828
829
  categories?: string[];
829
830
  width?: number;
@@ -1245,7 +1246,7 @@ declare interface NiceSankeyNode {
1245
1246
  }
1246
1247
 
1247
1248
  /** Props for the {@link NiceSankey} component — an SVG Sankey flow diagram. */
1248
- declare interface NiceSankeyProps extends NiceBaseProps {
1249
+ declare interface NiceSankeyProps extends NiceStandardProps {
1249
1250
  /** Node definitions. */
1250
1251
  nodes: NiceSankeyNode[];
1251
1252
  /** Link definitions. */
@@ -1300,7 +1301,7 @@ declare interface NiceTreeMapNode {
1300
1301
  }
1301
1302
 
1302
1303
  /** Props for the {@link NiceTreeMap} component — a squarified treemap visualization. */
1303
- declare interface NiceTreeMapProps extends NiceBaseProps {
1304
+ declare interface NiceTreeMapProps extends NiceStandardProps {
1304
1305
  /** Root node. */
1305
1306
  data: NiceTreeMapNode;
1306
1307
  /** SVG width in px. */
package/dist/lazy.mjs CHANGED
@@ -48,11 +48,11 @@ const r = t(
48
48
  ), k = t(
49
49
  () => import("./data-branching-BmCKIXgr.js").then((e) => e.k).then((e) => ({ default: e.NiceDataSnapshot }))
50
50
  ), v = t(
51
- () => import("./charts-SHnY1_oD.js").then((e) => e.A).then((e) => ({ default: e.NiceChart }))
51
+ () => import("./charts-C60va95_.js").then((e) => e.A).then((e) => ({ default: e.NiceChart }))
52
52
  ), w = t(
53
- () => import("./charts-SHnY1_oD.js").then((e) => e.E).then((e) => ({ default: e.NiceTreeMap }))
53
+ () => import("./charts-C60va95_.js").then((e) => e.E).then((e) => ({ default: e.NiceTreeMap }))
54
54
  ), T = t(
55
- () => import("./charts-SHnY1_oD.js").then((e) => e.B).then((e) => ({ default: e.NiceSankey }))
55
+ () => import("./charts-C60va95_.js").then((e) => e.B).then((e) => ({ default: e.NiceSankey }))
56
56
  ), a = () => {
57
57
  import("./devops.mjs");
58
58
  }, n = () => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-g_ZVFzoE.cjs"),e=require("react/jsx-runtime"),v=require("./core-DqlrEV-9.cjs"),_=require("react"),U=require("./NiceTabs-B6E7-er3.cjs"),V=require("./NicePagination-D829pF7A.cjs"),P=_.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:t=52,onItemClick:k,onCollapseChange:D,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...w},x)=>{const c=v.ks(j),o=v._s(S,j),[l,u]=_.useState(new Set),r=_.useCallback(i=>{u($=>{const s=new Set($);return s.has(i)?s.delete(i):s.add(i),s})},[]);if(o==="hidden")return null;const h=(i,$=0)=>{const s=i.children&&i.children.length>0,E=l.has(i.key),C=i.key===N;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${C?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+$*16},onClick:()=>s?r(i.key):k?.(i),disabled:i.disabled,title:a?i.text:void 0,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:i.icon}),!a&&e.jsx("span",{className:"nice-sidebar-menu__label",children:i.text}),!a&&i.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:i.badge}),!a&&s&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:E?"▾":"▸"})]}),s&&E&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(T=>h(T,$+1))})]},i.key)};return e.jsxs("nav",{ref:x,id:c,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?t:p},...w,children:[y&&e.jsx("div",{className:"nice-sidebar-menu__header",children:y}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:b.map(i=>h(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});P.displayName="NiceSidebarMenu";const I=_.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:t,size:k="md",className:D,style:y,id:d,accessMode:m,...g},M)=>{const j=v.ks(d),S=v._s(m,d),[w,x]=_.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:j,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:y,...g,children:[p&&e.jsx("div",{className:"nice-top-menu__brand",children:p}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:b.map(c=>{const o=c.children&&c.children.length>0,l=w===c.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>o&&x(c.key),onMouseLeave:()=>o&&x(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${c.key===N?"nice-top-menu__btn--active":""}`,onClick:()=>o?x(l?null:c.key):a?.(c),role:"menuitem","aria-haspopup":o,"aria-expanded":l,disabled:c.disabled,type:"button",children:[c.icon&&e.jsx("span",{children:c.icon}),e.jsx("span",{children:c.text}),o&&e.jsx("span",{className:"nice-top-menu__chevron",children:"▾"})]}),o&&l&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",children:c.children.map(u=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${u.key===N?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),x(null)},disabled:u.disabled,role:"menuitem",type:"button",children:[u.icon&&e.jsx("span",{children:u.icon}),e.jsx("span",{children:u.text}),u.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:u.badge})]})},u.key))})]},c.key)})}),t&&e.jsx("div",{className:"nice-top-menu__actions",children:t})]})});I.displayName="NiceTopMenu";const B=_.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:t=!1,onMinimizeToggle:k,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.ks(m),w=v._s(g,m),[x,c]=_.useState(N??b[0]?.key),o=N??x,l=b.find(r=>r.key===o),u=_.useCallback(r=>{c(r),a?.(r)},[a]);return w==="hidden"?null:e.jsxs("div",{ref:j,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${t?"nice-ribbon-menu--minimized":""} ${y??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[b.map(r=>e.jsx("button",{className:`nice-ribbon-menu__tab ${r.key===o?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(r.key),role:"tab","aria-selected":r.key===o,type:"button",children:r.label},r.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!t),type:"button","aria-label":t?"Expand":"Minimize",children:t?"▼":"▲"})]}),!t&&l&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:l.groups.map((r,h)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:r.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>p?.(i),disabled:i.disabled,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:i.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:i.text})]},i.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:r.label})]},h))})]})});B.displayName="NiceRibbonMenu";const L=_.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:t=!1,iconSize:k=40,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.ks(m),w=v._s(g,m),[x,c]=_.useState(!1),o=!t||x;return w==="hidden"?null:e.jsx("div",{ref:j,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${t&&!o?"nice-dock-menu--hidden":""} ${y??""}`,style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(l=>e.jsxs("button",{className:`nice-dock-menu__item ${l.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(l),disabled:l.disabled,title:l.text,type:"button",style:{width:k,height:k},children:[l.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:l.icon}):e.jsx("span",{children:l.text[0]}),l.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:l.badge})]},l.key))})})});L.displayName="NiceDockMenu";const W=_.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:t,position:k="left",panelWidth:D=280,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...w},x)=>{const c=v.ks(j),o=v._s(S,j),{t:l}=v.$o(),[u,r]=_.useState(!1),h=p??u,i=_.useCallback(()=>{const s=!h;r(s),t?.(s)},[h,t]),$=_.useCallback(s=>{a?.(s),r(!1),t?.(!1)},[a,t]);return o==="hidden"?null:e.jsxs("div",{ref:x,id:c,className:`nice-hamburger-menu nice-hamburger-menu--${m} ${g??""}`,style:M,...w,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":l("nav.menu","Menu"),"aria-expanded":h,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${h?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),h&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:i,"aria-hidden":!0}),e.jsxs("div",{className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${k} ${h?"nice-hamburger-menu__panel--open":""}`,style:{width:D},children:[y&&e.jsx("div",{className:"nice-hamburger-menu__header",children:y}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:b.map(s=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${s.key===N?"nice-hamburger-menu__item--active":""}`,onClick:()=>$(s),disabled:s.disabled,role:"menuitem",type:"button",children:[s.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:s.icon}),e.jsx("span",{children:s.text}),s.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:s.badge})]})},s.key))}),d&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:d})]})]})});W.displayName="NiceHamburgerMenu";const O=_.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:t,enableShortcuts:k=!0,showRefresh:D=!0,showStop:y=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:j="bottom",backIcon:S,forwardIcon:w,refreshIcon:x,stopIcon:c,className:o,style:l,id:u,accessMode:r,disabled:h,...i},$)=>{const s=v.ks(u),E=v._s(r,u),{t:C}=v.$o();if(_.useEffect(()=>{if(!k||h)return;const A=f=>{const R=f.altKey,H=f.ctrlKey||f.metaKey;R&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):R&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?m?.():t?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k,h,b,N,d,a,p,t,m]),E==="hidden")return null;const T=E==="disabled"||h,q=S??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),z=w??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),F=x??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("polyline",{points:"23 4 23 10 17 10"}),e.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),K=c??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});return e.jsxs("div",{ref:$,id:s,className:`nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${M}${T?" nice-nav-controls--disabled":""}${o?` ${o}`:""}`,style:l,role:"navigation","aria-label":C("nav.controls","Navigation controls"),...i,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${b?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:T||!b,"aria-label":C("nav.back","Back"),title:`${C("nav.back","Back")} (Alt+←)`,children:q}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${N?"":" nice-nav-controls__btn--disabled"}`,onClick:p,disabled:T||!N,"aria-label":C("nav.forward","Forward"),title:`${C("nav.forward","Forward")} (Alt+→)`,children:z}),(D||y&&d)&&(d?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:m,disabled:T,"aria-label":C("nav.stop","Stop"),title:`${C("nav.stop","Stop")} (Esc)`,children:K}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:t,disabled:T,"aria-label":C("nav.refresh","Refresh"),title:`${C("nav.refresh","Refresh")} (F5)`,children:F}))]})});O.displayName="NiceNavigationControls";exports.DEFAULT_SIDEBAR_PREFS=n.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=n.DesktopContextMenu;exports.DesktopGrid=n.DesktopGrid;exports.DesktopStartMenu=n.DesktopStartMenu;exports.DesktopSystemTray=n.DesktopSystemTray;exports.DesktopTaskbar=n.DesktopTaskbar;exports.NiceAccordion=n.NiceAccordion;exports.NiceAppLayout=n.NiceAppLayout;exports.NiceAuthButtons=n.NiceAuthButtons;exports.NiceBottomNavigation=n.NiceBottomNavigation;exports.NiceBreadcrumb=n.NiceBreadcrumb;exports.NiceCard=n.NiceCard;exports.NiceClassicShell=n.NiceClassicShell;exports.NiceCompactShell=n.NiceCompactShell;exports.NiceConsole=n.NiceConsole;exports.NiceContextMenu=n.NiceContextMenu;exports.NiceDashboardLayout=n.NiceDashboardLayout;exports.NiceDashboardShell=n.NiceDashboardShell;exports.NiceDesktop=n.NiceDesktop;exports.NiceDock=n.NiceDock;exports.NiceDynamicSidebar=n.NiceDynamicSidebar;exports.NiceHybridShell=n.NiceHybridShell;exports.NiceKioskShell=n.NiceKioskShell;exports.NiceMdiWorkspace=n.NiceMdiWorkspace;exports.NiceMenu=n.NiceMenu;exports.NiceMinimalShell=n.NiceMinimalShell;exports.NiceModeSelector=n.NiceModeSelector;exports.NiceModernShell=n.NiceModernShell;exports.NiceModuleLifecyclePanel=n.NiceModuleLifecyclePanel;exports.NiceMultiView=n.NiceMultiView;exports.NiceNavMenu=n.NiceNavMenu;exports.NiceNavbar=n.NiceNavbar;exports.NiceOnboardingWizard=n.NiceOnboardingWizard;exports.NiceOrganizationProfileForm=n.NiceOrganizationProfileForm;exports.NicePwaShell=n.NicePwaShell;exports.NiceSetupWizard=n.NiceSetupWizard;exports.NiceSidebarNav=n.NiceSidebarNav;exports.NiceSplitter=n.NiceSplitter;exports.NiceTabPanel=n.NiceTabPanel;exports.NiceTenantSwitcher=n.NiceTenantSwitcher;exports.NiceToolbar=n.NiceToolbar;exports.NiceUserMenu=n.NiceUserMenu;exports.NiceWizard=n.NiceWizard;exports.SIDEBAR_MODE_META=n.SIDEBAR_MODE_META;exports.NiceTabs=U.NiceTabs;exports.NicePagination=V.NicePagination;exports.NiceDockMenu=L;exports.NiceHamburgerMenu=W;exports.NiceNavigationControls=O;exports.NiceRibbonMenu=B;exports.NiceSidebarMenu=P;exports.NiceTopMenu=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-C6agdtTI.cjs"),e=require("react/jsx-runtime"),v=require("./core-Bcc4sz15.cjs"),h=require("react"),Z=require("./NiceTabs-CNauJ4fu.cjs"),U=require("./NicePagination-DyWWdtb3.cjs"),I=h.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:l=52,onItemClick:k,onCollapseChange:D,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const c=v.Hs(y),o=v.Zs(S,y),[t,u]=h.useState(new Set),r=h.useCallback(i=>{u($=>{const s=new Set($);return s.has(i)?s.delete(i):s.add(i),s})},[]);if(o==="hidden")return null;const _=(i,$=0)=>{const s=i.children&&i.children.length>0,E=t.has(i.key),w=i.key===N;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${w?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+$*16},onClick:()=>s?r(i.key):k?.(i),disabled:i.disabled,title:a?i.text:void 0,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:i.icon}),!a&&e.jsx("span",{className:"nice-sidebar-menu__label",children:i.text}),!a&&i.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:i.badge}),!a&&s&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:E?"▾":"▸"})]}),s&&E&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(T=>_(T,$+1))})]},i.key)};return e.jsxs("nav",{ref:x,id:c,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?l:p},...C,children:[j&&e.jsx("div",{className:"nice-sidebar-menu__header",children:j}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:b.map(i=>_(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});I.displayName="NiceSidebarMenu";const P=h.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:l,size:k="md",className:D,style:j,id:d,accessMode:m,...g},M)=>{const y=v.Hs(d),S=v.Zs(m,d),[C,x]=h.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:y,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:j,...g,children:[p&&e.jsx("div",{className:"nice-top-menu__brand",children:p}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:b.map(c=>{const o=c.children&&c.children.length>0,t=C===c.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>o&&x(c.key),onMouseLeave:()=>o&&x(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${c.key===N?"nice-top-menu__btn--active":""}`,onClick:()=>o?x(t?null:c.key):a?.(c),role:"menuitem","aria-haspopup":o,"aria-expanded":t,disabled:c.disabled,type:"button",children:[c.icon&&e.jsx("span",{children:c.icon}),e.jsx("span",{children:c.text}),o&&e.jsx("span",{className:"nice-top-menu__chevron",children:"▾"})]}),o&&t&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",children:c.children.map(u=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${u.key===N?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),x(null)},disabled:u.disabled,role:"menuitem",type:"button",children:[u.icon&&e.jsx("span",{children:u.icon}),e.jsx("span",{children:u.text}),u.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:u.badge})]})},u.key))})]},c.key)})}),l&&e.jsx("div",{className:"nice-top-menu__actions",children:l})]})});P.displayName="NiceTopMenu";const B=h.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:l=!1,onMinimizeToggle:k,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v.Hs(m),C=v.Zs(g,m),[x,c]=h.useState(N??b[0]?.key),o=N??x,t=b.find(r=>r.key===o),u=h.useCallback(r=>{c(r),a?.(r)},[a]);return C==="hidden"?null:e.jsxs("div",{ref:y,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${l?"nice-ribbon-menu--minimized":""} ${j??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[b.map(r=>e.jsx("button",{className:`nice-ribbon-menu__tab ${r.key===o?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(r.key),role:"tab","aria-selected":r.key===o,type:"button",children:r.label},r.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!l),type:"button","aria-label":l?"Expand":"Minimize",children:l?"▼":"▲"})]}),!l&&t&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:t.groups.map((r,_)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:r.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>p?.(i),disabled:i.disabled,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:i.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:i.text})]},i.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:r.label})]},_))})]})});B.displayName="NiceRibbonMenu";const W=h.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:l=!1,iconSize:k=40,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v.Hs(m),C=v.Zs(g,m),[x,c]=h.useState(!1),o=!l||x;return C==="hidden"?null:e.jsx("div",{ref:y,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${l&&!o?"nice-dock-menu--hidden":""} ${j??""}`,style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(t=>e.jsxs("button",{className:`nice-dock-menu__item ${t.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(t),disabled:t.disabled,title:t.text,type:"button",style:{width:k,height:k},children:[t.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:t.icon}):e.jsx("span",{children:t.text[0]}),t.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:t.badge})]},t.key))})})});W.displayName="NiceDockMenu";const H=h.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:l,position:k="left",panelWidth:D=280,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const c=v.Hs(y),o=v.Zs(S,y),{t}=v.$o(),[u,r]=h.useState(!1),_=p??u,i=h.useCallback(()=>{const s=!_;r(s),l?.(s)},[_,l]),$=h.useCallback(s=>{a?.(s),r(!1),l?.(!1)},[a,l]);return o==="hidden"?null:e.jsxs("div",{ref:x,id:c,className:`nice-hamburger-menu nice-hamburger-menu--${m} ${g??""}`,style:M,...C,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":t("nav.menu","Menu"),"aria-expanded":_,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${_?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),_&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:i,"aria-hidden":!0}),e.jsxs("div",{className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${k} ${_?"nice-hamburger-menu__panel--open":""}`,style:{width:D},children:[j&&e.jsx("div",{className:"nice-hamburger-menu__header",children:j}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:b.map(s=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${s.key===N?"nice-hamburger-menu__item--active":""}`,onClick:()=>$(s),disabled:s.disabled,role:"menuitem",type:"button",children:[s.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:s.icon}),e.jsx("span",{children:s.text}),s.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:s.badge})]})},s.key))}),d&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:d})]})]})});H.displayName="NiceHamburgerMenu";const L=h.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:l,enableShortcuts:k=!0,showRefresh:D=!0,showStop:j=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:y="bottom",backIcon:S,forwardIcon:C,refreshIcon:x,stopIcon:c,className:o,style:t,id:u,accessMode:r,disabled:_,...i},$)=>{const s=v.Hs(u),E=v.Zs(r,u),{t:w}=v.$o();if(h.useEffect(()=>{if(!k||_)return;const A=f=>{const R=f.altKey,K=f.ctrlKey||f.metaKey;R&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):R&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||K&&f.key==="r"?(f.preventDefault(),d?m?.():l?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k,_,b,N,d,a,p,l,m]),E==="hidden")return null;const T=E==="disabled"||_,O=S??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),q=C??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),z=x??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("polyline",{points:"23 4 23 10 17 10"}),e.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),F=c??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});return e.jsxs("div",{ref:$,id:s,className:`nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${M}${T?" nice-nav-controls--disabled":""}${o?` ${o}`:""}`,style:t,role:"navigation","aria-label":w("nav.controls","Navigation controls"),...i,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${b?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:T||!b,"aria-label":w("nav.back","Back"),title:`${w("nav.back","Back")} (Alt+←)`,children:O}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${N?"":" nice-nav-controls__btn--disabled"}`,onClick:p,disabled:T||!N,"aria-label":w("nav.forward","Forward"),title:`${w("nav.forward","Forward")} (Alt+→)`,children:q}),(D||j&&d)&&(d?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:m,disabled:T,"aria-label":w("nav.stop","Stop"),title:`${w("nav.stop","Stop")} (Esc)`,children:F}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:l,disabled:T,"aria-label":w("nav.refresh","Refresh"),title:`${w("nav.refresh","Refresh")} (F5)`,children:z}))]})});L.displayName="NiceNavigationControls";exports.DEFAULT_SIDEBAR_PREFS=n.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=n.DesktopContextMenu;exports.DesktopGrid=n.DesktopGrid;exports.DesktopStartMenu=n.DesktopStartMenu;exports.DesktopSystemTray=n.DesktopSystemTray;exports.DesktopTaskbar=n.DesktopTaskbar;exports.NiceAccordion=n.NiceAccordion;exports.NiceAppLayout=n.NiceAppLayout;exports.NiceAuthButtons=n.NiceAuthButtons;exports.NiceBottomNavigation=n.NiceBottomNavigation;exports.NiceBreadcrumb=n.NiceBreadcrumb;exports.NiceCard=n.NiceCard;exports.NiceClassicShell=n.NiceClassicShell;exports.NiceCompactShell=n.NiceCompactShell;exports.NiceConsole=n.NiceConsole;exports.NiceContextMenu=n.NiceContextMenu;exports.NiceDashboardLayout=n.NiceDashboardLayout;exports.NiceDashboardShell=n.NiceDashboardShell;exports.NiceDesktop=n.NiceDesktop;exports.NiceDock=n.NiceDock;exports.NiceDynamicSidebar=n.NiceDynamicSidebar;exports.NiceHybridShell=n.NiceHybridShell;exports.NiceKioskShell=n.NiceKioskShell;exports.NiceMdiWorkspace=n.NiceMdiWorkspace;exports.NiceMenu=n.NiceMenu;exports.NiceMinimalShell=n.NiceMinimalShell;exports.NiceModeSelector=n.NiceModeSelector;exports.NiceModernShell=n.NiceModernShell;exports.NiceModuleLifecyclePanel=n.NiceModuleLifecyclePanel;exports.NiceMultiView=n.NiceMultiView;exports.NiceNavMenu=n.NiceNavMenu;exports.NiceNavbar=n.NiceNavbar;exports.NiceOnboardingWizard=n.NiceOnboardingWizard;exports.NiceOrganizationProfileForm=n.NiceOrganizationProfileForm;exports.NicePwaShell=n.NicePwaShell;exports.NiceSetupWizard=n.NiceSetupWizard;exports.NiceSidebarNav=n.NiceSidebarNav;exports.NiceSplitter=n.NiceSplitter;exports.NiceTabPanel=n.NiceTabPanel;exports.NiceTenantSwitcher=n.NiceTenantSwitcher;exports.NiceToolbar=n.NiceToolbar;exports.NiceUserMenu=n.NiceUserMenu;exports.NiceWizard=n.NiceWizard;exports.SIDEBAR_MODE_META=n.SIDEBAR_MODE_META;exports.NiceTabs=Z.NiceTabs;exports.NicePagination=U.NicePagination;exports.NiceDockMenu=W;exports.NiceHamburgerMenu=H;exports.NiceNavigationControls=L;exports.NiceRibbonMenu=B;exports.NiceSidebarMenu=I;exports.NiceTopMenu=P;
@@ -794,6 +794,12 @@ export declare interface NiceMenuProps extends NiceBaseProps {
794
794
  renderTriggerLabel?: (item: NiceMenuItem) => default_2.ReactNode;
795
795
  /** Optional renderer for panel-entry label. */
796
796
  renderEntryLabel?: (item: NiceMenuItem) => default_2.ReactNode;
797
+ /**
798
+ * Maximum depth of nested flyouts rendered. `1` = top-level only, `2` = level-1 panel,
799
+ * `3` = level-2 subpanel (default — preserves legacy behavior), up to `10`. Items with
800
+ * `children` beyond this depth are rendered as leaves (no flyout arrow, no hover-open).
801
+ */
802
+ maxDepth?: number;
797
803
  }
798
804
 
799
805
  /**
@@ -1409,6 +1415,14 @@ export declare interface NiceSidebarNavProps {
1409
1415
  * Default `false`.
1410
1416
  */
1411
1417
  minimal?: boolean;
1418
+ /**
1419
+ * **Embedded mode** — render the sidebar inside another container (e.g. a
1420
+ * mobile drawer / hamburger menu). Forces full width, drops the footer with
1421
+ * the collapse-btn (there is nothing to collapse to inside a drawer) and
1422
+ * ignores `collapsed` / `width` / `collapsedWidth`. The mode strip and the
1423
+ * full navigation tree stay intact. Default `false`.
1424
+ */
1425
+ embedded?: boolean;
1412
1426
  /** Optional header slot rendered above the mode strip / tree (e.g. workspace switcher). */
1413
1427
  header?: ReactNode;
1414
1428
  /** Optional footer slot rendered below the standard footer-toggle row. */
@@ -1884,7 +1898,7 @@ export declare interface SidebarNavHiddenItem {
1884
1898
  }
1885
1899
 
1886
1900
  /** Display mode for the sidebar navigation */
1887
- export declare type SidebarNavMode = 'all' | 'by-role' | 'by-unit' | 'favorites' | 'preferences';
1901
+ export declare type SidebarNavMode = 'all' | 'by-role' | 'by-unit' | 'favorites' | 'search' | 'preferences';
1888
1902
 
1889
1903
  /** A module containing multiple views */
1890
1904
  export declare interface SidebarNavModule {
@@ -1,9 +1,9 @@
1
- import { D as ae, a as ie, b as ce, c as se, d as le, e as te, N as re, f as oe, g as de, h as ue, i as be, j as me, k as _e, l as he, m as pe, n as Ne, o as ve, p as ke, q as ye, r as fe, s as ge, t as $e, u as xe, v as we, w as Me, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Pe, G as Be, H as Le, I as Re, J as We, K as Ke, L as Oe, M as Fe, O as He, P as je, Q as ze, S as Ue } from "./NiceModuleLifecyclePanel-DF0Ay1oH.js";
1
+ import { D as ae, a as ie, b as ce, c as se, d as le, e as te, N as re, f as oe, g as de, h as ue, i as be, j as me, k as _e, l as he, m as pe, n as Ne, o as ve, p as ke, q as ye, r as fe, s as ge, t as $e, u as xe, v as we, w as Me, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Pe, G as Be, H as Le, I as Re, J as We, K as He, L as Ke, M as Oe, O as Fe, P as je, Q as ze, S as Ue } from "./NiceModuleLifecyclePanel-4UEsYB5r.js";
2
2
  import { jsx as e, jsxs as o } from "react/jsx-runtime";
3
- import { k as E, _ as I, $ as W } from "./core-Dpfb_THi.js";
3
+ import { H as E, Z as I, $ as W } from "./core-Da1dGJN3.js";
4
4
  import { forwardRef as T, useState as P, useCallback as B, useEffect as z } from "react";
5
- import { f as qe } from "./NiceTabs-J2zAw8vC.js";
6
- import { N as Qe } from "./NicePagination-D89Kst8b.js";
5
+ import { f as Ze } from "./NiceTabs-B9zxj6qd.js";
6
+ import { N as Je } from "./NicePagination-Cqr3Pe_F.js";
7
7
  const U = T(
8
8
  ({
9
9
  items: b,
@@ -151,7 +151,7 @@ const V = T(
151
151
  }
152
152
  );
153
153
  V.displayName = "NiceTopMenu";
154
- const q = T(
154
+ const Z = T(
155
155
  ({
156
156
  tabs: b,
157
157
  activeTab: m,
@@ -227,8 +227,8 @@ const q = T(
227
227
  );
228
228
  }
229
229
  );
230
- q.displayName = "NiceRibbonMenu";
231
- const J = T(
230
+ Z.displayName = "NiceRibbonMenu";
231
+ const q = T(
232
232
  ({
233
233
  items: b,
234
234
  activeKey: m,
@@ -274,8 +274,8 @@ const J = T(
274
274
  );
275
275
  }
276
276
  );
277
- J.displayName = "NiceDockMenu";
278
- const Q = T(
277
+ q.displayName = "NiceDockMenu";
278
+ const J = T(
279
279
  ({
280
280
  items: b,
281
281
  activeKey: m,
@@ -364,8 +364,8 @@ const Q = T(
364
364
  );
365
365
  }
366
366
  );
367
- Q.displayName = "NiceHamburgerMenu";
368
- const X = T(
367
+ J.displayName = "NiceHamburgerMenu";
368
+ const Q = T(
369
369
  ({
370
370
  canGoBack: b = !1,
371
371
  canGoForward: m = !1,
@@ -412,7 +412,7 @@ const X = T(
412
412
  _
413
413
  ]), A === "hidden")
414
414
  return null;
415
- const S = A === "disabled" || h, K = x ?? /* @__PURE__ */ e(
415
+ const S = A === "disabled" || h, H = x ?? /* @__PURE__ */ e(
416
416
  "svg",
417
417
  {
418
418
  width: "16",
@@ -423,7 +423,7 @@ const X = T(
423
423
  strokeWidth: "2",
424
424
  children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
425
425
  }
426
- ), O = w ?? /* @__PURE__ */ e(
426
+ ), K = w ?? /* @__PURE__ */ e(
427
427
  "svg",
428
428
  {
429
429
  width: "16",
@@ -434,7 +434,7 @@ const X = T(
434
434
  strokeWidth: "2",
435
435
  children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
436
436
  }
437
- ), F = N ?? /* @__PURE__ */ o(
437
+ ), O = N ?? /* @__PURE__ */ o(
438
438
  "svg",
439
439
  {
440
440
  width: "16",
@@ -448,7 +448,7 @@ const X = T(
448
448
  /* @__PURE__ */ e("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
449
449
  ]
450
450
  }
451
- ), H = i ?? /* @__PURE__ */ o(
451
+ ), F = i ?? /* @__PURE__ */ o(
452
452
  "svg",
453
453
  {
454
454
  width: "16",
@@ -483,7 +483,7 @@ const X = T(
483
483
  disabled: S || !b,
484
484
  "aria-label": M("nav.back", "Back"),
485
485
  title: `${M("nav.back", "Back")} (Alt+←)`,
486
- children: K
486
+ children: H
487
487
  }
488
488
  ),
489
489
  /* @__PURE__ */ e(
@@ -495,7 +495,7 @@ const X = T(
495
495
  disabled: S || !m,
496
496
  "aria-label": M("nav.forward", "Forward"),
497
497
  title: `${M("nav.forward", "Forward")} (Alt+→)`,
498
- children: O
498
+ children: K
499
499
  }
500
500
  ),
501
501
  (C || k && d) && (d ? /* @__PURE__ */ e(
@@ -507,7 +507,7 @@ const X = T(
507
507
  disabled: S,
508
508
  "aria-label": M("nav.stop", "Stop"),
509
509
  title: `${M("nav.stop", "Stop")} (Esc)`,
510
- children: H
510
+ children: F
511
511
  }
512
512
  ) : /* @__PURE__ */ e(
513
513
  "button",
@@ -518,7 +518,7 @@ const X = T(
518
518
  disabled: S,
519
519
  "aria-label": M("nav.refresh", "Refresh"),
520
520
  title: `${M("nav.refresh", "Refresh")} (F5)`,
521
- children: F
521
+ children: O
522
522
  }
523
523
  ))
524
524
  ]
@@ -526,7 +526,7 @@ const X = T(
526
526
  );
527
527
  }
528
528
  );
529
- X.displayName = "NiceNavigationControls";
529
+ Q.displayName = "NiceNavigationControls";
530
530
  export {
531
531
  ae as DEFAULT_SIDEBAR_PREFS,
532
532
  ie as DesktopContextMenu,
@@ -548,9 +548,9 @@ export {
548
548
  ke as NiceDashboardShell,
549
549
  ye as NiceDesktop,
550
550
  fe as NiceDock,
551
- J as NiceDockMenu,
551
+ q as NiceDockMenu,
552
552
  ge as NiceDynamicSidebar,
553
- Q as NiceHamburgerMenu,
553
+ J as NiceHamburgerMenu,
554
554
  $e as NiceHybridShell,
555
555
  xe as NiceKioskShell,
556
556
  we as NiceMdiWorkspace,
@@ -562,20 +562,20 @@ export {
562
562
  Ie as NiceMultiView,
563
563
  Te as NiceNavMenu,
564
564
  Ae as NiceNavbar,
565
- X as NiceNavigationControls,
565
+ Q as NiceNavigationControls,
566
566
  Pe as NiceOnboardingWizard,
567
567
  Be as NiceOrganizationProfileForm,
568
- Qe as NicePagination,
568
+ Je as NicePagination,
569
569
  Le as NicePwaShell,
570
- q as NiceRibbonMenu,
570
+ Z as NiceRibbonMenu,
571
571
  Re as NiceSetupWizard,
572
572
  U as NiceSidebarMenu,
573
573
  We as NiceSidebarNav,
574
- Ke as NiceSplitter,
575
- Oe as NiceTabPanel,
576
- qe as NiceTabs,
577
- Fe as NiceTenantSwitcher,
578
- He as NiceToolbar,
574
+ He as NiceSplitter,
575
+ Ke as NiceTabPanel,
576
+ Ze as NiceTabs,
577
+ Oe as NiceTenantSwitcher,
578
+ Fe as NiceToolbar,
579
579
  V as NiceTopMenu,
580
580
  je as NiceUserMenu,
581
581
  ze as NiceWizard,
package/dist/overlays.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./NiceWindow-Bnh6rKt4.cjs"),r=require("react/jsx-runtime"),M=require("./core-DqlrEV-9.cjs"),e=require("react"),B=require("react-dom");function Y(){const t=e.useContext(M.nr);return t?.portalTarget?t.portalTarget:typeof document<"u"?document.body:null}const W=({open:t,onClose:s,children:v,title:a,size:g="md",closeOnBackdropClick:l=!0,closeOnEscape:d=!0,disableFocusTrap:u=!1,disableBodyScroll:j=!0,zIndex:_=1e3,className:p,style:C})=>{const w=e.useRef(null);M.As(w,t&&!u);const y=Y();e.useEffect(()=>{if(!j&&t){const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}}},[t,j]),e.useEffect(()=>{if(!d||!t)return;const n=x=>{x.key==="Escape"&&(x.preventDefault(),s())};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[d,t,s]);const f=e.useCallback(n=>{l&&n.target===n.currentTarget&&s()},[l,s]);if(!t)return null;const i={sm:"nice-modal--sm",md:"nice-modal--md",lg:"nice-modal--lg",xl:"nice-modal--xl",full:"nice-modal--full"}[g];return B.createPortal(r.jsx("div",{className:"nice-modal__overlay",style:{zIndex:_},onClick:f,role:"presentation",children:r.jsx("div",{ref:w,className:`nice-modal ${i} ${p||""}`,role:"dialog","aria-modal":"true","aria-label":a,style:C,tabIndex:-1,children:v})}),y)},q=({children:t,showClose:s=!0,onClose:v,className:a})=>r.jsxs("div",{className:`nice-modal__header ${a||""}`,children:[r.jsx("div",{className:"nice-modal__title",children:t}),s&&v&&r.jsx("button",{type:"button",className:"nice-modal__close",onClick:v,"aria-label":"Close",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",children:r.jsx("path",{d:"M4 4l12 12M4 16L16 4"})})})]}),O=({children:t,className:s})=>r.jsx("div",{className:`nice-modal__body ${s||""}`,children:t}),X=({children:t,className:s})=>r.jsx("div",{className:`nice-modal__footer ${s||""}`,children:t}),A=({open:t,onClose:s,children:v,position:a="right",size:g=320,title:l,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,swipeToClose:j=!0,zIndex:_=1e3,className:p,style:C})=>{const w=e.useRef(null),[y,f]=e.useState(!1),[i,n]=e.useState(0);M.As(w,t);const x=Y();e.useEffect(()=>{if(!u||!t)return;const o=k=>{k.key==="Escape"&&(k.preventDefault(),s())};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[u,t,s]);const h=e.useCallback(o=>{let k=0;switch(a){case"left":k=Math.min(0,o.deltaX);break;case"right":k=Math.max(0,o.deltaX);break;case"top":k=Math.min(0,o.deltaY);break;case"bottom":k=Math.max(0,o.deltaY);break}n(k)},[a]),D=e.useCallback(o=>{let E=!1;switch(a){case"left":E=o.deltaX<-100;break;case"right":E=o.deltaX>100;break;case"top":E=o.deltaY<-100;break;case"bottom":E=o.deltaY>100;break}E&&(M.Dr("light"),s()),n(0),f(!1)},[a,s]),{ref:P}=M.qs({enabled:j&&t,onPanStart:()=>f(!0),onPan:h,onPanEnd:D}),$=e.useCallback(o=>{d&&o.target===o.currentTarget&&s()},[d,s]);if(!t)return null;const S=a==="left"||a==="right",L=S?{width:typeof g=="number"?`${g}px`:g}:{height:typeof g=="number"?`${g}px`:g},c=()=>{if(y)return S?`translateX(${i}px)`:`translateY(${i}px)`};return B.createPortal(r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`nice-drawer__overlay ${t?"nice-drawer__overlay--visible":""}`,style:{zIndex:_},onClick:$}),r.jsx("div",{ref:o=>{w.current=o,P.current=o},className:`nice-drawer nice-drawer--${a} ${t?"nice-drawer--open":""} ${p||""}`,style:{...L,zIndex:_+1,transform:c(),transition:y?"none":void 0,...C},role:"dialog","aria-modal":"true","aria-label":l,tabIndex:-1,children:v})]}),x)},K=({open:t,onClose:s,children:v,title:a,showHandle:g=!0,snapPoints:l=[.5,.9],initialSnap:d=0,expandable:u=!0,closeOnBackdropClick:j=!0,closeOnEscape:_=!0,hapticFeedback:p=!0,zIndex:C=1e3,className:w,style:y})=>{const f=e.useRef(null),i=e.useRef(null),[n,x]=e.useState(d),[h,D]=e.useState(!1),[P,$]=e.useState(0),S=e.useRef(0);e.useEffect(()=>{t&&(x(d),$(0))},[t,d]),M.As(f,t);const L=Y();e.useEffect(()=>{if(!_||!t)return;const m=b=>{b.key==="Escape"&&(b.preventDefault(),s())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[_,t,s]),e.useEffect(()=>{if(t){const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}}},[t]);const c=e.useCallback(m=>{const b=m.target.closest(".nice-bottom-sheet__handle"),I=i.current,H=!I||I.scrollTop<=0;!b&&!H||(D(!0),S.current=m.touches[0].clientY)},[]),o=e.useCallback(m=>{if(!h)return;const b=m.touches[0].clientY-S.current;(b>0||n<l.length-1)&&$(b)},[h,n,l.length]),k=e.useCallback(()=>{if(!h)return;const m=window.innerHeight;l[n]*m;const b=-P,I=m*.15;b>I&&u&&n<l.length-1?(x(n+1),p&&M.Dr("selection")):b<-I&&(n>0?(x(n-1),p&&M.Dr("selection")):(p&&M.Dr("light"),s())),D(!1),$(0)},[h,P,n,l,u,p,s]),E=e.useCallback(()=>{j&&s()},[j,s]);if(!t)return null;const R=l[n]*100,T=h?P:0;return B.createPortal(r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`nice-bottom-sheet__overlay ${t?"nice-bottom-sheet__overlay--visible":""}`,style:{zIndex:C},onClick:E}),r.jsxs("div",{ref:f,className:`nice-bottom-sheet ${t?"nice-bottom-sheet--open":""} ${w||""}`,style:{zIndex:C+1,height:`${R}vh`,transform:`translateY(${Math.max(0,T)}px)`,transition:h?"none":"transform 0.3s ease-out, height 0.3s ease-out",...y},role:"dialog","aria-modal":"true","aria-label":a,tabIndex:-1,onTouchStart:c,onTouchMove:o,onTouchEnd:k,children:[g&&r.jsx("div",{className:"nice-bottom-sheet__handle","aria-hidden":"true"}),a&&r.jsx("div",{className:"nice-bottom-sheet__title",children:a}),r.jsx("div",{ref:i,className:"nice-bottom-sheet__content",children:v})]})]}),L)},F=({trigger:t,children:s,placement:v="bottom",triggerMode:a="click",open:g,onOpenChange:l,hoverDelay:d=200,offset:u=8,className:j,showArrow:_=!0})=>{const[p,C]=e.useState(!1),w=e.useRef(null),y=e.useRef(null),f=e.useRef(null),i=Y(),n=g!==void 0,x=n?g:p,h=e.useCallback(c=>{n||C(c),l?.(c)},[n,l]);M.Cs(y,()=>{a!=="manual"&&x&&h(!1)});const D=e.useCallback(()=>{a==="click"&&h(!x)},[a,x,h]),P=e.useCallback(()=>{a==="hover"&&(f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>h(!0),d))},[a,d,h]),$=e.useCallback(()=>{a==="hover"&&(f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>h(!1),d))},[a,d,h]),[S,L]=e.useState({top:0,left:0});return e.useEffect(()=>{if(!x||!w.current||!y.current)return;const c=w.current.getBoundingClientRect(),o=y.current.getBoundingClientRect(),k=window.innerWidth,E=window.innerHeight;let R=0,T=0;const[m,b="center"]=v.split("-");switch(m){case"top":R=c.top-o.height-u,T=c.left+(c.width-o.width)/2;break;case"bottom":R=c.bottom+u,T=c.left+(c.width-o.width)/2;break;case"left":R=c.top+(c.height-o.height)/2,T=c.left-o.width-u;break;case"right":R=c.top+(c.height-o.height)/2,T=c.right+u;break}m==="top"||m==="bottom"?(b==="start"&&(T=c.left),b==="end"&&(T=c.right-o.width)):(b==="start"&&(R=c.top),b==="end"&&(R=c.bottom-o.height)),T=Math.max(8,Math.min(k-o.width-8,T)),R=Math.max(8,Math.min(E-o.height-8,R)),L({top:R,left:T})},[x,v,u]),r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:w,className:"nice-popover__trigger",onClick:D,onMouseEnter:P,onMouseLeave:$,style:{display:"inline-block"},children:t}),x&&B.createPortal(r.jsxs("div",{ref:y,className:`nice-popover nice-popover--${v} ${j||""}`,style:{position:"fixed",top:S.top,left:S.left,zIndex:1100},onMouseEnter:P,onMouseLeave:$,role:"tooltip",children:[_&&r.jsx("div",{className:"nice-popover__arrow"}),r.jsx("div",{className:"nice-popover__content",children:s})]}),i)]})},z=({items:t,children:s,onOpen:v,onClose:a,className:g})=>{const[l,d]=e.useState(!1),[u,j]=e.useState({x:0,y:0}),_=e.useRef(null),p=e.useRef(null),C=Y();M.Cs(_,()=>{l&&(d(!1),a?.())});const w=e.useCallback(i=>{i.preventDefault(),j({x:i.clientX,y:i.clientY}),d(!0),v?.()},[v]),y=e.useCallback(i=>{!i.disabled&&i.onClick&&(i.onClick(),d(!1),a?.())},[a]);e.useEffect(()=>{if(!l)return;const i=n=>{n.key==="Escape"&&(d(!1),a?.())};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[l,a]);const f=i=>r.jsx("ul",{className:"nice-context-menu__list",role:"menu",children:i.map(n=>n.divider?r.jsx("li",{className:"nice-context-menu__divider",role:"separator"},n.key):r.jsx("li",{role:"presentation",children:r.jsxs("button",{type:"button",className:`nice-context-menu__item ${n.disabled?"nice-context-menu__item--disabled":""} ${n.danger?"nice-context-menu__item--danger":""}`,role:"menuitem",disabled:n.disabled,onClick:()=>y(n),children:[n.icon&&r.jsx("span",{className:"nice-context-menu__icon",children:n.icon}),r.jsx("span",{className:"nice-context-menu__label",children:n.label})]})},n.key))});return r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:p,onContextMenu:w,style:{display:"contents"},children:s}),l&&B.createPortal(r.jsx("div",{ref:_,className:`nice-context-menu ${g||""}`,style:{position:"fixed",left:u.x,top:u.y,zIndex:1200},role:"menu",children:f(t)}),C)]})};exports.NiceActionSheet=N.NiceActionSheet;exports.NiceBlockUI=N.NiceBlockUI;exports.NiceBox=N.NiceBox;exports.NiceCommandPaletteProvider=N.NiceCommandPaletteProvider;exports.NiceLoadPanel=N.NiceLoadPanel;exports.NicePopover=N.NicePopover;exports.NiceResizable=N.NiceResizable;exports.NiceResponsiveBox=N.NiceResponsiveBox;exports.NiceScrollView=N.NiceScrollView;exports.NiceTutorial=N.NiceTutorial;exports.NiceTutorialProvider=N.NiceTutorialProvider;exports.NiceWindow=N.NiceWindow;exports.NiceWindowManager=N.NiceWindowManager;exports.useCommandPalette=N.useCommandPalette;exports.useRegisterCommands=N.useRegisterCommands;exports.NiceBottomSheet=K;exports.NiceContextMenu=z;exports.NiceDrawer=A;exports.NiceModal=W;exports.NiceModalBody=O;exports.NiceModalFooter=X;exports.NiceModalHeader=q;exports.NiceOverlayPopover=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./NiceWindow-DPzJxOfx.cjs"),r=require("react/jsx-runtime"),M=require("./core-Bcc4sz15.cjs"),e=require("react"),B=require("react-dom");function Y(){const t=e.useContext(M.lr);return t?.portalTarget?t.portalTarget:typeof document<"u"?document.body:null}const H=({open:t,onClose:s,children:v,title:a,size:g="md",closeOnBackdropClick:l=!0,closeOnEscape:d=!0,disableFocusTrap:u=!1,disableBodyScroll:j=!0,zIndex:_=1e3,className:p,style:P})=>{const w=e.useRef(null);M.Ps(w,t&&!u);const y=Y();e.useEffect(()=>{if(!j&&t){const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}}},[t,j]),e.useEffect(()=>{if(!d||!t)return;const n=x=>{x.key==="Escape"&&(x.preventDefault(),s())};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[d,t,s]);const f=e.useCallback(n=>{l&&n.target===n.currentTarget&&s()},[l,s]);if(!t)return null;const i={sm:"nice-modal--sm",md:"nice-modal--md",lg:"nice-modal--lg",xl:"nice-modal--xl",full:"nice-modal--full"}[g];return B.createPortal(r.jsx("div",{className:"nice-modal__overlay",style:{zIndex:_},onClick:f,role:"presentation",children:r.jsx("div",{ref:w,className:`nice-modal ${i} ${p||""}`,role:"dialog","aria-modal":"true","aria-label":a,style:P,tabIndex:-1,children:v})}),y)},W=({children:t,showClose:s=!0,onClose:v,className:a})=>r.jsxs("div",{className:`nice-modal__header ${a||""}`,children:[r.jsx("div",{className:"nice-modal__title",children:t}),s&&v&&r.jsx("button",{type:"button",className:"nice-modal__close",onClick:v,"aria-label":"Close",children:r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",children:r.jsx("path",{d:"M4 4l12 12M4 16L16 4"})})})]}),O=({children:t,className:s})=>r.jsx("div",{className:`nice-modal__body ${s||""}`,children:t}),q=({children:t,className:s})=>r.jsx("div",{className:`nice-modal__footer ${s||""}`,children:t}),K=({open:t,onClose:s,children:v,position:a="right",size:g=320,title:l,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,swipeToClose:j=!0,zIndex:_=1e3,className:p,style:P})=>{const w=e.useRef(null),[y,f]=e.useState(!1),[i,n]=e.useState(0);M.Ps(w,t);const x=Y();e.useEffect(()=>{if(!u||!t)return;const o=k=>{k.key==="Escape"&&(k.preventDefault(),s())};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[u,t,s]);const h=e.useCallback(o=>{let k=0;switch(a){case"left":k=Math.min(0,o.deltaX);break;case"right":k=Math.max(0,o.deltaX);break;case"top":k=Math.min(0,o.deltaY);break;case"bottom":k=Math.max(0,o.deltaY);break}n(k)},[a]),D=e.useCallback(o=>{let $=!1;switch(a){case"left":$=o.deltaX<-100;break;case"right":$=o.deltaX>100;break;case"top":$=o.deltaY<-100;break;case"bottom":$=o.deltaY>100;break}$&&(M.Xr("light"),s()),n(0),f(!1)},[a,s]),{ref:C}=M.ac({enabled:j&&t,onPanStart:()=>f(!0),onPan:h,onPanEnd:D}),E=e.useCallback(o=>{d&&o.target===o.currentTarget&&s()},[d,s]);if(!t)return null;const S=a==="left"||a==="right",L=S?{width:typeof g=="number"?`${g}px`:g}:{height:typeof g=="number"?`${g}px`:g},c=()=>{if(y)return S?`translateX(${i}px)`:`translateY(${i}px)`};return B.createPortal(r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`nice-drawer__overlay ${t?"nice-drawer__overlay--visible":""}`,style:{zIndex:_},onClick:E}),r.jsx("div",{ref:o=>{w.current=o,C.current=o},className:`nice-drawer nice-drawer--${a} ${t?"nice-drawer--open":""} ${p||""}`,style:{...L,zIndex:_+1,transform:c(),transition:y?"none":void 0,...P},role:"dialog","aria-modal":"true","aria-label":l,tabIndex:-1,children:v})]}),x)},F=({open:t,onClose:s,children:v,title:a,showHandle:g=!0,snapPoints:l=[.5,.9],initialSnap:d=0,expandable:u=!0,closeOnBackdropClick:j=!0,closeOnEscape:_=!0,hapticFeedback:p=!0,zIndex:P=1e3,className:w,style:y})=>{const f=e.useRef(null),i=e.useRef(null),[n,x]=e.useState(d),[h,D]=e.useState(!1),[C,E]=e.useState(0),S=e.useRef(0);e.useEffect(()=>{t&&(x(d),E(0))},[t,d]),M.Ps(f,t);const L=Y();e.useEffect(()=>{if(!_||!t)return;const m=b=>{b.key==="Escape"&&(b.preventDefault(),s())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[_,t,s]),e.useEffect(()=>{if(t){const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}}},[t]);const c=e.useCallback(m=>{const b=m.target.closest(".nice-bottom-sheet__handle"),I=i.current,X=!I||I.scrollTop<=0;!b&&!X||(D(!0),S.current=m.touches[0].clientY)},[]),o=e.useCallback(m=>{if(!h)return;const b=m.touches[0].clientY-S.current;(b>0||n<l.length-1)&&E(b)},[h,n,l.length]),k=e.useCallback(()=>{if(!h)return;const m=window.innerHeight;l[n]*m;const b=-C,I=m*.15;b>I&&u&&n<l.length-1?(x(n+1),p&&M.Xr("selection")):b<-I&&(n>0?(x(n-1),p&&M.Xr("selection")):(p&&M.Xr("light"),s())),D(!1),E(0)},[h,C,n,l,u,p,s]),$=e.useCallback(()=>{j&&s()},[j,s]);if(!t)return null;const R=l[n]*100,T=h?C:0;return B.createPortal(r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`nice-bottom-sheet__overlay ${t?"nice-bottom-sheet__overlay--visible":""}`,style:{zIndex:P},onClick:$}),r.jsxs("div",{ref:f,className:`nice-bottom-sheet ${t?"nice-bottom-sheet--open":""} ${w||""}`,style:{zIndex:P+1,height:`${R}vh`,transform:`translateY(${Math.max(0,T)}px)`,transition:h?"none":"transform 0.3s ease-out, height 0.3s ease-out",...y},role:"dialog","aria-modal":"true","aria-label":a,tabIndex:-1,onTouchStart:c,onTouchMove:o,onTouchEnd:k,children:[g&&r.jsx("div",{className:"nice-bottom-sheet__handle","aria-hidden":"true"}),a&&r.jsx("div",{className:"nice-bottom-sheet__title",children:a}),r.jsx("div",{ref:i,className:"nice-bottom-sheet__content",children:v})]})]}),L)},z=({trigger:t,children:s,placement:v="bottom",triggerMode:a="click",open:g,onOpenChange:l,hoverDelay:d=200,offset:u=8,className:j,showArrow:_=!0})=>{const[p,P]=e.useState(!1),w=e.useRef(null),y=e.useRef(null),f=e.useRef(null),i=Y(),n=g!==void 0,x=n?g:p,h=e.useCallback(c=>{n||P(c),l?.(c)},[n,l]);M.$s(y,()=>{a!=="manual"&&x&&h(!1)});const D=e.useCallback(()=>{a==="click"&&h(!x)},[a,x,h]),C=e.useCallback(()=>{a==="hover"&&(f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>h(!0),d))},[a,d,h]),E=e.useCallback(()=>{a==="hover"&&(f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>h(!1),d))},[a,d,h]),[S,L]=e.useState({top:0,left:0});return e.useEffect(()=>{if(!x||!w.current||!y.current)return;const c=w.current.getBoundingClientRect(),o=y.current.getBoundingClientRect(),k=window.innerWidth,$=window.innerHeight;let R=0,T=0;const[m,b="center"]=v.split("-");switch(m){case"top":R=c.top-o.height-u,T=c.left+(c.width-o.width)/2;break;case"bottom":R=c.bottom+u,T=c.left+(c.width-o.width)/2;break;case"left":R=c.top+(c.height-o.height)/2,T=c.left-o.width-u;break;case"right":R=c.top+(c.height-o.height)/2,T=c.right+u;break}m==="top"||m==="bottom"?(b==="start"&&(T=c.left),b==="end"&&(T=c.right-o.width)):(b==="start"&&(R=c.top),b==="end"&&(R=c.bottom-o.height)),T=Math.max(8,Math.min(k-o.width-8,T)),R=Math.max(8,Math.min($-o.height-8,R)),L({top:R,left:T})},[x,v,u]),r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:w,className:"nice-popover__trigger",onClick:D,onMouseEnter:C,onMouseLeave:E,style:{display:"inline-block"},children:t}),x&&B.createPortal(r.jsxs("div",{ref:y,className:`nice-popover nice-popover--${v} ${j||""}`,style:{position:"fixed",top:S.top,left:S.left,zIndex:1100},onMouseEnter:C,onMouseLeave:E,role:"tooltip",children:[_&&r.jsx("div",{className:"nice-popover__arrow"}),r.jsx("div",{className:"nice-popover__content",children:s})]}),i)]})},A=({items:t,children:s,onOpen:v,onClose:a,className:g})=>{const[l,d]=e.useState(!1),[u,j]=e.useState({x:0,y:0}),_=e.useRef(null),p=e.useRef(null),P=Y();M.$s(_,()=>{l&&(d(!1),a?.())});const w=e.useCallback(i=>{i.preventDefault(),j({x:i.clientX,y:i.clientY}),d(!0),v?.()},[v]),y=e.useCallback(i=>{!i.disabled&&i.onClick&&(i.onClick(),d(!1),a?.())},[a]);e.useEffect(()=>{if(!l)return;const i=n=>{n.key==="Escape"&&(d(!1),a?.())};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[l,a]);const f=i=>r.jsx("ul",{className:"nice-context-menu__list",role:"menu",children:i.map(n=>n.divider?r.jsx("li",{className:"nice-context-menu__divider",role:"separator"},n.key):r.jsx("li",{role:"presentation",children:r.jsxs("button",{type:"button",className:`nice-context-menu__item ${n.disabled?"nice-context-menu__item--disabled":""} ${n.danger?"nice-context-menu__item--danger":""}`,role:"menuitem",disabled:n.disabled,onClick:()=>y(n),children:[n.icon&&r.jsx("span",{className:"nice-context-menu__icon",children:n.icon}),r.jsx("span",{className:"nice-context-menu__label",children:n.label})]})},n.key))});return r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:p,onContextMenu:w,style:{display:"contents"},children:s}),l&&B.createPortal(r.jsx("div",{ref:_,className:`nice-context-menu ${g||""}`,style:{position:"fixed",left:u.x,top:u.y,zIndex:1200},role:"menu",children:f(t)}),P)]})};exports.NiceActionSheet=N.NiceActionSheet;exports.NiceBlockUI=N.NiceBlockUI;exports.NiceBox=N.NiceBox;exports.NiceCommandPaletteProvider=N.NiceCommandPaletteProvider;exports.NiceLoadPanel=N.NiceLoadPanel;exports.NicePopover=N.NicePopover;exports.NiceResizable=N.NiceResizable;exports.NiceResponsiveBox=N.NiceResponsiveBox;exports.NiceScrollView=N.NiceScrollView;exports.NiceTutorial=N.NiceTutorial;exports.NiceTutorialProvider=N.NiceTutorialProvider;exports.NiceWindow=N.NiceWindow;exports.NiceWindowManager=N.NiceWindowManager;exports.useCommandPalette=N.useCommandPalette;exports.useRegisterCommands=N.useRegisterCommands;exports.NiceBottomSheet=F;exports.NiceContextMenu=A;exports.NiceDrawer=K;exports.NiceModal=H;exports.NiceModalBody=O;exports.NiceModalFooter=q;exports.NiceModalHeader=W;exports.NiceOverlayPopover=z;