impact-nova 2.2.1 → 2.2.3

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 (68) 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/data/expandable-list-item/expandable-list-item-attributes.js +6 -7
  24. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +3 -2
  25. package/dist/components/data-display/calendar/calendar-day-picker-view.js +70 -68
  26. package/dist/components/data-display/calendar/calendar-week-number-cell.js +29 -29
  27. package/dist/components/data-display/calendar/calendar.js +96 -94
  28. package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
  29. package/dist/components/feedback/dialog/dialog.js +107 -61
  30. package/dist/components/feedback/dropdown-menu/dropdown-menu.d.ts +1 -0
  31. package/dist/components/feedback/dropdown-menu/dropdown-menu.js +83 -76
  32. package/dist/components/feedback/popover/popover.d.ts +5 -2
  33. package/dist/components/feedback/popover/popover.js +43 -40
  34. package/dist/components/feedback/sheet/sheet.js +149 -102
  35. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  36. package/dist/components/flows/filter-panel/filter-panel.js +79 -76
  37. package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -4
  38. package/dist/components/forms/date-picker/date-input-behavior.js +86 -67
  39. package/dist/components/forms/date-picker/date-picker.js +59 -52
  40. package/dist/components/forms/date-picker/date-range-picker.js +26 -25
  41. package/dist/components/forms/date-picker/month-picker.js +76 -69
  42. package/dist/components/forms/date-picker/month-range-picker.js +41 -40
  43. package/dist/components/forms/date-picker/multi-date-picker.js +31 -31
  44. package/dist/components/forms/date-picker/multi-month-picker.js +27 -27
  45. package/dist/components/forms/date-picker/multi-week-picker.js +37 -37
  46. package/dist/components/forms/date-picker/week-picker.js +85 -78
  47. package/dist/components/forms/date-picker/week-range-picker.js +67 -66
  48. package/dist/components/forms/select/components/SelectMenuPanel.js +19 -15
  49. package/dist/components/forms/select/components/SelectOptionRow.js +110 -90
  50. package/dist/components/forms/select/components/Submenu.js +39 -34
  51. package/dist/components/forms/select/hooks/useSelectOpenEffects.js +65 -70
  52. package/dist/components/forms/select/select.js +228 -223
  53. package/dist/components/forms/select/select.types.d.ts +8 -0
  54. package/dist/impact-nova-components.css +59 -15
  55. package/dist/impact-nova.css +1 -1
  56. package/dist/lib/overlay/merge-element-refs.d.ts +2 -0
  57. package/dist/lib/overlay/merge-element-refs.js +17 -0
  58. package/dist/lib/overlay/overlay-host.constants.d.ts +4 -0
  59. package/dist/lib/overlay/overlay-host.constants.js +5 -0
  60. package/dist/lib/overlay/overlay-portal-context.d.ts +26 -0
  61. package/dist/lib/overlay/overlay-portal-context.js +65 -0
  62. package/dist/lib/overlay/use-overlay-portal-container-state.d.ts +5 -0
  63. package/dist/lib/overlay/use-overlay-portal-container-state.js +13 -0
  64. package/dist/llms/rules/installation.js +1 -1
  65. package/dist/llms/rules/requirements.js +1 -1
  66. package/package.json +23 -8
  67. package/dist/components/forms/select/components/LabelWithSequence.d.ts +0 -13
  68. package/dist/components/forms/select/components/LabelWithSequence.js +0 -18
@@ -1,48 +1,51 @@
1
- import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
- import * as d from "react";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import * as p from "react";
3
3
  import * as a from "@radix-ui/react-popover";
4
- import { Cross as f } from "impact-nova-icons";
5
- import { Tooltip as h, TooltipTrigger as g, TooltipContent as y } from "../tooltip/tooltip.js";
6
- import { wrapRadixPart as l, createCompoundPart as u } from "../../../lib/primitives/create-compound.js";
4
+ import { Cross as N } from "impact-nova-icons";
5
+ import { Tooltip as g, TooltipTrigger as u, TooltipContent as P } from "../tooltip/tooltip.js";
6
+ import { wrapRadixPart as d, createCompoundPart as x } from "../../../lib/primitives/create-compound.js";
7
7
  import { cn as n } from "../../../lib/utils.js";
8
- import { useImpactNovaI18n as c } from "../../../i18n/use-impact-nova-i18n.js";
9
- const B = (o) => /* @__PURE__ */ e(
8
+ import { useImpactNovaI18n as m } from "../../../i18n/use-impact-nova-i18n.js";
9
+ import { useOverlayNestedLayerDismiss as C, useOverlayPortalContainer as b } from "../../../lib/overlay/overlay-portal-context.js";
10
+ import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as T } from "../../../lib/overlay/overlay-host.constants.js";
11
+ const H = (o) => (C(o.open, o.onOpenChange), /* @__PURE__ */ e(
10
12
  a.Root,
11
13
  {
12
14
  "data-component": "popover",
13
15
  modal: !1,
14
16
  ...o
15
17
  }
16
- ), F = l(
18
+ )), B = d(
17
19
  "popover",
18
20
  "trigger",
19
21
  "PopoverTrigger",
20
22
  a.Trigger
21
- ), H = l(
23
+ ), k = d(
22
24
  "popover",
23
25
  "anchor",
24
26
  "PopoverAnchor",
25
27
  a.Anchor
26
- ), P = d.forwardRef(({ className: o, align: t = "center", sideOffset: i = 4, "aria-label": s, ...r }, m) => {
27
- const { t: v } = c();
28
- return /* @__PURE__ */ e(a.Portal, { children: /* @__PURE__ */ e(
28
+ ), w = p.forwardRef(({ className: o, align: t = "center", sideOffset: i = 4, container: s, "aria-label": r, ...c }, v) => {
29
+ const { t: f } = m(), y = b(), h = s ?? y;
30
+ return /* @__PURE__ */ e(a.Portal, { container: h, children: /* @__PURE__ */ e(
29
31
  a.Content,
30
32
  {
31
- ref: m,
33
+ ref: v,
32
34
  align: t,
33
35
  sideOffset: i,
34
- "aria-label": s ?? v("aria.popover"),
36
+ "aria-label": r ?? f("aria.popover"),
35
37
  "data-component": "popover-content",
36
38
  className: n(
37
39
  "z-50 min-w-[240px] rounded-xl border bg-canvas-overlay p-3 text-canvas-overlay-foreground shadow-md outline-none overflow-hidden 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-popover-content-transform-origin] pointer-events-auto motion-reduce:animate-none motion-reduce:transition-none",
40
+ T,
38
41
  o
39
42
  ),
40
- ...r
43
+ ...c
41
44
  }
42
45
  ) });
43
46
  });
44
- P.displayName = a.Content.displayName;
45
- const x = ({
47
+ w.displayName = a.Content.displayName;
48
+ const A = ({
46
49
  className: o,
47
50
  ...t
48
51
  }) => /* @__PURE__ */ e(
@@ -52,8 +55,8 @@ const x = ({
52
55
  ...t
53
56
  }
54
57
  );
55
- x.displayName = "PopoverHeader";
56
- const N = ({
58
+ A.displayName = "PopoverHeader";
59
+ const R = ({
57
60
  className: o,
58
61
  ...t
59
62
  }) => /* @__PURE__ */ e(
@@ -67,15 +70,15 @@ const N = ({
67
70
  ...t
68
71
  }
69
72
  );
70
- N.displayName = "PopoverTitle";
71
- const I = u("popover", {
73
+ R.displayName = "PopoverTitle";
74
+ const G = x("popover", {
72
75
  part: "body",
73
76
  displayName: "PopoverBody",
74
77
  className: "text-sm"
75
- }), b = d.forwardRef(({ className: o, ...t }, i) => {
76
- const { t: s } = c(), r = s("aria.close");
77
- return /* @__PURE__ */ p(h, { children: [
78
- /* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ p(
78
+ }), I = p.forwardRef(({ className: o, ...t }, i) => {
79
+ const { t: s } = m(), r = s("aria.close");
80
+ return /* @__PURE__ */ l(g, { children: [
81
+ /* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ l(
79
82
  a.Close,
80
83
  {
81
84
  ref: i,
@@ -87,31 +90,31 @@ const I = u("popover", {
87
90
  "aria-label": r,
88
91
  ...t,
89
92
  children: [
90
- /* @__PURE__ */ e(f, { className: "!h-3 !w-3 text-content-tertiary" }),
93
+ /* @__PURE__ */ e(N, { className: "!h-3 !w-3 text-content-tertiary" }),
91
94
  /* @__PURE__ */ e("span", { className: "sr-only", children: r })
92
95
  ]
93
96
  }
94
97
  ) }),
95
- /* @__PURE__ */ e(y, { variant: "tertiary", side: "top", children: r })
98
+ /* @__PURE__ */ e(P, { variant: "tertiary", side: "top", children: r })
96
99
  ] });
97
100
  });
98
- b.displayName = a.Close.displayName;
99
- const C = ({
101
+ I.displayName = a.Close.displayName;
102
+ const L = ({
100
103
  className: o,
101
104
  ...t
102
- }) => /* @__PURE__ */ p("div", { className: n("mt-4 flex flex-col gap-3", o), ...t, children: [
105
+ }) => /* @__PURE__ */ l("div", { className: n("mt-4 flex flex-col gap-3", o), ...t, children: [
103
106
  /* @__PURE__ */ e("div", { className: "h-[1px] w-full bg-stroke-hairline" }),
104
107
  /* @__PURE__ */ e("div", { className: "flex justify-end gap-2", children: t.children })
105
108
  ] });
106
- C.displayName = "PopoverFooter";
109
+ L.displayName = "PopoverFooter";
107
110
  export {
108
- B as Popover,
109
- H as PopoverAnchor,
110
- I as PopoverBody,
111
- b as PopoverClose,
112
- P as PopoverContent,
113
- C as PopoverFooter,
114
- x as PopoverHeader,
115
- N as PopoverTitle,
116
- F as PopoverTrigger
111
+ H as Popover,
112
+ k as PopoverAnchor,
113
+ G as PopoverBody,
114
+ I as PopoverClose,
115
+ w as PopoverContent,
116
+ L as PopoverFooter,
117
+ A as PopoverHeader,
118
+ R as PopoverTitle,
119
+ B as PopoverTrigger
117
120
  };
@@ -1,170 +1,217 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import * as t from "@radix-ui/react-dialog";
4
- import { ChevronRight as y, Cross as k } from "impact-nova-icons";
5
- import { createCompoundPart as S, wrapRadixPart as h } from "../../../lib/primitives/create-compound.js";
6
- import { cn as x } from "../../../lib/utils.js";
7
- import { useImpactNovaI18n as w } from "../../../i18n/use-impact-nova-i18n.js";
8
- import { Tooltip as b, TooltipTrigger as v, TooltipContent as N } from "../tooltip/tooltip.js";
9
- import { SheetContext as C } from "./sheet-context.js";
10
- import { sheetVariants as P } from "./sheet.variants.js";
11
- const V = (o) => /* @__PURE__ */ e(t.Root, { "data-component": "sheet", ...o }), q = h(
3
+ import * as n from "@radix-ui/react-dialog";
4
+ import { ChevronRight as v, Cross as L } from "impact-nova-icons";
5
+ import { createCompoundPart as b, wrapRadixPart as y } from "../../../lib/primitives/create-compound.js";
6
+ import { cn as g } from "../../../lib/utils.js";
7
+ import { useImpactNovaI18n as R } from "../../../i18n/use-impact-nova-i18n.js";
8
+ import { Tooltip as N, TooltipTrigger as C, TooltipContent as S } from "../tooltip/tooltip.js";
9
+ import { mergeElementRefs as E } from "../../../lib/overlay/merge-element-refs.js";
10
+ import { OverlayHostProvider as k, useOverlayHostDismissBeforeClose as x, useOverlayHostNestedDismissing as B } from "../../../lib/overlay/overlay-portal-context.js";
11
+ import { OVERLAY_HOST_GROUP_CLASS as j } from "../../../lib/overlay/overlay-host.constants.js";
12
+ import { useOverlayPortalContainerState as z } from "../../../lib/overlay/use-overlay-portal-container-state.js";
13
+ import { SheetContext as T } from "./sheet-context.js";
14
+ import { sheetVariants as A } from "./sheet.variants.js";
15
+ const ee = (t) => /* @__PURE__ */ e(n.Root, { "data-component": "sheet", ...t }), te = y(
12
16
  "sheet",
13
17
  "trigger",
14
18
  "SheetTrigger",
15
- t.Trigger
16
- ), R = h(
19
+ n.Trigger
20
+ ), F = y(
17
21
  "sheet",
18
22
  "close",
19
23
  "SheetClose",
20
- t.Close
21
- ), D = t.Portal, T = p.forwardRef(({ className: o, ...r }, i) => /* @__PURE__ */ e(
22
- t.Overlay,
23
- {
24
- className: x(
25
- "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",
26
- o
27
- ),
28
- ...r,
29
- ref: i
24
+ n.Close
25
+ ), I = n.Portal, P = p.forwardRef(({ className: t, onPointerDown: i, ...l }, a) => {
26
+ const o = x();
27
+ return /* @__PURE__ */ e(
28
+ n.Overlay,
29
+ {
30
+ className: g(
31
+ "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",
32
+ t
33
+ ),
34
+ onPointerDown: (c) => {
35
+ o(), i?.(c);
36
+ },
37
+ ...l,
38
+ ref: a
39
+ }
40
+ );
41
+ });
42
+ P.displayName = n.Overlay.displayName;
43
+ const D = p.forwardRef(
44
+ ({
45
+ side: t,
46
+ isExpanded: i,
47
+ setPortalContainerElement: l,
48
+ className: a,
49
+ children: o,
50
+ onOpenAutoFocus: c,
51
+ onEscapeKeyDown: h,
52
+ ...f
53
+ }, u) => {
54
+ const r = B(), d = x();
55
+ return /* @__PURE__ */ e(
56
+ n.Content,
57
+ {
58
+ ref: E(u, l),
59
+ "data-component": "sheet-content",
60
+ "data-overlay-host": "",
61
+ "data-nested-dismissing": r || void 0,
62
+ onOpenAutoFocus: (s) => {
63
+ s.preventDefault(), c?.(s);
64
+ },
65
+ onEscapeKeyDown: (s) => {
66
+ d(), h?.(s);
67
+ },
68
+ className: g(
69
+ A({ side: t }),
70
+ j,
71
+ "flex flex-col p-0 transition-all duration-300 motion-reduce:transition-none",
72
+ t === "bottom" && (i ? "h-[96vh]" : "h-[40vh]"),
73
+ a
74
+ ),
75
+ ...f,
76
+ children: o
77
+ }
78
+ );
30
79
  }
31
- ));
32
- T.displayName = t.Overlay.displayName;
33
- const E = p.forwardRef(
80
+ );
81
+ D.displayName = "SheetHostContent";
82
+ const _ = p.forwardRef(
34
83
  ({
35
- side: o = "right",
36
- className: r,
37
- children: i,
38
- expandable: l = !1,
39
- defaultExpanded: n = !1,
40
- onOpenAutoFocus: f,
41
- ...u
42
- }, g) => {
43
- const [s, c] = p.useState(n), d = p.useCallback(() => {
44
- c((m) => !m);
84
+ side: t = "right",
85
+ className: i,
86
+ children: l,
87
+ expandable: a = !1,
88
+ defaultExpanded: o = !1,
89
+ onOpenAutoFocus: c,
90
+ onEscapeKeyDown: h,
91
+ ...f
92
+ }, u) => {
93
+ const [r, d] = p.useState(o), { portalContainer: s, setPortalContainerElement: H } = z(), O = p.useCallback(() => {
94
+ d((w) => !w);
45
95
  }, []);
46
96
  return /* @__PURE__ */ e(
47
- C.Provider,
97
+ T.Provider,
48
98
  {
49
99
  value: {
50
- isExpanded: s,
51
- onExpandToggle: d,
52
- expandable: l,
53
- side: o || void 0
100
+ isExpanded: r,
101
+ onExpandToggle: O,
102
+ expandable: a,
103
+ side: t || void 0
54
104
  },
55
- children: /* @__PURE__ */ a(D, { children: [
56
- /* @__PURE__ */ e(T, {}),
105
+ children: /* @__PURE__ */ e(I, { children: /* @__PURE__ */ m(k, { portalContainer: s, children: [
106
+ /* @__PURE__ */ e(P, {}),
57
107
  /* @__PURE__ */ e(
58
- t.Content,
108
+ D,
59
109
  {
60
- ref: g,
61
- "data-component": "sheet-content",
62
- onOpenAutoFocus: (m) => {
63
- m.preventDefault(), f?.(m);
64
- },
65
- className: x(
66
- P({ side: o }),
67
- "flex flex-col p-0 transition-all duration-300 motion-reduce:transition-none",
68
- o === "bottom" && (s ? "h-[96vh]" : "h-[40vh]"),
69
- r
70
- ),
71
- ...u,
72
- children: i
110
+ ref: u,
111
+ side: t,
112
+ isExpanded: r,
113
+ setPortalContainerElement: H,
114
+ className: i,
115
+ onOpenAutoFocus: c,
116
+ onEscapeKeyDown: h,
117
+ ...f,
118
+ children: l
73
119
  }
74
120
  )
75
- ] })
121
+ ] }) })
76
122
  }
77
123
  );
78
124
  }
79
125
  );
80
- E.displayName = t.Content.displayName;
81
- const L = ({
82
- className: o,
83
- children: r,
84
- ...i
126
+ _.displayName = n.Content.displayName;
127
+ const V = ({
128
+ className: t,
129
+ children: i,
130
+ ...l
85
131
  }) => {
86
- const { t: l } = w(), { isExpanded: n, onExpandToggle: f, expandable: u, side: g } = p.useContext(C), s = l("aria.close"), c = l("nestedList.expand"), d = l("nestedList.collapse");
87
- return /* @__PURE__ */ a(
132
+ const { t: a } = R(), { isExpanded: o, onExpandToggle: c, expandable: h, side: f } = p.useContext(T), u = x(), r = a("aria.close"), d = a("nestedList.expand"), s = a("nestedList.collapse");
133
+ return /* @__PURE__ */ m(
88
134
  "div",
89
135
  {
90
- className: x(
136
+ className: g(
91
137
  "flex shrink-0 items-center justify-between border-b bg-brand-tint px-4 py-4",
92
- g === "bottom" && "rounded-t-lg",
93
- o
138
+ f === "bottom" && "rounded-t-lg",
139
+ t
94
140
  ),
95
- ...i,
141
+ ...l,
96
142
  children: [
97
- /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-start", children: r }),
98
- /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
99
- u && /* @__PURE__ */ a(b, { children: [
100
- /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ a(
143
+ /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-start", children: i }),
144
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
145
+ h && /* @__PURE__ */ m(N, { children: [
146
+ /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ m(
101
147
  "button",
102
148
  {
103
149
  type: "button",
104
150
  "data-component": "sheet-expand-toggle",
105
- onClick: f,
151
+ onClick: c,
106
152
  className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
107
- "aria-label": n ? d : c,
153
+ "aria-label": o ? s : d,
108
154
  children: [
109
- n ? /* @__PURE__ */ e(y, { size: 19, className: " -rotate-90" }) : /* @__PURE__ */ e(y, { size: 19, className: "rotate-90" }),
110
- /* @__PURE__ */ e("span", { className: "sr-only", children: n ? d : c })
155
+ o ? /* @__PURE__ */ e(v, { size: 19, className: " -rotate-90" }) : /* @__PURE__ */ e(v, { size: 19, className: "rotate-90" }),
156
+ /* @__PURE__ */ e("span", { className: "sr-only", children: o ? s : d })
111
157
  ]
112
158
  }
113
159
  ) }),
114
- /* @__PURE__ */ e(N, { variant: "tertiary", side: "top", children: n ? d : c })
160
+ /* @__PURE__ */ e(S, { variant: "tertiary", side: "top", children: o ? s : d })
115
161
  ] }),
116
- /* @__PURE__ */ a(b, { children: [
117
- /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ a(
118
- R,
162
+ /* @__PURE__ */ m(N, { children: [
163
+ /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ m(
164
+ F,
119
165
  {
120
166
  "data-component": "sheet-close",
121
167
  className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
122
- "aria-label": s,
168
+ "aria-label": r,
169
+ onPointerDown: () => u(),
123
170
  children: [
124
- /* @__PURE__ */ e(k, { className: "!h-3 !w-3" }),
125
- /* @__PURE__ */ e("span", { className: "sr-only", children: s })
171
+ /* @__PURE__ */ e(L, { className: "!h-3 !w-3" }),
172
+ /* @__PURE__ */ e("span", { className: "sr-only", children: r })
126
173
  ]
127
174
  }
128
175
  ) }),
129
- /* @__PURE__ */ e(N, { variant: "tertiary", side: "top", children: s })
176
+ /* @__PURE__ */ e(S, { variant: "tertiary", side: "top", children: r })
130
177
  ] })
131
178
  ] })
132
179
  ]
133
180
  }
134
181
  );
135
182
  };
136
- L.displayName = "SheetHeader";
137
- const G = S("sheet", {
183
+ V.displayName = "SheetHeader";
184
+ const oe = b("sheet", {
138
185
  part: "body",
139
186
  displayName: "SheetBody",
140
187
  className: "flex-1 overflow-y-auto p-4"
141
- }), J = S("sheet", {
188
+ }), se = b("sheet", {
142
189
  part: "footer",
143
190
  displayName: "SheetFooter",
144
191
  className: "mt-auto flex shrink-0 items-center justify-end gap-2 border-t bg-canvas-elevated px-4 py-3"
145
- }), K = h(
192
+ }), ne = y(
146
193
  "sheet",
147
194
  "title",
148
195
  "SheetTitle",
149
- t.Title,
196
+ n.Title,
150
197
  "text-sm font-bold leading-none tracking-tight"
151
- ), M = h(
198
+ ), ae = y(
152
199
  "sheet",
153
200
  "description",
154
201
  "SheetDescription",
155
- t.Description,
202
+ n.Description,
156
203
  "text-sm text-content-secondary"
157
204
  );
158
205
  export {
159
- V as Sheet,
160
- G as SheetBody,
161
- R as SheetClose,
162
- E as SheetContent,
163
- M as SheetDescription,
164
- J as SheetFooter,
165
- L as SheetHeader,
166
- T as SheetOverlay,
167
- D as SheetPortal,
168
- K as SheetTitle,
169
- q as SheetTrigger
206
+ ee as Sheet,
207
+ oe as SheetBody,
208
+ F as SheetClose,
209
+ _ as SheetContent,
210
+ ae as SheetDescription,
211
+ se as SheetFooter,
212
+ V as SheetHeader,
213
+ P as SheetOverlay,
214
+ I as SheetPortal,
215
+ ne as SheetTitle,
216
+ te as SheetTrigger
170
217
  };
@@ -1,7 +1,6 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
3
- import "react";
4
- const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
3
+ const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
5
4
  /* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
6
5
  /* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
7
6
  ] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
@@ -10,5 +9,5 @@ const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
10
9
  ] });
11
10
  export {
12
11
  h as defaultAccordionTooltipRender,
13
- p as defaultTabTooltipRender
12
+ d as defaultTabTooltipRender
14
13
  };