@rafal.lemieszewski/tide-ui 0.84.2 → 0.84.4

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 (94) hide show
  1. package/dist/cjs/components/fundamental/icon.cjs +1 -1
  2. package/dist/cjs/components/product/data-table.cjs +1 -1
  3. package/dist/cjs/lib/index.cjs +1 -1
  4. package/dist/es/components/fundamental/accordion.js +3 -3
  5. package/dist/es/components/fundamental/alert-dialog.js +5 -5
  6. package/dist/es/components/fundamental/alert.js +3 -3
  7. package/dist/es/components/fundamental/avatar-group.js +1 -1
  8. package/dist/es/components/fundamental/avatar.js +3 -3
  9. package/dist/es/components/fundamental/badge.js +1 -1
  10. package/dist/es/components/fundamental/breadcrumb.js +6 -6
  11. package/dist/es/components/fundamental/button-group.js +3 -3
  12. package/dist/es/components/fundamental/button.js +1 -1
  13. package/dist/es/components/fundamental/card.js +6 -6
  14. package/dist/es/components/fundamental/checkbox.js +1 -1
  15. package/dist/es/components/fundamental/collapsible.js +2 -2
  16. package/dist/es/components/fundamental/command.js +7 -7
  17. package/dist/es/components/fundamental/date-picker.js +2 -2
  18. package/dist/es/components/fundamental/dialog.js +3 -3
  19. package/dist/es/components/fundamental/drawer.js +4 -4
  20. package/dist/es/components/fundamental/dropdown-menu.js +25 -25
  21. package/dist/es/components/fundamental/empty.js +6 -6
  22. package/dist/es/components/fundamental/file-upload.js +9 -9
  23. package/dist/es/components/fundamental/form-field.js +15 -15
  24. package/dist/es/components/fundamental/hover-card.js +1 -1
  25. package/dist/es/components/fundamental/icon.js +101 -95
  26. package/dist/es/components/fundamental/input-group.js +6 -6
  27. package/dist/es/components/fundamental/input.js +1 -1
  28. package/dist/es/components/fundamental/kbd.js +2 -2
  29. package/dist/es/components/fundamental/label.js +1 -1
  30. package/dist/es/components/fundamental/month-picker.js +1 -1
  31. package/dist/es/components/fundamental/pagination.js +1 -1
  32. package/dist/es/components/fundamental/popover.js +1 -1
  33. package/dist/es/components/fundamental/progress.js +1 -1
  34. package/dist/es/components/fundamental/radio-group.js +2 -2
  35. package/dist/es/components/fundamental/scroll-area.js +2 -2
  36. package/dist/es/components/fundamental/select.js +5 -5
  37. package/dist/es/components/fundamental/separator.js +1 -1
  38. package/dist/es/components/fundamental/sheet.js +4 -4
  39. package/dist/es/components/fundamental/sidebar.js +25 -25
  40. package/dist/es/components/fundamental/skeleton.js +5 -5
  41. package/dist/es/components/fundamental/slider.js +1 -1
  42. package/dist/es/components/fundamental/spinner.js +5 -5
  43. package/dist/es/components/fundamental/switch.js +1 -1
  44. package/dist/es/components/fundamental/table.js +10 -10
  45. package/dist/es/components/fundamental/tabs.js +5 -5
  46. package/dist/es/components/fundamental/tag.js +2 -2
  47. package/dist/es/components/fundamental/text-link.js +1 -1
  48. package/dist/es/components/fundamental/textarea.js +1 -1
  49. package/dist/es/components/fundamental/toggle-group.js +2 -2
  50. package/dist/es/components/fundamental/toggle.js +1 -1
  51. package/dist/es/components/fundamental/tooltip.js +1 -1
  52. package/dist/es/components/fundamental/tree.js +2 -2
  53. package/dist/es/components/product/activity-log.js +12 -12
  54. package/dist/es/components/product/attributes-list.js +13 -13
  55. package/dist/es/components/product/bookmarks.js +2 -2
  56. package/dist/es/components/product/data-table.js +365 -351
  57. package/dist/es/components/product/filters.js +3 -3
  58. package/dist/es/components/product/fixture-status.js +1 -1
  59. package/dist/es/lib/index.js +328 -368
  60. package/dist/es/style.css +1 -1
  61. package/dist/types/bookmarks.d.ts +2 -0
  62. package/dist/types/calendar.d.ts +2 -0
  63. package/dist/types/chart.d.ts +2 -0
  64. package/dist/types/components/core-index.d.cts +135 -0
  65. package/dist/types/components/core-index.d.ts +135 -0
  66. package/dist/types/components/fundamental/avatar.d.ts +3 -3
  67. package/dist/types/components/fundamental/badge.d.ts +2 -2
  68. package/dist/types/components/fundamental/button-group.d.ts +1 -1
  69. package/dist/types/components/fundamental/calendar.d.cts +7 -0
  70. package/dist/types/components/fundamental/chart.d.cts +95 -0
  71. package/dist/types/components/fundamental/command.d.ts +1 -1
  72. package/dist/types/components/fundamental/country-dropdown.d.cts +34 -0
  73. package/dist/types/components/fundamental/date-picker.d.cts +30 -0
  74. package/dist/types/components/fundamental/form-field.d.ts +1 -1
  75. package/dist/types/components/fundamental/resizable.d.cts +23 -0
  76. package/dist/types/components/fundamental/resizable.d.ts +1 -1
  77. package/dist/types/components/fundamental/spinner.d.ts +1 -1
  78. package/dist/types/components/fundamental/table.d.ts +3 -3
  79. package/dist/types/components/product/bookmarks.d.cts +90 -0
  80. package/dist/types/components/product/data-table.d.cts +802 -0
  81. package/dist/types/components/product/filters.d.cts +124 -0
  82. package/dist/types/components/product/linked-chart.d.cts +22 -0
  83. package/dist/types/country-dropdown.d.ts +2 -0
  84. package/dist/types/data-table.d.ts +2 -0
  85. package/dist/types/date-picker.d.ts +2 -0
  86. package/dist/types/filters.d.ts +2 -0
  87. package/dist/types/index.d.ts +2 -0
  88. package/dist/types/lib/index.d.cts +104 -3
  89. package/dist/types/lib/index.d.ts +104 -3
  90. package/dist/types/linked-chart.d.ts +2 -0
  91. package/dist/types/resizable.d.ts +2 -0
  92. package/package.json +94 -12
  93. /package/dist/cjs/components/{index.cjs → core-index.cjs} +0 -0
  94. /package/dist/es/components/{index.js → core-index.js} +0 -0
@@ -5,9 +5,9 @@ import { ChevronDown as h, Check as y, ArrowRight as N } from "lucide-react";
5
5
  import { cn as s } from "../../lib/utils.js";
6
6
  import { Popover as g, PopoverTrigger as B, PopoverContent as w } from "./popover.js";
7
7
  import { Command as C, CommandInput as P, CommandList as R, CommandEmpty as k, CommandGroup as S, CommandItem as L } from "./command.js";
8
- const z = t.forwardRef(({ ...r }, a) => /* @__PURE__ */ e("nav", { ref: a, "aria-label": "breadcrumb", ...r }));
8
+ const z = /* @__PURE__ */ t.forwardRef(({ ...r }, a) => /* @__PURE__ */ e("nav", { ref: a, "aria-label": "breadcrumb", ...r }));
9
9
  z.displayName = "Breadcrumb";
10
- const I = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
10
+ const I = /* @__PURE__ */ t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
11
11
  "ol",
12
12
  {
13
13
  ref: o,
@@ -19,7 +19,7 @@ const I = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
19
19
  }
20
20
  ));
21
21
  I.displayName = "BreadcrumbList";
22
- const j = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
22
+ const j = /* @__PURE__ */ t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
23
23
  "li",
24
24
  {
25
25
  ref: o,
@@ -28,7 +28,7 @@ const j = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
28
28
  }
29
29
  ));
30
30
  j.displayName = "BreadcrumbItem";
31
- const O = t.forwardRef(({ asChild: r, className: a, ...o }, c) => /* @__PURE__ */ e(
31
+ const O = /* @__PURE__ */ t.forwardRef(({ asChild: r, className: a, ...o }, c) => /* @__PURE__ */ e(
32
32
  r ? x : "a",
33
33
  {
34
34
  ref: c,
@@ -40,7 +40,7 @@ const O = t.forwardRef(({ asChild: r, className: a, ...o }, c) => /* @__PURE__ *
40
40
  }
41
41
  ));
42
42
  O.displayName = "BreadcrumbLink";
43
- const A = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
43
+ const A = /* @__PURE__ */ t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
44
44
  "span",
45
45
  {
46
46
  ref: o,
@@ -55,7 +55,7 @@ const A = t.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
55
55
  }
56
56
  ));
57
57
  A.displayName = "BreadcrumbPage";
58
- const D = t.forwardRef(
58
+ const D = /* @__PURE__ */ t.forwardRef(
59
59
  ({
60
60
  children: r,
61
61
  className: a,
@@ -16,7 +16,7 @@ const f = m(
16
16
  orientation: "horizontal"
17
17
  }
18
18
  }
19
- ), b = t.forwardRef(
19
+ ), b = /* @__PURE__ */ t.forwardRef(
20
20
  ({ className: o, orientation: e, size: r, variant: a, children: l, ...u }, p) => {
21
21
  const c = t.Children.map(l, (s) => {
22
22
  if (t.isValidElement(s)) {
@@ -43,7 +43,7 @@ const f = m(
43
43
  }
44
44
  );
45
45
  b.displayName = "ButtonGroup";
46
- const x = t.forwardRef(
46
+ const x = /* @__PURE__ */ t.forwardRef(
47
47
  ({ className: o, asChild: e = !1, children: r, ...a }, l) => e && t.isValidElement(r) ? t.cloneElement(r, {
48
48
  className: i(
49
49
  "bg-[var(--color-background-neutral-subtlest)] shadow-xs flex items-center gap-[var(--space-xs)] rounded-m border border-[var(--color-border-primary-subtle)] px-[var(--space-l)] [&]:text-body-sm font-medium [&_svg:not([class*='size-'])]:size-[var(--size-s)] [&_svg]:pointer-events-none",
@@ -64,7 +64,7 @@ const x = t.forwardRef(
64
64
  )
65
65
  );
66
66
  x.displayName = "ButtonGroupText";
67
- const g = t.forwardRef(({ className: o, orientation: e = "vertical", ...r }, a) => /* @__PURE__ */ d(
67
+ const g = /* @__PURE__ */ t.forwardRef(({ className: o, orientation: e = "vertical", ...r }, a) => /* @__PURE__ */ d(
68
68
  v,
69
69
  {
70
70
  ref: a,
@@ -129,7 +129,7 @@ const V = j(
129
129
  iconPosition: "none"
130
130
  }
131
131
  }
132
- ), B = N.forwardRef(
132
+ ), B = /* @__PURE__ */ N.forwardRef(
133
133
  ({
134
134
  className: u,
135
135
  variant: o,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
3
  import { cn as d } from "../../lib/utils.js";
4
- const s = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
4
+ const s = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
5
5
  "div",
6
6
  {
7
7
  ref: e,
@@ -13,7 +13,7 @@ const s = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
13
13
  }
14
14
  ));
15
15
  s.displayName = "Card";
16
- const c = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
16
+ const c = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
17
17
  "div",
18
18
  {
19
19
  ref: e,
@@ -22,7 +22,7 @@ const c = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
22
22
  }
23
23
  ));
24
24
  c.displayName = "CardHeader";
25
- const l = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
25
+ const l = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
26
26
  "h3",
27
27
  {
28
28
  ref: e,
@@ -31,7 +31,7 @@ const l = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
31
31
  }
32
32
  ));
33
33
  l.displayName = "CardTitle";
34
- const i = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
34
+ const i = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
35
35
  "p",
36
36
  {
37
37
  ref: e,
@@ -40,7 +40,7 @@ const i = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
40
40
  }
41
41
  ));
42
42
  i.displayName = "CardDescription";
43
- const p = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
43
+ const p = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
44
44
  "div",
45
45
  {
46
46
  ref: e,
@@ -49,7 +49,7 @@ const p = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
49
49
  }
50
50
  ));
51
51
  p.displayName = "CardContent";
52
- const m = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
52
+ const m = /* @__PURE__ */ t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ o(
53
53
  "div",
54
54
  {
55
55
  ref: e,
@@ -35,7 +35,7 @@ const l = t(
35
35
  }
36
36
  ), v = t(
37
37
  "flex items-center justify-center text-current [&>svg]:w-[var(--size-3xs)] [&>svg]:h-[var(--size-3xs)]"
38
- ), u = s.forwardRef(({ className: d, variant: i, ...a }, c) => /* @__PURE__ */ e(
38
+ ), u = /* @__PURE__ */ s.forwardRef(({ className: d, variant: i, ...a }, c) => /* @__PURE__ */ e(
39
39
  r.Root,
40
40
  {
41
41
  ref: c,
@@ -3,7 +3,7 @@ import * as n from "react";
3
3
  import * as e from "@radix-ui/react-collapsible";
4
4
  import { cn as c } from "../../lib/utils.js";
5
5
  import { Icon as p } from "./icon.js";
6
- const u = e.Root, d = n.forwardRef(({ className: t, children: a, hideIcon: r = !1, asChild: i = !1, ...s }, l) => i ? /* @__PURE__ */ o(
6
+ const u = e.Root, d = /* @__PURE__ */ n.forwardRef(({ className: t, children: a, hideIcon: r = !1, asChild: i = !1, ...s }, l) => i ? /* @__PURE__ */ o(
7
7
  e.CollapsibleTrigger,
8
8
  {
9
9
  ref: l,
@@ -35,7 +35,7 @@ const u = e.Root, d = n.forwardRef(({ className: t, children: a, hideIcon: r = !
35
35
  }
36
36
  ));
37
37
  d.displayName = e.CollapsibleTrigger.displayName;
38
- const f = n.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__ */ o(
38
+ const f = /* @__PURE__ */ n.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__ */ o(
39
39
  e.CollapsibleContent,
40
40
  {
41
41
  ref: i,
@@ -6,7 +6,7 @@ import { cn as s } from "../../lib/utils.js";
6
6
  import { Icon as b } from "./icon.js";
7
7
  import { Button as _ } from "./button.js";
8
8
  import { inputVariants as h } from "./input.js";
9
- const c = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
9
+ const c = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
10
10
  t,
11
11
  {
12
12
  ref: o,
@@ -38,7 +38,7 @@ const L = ({ children: e, ...a }) => /* @__PURE__ */ r(m.Root, { ...a, children:
38
38
  children: /* @__PURE__ */ r(c, { className: "[&_[cmdk-group-heading]]:px-[var(--space-m)] [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-tertiary)] [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-item]]:px-[var(--space-m)] [&_[cmdk-item]]:min-h-[var(--size-m)] [&_[cmdk-item]]:py-[var(--space-s)] [&_[cmdk-item]_svg]:h-4 [&_[cmdk-item]_svg]:w-4", children: e })
39
39
  }
40
40
  )
41
- ] }) }), N = d.forwardRef(({ className: e, size: a = "m", clearable: o = !0, onClear: u, value: i, ...x }, f) => {
41
+ ] }) }), N = /* @__PURE__ */ d.forwardRef(({ className: e, size: a = "m", clearable: o = !0, onClear: u, value: i, ...x }, f) => {
42
42
  const p = o && i && String(i).length > 0, v = a === "s" ? "s" : "m", y = a === "s" ? "pl-[30px]" : "pl-[34px]", g = p ? "pr-[calc(var(--size-s)+var(--space-m)+var(--space-s))]" : "";
43
43
  return /* @__PURE__ */ l("div", { className: "relative p-[var(--space-s)] border-b border-[var(--color-border-primary-subtle)]", "cmdk-input-wrapper": "", children: [
44
44
  /* @__PURE__ */ r(
@@ -92,7 +92,7 @@ const L = ({ children: e, ...a }) => /* @__PURE__ */ r(m.Root, { ...a, children:
92
92
  ] });
93
93
  });
94
94
  N.displayName = t.Input.displayName;
95
- const w = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
95
+ const w = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
96
96
  t.List,
97
97
  {
98
98
  ref: o,
@@ -101,7 +101,7 @@ const w = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
101
101
  }
102
102
  ));
103
103
  w.displayName = t.List.displayName;
104
- const k = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
104
+ const k = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
105
105
  t.Empty,
106
106
  {
107
107
  ref: o,
@@ -110,7 +110,7 @@ const k = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
110
110
  }
111
111
  ));
112
112
  k.displayName = t.Empty.displayName;
113
- const C = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
113
+ const C = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
114
114
  t.Group,
115
115
  {
116
116
  ref: o,
@@ -122,7 +122,7 @@ const C = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
122
122
  }
123
123
  ));
124
124
  C.displayName = t.Group.displayName;
125
- const R = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
125
+ const R = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
126
126
  t.Separator,
127
127
  {
128
128
  ref: o,
@@ -131,7 +131,7 @@ const R = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
131
131
  }
132
132
  ));
133
133
  R.displayName = t.Separator.displayName;
134
- const I = d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
134
+ const I = /* @__PURE__ */ d.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r(
135
135
  t.Item,
136
136
  {
137
137
  ref: o,
@@ -6,7 +6,7 @@ import { cn as x } from "../../lib/utils.js";
6
6
  import { Button as C } from "./button.js";
7
7
  import { Calendar as N } from "./calendar.js";
8
8
  import { Popover as y, PopoverTrigger as k, PopoverContent as g } from "./popover.js";
9
- const j = c.forwardRef(
9
+ const j = /* @__PURE__ */ c.forwardRef(
10
10
  ({
11
11
  date: r,
12
12
  onDateChange: m,
@@ -54,7 +54,7 @@ const j = c.forwardRef(
54
54
  }
55
55
  );
56
56
  j.displayName = "DatePicker";
57
- const F = c.forwardRef(
57
+ const F = /* @__PURE__ */ c.forwardRef(
58
58
  ({
59
59
  dateRange: r,
60
60
  onDateRangeChange: m,
@@ -4,7 +4,7 @@ import * as o from "@radix-ui/react-dialog";
4
4
  import { cn as r } from "../../lib/utils.js";
5
5
  import { Icon as n } from "./icon.js";
6
6
  import { Button as m } from "./button.js";
7
- const D = o.Root, w = o.Trigger, p = o.Portal, C = o.Close, d = i.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t(
7
+ const D = o.Root, w = o.Trigger, p = o.Portal, C = o.Close, d = /* @__PURE__ */ i.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t(
8
8
  o.Overlay,
9
9
  {
10
10
  ref: s,
@@ -16,7 +16,7 @@ const D = o.Root, w = o.Trigger, p = o.Portal, C = o.Close, d = i.forwardRef(({
16
16
  }
17
17
  ));
18
18
  d.displayName = o.Overlay.displayName;
19
- const f = i.forwardRef(({ className: a, children: e, ...s }, c) => /* @__PURE__ */ l(p, { children: [
19
+ const f = /* @__PURE__ */ i.forwardRef(({ className: a, children: e, ...s }, c) => /* @__PURE__ */ l(p, { children: [
20
20
  /* @__PURE__ */ t(d, {}),
21
21
  /* @__PURE__ */ l(
22
22
  o.Content,
@@ -80,7 +80,7 @@ const y = ({
80
80
  }
81
81
  );
82
82
  y.displayName = "DialogFooter";
83
- const g = i.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t(
83
+ const g = /* @__PURE__ */ i.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ t(
84
84
  o.Title,
85
85
  {
86
86
  ref: s,
@@ -7,7 +7,7 @@ const m = ({
7
7
  ...e
8
8
  }) => /* @__PURE__ */ o(a.Root, { shouldScaleBackground: r, ...e });
9
9
  m.displayName = "Drawer";
10
- const g = a.Trigger, n = a.Portal, b = a.Close, i = l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
10
+ const g = a.Trigger, n = a.Portal, b = a.Close, i = /* @__PURE__ */ l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
11
11
  a.Overlay,
12
12
  {
13
13
  ref: t,
@@ -19,7 +19,7 @@ const g = a.Trigger, n = a.Portal, b = a.Close, i = l.forwardRef(({ className: r
19
19
  }
20
20
  ));
21
21
  i.displayName = a.Overlay.displayName;
22
- const p = l.forwardRef(({ className: r, children: e, ...t }, d) => /* @__PURE__ */ c(n, { children: [
22
+ const p = /* @__PURE__ */ l.forwardRef(({ className: r, children: e, ...t }, d) => /* @__PURE__ */ c(n, { children: [
23
23
  /* @__PURE__ */ o(i, {}),
24
24
  /* @__PURE__ */ c(
25
25
  a.Content,
@@ -58,7 +58,7 @@ const f = ({
58
58
  ...e
59
59
  }) => /* @__PURE__ */ o("div", { className: s("mt-auto flex flex-col gap-[var(--space-s)] p-[var(--space-m)]", r), ...e });
60
60
  f.displayName = "DrawerFooter";
61
- const y = l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
61
+ const y = /* @__PURE__ */ l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
62
62
  a.Title,
63
63
  {
64
64
  ref: t,
@@ -70,7 +70,7 @@ const y = l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
70
70
  }
71
71
  ));
72
72
  y.displayName = a.Title.displayName;
73
- const x = l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
73
+ const x = /* @__PURE__ */ l.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ o(
74
74
  a.Description,
75
75
  {
76
76
  ref: t,
@@ -4,9 +4,9 @@ import * as c from "@radix-ui/react-dropdown-menu";
4
4
  import { ChevronLeft as z, ChevronRight as h, Check as g, Circle as w } from "lucide-react";
5
5
  import { cn as u } from "../../lib/utils.js";
6
6
  import { useIsDesktop as j } from "../../lib/hooks.js";
7
- import { Drawer as _, DrawerContent as P, DrawerTrigger as B, DrawerClose as y } from "./drawer.js";
7
+ import { Drawer as _, DrawerTrigger as P, DrawerContent as B, DrawerClose as y } from "./drawer.js";
8
8
  import { Icon as x } from "./icon.js";
9
- const W = c.Root, $ = c.Trigger, ce = c.Group, E = n.forwardRef(({ className: t, inset: o, children: e, ...a }, s) => /* @__PURE__ */ p(
9
+ const W = c.Root, $ = c.Trigger, ce = c.Group, E = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, children: e, ...a }, s) => /* @__PURE__ */ p(
10
10
  c.SubTrigger,
11
11
  {
12
12
  ref: s,
@@ -23,7 +23,7 @@ const W = c.Root, $ = c.Trigger, ce = c.Group, E = n.forwardRef(({ className: t,
23
23
  }
24
24
  ));
25
25
  E.displayName = c.SubTrigger.displayName;
26
- const G = n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
26
+ const G = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
27
27
  c.SubContent,
28
28
  {
29
29
  ref: e,
@@ -35,7 +35,7 @@ const G = n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
35
35
  }
36
36
  ));
37
37
  G.displayName = c.SubContent.displayName;
38
- const k = n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(c.Portal, { children: /* @__PURE__ */ r(
38
+ const k = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(c.Portal, { children: /* @__PURE__ */ r(
39
39
  c.Content,
40
40
  {
41
41
  ref: a,
@@ -48,7 +48,7 @@ const k = n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__P
48
48
  }
49
49
  ) }));
50
50
  k.displayName = c.Content.displayName;
51
- const N = n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l }, i) => /* @__PURE__ */ p(
51
+ const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l }, i) => /* @__PURE__ */ p(
52
52
  c.Item,
53
53
  {
54
54
  ref: i,
@@ -66,7 +66,7 @@ const N = n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, child
66
66
  }
67
67
  ));
68
68
  N.displayName = c.Item.displayName;
69
- const V = n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */ p(
69
+ const V = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */ p(
70
70
  c.CheckboxItem,
71
71
  {
72
72
  ref: s,
@@ -84,7 +84,7 @@ const V = n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /
84
84
  }
85
85
  ));
86
86
  V.displayName = c.CheckboxItem.displayName;
87
- const A = n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */ p(
87
+ const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */ p(
88
88
  c.RadioItem,
89
89
  {
90
90
  ref: a,
@@ -101,7 +101,7 @@ const A = n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__
101
101
  }
102
102
  ));
103
103
  A.displayName = c.RadioItem.displayName;
104
- const H = n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
104
+ const H = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
105
105
  c.Label,
106
106
  {
107
107
  ref: a,
@@ -114,7 +114,7 @@ const H = n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */
114
114
  }
115
115
  ));
116
116
  H.displayName = c.Label.displayName;
117
- const X = n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
117
+ const X = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
118
118
  c.Separator,
119
119
  {
120
120
  ref: e,
@@ -123,7 +123,7 @@ const X = n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
123
123
  }
124
124
  ));
125
125
  X.displayName = c.Separator.displayName;
126
- const D = n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children: i, ...b }, d) => {
126
+ const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children: i, ...b }, d) => {
127
127
  const m = /* @__PURE__ */ p(
128
128
  "div",
129
129
  {
@@ -147,7 +147,7 @@ const D = n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoC
147
147
  return s ? /* @__PURE__ */ r(y, { asChild: !0, children: m }) : m;
148
148
  });
149
149
  D.displayName = "MobileDropdownItem";
150
- const C = n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l }, i) => {
150
+ const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l }, i) => {
151
151
  const b = /* @__PURE__ */ p(
152
152
  "div",
153
153
  {
@@ -170,7 +170,7 @@ const C = n.forwardRef(({ className: t, children: o, checked: e, autoClose: a =
170
170
  return a ? /* @__PURE__ */ r(y, { asChild: !0, children: b }) : b;
171
171
  });
172
172
  C.displayName = "MobileDropdownCheckboxItem";
173
- const M = n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect: i, ...b }, d) => {
173
+ const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect: i, ...b }, d) => {
174
174
  const m = /* @__PURE__ */ p(
175
175
  "div",
176
176
  {
@@ -197,7 +197,7 @@ const M = n.forwardRef(({ className: t, children: o, value: e, checked: a, icon:
197
197
  return l ? /* @__PURE__ */ r(y, { asChild: !0, children: m }) : m;
198
198
  });
199
199
  M.displayName = "MobileDropdownRadioItem";
200
- const R = n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
200
+ const R = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
201
201
  "div",
202
202
  {
203
203
  ref: a,
@@ -210,7 +210,7 @@ const R = n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */
210
210
  }
211
211
  ));
212
212
  R.displayName = "MobileDropdownLabel";
213
- const I = n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
213
+ const I = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
214
214
  "div",
215
215
  {
216
216
  ref: e,
@@ -223,7 +223,7 @@ I.displayName = "MobileDropdownSeparator";
223
223
  const v = n.createContext({ isDesktop: !0 }), ie = ({ children: t }) => {
224
224
  const o = j(), e = n.useMemo(() => ({ isDesktop: o }), [o]);
225
225
  return o ? /* @__PURE__ */ r(v.Provider, { value: e, children: /* @__PURE__ */ r(W, { children: t }) }) : /* @__PURE__ */ r(v.Provider, { value: e, children: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(_, { children: t }) }) });
226
- }, q = n.forwardRef(({ className: t, sideOffset: o = 4, children: e, ...a }, s) => {
226
+ }, q = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, children: e, ...a }, s) => {
227
227
  const { isDesktop: l } = n.useContext(v);
228
228
  return l ? /* @__PURE__ */ r(
229
229
  k,
@@ -235,7 +235,7 @@ const v = n.createContext({ isDesktop: !0 }), ie = ({ children: t }) => {
235
235
  children: e
236
236
  }
237
237
  ) : /* @__PURE__ */ p(
238
- P,
238
+ B,
239
239
  {
240
240
  ref: s,
241
241
  className: u(
@@ -252,7 +252,7 @@ const v = n.createContext({ isDesktop: !0 }), ie = ({ children: t }) => {
252
252
  );
253
253
  });
254
254
  q.displayName = "ResponsiveDropdownMenuContent";
255
- const F = n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
255
+ const F = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
256
256
  const { isDesktop: s } = n.useContext(v);
257
257
  if (s)
258
258
  return /* @__PURE__ */ r($, { ref: a, asChild: t, ...e, children: o });
@@ -264,7 +264,7 @@ const F = n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
264
264
  }
265
265
  };
266
266
  return /* @__PURE__ */ r(
267
- B,
267
+ P,
268
268
  {
269
269
  ref: a,
270
270
  asChild: t,
@@ -382,7 +382,7 @@ const J = n.createContext({}), S = n.createContext({
382
382
  }
383
383
  )
384
384
  ] });
385
- }, Q = n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...i }, b) => {
385
+ }, Q = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...i }, b) => {
386
386
  const { isDesktop: d } = n.useContext(v);
387
387
  return d ? /* @__PURE__ */ r(
388
388
  N,
@@ -409,7 +409,7 @@ const J = n.createContext({}), S = n.createContext({
409
409
  );
410
410
  });
411
411
  Q.displayName = "ResponsiveDropdownMenuItem";
412
- const U = n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l }, i) => {
412
+ const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l }, i) => {
413
413
  const { isDesktop: b } = n.useContext(v);
414
414
  return b ? /* @__PURE__ */ p(
415
415
  c.CheckboxItem,
@@ -441,7 +441,7 @@ const U = n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, o
441
441
  );
442
442
  });
443
443
  U.displayName = "ResponsiveDropdownMenuCheckboxItem";
444
- const Y = n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l }, i) => {
444
+ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l }, i) => {
445
445
  const { isDesktop: b } = n.useContext(v);
446
446
  return b ? /* @__PURE__ */ p(
447
447
  c.RadioItem,
@@ -475,7 +475,7 @@ const Y = n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClos
475
475
  ) });
476
476
  });
477
477
  Y.displayName = "ResponsiveDropdownMenuRadioItem";
478
- const Z = n.forwardRef(({ className: t, inset: o, ...e }, a) => {
478
+ const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => {
479
479
  const { isDesktop: s } = n.useContext(v);
480
480
  return s ? /* @__PURE__ */ r(
481
481
  c.Label,
@@ -498,7 +498,7 @@ const Z = n.forwardRef(({ className: t, inset: o, ...e }, a) => {
498
498
  );
499
499
  });
500
500
  Z.displayName = "ResponsiveDropdownMenuLabel";
501
- const ee = n.forwardRef(({ className: t, ...o }, e) => {
501
+ const ee = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
502
502
  const { isDesktop: a } = n.useContext(v);
503
503
  return a ? /* @__PURE__ */ r(
504
504
  c.Separator,
@@ -516,7 +516,7 @@ const ee = n.forwardRef(({ className: t, ...o }, e) => {
516
516
  );
517
517
  });
518
518
  ee.displayName = "ResponsiveDropdownMenuSeparator";
519
- const re = n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s }, l) => {
519
+ const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s }, l) => {
520
520
  const { isDesktop: i } = n.useContext(v), { triggerNavigation: b } = n.useContext(L);
521
521
  if (i)
522
522
  return /* @__PURE__ */ p(
@@ -561,7 +561,7 @@ const re = n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s },
561
561
  );
562
562
  });
563
563
  re.displayName = "ResponsiveDropdownMenuSubTrigger";
564
- const oe = n.forwardRef(({ className: t, children: o, ...e }, a) => {
564
+ const oe = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => {
565
565
  const { isDesktop: s } = n.useContext(v), { setSubmenuContent: l } = n.useContext(L);
566
566
  return s ? /* @__PURE__ */ r(
567
567
  c.SubContent,
@@ -16,7 +16,7 @@ const m = c(
16
16
  size: "m"
17
17
  }
18
18
  }
19
- ), d = s.forwardRef(
19
+ ), d = /* @__PURE__ */ s.forwardRef(
20
20
  ({ className: a, size: e, ...t }, r) => /* @__PURE__ */ o(
21
21
  "div",
22
22
  {
@@ -27,7 +27,7 @@ const m = c(
27
27
  )
28
28
  );
29
29
  d.displayName = "Empty";
30
- const p = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
30
+ const p = /* @__PURE__ */ s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
31
31
  "div",
32
32
  {
33
33
  ref: t,
@@ -65,7 +65,7 @@ const x = c(
65
65
  size: "m"
66
66
  }
67
67
  }
68
- ), v = s.forwardRef(
68
+ ), v = /* @__PURE__ */ s.forwardRef(
69
69
  ({ className: a, variant: e, color: t, size: r, ...i }, n) => /* @__PURE__ */ o(
70
70
  "div",
71
71
  {
@@ -93,7 +93,7 @@ const f = c(
93
93
  size: "m"
94
94
  }
95
95
  }
96
- ), y = s.forwardRef(
96
+ ), y = /* @__PURE__ */ s.forwardRef(
97
97
  ({ className: a, size: e, ...t }, r) => /* @__PURE__ */ o(
98
98
  "h3",
99
99
  {
@@ -118,7 +118,7 @@ const u = c(
118
118
  size: "m"
119
119
  }
120
120
  }
121
- ), b = s.forwardRef(
121
+ ), b = /* @__PURE__ */ s.forwardRef(
122
122
  ({ className: a, size: e, ...t }, r) => /* @__PURE__ */ o(
123
123
  "p",
124
124
  {
@@ -129,7 +129,7 @@ const u = c(
129
129
  )
130
130
  );
131
131
  b.displayName = "EmptyDescription";
132
- const g = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
132
+ const g = /* @__PURE__ */ s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
133
133
  "div",
134
134
  {
135
135
  ref: t,
@@ -13,7 +13,7 @@ const M = n.createContext(
13
13
  if (!r)
14
14
  throw new Error("useFileUpload must be used within a FileUpload component");
15
15
  return r;
16
- }, j = n.forwardRef(
16
+ }, j = /* @__PURE__ */ n.forwardRef(
17
17
  ({
18
18
  className: r,
19
19
  files: e,
@@ -72,7 +72,7 @@ const _ = X(
72
72
  disabled: !1
73
73
  }
74
74
  }
75
- ), k = n.forwardRef(({ className: r, children: e, ...o }, t) => {
75
+ ), k = /* @__PURE__ */ n.forwardRef(({ className: r, children: e, ...o }, t) => {
76
76
  const {
77
77
  files: l,
78
78
  onFilesChange: i,
@@ -166,16 +166,16 @@ const _ = X(
166
166
  );
167
167
  });
168
168
  k.displayName = "FileUploadDropzone";
169
- const L = n.forwardRef(({ children: r, ...e }, o) => {
169
+ const L = /* @__PURE__ */ n.forwardRef(({ children: r, ...e }, o) => {
170
170
  const { disabled: t } = D();
171
171
  return /* @__PURE__ */ s(P, { ref: o, disabled: t, ...e, children: r });
172
172
  });
173
173
  L.displayName = "FileUploadTrigger";
174
- const A = n.forwardRef(
174
+ const A = /* @__PURE__ */ n.forwardRef(
175
175
  ({ className: r, children: e, ...o }, t) => /* @__PURE__ */ s("div", { ref: t, className: v("space-y-2", r), ...o, children: e })
176
176
  );
177
177
  A.displayName = "FileUploadList";
178
- const B = n.forwardRef(
178
+ const B = /* @__PURE__ */ n.forwardRef(
179
179
  ({ className: r, file: e, children: o, ...t }, l) => /* @__PURE__ */ s(
180
180
  "div",
181
181
  {
@@ -193,7 +193,7 @@ const B = n.forwardRef(
193
193
  )
194
194
  );
195
195
  B.displayName = "FileUploadItem";
196
- const W = n.forwardRef(({ className: r, file: e, ...o }, t) => {
196
+ const W = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, ...o }, t) => {
197
197
  const l = (i) => i.startsWith("image/") ? "image" : i.startsWith("video/") ? "video" : i.startsWith("audio/") ? "volume-2" : i.includes("pdf") || i.includes("text/") || i.includes("application/json") ? "file-text" : "file";
198
198
  return /* @__PURE__ */ s(
199
199
  "div",
@@ -222,7 +222,7 @@ const W = n.forwardRef(({ className: r, file: e, ...o }, t) => {
222
222
  );
223
223
  });
224
224
  W.displayName = "FileUploadItemPreview";
225
- const $ = n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b("div", { ref: t, className: v("flex-1 space-y-1", r), ...o, children: [
225
+ const $ = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b("div", { ref: t, className: v("flex-1 space-y-1", r), ...o, children: [
226
226
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
227
227
  /* @__PURE__ */ s("p", { className: "text-body-sm truncate font-medium", children: e.file.name }),
228
228
  /* @__PURE__ */ s(Z, { children: e.status })
@@ -231,7 +231,7 @@ const $ = n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b
231
231
  e.error && /* @__PURE__ */ s("p", { className: "text-caption-sm text-[var(--color-text-error-bold)]", children: e.error })
232
232
  ] }));
233
233
  $.displayName = "FileUploadItemMetadata";
234
- const V = n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t }, l) => e.status !== "uploading" || e.progress === void 0 ? null : /* @__PURE__ */ b("div", { ref: l, className: v("w-full", r), ...t, children: [
234
+ const V = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t }, l) => e.status !== "uploading" || e.progress === void 0 ? null : /* @__PURE__ */ b("div", { ref: l, className: v("w-full", r), ...t, children: [
235
235
  /* @__PURE__ */ s(Y, { value: e.progress, className: "h-2" }),
236
236
  /* @__PURE__ */ b("p", { className: "text-caption-sm mt-1 text-[var(--color-text-secondary)]", children: [
237
237
  Math.round(e.progress),
@@ -239,7 +239,7 @@ const V = n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t },
239
239
  ] })
240
240
  ] }));
241
241
  V.displayName = "FileUploadItemProgress";
242
- const T = n.forwardRef(({ file: r, ...e }, o) => {
242
+ const T = /* @__PURE__ */ n.forwardRef(({ file: r, ...e }, o) => {
243
243
  const { files: t, onFilesChange: l } = D();
244
244
  return /* @__PURE__ */ s(
245
245
  P,