@rafal.lemieszewski/tide-ui 0.90.0 → 0.90.1

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.
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, jsxs as v } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
3
  import * as i from "@radix-ui/react-dropdown-menu";
4
- import { ChevronLeft as z, ChevronRight as h, Check as g, Circle as w } from "lucide-react";
4
+ import { ChevronLeft as j, Check as g, Circle as w, ChevronRight as h } from "lucide-react";
5
5
  import { cn as u } from "../../lib/utils.js";
6
- import { useIsDesktop as j } from "../../lib/hooks.js";
7
- import { Drawer as _, DrawerTrigger as P, DrawerContent as B, DrawerClose as y } from "./drawer.js";
6
+ import { useIsDesktop as _ } from "../../lib/hooks.js";
7
+ import { Drawer as P, DrawerTrigger as G, DrawerContent as B, DrawerClose as y } from "./drawer.js";
8
8
  import { Icon as x } from "./icon.js";
9
- const W = i.Root, $ = i.Trigger, ie = i.Group, E = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, children: e, ...a }, s) => /* @__PURE__ */ v(
9
+ const V = i.Root, W = i.Trigger, ce = i.Group, $ = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, children: e, ...a }, s) => /* @__PURE__ */ v(
10
10
  i.SubTrigger,
11
11
  {
12
12
  ref: s,
@@ -22,8 +22,8 @@ const W = i.Root, $ = i.Trigger, ie = i.Group, E = /* @__PURE__ */ n.forwardRef(
22
22
  ]
23
23
  }
24
24
  ));
25
- E.displayName = i.SubTrigger.displayName;
26
- const G = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
25
+ $.displayName = i.SubTrigger.displayName;
26
+ const E = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
27
27
  i.SubContent,
28
28
  {
29
29
  ref: e,
@@ -34,8 +34,8 @@ const G = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE
34
34
  ...o
35
35
  }
36
36
  ));
37
- G.displayName = i.SubContent.displayName;
38
- const k = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(i.Portal, { children: /* @__PURE__ */ r(
37
+ E.displayName = i.SubContent.displayName;
38
+ const D = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(i.Portal, { children: /* @__PURE__ */ r(
39
39
  i.Content,
40
40
  {
41
41
  ref: a,
@@ -47,8 +47,8 @@ const k = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e
47
47
  ...e
48
48
  }
49
49
  ) }));
50
- k.displayName = i.Content.displayName;
51
- const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l }, c) => /* @__PURE__ */ v(
50
+ D.displayName = i.Content.displayName;
51
+ const C = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l }, c) => /* @__PURE__ */ v(
52
52
  i.Item,
53
53
  {
54
54
  ref: c,
@@ -65,8 +65,8 @@ const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e
65
65
  ]
66
66
  }
67
67
  ));
68
- N.displayName = i.Item.displayName;
69
- const V = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */ v(
68
+ C.displayName = i.Item.displayName;
69
+ const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */ v(
70
70
  i.CheckboxItem,
71
71
  {
72
72
  ref: s,
@@ -83,8 +83,8 @@ const V = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
83
83
  ]
84
84
  }
85
85
  ));
86
- V.displayName = i.CheckboxItem.displayName;
87
- const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */ v(
86
+ A.displayName = i.CheckboxItem.displayName;
87
+ const H = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */ v(
88
88
  i.RadioItem,
89
89
  {
90
90
  ref: a,
@@ -100,8 +100,8 @@ const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a)
100
100
  ]
101
101
  }
102
102
  ));
103
- A.displayName = i.RadioItem.displayName;
104
- const H = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
103
+ H.displayName = i.RadioItem.displayName;
104
+ const X = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
105
105
  i.Label,
106
106
  {
107
107
  ref: a,
@@ -113,8 +113,8 @@ const H = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
113
113
  ...e
114
114
  }
115
115
  ));
116
- H.displayName = i.Label.displayName;
117
- const X = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
116
+ X.displayName = i.Label.displayName;
117
+ const q = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
118
118
  i.Separator,
119
119
  {
120
120
  ref: e,
@@ -122,8 +122,19 @@ const X = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE
122
122
  ...o
123
123
  }
124
124
  ));
125
- X.displayName = i.Separator.displayName;
126
- const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children: c, ...m }, d) => {
125
+ q.displayName = i.Separator.displayName;
126
+ const F = ({
127
+ className: t,
128
+ ...o
129
+ }) => /* @__PURE__ */ r(
130
+ "span",
131
+ {
132
+ className: u("text-caption-sm ml-auto tracking-widest text-[var(--color-text-tertiary)]", t),
133
+ ...o
134
+ }
135
+ );
136
+ F.displayName = "DropdownMenuShortcut";
137
+ const M = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children: c, ...m }, d) => {
127
138
  const b = /* @__PURE__ */ v(
128
139
  "div",
129
140
  {
@@ -146,8 +157,8 @@ const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e
146
157
  );
147
158
  return s ? /* @__PURE__ */ r(y, { asChild: !0, children: b }) : b;
148
159
  });
149
- D.displayName = "MobileDropdownItem";
150
- const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l }, c) => {
160
+ M.displayName = "MobileDropdownItem";
161
+ const R = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l }, c) => {
151
162
  const m = /* @__PURE__ */ v(
152
163
  "div",
153
164
  {
@@ -169,8 +180,8 @@ const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
169
180
  );
170
181
  return a ? /* @__PURE__ */ r(y, { asChild: !0, children: m }) : m;
171
182
  });
172
- C.displayName = "MobileDropdownCheckboxItem";
173
- const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect: c, ...m }, d) => {
183
+ R.displayName = "MobileDropdownCheckboxItem";
184
+ const I = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect: c, ...m }, d) => {
174
185
  const b = /* @__PURE__ */ v(
175
186
  "div",
176
187
  {
@@ -196,8 +207,8 @@ const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, c
196
207
  );
197
208
  return l ? /* @__PURE__ */ r(y, { asChild: !0, children: b }) : b;
198
209
  });
199
- M.displayName = "MobileDropdownRadioItem";
200
- const R = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
210
+ I.displayName = "MobileDropdownRadioItem";
211
+ const S = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
201
212
  "div",
202
213
  {
203
214
  ref: a,
@@ -209,8 +220,8 @@ const R = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
209
220
  ...e
210
221
  }
211
222
  ));
212
- R.displayName = "MobileDropdownLabel";
213
- const I = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
223
+ S.displayName = "MobileDropdownLabel";
224
+ const L = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
214
225
  "div",
215
226
  {
216
227
  ref: e,
@@ -219,14 +230,14 @@ const I = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE
219
230
  ...o
220
231
  }
221
232
  ));
222
- I.displayName = "MobileDropdownSeparator";
223
- const p = n.createContext({ isDesktop: !0 }), ce = ({ children: t }) => {
224
- const o = j(), e = n.useMemo(() => ({ isDesktop: o }), [o]);
225
- return o ? /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(W, { children: t }) }) : /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(_, { children: t }) }) });
226
- }, q = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, children: e, ...a }, s) => {
233
+ L.displayName = "MobileDropdownSeparator";
234
+ const p = n.createContext({ isDesktop: !0 }), ue = ({ children: t }) => {
235
+ const o = _(), e = n.useMemo(() => ({ isDesktop: o }), [o]);
236
+ return o ? /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(V, { children: t }) }) : /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r(P, { children: t }) }) });
237
+ }, J = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, children: e, ...a }, s) => {
227
238
  const { isDesktop: l } = n.useContext(p);
228
239
  return l ? /* @__PURE__ */ r(
229
- k,
240
+ D,
230
241
  {
231
242
  ref: s,
232
243
  sideOffset: o,
@@ -245,17 +256,17 @@ const p = n.createContext({ isDesktop: !0 }), ce = ({ children: t }) => {
245
256
  ),
246
257
  ...a,
247
258
  children: [
248
- /* @__PURE__ */ r(O, { children: /* @__PURE__ */ r("div", { className: "space-y-[var(--space-xs)] px-[var(--space-m)] pt-[var(--space-s)] pb-[var(--space-m)]", children: e }) }),
259
+ /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r("div", { className: "space-y-[var(--space-xs)] px-[var(--space-m)] pt-[var(--space-s)] pb-[var(--space-m)]", children: e }) }),
249
260
  /* @__PURE__ */ r("div", { className: "h-[env(safe-area-inset-bottom)] pb-1" })
250
261
  ]
251
262
  }
252
263
  );
253
264
  });
254
- q.displayName = "ResponsiveDropdownMenuContent";
255
- const F = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
265
+ J.displayName = "ResponsiveDropdownMenuContent";
266
+ const K = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
256
267
  const { isDesktop: s } = n.useContext(p);
257
268
  if (s)
258
- return /* @__PURE__ */ r($, { ref: a, asChild: t, ...e, children: o });
269
+ return /* @__PURE__ */ r(W, { ref: a, asChild: t, ...e, children: o });
259
270
  const l = t ? {} : {
260
271
  style: {
261
272
  touchAction: "manipulation",
@@ -264,7 +275,7 @@ const F = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) =>
264
275
  }
265
276
  };
266
277
  return /* @__PURE__ */ r(
267
- P,
278
+ G,
268
279
  {
269
280
  ref: a,
270
281
  asChild: t,
@@ -274,8 +285,8 @@ const F = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) =>
274
285
  }
275
286
  );
276
287
  });
277
- F.displayName = "ResponsiveDropdownMenuTrigger";
278
- const J = n.createContext({}), S = n.createContext({
288
+ K.displayName = "ResponsiveDropdownMenuTrigger";
289
+ const T = n.createContext({}), k = n.createContext({
279
290
  navigationState: { levels: [], currentLevelIndex: 0, isTransitioning: !1 },
280
291
  navigateToSubmenu: () => {
281
292
  },
@@ -284,7 +295,7 @@ const J = n.createContext({}), S = n.createContext({
284
295
  registerMenuLevel: () => {
285
296
  },
286
297
  isCurrentLevel: () => !1
287
- }), L = n.createContext({
298
+ }), N = n.createContext({
288
299
  submenuContent: null,
289
300
  submenuTitle: "",
290
301
  setSubmenuContent: () => {
@@ -293,19 +304,19 @@ const J = n.createContext({}), S = n.createContext({
293
304
  },
294
305
  triggerNavigation: () => {
295
306
  }
296
- }), K = ({ children: t }) => {
307
+ }), O = ({ children: t }) => {
297
308
  const [o, e] = n.useState({
298
309
  levels: [],
299
310
  currentLevelIndex: 0,
300
311
  isTransitioning: !1
301
312
  }), a = n.useCallback((d, b) => {
302
313
  e((f) => {
303
- const T = {
314
+ const z = {
304
315
  id: `${b}-${Date.now()}`,
305
316
  ...d
306
317
  };
307
318
  return {
308
- levels: [...f.levels, T],
319
+ levels: [...f.levels, z],
309
320
  currentLevelIndex: f.levels.length,
310
321
  isTransitioning: !0
311
322
  };
@@ -332,9 +343,9 @@ const J = n.createContext({}), S = n.createContext({
332
343
  registerMenuLevel: l,
333
344
  isCurrentLevel: c
334
345
  }), [o, a, s, l, c]);
335
- return /* @__PURE__ */ r(S.Provider, { value: m, children: t });
336
- }, O = ({ children: t }) => {
337
- const { navigationState: o, navigateBack: e } = n.useContext(S), { levels: a, currentLevelIndex: s, isTransitioning: l } = o, c = a[s];
346
+ return /* @__PURE__ */ r(k.Provider, { value: m, children: t });
347
+ }, Q = ({ children: t }) => {
348
+ const { navigationState: o, navigateBack: e } = n.useContext(k), { levels: a, currentLevelIndex: s, isTransitioning: l } = o, c = a[s];
338
349
  return /* @__PURE__ */ v("div", { className: "relative overflow-hidden h-full", children: [
339
350
  !(s === 0) && c && /* @__PURE__ */ v("div", { className: "flex items-center px-[var(--space-m)] pt-[var(--space-s)] pb-[var(--space-m)] border-b border-[var(--color-border-primary-subtle)]", children: [
340
351
  /* @__PURE__ */ v(
@@ -343,7 +354,7 @@ const J = n.createContext({}), S = n.createContext({
343
354
  onClick: e,
344
355
  className: "flex items-center text-body-md text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
345
356
  children: [
346
- /* @__PURE__ */ r(z, { className: "h-4 w-4 mr-[var(--space-s)]" }),
357
+ /* @__PURE__ */ r(j, { className: "h-4 w-4 mr-[var(--space-s)]" }),
347
358
  "Back"
348
359
  ]
349
360
  }
@@ -382,10 +393,10 @@ const J = n.createContext({}), S = n.createContext({
382
393
  }
383
394
  )
384
395
  ] });
385
- }, Q = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...c }, m) => {
396
+ }, U = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...c }, m) => {
386
397
  const { isDesktop: d } = n.useContext(p);
387
398
  return d ? /* @__PURE__ */ r(
388
- N,
399
+ C,
389
400
  {
390
401
  ref: m,
391
402
  className: t,
@@ -396,7 +407,7 @@ const J = n.createContext({}), S = n.createContext({
396
407
  ...c
397
408
  }
398
409
  ) : /* @__PURE__ */ r(
399
- D,
410
+ M,
400
411
  {
401
412
  className: t,
402
413
  inset: o,
@@ -408,8 +419,8 @@ const J = n.createContext({}), S = n.createContext({
408
419
  }
409
420
  );
410
421
  });
411
- Q.displayName = "ResponsiveDropdownMenuItem";
412
- const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l }, c) => {
422
+ U.displayName = "ResponsiveDropdownMenuItem";
423
+ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l }, c) => {
413
424
  const { isDesktop: m } = n.useContext(p);
414
425
  return m ? /* @__PURE__ */ v(
415
426
  i.CheckboxItem,
@@ -429,7 +440,7 @@ const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
429
440
  ]
430
441
  }
431
442
  ) : /* @__PURE__ */ r(
432
- C,
443
+ R,
433
444
  {
434
445
  className: t,
435
446
  checked: e,
@@ -440,8 +451,8 @@ const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
440
451
  }
441
452
  );
442
453
  });
443
- U.displayName = "ResponsiveDropdownMenuCheckboxItem";
444
- const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l }, c) => {
454
+ Y.displayName = "ResponsiveDropdownMenuCheckboxItem";
455
+ const Z = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l }, c) => {
445
456
  const { isDesktop: m } = n.useContext(p);
446
457
  return m ? /* @__PURE__ */ v(
447
458
  i.RadioItem,
@@ -460,8 +471,8 @@ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, i
460
471
  o
461
472
  ]
462
473
  }
463
- ) : /* @__PURE__ */ r(J.Consumer, { children: ({ radioValue: d, onRadioChange: b }) => /* @__PURE__ */ r(
464
- M,
474
+ ) : /* @__PURE__ */ r(T.Consumer, { children: ({ radioValue: d, onRadioChange: b }) => /* @__PURE__ */ r(
475
+ I,
465
476
  {
466
477
  className: t,
467
478
  value: e,
@@ -474,8 +485,8 @@ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, i
474
485
  }
475
486
  ) });
476
487
  });
477
- Y.displayName = "ResponsiveDropdownMenuRadioItem";
478
- const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => {
488
+ Z.displayName = "ResponsiveDropdownMenuRadioItem";
489
+ const ee = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => {
479
490
  const { isDesktop: s } = n.useContext(p);
480
491
  return s ? /* @__PURE__ */ r(
481
492
  i.Label,
@@ -489,7 +500,7 @@ const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
489
500
  ...e
490
501
  }
491
502
  ) : /* @__PURE__ */ r(
492
- R,
503
+ S,
493
504
  {
494
505
  className: t,
495
506
  inset: o,
@@ -497,8 +508,8 @@ const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
497
508
  }
498
509
  );
499
510
  });
500
- Z.displayName = "ResponsiveDropdownMenuLabel";
501
- const ee = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
511
+ ee.displayName = "ResponsiveDropdownMenuLabel";
512
+ const re = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
502
513
  const { isDesktop: a } = n.useContext(p);
503
514
  return a ? /* @__PURE__ */ r(
504
515
  i.Separator,
@@ -508,16 +519,36 @@ const ee = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
508
519
  ...o
509
520
  }
510
521
  ) : /* @__PURE__ */ r(
511
- I,
522
+ L,
512
523
  {
513
524
  className: t,
514
525
  ...o
515
526
  }
516
527
  );
517
528
  });
518
- ee.displayName = "ResponsiveDropdownMenuSeparator";
519
- const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s }, l) => {
520
- const { isDesktop: c } = n.useContext(p), { triggerNavigation: m } = n.useContext(L);
529
+ re.displayName = "ResponsiveDropdownMenuSeparator";
530
+ const be = ({ value: t, onValueChange: o, children: e }) => {
531
+ const { isDesktop: a } = n.useContext(p);
532
+ return a ? /* @__PURE__ */ r(i.RadioGroup, { value: t, onValueChange: o, children: e }) : /* @__PURE__ */ r(T.Provider, { value: { radioValue: t, onRadioChange: o }, children: /* @__PURE__ */ r("div", { role: "radiogroup", children: e }) });
533
+ }, me = ({ children: t }) => {
534
+ const { isDesktop: o } = n.useContext(p), { navigateToSubmenu: e } = n.useContext(k);
535
+ if (o)
536
+ return /* @__PURE__ */ r(i.Sub, { children: t });
537
+ const [a, s] = n.useState(null), [l, c] = n.useState(""), m = n.useId(), d = n.useCallback(() => {
538
+ a && e({
539
+ title: l,
540
+ content: a
541
+ }, m);
542
+ }, [a, l, m, e]), b = n.useMemo(() => ({
543
+ submenuContent: a,
544
+ submenuTitle: l,
545
+ setSubmenuContent: s,
546
+ setSubmenuTitle: c,
547
+ triggerNavigation: d
548
+ }), [a, l, d]);
549
+ return /* @__PURE__ */ r(N.Provider, { value: b, children: /* @__PURE__ */ r("div", { className: "mobile-submenu", children: t }) });
550
+ }, oe = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s }, l) => {
551
+ const { isDesktop: c } = n.useContext(p), { triggerNavigation: m } = n.useContext(N);
521
552
  if (c)
522
553
  return /* @__PURE__ */ v(
523
554
  i.SubTrigger,
@@ -560,9 +591,9 @@ const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, chil
560
591
  }
561
592
  );
562
593
  });
563
- re.displayName = "ResponsiveDropdownMenuSubTrigger";
564
- const oe = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => {
565
- const { isDesktop: s } = n.useContext(p), { setSubmenuContent: l } = n.useContext(L);
594
+ oe.displayName = "ResponsiveDropdownMenuSubTrigger";
595
+ const te = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => {
596
+ const { isDesktop: s } = n.useContext(p), { setSubmenuContent: l } = n.useContext(N);
566
597
  return s ? /* @__PURE__ */ r(
567
598
  i.SubContent,
568
599
  {
@@ -576,25 +607,28 @@ const oe = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a)
576
607
  }
577
608
  ) : (n.useEffect(() => (l(/* @__PURE__ */ r("div", { className: "space-y-[var(--space-xs)] px-[var(--space-m)] pb-[var(--space-m)]", children: o })), () => l(null)), [o, l]), null);
578
609
  });
579
- oe.displayName = "ResponsiveDropdownMenuSubContent";
610
+ te.displayName = "ResponsiveDropdownMenuSubContent";
580
611
  export {
581
- ce as DropdownMenu,
582
- U as DropdownMenuCheckboxItem,
583
- q as DropdownMenuContent,
584
- W as DropdownMenuDesktop,
585
- V as DropdownMenuDesktopCheckboxItem,
586
- k as DropdownMenuDesktopContent,
587
- N as DropdownMenuDesktopItem,
588
- H as DropdownMenuDesktopLabel,
589
- A as DropdownMenuDesktopRadioItem,
590
- X as DropdownMenuDesktopSeparator,
591
- $ as DropdownMenuDesktopTrigger,
592
- ie as DropdownMenuGroup,
593
- Q as DropdownMenuItem,
594
- Z as DropdownMenuLabel,
595
- Y as DropdownMenuRadioItem,
596
- ee as DropdownMenuSeparator,
597
- oe as DropdownMenuSubContent,
598
- re as DropdownMenuSubTrigger,
599
- F as DropdownMenuTrigger
612
+ ue as DropdownMenu,
613
+ Y as DropdownMenuCheckboxItem,
614
+ J as DropdownMenuContent,
615
+ V as DropdownMenuDesktop,
616
+ A as DropdownMenuDesktopCheckboxItem,
617
+ D as DropdownMenuDesktopContent,
618
+ C as DropdownMenuDesktopItem,
619
+ X as DropdownMenuDesktopLabel,
620
+ H as DropdownMenuDesktopRadioItem,
621
+ q as DropdownMenuDesktopSeparator,
622
+ W as DropdownMenuDesktopTrigger,
623
+ ce as DropdownMenuGroup,
624
+ U as DropdownMenuItem,
625
+ ee as DropdownMenuLabel,
626
+ be as DropdownMenuRadioGroup,
627
+ Z as DropdownMenuRadioItem,
628
+ re as DropdownMenuSeparator,
629
+ F as DropdownMenuShortcut,
630
+ me as DropdownMenuSub,
631
+ te as DropdownMenuSubContent,
632
+ oe as DropdownMenuSubTrigger,
633
+ K as DropdownMenuTrigger
600
634
  };