@nice2dev/ui 1.0.5 → 1.0.8

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 (130) hide show
  1. package/README.md +253 -207
  2. package/dist/NiceAPIFlow.doc-DnQLPUie.js +30 -0
  3. package/dist/NiceAPIFlow.doc-Dx4qw1lm.cjs +6 -0
  4. package/dist/NiceBranchManager.doc-BXjiENlD.cjs +6 -0
  5. package/dist/NiceBranchManager.doc-xLB82YwU.js +30 -0
  6. package/dist/NiceButton-B5RXLDwI.cjs +1 -0
  7. package/dist/NiceButton-CDiS45Ya.cjs +1 -0
  8. package/dist/NiceButton-D9l39Rs7.js +595 -0
  9. package/dist/NiceButton-DmTHNHet.js +450 -0
  10. package/dist/NiceCodeTemplate.doc-BWxTE4C_.cjs +6 -0
  11. package/dist/NiceCodeTemplate.doc-CA2U5F-v.js +30 -0
  12. package/dist/NiceDataBranchGraph.doc-CkitupWc.js +29 -0
  13. package/dist/NiceDataBranchGraph.doc-DDUgipqH.cjs +5 -0
  14. package/dist/NiceDataBranchManager.doc-B0ODKOs4.js +30 -0
  15. package/dist/NiceDataBranchManager.doc-CC5o8ihs.cjs +6 -0
  16. package/dist/NiceDataConflictResolver.doc-CdzScNie.cjs +5 -0
  17. package/dist/NiceDataConflictResolver.doc-V8vxYAeo.js +29 -0
  18. package/dist/NiceDataDiffViewer.doc-CR14Bq3A.cjs +6 -0
  19. package/dist/NiceDataDiffViewer.doc-w2I2QjhX.js +30 -0
  20. package/dist/NiceDataMapper.doc-C7jSyHRM.js +30 -0
  21. package/dist/NiceDataMapper.doc-DXjQHz87.cjs +6 -0
  22. package/dist/NiceDataMergeBuilder.doc-CV32WC_w.cjs +6 -0
  23. package/dist/NiceDataMergeBuilder.doc-DtuYb3nx.js +30 -0
  24. package/dist/NiceDataSnapshot.doc-CFLkY3ry.js +30 -0
  25. package/dist/NiceDataSnapshot.doc-CpZyQ17u.cjs +6 -0
  26. package/dist/NiceErrorBoundary-BAeqfoSc.cjs +1 -0
  27. package/dist/NiceErrorBoundary-D1hh5GGe.js +732 -0
  28. package/dist/NiceErrorBoundary-Dta4TGee.cjs +1 -0
  29. package/dist/NiceErrorBoundary-niMx1aSJ.js +837 -0
  30. package/dist/NiceEventOrchestrator.doc-C4SJfIDV.js +30 -0
  31. package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +6 -0
  32. package/dist/NiceGitBlame.doc-BG3_K9_0.cjs +6 -0
  33. package/dist/NiceGitBlame.doc-DrJABEat.js +30 -0
  34. package/dist/NiceGitConflictResolver.doc-BK7hAfz6.js +30 -0
  35. package/dist/NiceGitConflictResolver.doc-CgroGM9_.cjs +6 -0
  36. package/dist/NiceGitDiffViewer.doc-BAwgcY_3.cjs +6 -0
  37. package/dist/NiceGitDiffViewer.doc-BXKJeP-E.js +30 -0
  38. package/dist/NiceGitGraph.doc-B-WtGuzn.cjs +5 -0
  39. package/dist/NiceGitGraph.doc-DxnDPCgC.js +29 -0
  40. package/dist/NiceGitHooks.doc-BrEizvMp.js +29 -0
  41. package/dist/NiceGitHooks.doc-C4EdV5zj.cjs +5 -0
  42. package/dist/NiceMergeRequestBuilder.doc-C5p8mYuh.cjs +6 -0
  43. package/dist/NiceMergeRequestBuilder.doc-Ct9RCmU8.js +30 -0
  44. package/dist/NiceModuleLifecyclePanel-BapdidD6.js +4776 -0
  45. package/dist/NiceModuleLifecyclePanel-Brg1RLwi.cjs +1 -0
  46. package/dist/NiceModuleLifecyclePanel-CsFsm534.cjs +1 -0
  47. package/dist/NiceModuleLifecyclePanel-I_TXRiiY.js +5053 -0
  48. package/dist/NicePinCodeInput-4q8yULuo.js +13359 -0
  49. package/dist/NicePinCodeInput-CrMfdxxc.js +15287 -0
  50. package/dist/NicePinCodeInput-D0aF9MK8.cjs +692 -0
  51. package/dist/NicePinCodeInput-eD2q8nGa.cjs +692 -0
  52. package/dist/NicePinCodeInput.css +1 -0
  53. package/dist/NicePipelineEditor.doc-0eGt8zbX.cjs +5 -0
  54. package/dist/NicePipelineEditor.doc-DTmaOebn.js +29 -0
  55. package/dist/NicePipelineMonitor.doc-67CmsRcf.cjs +5 -0
  56. package/dist/NicePipelineMonitor.doc-mSMdhuG8.js +29 -0
  57. package/dist/NiceSavedQueryPanel-BZNvqSQW.cjs +596 -0
  58. package/dist/NiceSavedQueryPanel-CUAsdOjJ.js +6190 -0
  59. package/dist/NiceSavedQueryPanel-DUw8plYP.js +5666 -0
  60. package/dist/NiceSavedQueryPanel-xpk09zy1.cjs +596 -0
  61. package/dist/NiceSavedQueryPanel.css +1 -0
  62. package/dist/NiceStateDesigner.doc-B36u0hNU.js +29 -0
  63. package/dist/NiceStateDesigner.doc-MPmvNHSx.cjs +5 -0
  64. package/dist/NiceStockChart-CHlOnWzN.cjs +287 -0
  65. package/dist/NiceStockChart-Cpmv9_Cc.js +2341 -0
  66. package/dist/NiceStockChart.css +1 -0
  67. package/dist/NiceTestBuilder.doc-BFInj8GJ.js +30 -0
  68. package/dist/NiceTestBuilder.doc-CB03U_uR.cjs +6 -0
  69. package/dist/NiceToggle-C1UKGXmJ.js +209 -0
  70. package/dist/NiceToggle-CaY1u82g.js +277 -0
  71. package/dist/NiceToggle-DFJFQv_Z.cjs +1 -0
  72. package/dist/NiceToggle-lVi-ETi0.cjs +1 -0
  73. package/dist/NiceWindow-D1awkyFl.js +1636 -0
  74. package/dist/NiceWindow-IdHAcP70.cjs +1 -0
  75. package/dist/NiceWindow-SiCaREbq.js +1408 -0
  76. package/dist/NiceWindow-yARTUJsg.cjs +1 -0
  77. package/dist/charts-Bx_kNBsE.js +4280 -0
  78. package/dist/charts-DECVsCHX.cjs +754 -0
  79. package/dist/charts.cjs +1 -0
  80. package/dist/charts.css +1 -0
  81. package/dist/charts.d.ts +1043 -0
  82. package/dist/charts.mjs +23 -0
  83. package/dist/core-BZBTsGWN.cjs +96 -0
  84. package/dist/core-BpghV7Ls.js +17555 -0
  85. package/dist/core-CfXsl755.js +16305 -0
  86. package/dist/core-DGJSUW64.cjs +96 -0
  87. package/dist/data-branching-De4ExX-S.cjs +1 -0
  88. package/dist/data-branching-DiRfob1f.js +6071 -0
  89. package/dist/data-branching.cjs +1 -0
  90. package/dist/data-branching.d.ts +401 -0
  91. package/dist/data-branching.mjs +9 -0
  92. package/dist/data.cjs +1 -0
  93. package/dist/data.d.ts +2003 -0
  94. package/dist/data.mjs +21 -0
  95. package/dist/devops-BnYinjkT.cjs +17 -0
  96. package/dist/devops-Ckh57eti.js +7198 -0
  97. package/dist/devops.cjs +1 -0
  98. package/dist/devops.d.ts +758 -0
  99. package/dist/devops.mjs +12 -0
  100. package/dist/editors.cjs +1 -0
  101. package/dist/editors.d.ts +2728 -0
  102. package/dist/editors.mjs +66 -0
  103. package/dist/feedback.cjs +1 -0
  104. package/dist/feedback.d.ts +339 -0
  105. package/dist/feedback.mjs +16 -0
  106. package/dist/index-C853adw1.cjs +6199 -0
  107. package/dist/index-CBIZ6mTQ.cjs +5734 -0
  108. package/dist/index-CIl98Vbm.js +72951 -0
  109. package/dist/index-CNwVELPJ.js +62857 -0
  110. package/dist/index-CUx_-gKK.cjs +1 -0
  111. package/dist/index-x8mRM4Jc.js +17 -0
  112. package/dist/index.cjs +1 -7866
  113. package/dist/index.css +1 -0
  114. package/dist/index.d.ts +4888 -180
  115. package/dist/index.mjs +1021 -105889
  116. package/dist/lazy.cjs +1 -0
  117. package/dist/lazy.d.ts +1880 -0
  118. package/dist/lazy.mjs +98 -0
  119. package/dist/navigation.cjs +1 -0
  120. package/dist/navigation.d.ts +1862 -0
  121. package/dist/navigation.mjs +576 -0
  122. package/dist/no-code-BCuadkm4.cjs +332 -0
  123. package/dist/no-code-TL7PyulA.js +7005 -0
  124. package/dist/no-code.cjs +1 -0
  125. package/dist/no-code.d.ts +870 -0
  126. package/dist/no-code.mjs +13 -0
  127. package/dist/overlays.cjs +1 -0
  128. package/dist/overlays.d.ts +706 -0
  129. package/dist/overlays.mjs +482 -0
  130. package/package.json +51 -1
@@ -0,0 +1,576 @@
1
+ import { D as ae, a as ie, b as ce, c as se, d as le, e as re, N as te, 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 Me, w as we, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Le, G as Re, H as We, I as Be, J as Ke, K as Pe, L as Oe, M as Fe, S as je } from "./NiceModuleLifecyclePanel-I_TXRiiY.js";
2
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
3
+ import { forwardRef as E, useState as L, useCallback as R, useEffect as H } from "react";
4
+ import { b as I, f as T, g as K } from "./core-BpghV7Ls.js";
5
+ const U = E(
6
+ ({
7
+ items: b,
8
+ activeKey: m,
9
+ collapsed: c = !1,
10
+ width: p = 240,
11
+ collapsedWidth: l = 52,
12
+ onItemClick: v,
13
+ onCollapseChange: C,
14
+ header: k,
15
+ footer: d,
16
+ size: _ = "md",
17
+ className: g,
18
+ style: $,
19
+ id: y,
20
+ accessMode: x,
21
+ ...M
22
+ }, N) => {
23
+ const i = I(y), t = T(x, y), [s, u] = L(/* @__PURE__ */ new Set()), r = R((n) => {
24
+ u((D) => {
25
+ const a = new Set(D);
26
+ return a.has(n) ? a.delete(n) : a.add(n), a;
27
+ });
28
+ }, []);
29
+ if (t === "hidden")
30
+ return null;
31
+ const h = (n, D = 0) => {
32
+ const a = n.children && n.children.length > 0, A = s.has(n.key), w = n.key === m;
33
+ return /* @__PURE__ */ o("li", { className: "nice-sidebar-menu__item", children: [
34
+ /* @__PURE__ */ o(
35
+ "button",
36
+ {
37
+ className: `nice-sidebar-menu__btn ${w ? "nice-sidebar-menu__btn--active" : ""} ${n.disabled ? "nice-sidebar-menu__btn--disabled" : ""}`,
38
+ style: { paddingLeft: c ? void 0 : 12 + D * 16 },
39
+ onClick: () => a ? r(n.key) : v?.(n),
40
+ disabled: n.disabled,
41
+ title: c ? n.text : void 0,
42
+ type: "button",
43
+ children: [
44
+ n.icon && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__icon", children: n.icon }),
45
+ !c && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__label", children: n.text }),
46
+ !c && n.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__badge", children: n.badge }),
47
+ !c && a && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__chevron", children: A ? "▾" : "▸" })
48
+ ]
49
+ }
50
+ ),
51
+ a && A && !c && /* @__PURE__ */ e("ul", { className: "nice-sidebar-menu__children", children: n.children.map((S) => h(S, D + 1)) })
52
+ ] }, n.key);
53
+ };
54
+ return /* @__PURE__ */ o(
55
+ "nav",
56
+ {
57
+ ref: N,
58
+ id: i,
59
+ className: `nice-sidebar-menu nice-sidebar-menu--${_} ${c ? "nice-sidebar-menu--collapsed" : ""} ${g ?? ""}`,
60
+ style: { ...$, width: c ? l : p },
61
+ ...M,
62
+ children: [
63
+ k && /* @__PURE__ */ e("div", { className: "nice-sidebar-menu__header", children: k }),
64
+ /* @__PURE__ */ e("ul", { className: "nice-sidebar-menu__list", role: "list", children: b.map((n) => h(n)) }),
65
+ d && /* @__PURE__ */ e("div", { className: "nice-sidebar-menu__footer", children: d })
66
+ ]
67
+ }
68
+ );
69
+ }
70
+ );
71
+ U.displayName = "NiceSidebarMenu";
72
+ const V = E(
73
+ ({
74
+ items: b,
75
+ activeKey: m,
76
+ onItemClick: c,
77
+ brand: p,
78
+ actions: l,
79
+ size: v = "md",
80
+ className: C,
81
+ style: k,
82
+ id: d,
83
+ accessMode: _,
84
+ ...g
85
+ }, $) => {
86
+ const y = I(d), x = T(_, d), [M, N] = L(null);
87
+ return x === "hidden" ? null : /* @__PURE__ */ o(
88
+ "nav",
89
+ {
90
+ ref: $,
91
+ id: y,
92
+ className: `nice-top-menu nice-top-menu--${v} ${C ?? ""}`,
93
+ style: k,
94
+ ...g,
95
+ children: [
96
+ p && /* @__PURE__ */ e("div", { className: "nice-top-menu__brand", children: p }),
97
+ /* @__PURE__ */ e("ul", { className: "nice-top-menu__items", role: "menubar", children: b.map((i) => {
98
+ const t = i.children && i.children.length > 0, s = M === i.key;
99
+ return /* @__PURE__ */ o(
100
+ "li",
101
+ {
102
+ className: "nice-top-menu__item",
103
+ onMouseEnter: () => t && N(i.key),
104
+ onMouseLeave: () => t && N(null),
105
+ children: [
106
+ /* @__PURE__ */ o(
107
+ "button",
108
+ {
109
+ className: `nice-top-menu__btn ${i.key === m ? "nice-top-menu__btn--active" : ""}`,
110
+ onClick: () => t ? N(s ? null : i.key) : c?.(i),
111
+ role: "menuitem",
112
+ "aria-haspopup": t,
113
+ "aria-expanded": s,
114
+ disabled: i.disabled,
115
+ type: "button",
116
+ children: [
117
+ i.icon && /* @__PURE__ */ e("span", { children: i.icon }),
118
+ /* @__PURE__ */ e("span", { children: i.text }),
119
+ t && /* @__PURE__ */ e("span", { className: "nice-top-menu__chevron", children: "▾" })
120
+ ]
121
+ }
122
+ ),
123
+ t && s && /* @__PURE__ */ e("ul", { className: "nice-top-menu__dropdown", role: "menu", children: i.children.map((u) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
124
+ "button",
125
+ {
126
+ className: `nice-top-menu__dropdown-btn ${u.key === m ? "nice-top-menu__dropdown-btn--active" : ""}`,
127
+ onClick: () => {
128
+ c?.(u), N(null);
129
+ },
130
+ disabled: u.disabled,
131
+ role: "menuitem",
132
+ type: "button",
133
+ children: [
134
+ u.icon && /* @__PURE__ */ e("span", { children: u.icon }),
135
+ /* @__PURE__ */ e("span", { children: u.text }),
136
+ u.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-top-menu__badge", children: u.badge })
137
+ ]
138
+ }
139
+ ) }, u.key)) })
140
+ ]
141
+ },
142
+ i.key
143
+ );
144
+ }) }),
145
+ l && /* @__PURE__ */ e("div", { className: "nice-top-menu__actions", children: l })
146
+ ]
147
+ }
148
+ );
149
+ }
150
+ );
151
+ V.displayName = "NiceTopMenu";
152
+ const q = E(
153
+ ({
154
+ tabs: b,
155
+ activeTab: m,
156
+ onTabChange: c,
157
+ onItemClick: p,
158
+ minimized: l = !1,
159
+ onMinimizeToggle: v,
160
+ size: C = "md",
161
+ className: k,
162
+ style: d,
163
+ id: _,
164
+ accessMode: g,
165
+ ...$
166
+ }, y) => {
167
+ const x = I(_), M = T(g, _), [N, i] = L(m ?? b[0]?.key), t = m ?? N, s = b.find((r) => r.key === t), u = R(
168
+ (r) => {
169
+ i(r), c?.(r);
170
+ },
171
+ [c]
172
+ );
173
+ return M === "hidden" ? null : /* @__PURE__ */ o(
174
+ "div",
175
+ {
176
+ ref: y,
177
+ id: x,
178
+ className: `nice-ribbon-menu nice-ribbon-menu--${C} ${l ? "nice-ribbon-menu--minimized" : ""} ${k ?? ""}`,
179
+ style: d,
180
+ ...$,
181
+ children: [
182
+ /* @__PURE__ */ o("div", { className: "nice-ribbon-menu__tabs", role: "tablist", children: [
183
+ b.map((r) => /* @__PURE__ */ e(
184
+ "button",
185
+ {
186
+ className: `nice-ribbon-menu__tab ${r.key === t ? "nice-ribbon-menu__tab--active" : ""}`,
187
+ onClick: () => u(r.key),
188
+ role: "tab",
189
+ "aria-selected": r.key === t,
190
+ type: "button",
191
+ children: r.label
192
+ },
193
+ r.key
194
+ )),
195
+ /* @__PURE__ */ e(
196
+ "button",
197
+ {
198
+ className: "nice-ribbon-menu__minimize",
199
+ onClick: () => v?.(!l),
200
+ type: "button",
201
+ "aria-label": l ? "Expand" : "Minimize",
202
+ children: l ? "▼" : "▲"
203
+ }
204
+ )
205
+ ] }),
206
+ !l && s && /* @__PURE__ */ e("div", { className: "nice-ribbon-menu__panel", role: "tabpanel", children: s.groups.map((r, h) => /* @__PURE__ */ o("div", { className: "nice-ribbon-menu__group", children: [
207
+ /* @__PURE__ */ e("div", { className: "nice-ribbon-menu__group-items", children: r.items.map((n) => /* @__PURE__ */ o(
208
+ "button",
209
+ {
210
+ className: "nice-ribbon-menu__item",
211
+ onClick: () => p?.(n),
212
+ disabled: n.disabled,
213
+ type: "button",
214
+ children: [
215
+ n.icon && /* @__PURE__ */ e("span", { className: "nice-ribbon-menu__item-icon", children: n.icon }),
216
+ /* @__PURE__ */ e("span", { className: "nice-ribbon-menu__item-label", children: n.text })
217
+ ]
218
+ },
219
+ n.key
220
+ )) }),
221
+ /* @__PURE__ */ e("div", { className: "nice-ribbon-menu__group-label", children: r.label })
222
+ ] }, h)) })
223
+ ]
224
+ }
225
+ );
226
+ }
227
+ );
228
+ q.displayName = "NiceRibbonMenu";
229
+ const J = E(
230
+ ({
231
+ items: b,
232
+ activeKey: m,
233
+ onItemClick: c,
234
+ position: p = "bottom",
235
+ autoHide: l = !1,
236
+ iconSize: v = 40,
237
+ size: C = "md",
238
+ className: k,
239
+ style: d,
240
+ id: _,
241
+ accessMode: g,
242
+ ...$
243
+ }, y) => {
244
+ const x = I(_), M = T(g, _), [N, i] = L(!1), t = !l || N;
245
+ return M === "hidden" ? null : /* @__PURE__ */ e(
246
+ "div",
247
+ {
248
+ ref: y,
249
+ id: x,
250
+ className: `nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${C} ${l && !t ? "nice-dock-menu--hidden" : ""} ${k ?? ""}`,
251
+ style: d,
252
+ onMouseEnter: () => i(!0),
253
+ onMouseLeave: () => i(!1),
254
+ ...$,
255
+ children: /* @__PURE__ */ e("div", { className: "nice-dock-menu__items", children: b.map((s) => /* @__PURE__ */ o(
256
+ "button",
257
+ {
258
+ className: `nice-dock-menu__item ${s.key === m ? "nice-dock-menu__item--active" : ""}`,
259
+ onClick: () => c?.(s),
260
+ disabled: s.disabled,
261
+ title: s.text,
262
+ type: "button",
263
+ style: { width: v, height: v },
264
+ children: [
265
+ s.icon ? /* @__PURE__ */ e("span", { className: "nice-dock-menu__icon", children: s.icon }) : /* @__PURE__ */ e("span", { children: s.text[0] }),
266
+ s.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-dock-menu__badge", children: s.badge })
267
+ ]
268
+ },
269
+ s.key
270
+ )) })
271
+ }
272
+ );
273
+ }
274
+ );
275
+ J.displayName = "NiceDockMenu";
276
+ const Q = E(
277
+ ({
278
+ items: b,
279
+ activeKey: m,
280
+ onItemClick: c,
281
+ open: p,
282
+ onOpenChange: l,
283
+ position: v = "left",
284
+ panelWidth: C = 280,
285
+ header: k,
286
+ footer: d,
287
+ size: _ = "md",
288
+ className: g,
289
+ style: $,
290
+ id: y,
291
+ accessMode: x,
292
+ ...M
293
+ }, N) => {
294
+ const i = I(y), t = T(x, y), { t: s } = K(), [u, r] = L(!1), h = p ?? u, n = R(() => {
295
+ const a = !h;
296
+ r(a), l?.(a);
297
+ }, [h, l]), D = R(
298
+ (a) => {
299
+ c?.(a), r(!1), l?.(!1);
300
+ },
301
+ [c, l]
302
+ );
303
+ return t === "hidden" ? null : /* @__PURE__ */ o(
304
+ "div",
305
+ {
306
+ ref: N,
307
+ id: i,
308
+ className: `nice-hamburger-menu nice-hamburger-menu--${_} ${g ?? ""}`,
309
+ style: $,
310
+ ...M,
311
+ children: [
312
+ /* @__PURE__ */ e(
313
+ "button",
314
+ {
315
+ className: "nice-hamburger-menu__trigger",
316
+ onClick: n,
317
+ "aria-label": s("nav.menu", "Menu"),
318
+ "aria-expanded": h,
319
+ type: "button",
320
+ children: /* @__PURE__ */ o(
321
+ "span",
322
+ {
323
+ className: `nice-hamburger-menu__icon ${h ? "nice-hamburger-menu__icon--open" : ""}`,
324
+ children: [
325
+ /* @__PURE__ */ e("span", {}),
326
+ /* @__PURE__ */ e("span", {}),
327
+ /* @__PURE__ */ e("span", {})
328
+ ]
329
+ }
330
+ )
331
+ }
332
+ ),
333
+ h && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__backdrop", onClick: n, "aria-hidden": !0 }),
334
+ /* @__PURE__ */ o(
335
+ "div",
336
+ {
337
+ className: `nice-hamburger-menu__panel nice-hamburger-menu__panel--${v} ${h ? "nice-hamburger-menu__panel--open" : ""}`,
338
+ style: { width: C },
339
+ children: [
340
+ k && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__header", children: k }),
341
+ /* @__PURE__ */ e("ul", { className: "nice-hamburger-menu__list", role: "menu", children: b.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
342
+ "button",
343
+ {
344
+ className: `nice-hamburger-menu__item ${a.key === m ? "nice-hamburger-menu__item--active" : ""}`,
345
+ onClick: () => D(a),
346
+ disabled: a.disabled,
347
+ role: "menuitem",
348
+ type: "button",
349
+ children: [
350
+ a.icon && /* @__PURE__ */ e("span", { className: "nice-hamburger-menu__item-icon", children: a.icon }),
351
+ /* @__PURE__ */ e("span", { children: a.text }),
352
+ a.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-hamburger-menu__item-badge", children: a.badge })
353
+ ]
354
+ }
355
+ ) }, a.key)) }),
356
+ d && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__footer", children: d })
357
+ ]
358
+ }
359
+ )
360
+ ]
361
+ }
362
+ );
363
+ }
364
+ );
365
+ Q.displayName = "NiceHamburgerMenu";
366
+ const X = E(
367
+ ({
368
+ canGoBack: b = !1,
369
+ canGoForward: m = !1,
370
+ onBack: c,
371
+ onForward: p,
372
+ onRefresh: l,
373
+ enableShortcuts: v = !0,
374
+ showRefresh: C = !0,
375
+ showStop: k = !0,
376
+ isLoading: d = !1,
377
+ onStop: _,
378
+ size: g = "md",
379
+ variant: $ = "default",
380
+ tooltipPosition: y = "bottom",
381
+ backIcon: x,
382
+ forwardIcon: M,
383
+ refreshIcon: N,
384
+ stopIcon: i,
385
+ className: t,
386
+ style: s,
387
+ id: u,
388
+ accessMode: r,
389
+ disabled: h,
390
+ ...n
391
+ }, D) => {
392
+ const a = I(u), A = T(r, u), { t: w } = K();
393
+ if (H(() => {
394
+ if (!v || h)
395
+ return;
396
+ const W = (f) => {
397
+ const B = f.altKey, z = f.ctrlKey || f.metaKey;
398
+ B && f.key === "ArrowLeft" ? (f.preventDefault(), b && c?.()) : B && f.key === "ArrowRight" ? (f.preventDefault(), m && p?.()) : f.key === "F5" || z && f.key === "r" ? (f.preventDefault(), d ? _?.() : l?.()) : f.key === "Escape" && d && (f.preventDefault(), _?.());
399
+ };
400
+ return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
401
+ }, [
402
+ v,
403
+ h,
404
+ b,
405
+ m,
406
+ d,
407
+ c,
408
+ p,
409
+ l,
410
+ _
411
+ ]), A === "hidden")
412
+ return null;
413
+ const S = A === "disabled" || h, P = x ?? /* @__PURE__ */ e(
414
+ "svg",
415
+ {
416
+ width: "16",
417
+ height: "16",
418
+ viewBox: "0 0 24 24",
419
+ fill: "none",
420
+ stroke: "currentColor",
421
+ strokeWidth: "2",
422
+ children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
423
+ }
424
+ ), O = M ?? /* @__PURE__ */ e(
425
+ "svg",
426
+ {
427
+ width: "16",
428
+ height: "16",
429
+ viewBox: "0 0 24 24",
430
+ fill: "none",
431
+ stroke: "currentColor",
432
+ strokeWidth: "2",
433
+ children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
434
+ }
435
+ ), F = N ?? /* @__PURE__ */ o(
436
+ "svg",
437
+ {
438
+ width: "16",
439
+ height: "16",
440
+ viewBox: "0 0 24 24",
441
+ fill: "none",
442
+ stroke: "currentColor",
443
+ strokeWidth: "2",
444
+ children: [
445
+ /* @__PURE__ */ e("polyline", { points: "23 4 23 10 17 10" }),
446
+ /* @__PURE__ */ e("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
447
+ ]
448
+ }
449
+ ), j = i ?? /* @__PURE__ */ o(
450
+ "svg",
451
+ {
452
+ width: "16",
453
+ height: "16",
454
+ viewBox: "0 0 24 24",
455
+ fill: "none",
456
+ stroke: "currentColor",
457
+ strokeWidth: "2",
458
+ children: [
459
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
460
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
461
+ ]
462
+ }
463
+ );
464
+ return /* @__PURE__ */ o(
465
+ "div",
466
+ {
467
+ ref: D,
468
+ id: a,
469
+ className: `nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${$}${S ? " nice-nav-controls--disabled" : ""}${t ? ` ${t}` : ""}`,
470
+ style: s,
471
+ role: "navigation",
472
+ "aria-label": w("nav.controls", "Navigation controls"),
473
+ ...n,
474
+ children: [
475
+ /* @__PURE__ */ e(
476
+ "button",
477
+ {
478
+ type: "button",
479
+ className: `nice-nav-controls__btn nice-nav-controls__btn--back${b ? "" : " nice-nav-controls__btn--disabled"}`,
480
+ onClick: c,
481
+ disabled: S || !b,
482
+ "aria-label": w("nav.back", "Back"),
483
+ title: `${w("nav.back", "Back")} (Alt+←)`,
484
+ children: P
485
+ }
486
+ ),
487
+ /* @__PURE__ */ e(
488
+ "button",
489
+ {
490
+ type: "button",
491
+ className: `nice-nav-controls__btn nice-nav-controls__btn--forward${m ? "" : " nice-nav-controls__btn--disabled"}`,
492
+ onClick: p,
493
+ disabled: S || !m,
494
+ "aria-label": w("nav.forward", "Forward"),
495
+ title: `${w("nav.forward", "Forward")} (Alt+→)`,
496
+ children: O
497
+ }
498
+ ),
499
+ (C || k && d) && (d ? /* @__PURE__ */ e(
500
+ "button",
501
+ {
502
+ type: "button",
503
+ className: "nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",
504
+ onClick: _,
505
+ disabled: S,
506
+ "aria-label": w("nav.stop", "Stop"),
507
+ title: `${w("nav.stop", "Stop")} (Esc)`,
508
+ children: j
509
+ }
510
+ ) : /* @__PURE__ */ e(
511
+ "button",
512
+ {
513
+ type: "button",
514
+ className: "nice-nav-controls__btn nice-nav-controls__btn--refresh",
515
+ onClick: l,
516
+ disabled: S,
517
+ "aria-label": w("nav.refresh", "Refresh"),
518
+ title: `${w("nav.refresh", "Refresh")} (F5)`,
519
+ children: F
520
+ }
521
+ ))
522
+ ]
523
+ }
524
+ );
525
+ }
526
+ );
527
+ X.displayName = "NiceNavigationControls";
528
+ export {
529
+ ae as DEFAULT_SIDEBAR_PREFS,
530
+ ie as DesktopContextMenu,
531
+ ce as DesktopGrid,
532
+ se as DesktopStartMenu,
533
+ le as DesktopSystemTray,
534
+ re as DesktopTaskbar,
535
+ te as NiceAccordion,
536
+ oe as NiceAppLayout,
537
+ de as NiceBottomNavigation,
538
+ ue as NiceBreadcrumb,
539
+ be as NiceCard,
540
+ me as NiceClassicShell,
541
+ _e as NiceCompactShell,
542
+ he as NiceConsole,
543
+ pe as NiceContextMenu,
544
+ Ne as NiceDashboardLayout,
545
+ ve as NiceDashboardShell,
546
+ ke as NiceDesktop,
547
+ ye as NiceDock,
548
+ J as NiceDockMenu,
549
+ fe as NiceDynamicSidebar,
550
+ Q as NiceHamburgerMenu,
551
+ ge as NiceKioskShell,
552
+ $e as NiceMdiWorkspace,
553
+ xe as NiceMegaMenu,
554
+ Me as NiceMenu,
555
+ we as NiceModeSelector,
556
+ Ce as NiceModuleLifecyclePanel,
557
+ De as NiceMultiView,
558
+ Se as NiceNavbar,
559
+ X as NiceNavigationControls,
560
+ Ee as NiceOnboardingWizard,
561
+ Ie as NiceOrganizationProfileForm,
562
+ Te as NicePagination,
563
+ q as NiceRibbonMenu,
564
+ Ae as NiceSetupWizard,
565
+ U as NiceSidebarMenu,
566
+ Le as NiceSidebarNav,
567
+ Re as NiceSplitter,
568
+ We as NiceTabPanel,
569
+ Be as NiceTabs,
570
+ Ke as NiceTenantSwitcher,
571
+ Pe as NiceToolbar,
572
+ V as NiceTopMenu,
573
+ Oe as NiceUserMenu,
574
+ Fe as NiceWizard,
575
+ je as SIDEBAR_MODE_META
576
+ };