impact-nova 2.2.1 → 2.2.2

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 (60) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-header-dom.d.ts +8 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-header-dom.js +11 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +4 -1
  4. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +14 -3
  5. package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.d.ts +19 -0
  6. package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.js +74 -0
  7. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.d.ts +4 -5
  8. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +110 -144
  9. package/dist/components/data/ag-grid-react/headers/components/header-info.d.ts +2 -1
  10. package/dist/components/data/ag-grid-react/headers/components/header-info.js +73 -70
  11. package/dist/components/data/ag-grid-react/headers/context/grid-header-context.d.ts +0 -8
  12. package/dist/components/data/ag-grid-react/headers/custom-header.js +112 -118
  13. package/dist/components/data/ag-grid-react/headers/custom-inner-header-group.js +27 -23
  14. package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.d.ts +10 -0
  15. package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.js +19 -0
  16. package/dist/components/data/ag-grid-react/index.js +169 -210
  17. package/dist/components/data/ag-grid-react/info-system-story-columns.d.ts +12 -0
  18. package/dist/components/data/ag-grid-react/merge-column-group-defs.d.ts +3 -0
  19. package/dist/components/data/ag-grid-react/merge-column-group-defs.js +27 -0
  20. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +2 -1
  21. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +7 -7
  22. package/dist/components/data/data-table/data-table-view-menu.d.ts +1 -0
  23. package/dist/components/feedback/dialog/dialog.js +107 -61
  24. package/dist/components/feedback/dropdown-menu/dropdown-menu.d.ts +1 -0
  25. package/dist/components/feedback/dropdown-menu/dropdown-menu.js +83 -76
  26. package/dist/components/feedback/popover/popover.d.ts +5 -2
  27. package/dist/components/feedback/popover/popover.js +43 -40
  28. package/dist/components/feedback/sheet/sheet.js +149 -102
  29. package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -4
  30. package/dist/components/forms/date-picker/date-input-behavior.js +86 -67
  31. package/dist/components/forms/date-picker/date-picker.js +59 -52
  32. package/dist/components/forms/date-picker/date-range-picker.js +26 -25
  33. package/dist/components/forms/date-picker/month-picker.js +76 -69
  34. package/dist/components/forms/date-picker/month-range-picker.js +41 -40
  35. package/dist/components/forms/date-picker/multi-date-picker.js +31 -31
  36. package/dist/components/forms/date-picker/multi-month-picker.js +27 -27
  37. package/dist/components/forms/date-picker/multi-week-picker.js +37 -37
  38. package/dist/components/forms/date-picker/week-picker.js +85 -78
  39. package/dist/components/forms/date-picker/week-range-picker.js +67 -66
  40. package/dist/components/forms/select/components/SelectMenuPanel.js +19 -15
  41. package/dist/components/forms/select/components/SelectOptionRow.js +110 -90
  42. package/dist/components/forms/select/components/Submenu.js +39 -34
  43. package/dist/components/forms/select/hooks/useSelectOpenEffects.js +65 -70
  44. package/dist/components/forms/select/select.js +228 -223
  45. package/dist/components/forms/select/select.types.d.ts +8 -0
  46. package/dist/impact-nova-components.css +59 -15
  47. package/dist/impact-nova.css +1 -1
  48. package/dist/lib/overlay/merge-element-refs.d.ts +2 -0
  49. package/dist/lib/overlay/merge-element-refs.js +17 -0
  50. package/dist/lib/overlay/overlay-host.constants.d.ts +4 -0
  51. package/dist/lib/overlay/overlay-host.constants.js +5 -0
  52. package/dist/lib/overlay/overlay-portal-context.d.ts +26 -0
  53. package/dist/lib/overlay/overlay-portal-context.js +65 -0
  54. package/dist/lib/overlay/use-overlay-portal-container-state.d.ts +5 -0
  55. package/dist/lib/overlay/use-overlay-portal-container-state.js +13 -0
  56. package/dist/llms/rules/installation.js +1 -1
  57. package/dist/llms/rules/requirements.js +1 -1
  58. package/package.json +22 -8
  59. package/dist/components/forms/select/components/LabelWithSequence.d.ts +0 -13
  60. package/dist/components/forms/select/components/LabelWithSequence.js +0 -18
@@ -1,105 +1,151 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import * as t from "@radix-ui/react-dialog";
4
- import { Cross as y } from "impact-nova-icons";
5
- import { createCompoundPart as s, wrapRadixPart as o } from "../../../lib/primitives/create-compound.js";
6
- import { cn as c } from "../../../lib/utils.js";
7
- import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
8
- import { Button as D } from "../../primitives/button/button.js";
9
- const R = (a) => /* @__PURE__ */ e(t.Root, { "data-component": "dialog", ...a }), j = o(
1
+ import { jsx as t, jsxs as D } from "react/jsx-runtime";
2
+ import * as u from "react";
3
+ import * as e from "@radix-ui/react-dialog";
4
+ import { Cross as N } from "impact-nova-icons";
5
+ import { createCompoundPart as y, wrapRadixPart as c } from "../../../lib/primitives/create-compound.js";
6
+ import { cn as v } from "../../../lib/utils.js";
7
+ import { useImpactNovaI18n as h } from "../../../i18n/use-impact-nova-i18n.js";
8
+ import { Button as w } from "../../primitives/button/button.js";
9
+ import { mergeElementRefs as O } from "../../../lib/overlay/merge-element-refs.js";
10
+ import { OverlayHostProvider as P, useOverlayHostDismissBeforeClose as x, useOverlayHostNestedDismissing as H } from "../../../lib/overlay/overlay-portal-context.js";
11
+ import { OVERLAY_HOST_GROUP_CLASS as R } from "../../../lib/overlay/overlay-host.constants.js";
12
+ import { useOverlayPortalContainerState as T } from "../../../lib/overlay/use-overlay-portal-container-state.js";
13
+ const K = (o) => /* @__PURE__ */ t(e.Root, { "data-component": "dialog", ...o }), U = c(
10
14
  "dialog",
11
15
  "trigger",
12
16
  "DialogTrigger",
13
- t.Trigger
14
- ), b = t.Portal, O = o(
17
+ e.Trigger
18
+ ), z = e.Portal, V = c(
15
19
  "dialog",
16
20
  "close",
17
21
  "DialogClose",
18
- t.Close
19
- ), m = d.forwardRef(({ className: a, ...i }, n) => /* @__PURE__ */ e(
20
- t.Overlay,
21
- {
22
- ref: n,
23
- className: c(
24
- "fixed inset-0 z-50 bg-scrim data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-reduce:animate-none motion-reduce:transition-none",
25
- a
26
- ),
27
- ...i
28
- }
29
- ));
30
- m.displayName = t.Overlay.displayName;
31
- const N = d.forwardRef(({ className: a, children: i, hideClose: n, onOpenAutoFocus: g, ...p }, f) => {
32
- const { t: u } = v(), x = u("aria.close");
33
- return /* @__PURE__ */ r(b, { children: [
34
- /* @__PURE__ */ e(m, {}),
35
- /* @__PURE__ */ r(
36
- t.Content,
22
+ e.Close
23
+ ), b = u.forwardRef(({ className: o, onPointerDown: a, ...s }, i) => {
24
+ const n = x();
25
+ return /* @__PURE__ */ t(
26
+ e.Overlay,
27
+ {
28
+ ref: i,
29
+ className: v(
30
+ "fixed inset-0 z-50 bg-scrim data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-reduce:animate-none motion-reduce:transition-none",
31
+ o
32
+ ),
33
+ onPointerDown: (r) => {
34
+ n(), a?.(r);
35
+ },
36
+ ...s
37
+ }
38
+ );
39
+ });
40
+ b.displayName = e.Overlay.displayName;
41
+ const C = u.forwardRef(
42
+ ({
43
+ hideClose: o,
44
+ closeLabel: a,
45
+ setPortalContainerElement: s,
46
+ className: i,
47
+ children: n,
48
+ onOpenAutoFocus: r,
49
+ onEscapeKeyDown: m,
50
+ ...g
51
+ }, p) => {
52
+ const f = H(), l = x();
53
+ return /* @__PURE__ */ D(
54
+ e.Content,
37
55
  {
38
- ref: f,
56
+ ref: O(p, s),
39
57
  "aria-describedby": void 0,
40
58
  "data-component": "dialog-content",
41
- onOpenAutoFocus: (l) => {
42
- l.preventDefault(), g?.(l);
59
+ "data-overlay-host": "",
60
+ "data-nested-dismissing": f || void 0,
61
+ onOpenAutoFocus: (d) => {
62
+ d.preventDefault(), r?.(d);
43
63
  },
44
- className: c(
64
+ onEscapeKeyDown: (d) => {
65
+ l(), m?.(d);
66
+ },
67
+ className: v(
45
68
  "fixed left-[50%] top-[50%] z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-canvas shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg overflow-hidden motion-reduce:animate-none motion-reduce:transition-none",
46
- a
69
+ R,
70
+ i
47
71
  ),
48
- ...p,
72
+ ...g,
49
73
  children: [
50
- i,
51
- !n && /* @__PURE__ */ e(t.Close, { asChild: !0, children: /* @__PURE__ */ e(
52
- D,
74
+ n,
75
+ !o && /* @__PURE__ */ t(e.Close, { asChild: !0, children: /* @__PURE__ */ t(
76
+ w,
53
77
  {
54
78
  variant: "ghost",
55
79
  size: "iconSm",
56
80
  "data-component": "dialog-close",
57
81
  className: "absolute end-4 top-3.5 opacity-50 ring-offset-canvas transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-content-icon [&_svg]:!size-3 [&_svg]:block",
58
- "aria-label": x,
59
- children: /* @__PURE__ */ e(y, {})
82
+ "aria-label": a,
83
+ onPointerDown: () => l(),
84
+ children: /* @__PURE__ */ t(N, {})
60
85
  }
61
86
  ) })
62
87
  ]
63
88
  }
89
+ );
90
+ }
91
+ );
92
+ C.displayName = "DialogHostContent";
93
+ const B = u.forwardRef(({ className: o, children: a, hideClose: s, onOpenAutoFocus: i, onEscapeKeyDown: n, ...r }, m) => {
94
+ const { t: g } = h(), p = g("aria.close"), { portalContainer: f, setPortalContainerElement: l } = T();
95
+ return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ D(P, { portalContainer: f, children: [
96
+ /* @__PURE__ */ t(b, {}),
97
+ /* @__PURE__ */ t(
98
+ C,
99
+ {
100
+ ref: m,
101
+ hideClose: s,
102
+ closeLabel: p,
103
+ setPortalContainerElement: l,
104
+ className: o,
105
+ onOpenAutoFocus: i,
106
+ onEscapeKeyDown: n,
107
+ ...r,
108
+ children: a
109
+ }
64
110
  )
65
- ] });
111
+ ] }) });
66
112
  });
67
- N.displayName = t.Content.displayName;
68
- const B = s("dialog", {
113
+ B.displayName = e.Content.displayName;
114
+ const Y = y("dialog", {
69
115
  part: "header",
70
116
  displayName: "DialogHeader",
71
117
  className: "relative flex flex-col justify-center border-b bg-canvas-tint p-4 pe-12 text-center sm:text-start"
72
- }), F = s("dialog", {
118
+ }), q = y("dialog", {
73
119
  part: "body",
74
120
  displayName: "DialogBody",
75
121
  className: "min-h-0 flex-1 overflow-y-auto px-6 py-6"
76
- }), k = s("dialog", {
122
+ }), J = y("dialog", {
77
123
  part: "footer",
78
124
  displayName: "DialogFooter",
79
125
  className: "flex flex-col-reverse bg-canvas-elevated px-4 py-[9px] sm:flex-row sm:items-center sm:justify-end sm:gap-2"
80
- }), H = o(
126
+ }), M = c(
81
127
  "dialog",
82
128
  "title",
83
129
  "DialogTitle",
84
- t.Title,
130
+ e.Title,
85
131
  "text-md font-bold leading-none tracking-tight text-content"
86
- ), I = o(
132
+ ), Q = c(
87
133
  "dialog",
88
134
  "description",
89
135
  "DialogDescription",
90
- t.Description,
136
+ e.Description,
91
137
  "text-sm text-content-secondary leading-relaxed"
92
138
  );
93
139
  export {
94
- R as Dialog,
95
- F as DialogBody,
96
- O as DialogClose,
97
- N as DialogContent,
98
- I as DialogDescription,
99
- k as DialogFooter,
100
- B as DialogHeader,
101
- m as DialogOverlay,
102
- b as DialogPortal,
103
- H as DialogTitle,
104
- j as DialogTrigger
140
+ K as Dialog,
141
+ q as DialogBody,
142
+ V as DialogClose,
143
+ B as DialogContent,
144
+ Q as DialogDescription,
145
+ J as DialogFooter,
146
+ Y as DialogHeader,
147
+ b as DialogOverlay,
148
+ z as DialogPortal,
149
+ M as DialogTitle,
150
+ U as DialogTrigger
105
151
  };
@@ -13,6 +13,7 @@ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<Dropd
13
13
  declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
15
  portalled?: boolean;
16
+ container?: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>["container"];
16
17
  } & React.RefAttributes<HTMLDivElement>>;
17
18
  declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
19
  inset?: boolean;
@@ -1,82 +1,89 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
3
  import * as t from "@radix-ui/react-dropdown-menu";
4
- import { Checkmark as f, ChevronRight as x } from "impact-nova-icons";
5
- import { wrapRadixPart as p } from "../../../lib/primitives/create-compound.js";
6
- import { cn as d } from "../../../lib/utils.js";
7
- const j = (n) => /* @__PURE__ */ e(t.Root, { "data-component": "dropdown-menu", ...n }), G = p(
4
+ import { Checkmark as h, ChevronRight as N } from "impact-nova-icons";
5
+ import { wrapRadixPart as f } from "../../../lib/primitives/create-compound.js";
6
+ import { cn as s } from "../../../lib/utils.js";
7
+ import { useOverlayNestedLayerDismiss as b, useOverlayPortalContainer as x } from "../../../lib/overlay/overlay-portal-context.js";
8
+ import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as g } from "../../../lib/overlay/overlay-host.constants.js";
9
+ const O = (n) => (b(n.open, n.onOpenChange), /* @__PURE__ */ e(t.Root, { "data-component": "dropdown-menu", ...n })), A = f(
8
10
  "dropdown-menu",
9
11
  "trigger",
10
12
  "DropdownMenuTrigger",
11
13
  t.Trigger
12
- ), P = p(
14
+ ), E = f(
13
15
  "dropdown-menu",
14
16
  "group",
15
17
  "DropdownMenuGroup",
16
18
  t.Group
17
- ), T = t.Portal, L = t.Sub, g = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
19
+ ), F = t.Portal, H = t.Sub, w = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
18
20
  t.RadioGroup,
19
21
  {
20
22
  ref: o,
21
- className: d("flex flex-col gap-0.5", n),
23
+ className: s("flex flex-col gap-0.5", n),
22
24
  ...a
23
25
  }
24
26
  ));
25
- g.displayName = t.RadioGroup.displayName;
26
- const h = c.forwardRef(({ className: n, inset: a, icon: o, children: r, ...s }, i) => /* @__PURE__ */ l(
27
+ w.displayName = t.RadioGroup.displayName;
28
+ const y = c.forwardRef(({ className: n, inset: a, icon: o, children: r, ...d }, i) => /* @__PURE__ */ l(
27
29
  t.SubTrigger,
28
30
  {
29
31
  ref: i,
30
- className: d(
32
+ className: s(
31
33
  "flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-medium",
32
34
  a && "pl-4",
33
35
  n
34
36
  ),
35
- ...s,
37
+ ...d,
36
38
  children: [
37
39
  o && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: o }),
38
40
  r,
39
- /* @__PURE__ */ e(x, { className: "ml-auto text-content-icon" })
41
+ /* @__PURE__ */ e(N, { className: "ml-auto text-content-icon" })
40
42
  ]
41
43
  }
42
44
  ));
43
- h.displayName = t.SubTrigger.displayName;
44
- const b = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
45
- t.SubContent,
46
- {
47
- ref: o,
48
- className: d(
49
- "z-50 min-w-[8rem] overflow-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating text-[13px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] motion-reduce:animate-none motion-reduce:transition-none",
50
- n
51
- ),
52
- ...a
53
- }
54
- ) }));
55
- b.displayName = t.SubContent.displayName;
56
- const w = c.forwardRef(({ className: n, sideOffset: a = 4, portalled: o = !0, ...r }, s) => {
57
- const i = /* @__PURE__ */ e(
45
+ y.displayName = t.SubTrigger.displayName;
46
+ const v = c.forwardRef(({ className: n, ...a }, o) => {
47
+ const r = x();
48
+ return /* @__PURE__ */ e(t.Portal, { container: r, children: /* @__PURE__ */ e(
49
+ t.SubContent,
50
+ {
51
+ ref: o,
52
+ className: s(
53
+ "z-50 min-w-[8rem] overflow-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating text-[13px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] motion-reduce:animate-none motion-reduce:transition-none",
54
+ g,
55
+ n
56
+ ),
57
+ ...a
58
+ }
59
+ ) });
60
+ });
61
+ v.displayName = t.SubContent.displayName;
62
+ const D = c.forwardRef(({ className: n, sideOffset: a = 4, portalled: o = !0, container: r, ...d }, i) => {
63
+ const m = x(), p = r ?? m, u = /* @__PURE__ */ e(
58
64
  t.Content,
59
65
  {
60
- ref: s,
66
+ ref: i,
61
67
  sideOffset: a,
62
68
  "data-component": "dropdown-menu-content",
63
- className: d(
69
+ className: s(
64
70
  "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[12rem] overflow-y-auto overflow-x-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating flex flex-col gap-0.5",
65
71
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] motion-reduce:animate-none motion-reduce:transition-none",
72
+ g,
66
73
  n
67
74
  ),
68
- ...r
75
+ ...d
69
76
  }
70
77
  );
71
- return o ? /* @__PURE__ */ e(t.Portal, { children: i }) : i;
78
+ return o ? /* @__PURE__ */ e(t.Portal, { container: p, children: u }) : u;
72
79
  });
73
- w.displayName = t.Content.displayName;
74
- const N = c.forwardRef(({ className: n, inset: a, description: o, icon: r, children: s, ...i }, m) => /* @__PURE__ */ l(
80
+ D.displayName = t.Content.displayName;
81
+ const M = c.forwardRef(({ className: n, inset: a, description: o, icon: r, children: d, ...i }, m) => /* @__PURE__ */ l(
75
82
  t.Item,
76
83
  {
77
84
  ref: m,
78
85
  "data-component": "dropdown-menu-item",
79
- className: d(
86
+ className: s(
80
87
  "relative flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
81
88
  a && "pl-4",
82
89
  n
@@ -85,37 +92,37 @@ const N = c.forwardRef(({ className: n, inset: a, description: o, icon: r, child
85
92
  children: [
86
93
  r && /* @__PURE__ */ e("span", { className: "flex-shrink-0 [&>svg]:size-4", children: r }),
87
94
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-0.5 justify-center", children: [
88
- /* @__PURE__ */ e("span", { className: "font-medium leading-none", children: s }),
95
+ /* @__PURE__ */ e("span", { className: "font-medium leading-none", children: d }),
89
96
  o && /* @__PURE__ */ e("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: o })
90
97
  ] })
91
98
  ]
92
99
  }
93
100
  ));
94
- N.displayName = t.Item.displayName;
95
- const y = c.forwardRef(({ className: n, children: a, checked: o, description: r, icon: s, ...i }, m) => /* @__PURE__ */ l(
101
+ M.displayName = t.Item.displayName;
102
+ const R = c.forwardRef(({ className: n, children: a, checked: o, description: r, icon: d, ...i }, m) => /* @__PURE__ */ l(
96
103
  t.CheckboxItem,
97
104
  {
98
105
  ref: m,
99
- className: d(
106
+ className: s(
100
107
  "relative flex cursor-default select-none items-center rounded-md h-[35px] pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
101
108
  n
102
109
  ),
103
110
  checked: o,
104
- onSelect: (u) => u.preventDefault(),
111
+ onSelect: (p) => p.preventDefault(),
105
112
  ...i,
106
113
  children: [
107
114
  /* @__PURE__ */ e("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(
108
115
  "div",
109
116
  {
110
- className: d(
117
+ className: s(
111
118
  "flex h-4 w-4 items-center justify-center rounded-[4px] border border-stroke transition-colors",
112
119
  o && "bg-brand border-brand text-brand-foreground"
113
120
  ),
114
- children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(f, { className: "h-3.5 w-3.5" }) })
121
+ children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(h, { className: "h-3.5 w-3.5" }) })
115
122
  }
116
123
  ) }),
117
124
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
118
- s && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: s }),
125
+ d && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: d }),
119
126
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-0.5 justify-center", children: [
120
127
  /* @__PURE__ */ e("span", { className: "font-medium leading-none", children: a }),
121
128
  r && /* @__PURE__ */ e("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: r })
@@ -124,23 +131,23 @@ const y = c.forwardRef(({ className: n, children: a, checked: o, description: r,
124
131
  ]
125
132
  }
126
133
  ));
127
- y.displayName = t.CheckboxItem.displayName;
128
- const v = c.forwardRef(({ className: n, children: a, description: o, icon: r, ...s }, i) => /* @__PURE__ */ l(
134
+ R.displayName = t.CheckboxItem.displayName;
135
+ const k = c.forwardRef(({ className: n, children: a, description: o, icon: r, ...d }, i) => /* @__PURE__ */ l(
129
136
  t.RadioItem,
130
137
  {
131
138
  ref: i,
132
139
  "data-component": "dropdown-menu-radio-item",
133
- className: d(
140
+ className: s(
134
141
  "group relative flex cursor-default select-none items-center rounded-md min-h-[35px] py-1.5 pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[state=checked]:bg-accent",
135
142
  n
136
143
  ),
137
144
  onSelect: (m) => m.preventDefault(),
138
- ...s,
145
+ ...d,
139
146
  children: [
140
147
  /* @__PURE__ */ e("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(
141
148
  "div",
142
149
  {
143
- className: d(
150
+ className: s(
144
151
  "flex h-4 w-4 items-center justify-center rounded-full border border-stroke transition-colors",
145
152
  "group-data-[state=checked]:border-brand"
146
153
  ),
@@ -157,12 +164,12 @@ const v = c.forwardRef(({ className: n, children: a, description: o, icon: r, ..
157
164
  ]
158
165
  }
159
166
  ));
160
- v.displayName = t.RadioItem.displayName;
161
- const D = c.forwardRef(({ className: n, inset: a, ...o }, r) => /* @__PURE__ */ e(
167
+ k.displayName = t.RadioItem.displayName;
168
+ const S = c.forwardRef(({ className: n, inset: a, ...o }, r) => /* @__PURE__ */ e(
162
169
  t.Label,
163
170
  {
164
171
  ref: r,
165
- className: d(
172
+ className: s(
166
173
  "px-3 py-2 text-xs font-bold tracking-wider text-content-icon",
167
174
  a && "pl-4",
168
175
  n
@@ -170,56 +177,56 @@ const D = c.forwardRef(({ className: n, inset: a, ...o }, r) => /* @__PURE__ */
170
177
  ...o
171
178
  }
172
179
  ));
173
- D.displayName = t.Label.displayName;
174
- const M = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
180
+ S.displayName = t.Label.displayName;
181
+ const C = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
175
182
  t.Separator,
176
183
  {
177
184
  ref: o,
178
- className: d("-mx-2 my-1 h-px bg-stroke-hairline", n),
185
+ className: s("-mx-2 my-1 h-px bg-stroke-hairline", n),
179
186
  ...a
180
187
  }
181
188
  ));
182
- M.displayName = t.Separator.displayName;
183
- const k = ({
189
+ C.displayName = t.Separator.displayName;
190
+ const I = ({
184
191
  className: n,
185
192
  ...a
186
193
  }) => /* @__PURE__ */ e(
187
194
  "div",
188
195
  {
189
- className: d(
196
+ className: s(
190
197
  "sticky bottom-0 z-10 -mx-2 -mb-2 mt-1 flex items-center justify-end gap-2 border-t bg-canvas-elevated p-2 shrink-0 rounded-b-xl",
191
198
  n
192
199
  ),
193
200
  ...a
194
201
  }
195
202
  );
196
- k.displayName = "DropdownMenuFooter";
197
- const R = ({
203
+ I.displayName = "DropdownMenuFooter";
204
+ const z = ({
198
205
  className: n,
199
206
  ...a
200
207
  }) => /* @__PURE__ */ e(
201
208
  "span",
202
209
  {
203
- className: d("ml-auto text-xs tracking-widest opacity-60", n),
210
+ className: s("ml-auto text-xs tracking-widest opacity-60", n),
204
211
  ...a
205
212
  }
206
213
  );
207
- R.displayName = "DropdownMenuShortcut";
214
+ z.displayName = "DropdownMenuShortcut";
208
215
  export {
209
- j as DropdownMenu,
210
- y as DropdownMenuCheckboxItem,
211
- w as DropdownMenuContent,
212
- k as DropdownMenuFooter,
213
- P as DropdownMenuGroup,
214
- N as DropdownMenuItem,
215
- D as DropdownMenuLabel,
216
- T as DropdownMenuPortal,
217
- g as DropdownMenuRadioGroup,
218
- v as DropdownMenuRadioItem,
219
- M as DropdownMenuSeparator,
220
- R as DropdownMenuShortcut,
221
- L as DropdownMenuSub,
222
- b as DropdownMenuSubContent,
223
- h as DropdownMenuSubTrigger,
224
- G as DropdownMenuTrigger
216
+ O as DropdownMenu,
217
+ R as DropdownMenuCheckboxItem,
218
+ D as DropdownMenuContent,
219
+ I as DropdownMenuFooter,
220
+ E as DropdownMenuGroup,
221
+ M as DropdownMenuItem,
222
+ S as DropdownMenuLabel,
223
+ F as DropdownMenuPortal,
224
+ w as DropdownMenuRadioGroup,
225
+ k as DropdownMenuRadioItem,
226
+ C as DropdownMenuSeparator,
227
+ z as DropdownMenuShortcut,
228
+ H as DropdownMenuSub,
229
+ v as DropdownMenuSubContent,
230
+ y as DropdownMenuSubTrigger,
231
+ A as DropdownMenuTrigger
225
232
  };
@@ -3,7 +3,10 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
3
  declare const Popover: (props: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const PopoverPortal: React.FC<PopoverPrimitive.PopoverPortalProps>;
7
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
8
+ container?: React.ComponentProps<typeof PopoverPrimitive.Portal>["container"];
9
+ } & React.RefAttributes<HTMLDivElement>>;
7
10
  declare const PopoverHeader: {
8
11
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
9
12
  displayName: string;
@@ -18,4 +21,4 @@ declare const PopoverFooter: {
18
21
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
19
22
  displayName: string;
20
23
  };
21
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverClose, PopoverBody, PopoverFooter, };
24
+ export { Popover, PopoverTrigger, PopoverContent, PopoverPortal, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverClose, PopoverBody, PopoverFooter, };