impact-nova 2.2.4 → 2.2.6

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 (47) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +2 -1
  2. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +12 -11
  3. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +109 -87
  4. package/dist/components/data/ag-grid-react/index.d.ts +2 -0
  5. package/dist/components/data/ag-grid-react/index.js +41 -36
  6. package/dist/components/data/data-table/data-table-saved-views.js +216 -191
  7. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +2 -1
  8. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +30 -27
  9. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +44 -30
  10. package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +1 -1
  11. package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +162 -127
  12. package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +30 -29
  13. package/dist/components/data/expandable-list-item/expandable-list-item.types.d.ts +8 -1
  14. package/dist/components/data/expandable-list-item/index.d.ts +1 -1
  15. package/dist/components/data-display/statistics-card/statistics-card.js +138 -111
  16. package/dist/components/feedback/tooltip/index.d.ts +3 -0
  17. package/dist/components/feedback/tooltip/index.js +13 -9
  18. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +2 -0
  19. package/dist/components/feedback/tooltip/overflow-tooltip.js +69 -0
  20. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +37 -0
  21. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  22. package/dist/components/feedback/tooltip/use-overflow-tooltip.d.ts +3 -0
  23. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +55 -0
  24. package/dist/components/flows/command-palette/shortcut-settings.js +85 -66
  25. package/dist/components/flows/filter-panel/filter-panel.js +76 -69
  26. package/dist/components/flows/filter-strip/filter-summary.js +184 -163
  27. package/dist/components/flows/filter-strip/filter-tag-list.js +119 -103
  28. package/dist/components/forms/select/components/SelectOptionRow.js +35 -27
  29. package/dist/components/forms/select/components/SelectTriggerValue.js +49 -20
  30. package/dist/components/forms/select/components/Submenu.js +40 -31
  31. package/dist/components/layout/horizontal-scroller/index.d.ts +4 -0
  32. package/dist/components/layout/horizontal-scroller/index.js +6 -2
  33. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +10 -0
  34. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +124 -0
  35. package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.d.ts +13 -0
  36. package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.js +40 -0
  37. package/dist/components/primitives/stepper/stepper.js +61 -42
  38. package/dist/impact-nova.css +1 -1
  39. package/dist/index.js +468 -460
  40. package/dist/lib/overflow/is-text-overflowing.d.ts +3 -0
  41. package/dist/lib/overflow/is-text-overflowing.js +6 -0
  42. package/dist/llms/rules/ag-grid.js +1 -1
  43. package/dist/llms/rules/best-practices.js +1 -1
  44. package/dist/llms/rules/installation.js +1 -1
  45. package/dist/llms/rules/requirements.js +1 -1
  46. package/dist/llms/rules/troubleshooting.js +1 -1
  47. package/package.json +1 -1
@@ -1,64 +1,67 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Badge as p } from "../../data-display/badge/badge.js";
3
- import { FilterPopoverContent as h } from "../../flows/filter-strip/filter-tag-list.js";
4
- import { Popover as u, PopoverTrigger as f } from "../../feedback/popover/popover.js";
5
- import { Tag as x } from "../../primitives/tag/tag.js";
6
- import { Tooltip as b, TooltipTrigger as g, TooltipContent as v } from "../../feedback/tooltip/tooltip.js";
2
+ import { Badge as s } from "../../data-display/badge/badge.js";
3
+ import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
4
+ import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
5
+ import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
6
+ import "react";
7
7
  function I({
8
- tags: n,
9
- title: i = "Attributes",
10
- maxVisibleTags: a = 4,
11
- formatOverflow: s
8
+ tags: o,
9
+ title: l = "Attributes",
10
+ maxVisibleTags: n = 4,
11
+ formatOverflow: c,
12
+ externalCopyFunction: m
12
13
  }) {
13
- const c = n.slice(0, a), t = n.slice(a), o = t.length, d = s?.(o) ?? (o > 0 ? `+${o}` : null);
14
+ const p = o.slice(0, n), t = o.slice(n), i = t.length, d = c?.(i) ?? (i > 0 ? `+${i}` : null);
14
15
  return /* @__PURE__ */ r(
15
16
  "div",
16
17
  {
17
18
  className: "px-4 py-4 pt-0 sm:px-5",
18
19
  "data-component": "expandable-list-item-attributes",
19
20
  children: [
20
- /* @__PURE__ */ e("p", { className: "text-xs font-semibold leading-5 text-content-heading", children: i }),
21
+ /* @__PURE__ */ e("p", { className: "text-xs font-semibold leading-5 text-content-heading", children: l }),
21
22
  /* @__PURE__ */ r("div", { className: "mt-2 flex flex-wrap gap-1.5", children: [
22
- c.map((l, m) => /* @__PURE__ */ e(
23
- p,
23
+ p.map((a, h) => /* @__PURE__ */ e(
24
+ s,
24
25
  {
25
26
  variant: "subtle",
26
27
  color: "neutral",
27
28
  size: "sm",
28
29
  shape: "circle",
29
30
  className: "max-w-full",
30
- children: l
31
+ children: a
31
32
  },
32
- `${m}-${l}`
33
+ `${h}-${a}`
33
34
  )),
34
- t.length > 0 ? /* @__PURE__ */ r(u, { children: [
35
- /* @__PURE__ */ r(b, { children: [
36
- /* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ e(
37
- x,
35
+ t.length > 0 ? /* @__PURE__ */ r(b, { children: [
36
+ /* @__PURE__ */ r(g, { children: [
37
+ /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ e(
38
+ s,
38
39
  {
39
- variant: "secondary",
40
- size: "md",
41
- shape: "rounded",
42
- className: "h-6 cursor-pointer whitespace-nowrap border-0 bg-accent px-2 font-['Manrope'] text-xs font-medium text-accent-foreground hover:bg-accent/80",
40
+ variant: "subtle",
41
+ color: "primary",
42
+ size: "sm",
43
+ shape: "circle",
44
+ className: "cursor-pointer hover:bg-accent/80",
43
45
  tabIndex: 0,
44
46
  role: "button",
45
- "aria-label": `${t.length} more attributes for ${i}`,
47
+ "aria-label": `${t.length} more attributes for ${l}`,
46
48
  children: d
47
49
  }
48
50
  ) }) }),
49
- /* @__PURE__ */ r(v, { variant: "tertiary", side: "top", children: [
51
+ /* @__PURE__ */ r(x, { variant: "tertiary", side: "top", children: [
50
52
  t.length,
51
53
  " more"
52
54
  ] })
53
55
  ] }),
54
56
  /* @__PURE__ */ e(
55
- h,
57
+ u,
56
58
  {
57
59
  remainingValues: t,
58
60
  onItemRemove: () => {
59
61
  },
60
62
  isRemovable: !1,
61
- isCopyable: !0
63
+ isCopyable: !0,
64
+ externalCopyFunction: m
62
65
  }
63
66
  )
64
67
  ] }) : null
@@ -1,41 +1,55 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- function o({
3
- columns: l,
4
- sectionId: i = "metrics"
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
3
+ import "react";
4
+ import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
5
+ const m = 128;
6
+ function f({
7
+ columns: i,
8
+ sectionId: l = "metrics"
5
9
  }) {
6
- return l.length === 0 ? null : /* @__PURE__ */ e(
10
+ const n = i.length;
11
+ return n === 0 ? null : /* @__PURE__ */ e(
7
12
  "div",
8
13
  {
9
14
  className: "min-w-0 bg-transparent",
10
15
  "data-component": "expandable-list-item-metrics",
11
- children: /* @__PURE__ */ e("div", { className: "scrollbar-hide overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]", children: /* @__PURE__ */ e("div", { className: "flex min-w-0 flex-nowrap divide-x divide-stroke-hairline px-4 py-4 sm:px-5", children: l.map((t, n) => /* @__PURE__ */ a(
12
- "div",
16
+ children: /* @__PURE__ */ e(
17
+ o,
13
18
  {
14
- className: "flex min-w-[7.5rem] flex-1 basis-0 flex-col gap-1 overflow-hidden px-3 first:pl-0 last:pr-0 sm:min-w-[8rem] sm:px-4",
15
- children: [
16
- /* @__PURE__ */ e(
17
- "p",
18
- {
19
- className: "truncate text-xs font-semibold leading-5 text-content-heading",
20
- title: t.label,
21
- children: t.label
22
- }
23
- ),
24
- /* @__PURE__ */ e(
25
- "p",
26
- {
27
- className: "truncate text-sm font-semibold leading-5 text-content",
28
- title: String(t.value),
29
- children: t.value
30
- }
31
- )
32
- ]
33
- },
34
- `${i}-metric-${n}`
35
- )) }) })
19
+ contentDependency: n,
20
+ scrollStep: m,
21
+ viewportDataComponent: "expandable-list-item-metrics-viewport",
22
+ children: /* @__PURE__ */ e("div", { className: "flex min-w-0 flex-nowrap divide-x divide-stroke-hairline px-4 py-4 sm:px-5", children: i.map((t, a) => /* @__PURE__ */ s(
23
+ "div",
24
+ {
25
+ className: "flex min-w-[7.5rem] flex-1 basis-0 flex-col gap-1 overflow-hidden px-3 first:pl-0 last:pr-0 sm:min-w-[8rem] sm:px-4",
26
+ children: [
27
+ /* @__PURE__ */ e(
28
+ r,
29
+ {
30
+ as: "p",
31
+ triggerClassName: "truncate text-xs font-semibold leading-5 text-content-heading",
32
+ children: t.label
33
+ }
34
+ ),
35
+ /* @__PURE__ */ e(
36
+ r,
37
+ {
38
+ as: "p",
39
+ content: String(t.value),
40
+ triggerClassName: "truncate text-sm font-semibold leading-5 text-content",
41
+ children: t.value
42
+ }
43
+ )
44
+ ]
45
+ },
46
+ `${l}-metric-${a}`
47
+ )) })
48
+ }
49
+ )
36
50
  }
37
51
  );
38
52
  }
39
53
  export {
40
- o as ExpandableListItemMetrics
54
+ f as ExpandableListItemMetrics
41
55
  };
@@ -21,7 +21,7 @@ export declare const ExpandableListItemTrigger: React.ForwardRefExoticComponent<
21
21
  rightActions?: React.ReactNode;
22
22
  headingLevel?: import('../../..').AccordionHeadingLevel;
23
23
  variant?: "default" | "plain";
24
- renderChevronTooltip?: import('../../..').InfoTooltipRender;
24
+ renderChevronTooltip?: import('../../feedback/tooltip').InfoTooltipRender;
25
25
  } & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
26
26
  export declare const ExpandableListItemTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
27
27
  export declare const ExpandableListItemDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1,85 +1,86 @@
1
- import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { ChevronRight as y } from "impact-nova-icons";
4
- import { AccordionContent as R, Accordion as A, AccordionItem as k, AccordionTrigger as T } from "../../primitives/accordion/accordion.js";
5
- import { Checkbox as P } from "../../forms/checkbox/checkbox.js";
6
- import { createCompoundPart as I } from "../../../lib/primitives/create-compound.js";
1
+ import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { ChevronRight as k } from "impact-nova-icons";
4
+ import { AccordionContent as R, Accordion as A, AccordionItem as T, AccordionTrigger as P } from "../../primitives/accordion/accordion.js";
5
+ import { Checkbox as V } from "../../forms/checkbox/checkbox.js";
6
+ import { OverflowTooltip as w } from "../../feedback/tooltip/overflow-tooltip.js";
7
+ import { createCompoundPart as E } from "../../../lib/primitives/create-compound.js";
7
8
  import { cn as r } from "../../../lib/utils.js";
8
- import { useExpandableListItemContext as x, ExpandableListItemProvider as E, EXPANDABLE_LIST_ITEM_ACCORDION_VALUE as c } from "./expandable-list-item-context.js";
9
- function N(e, t) {
9
+ import { useExpandableListItemContext as C, ExpandableListItemProvider as h, EXPANDABLE_LIST_ITEM_ACCORDION_VALUE as p } from "./expandable-list-item-context.js";
10
+ function N(t, e) {
10
11
  return r(
11
12
  "rounded-xl transition-[background-color,border-color,box-shadow] duration-200",
12
- e ? "border-stroke-accent/40 bg-canvas-accent shadow-sm" : "border-stroke bg-canvas-elevated",
13
- t
13
+ t ? "border-stroke-accent/40 bg-canvas-accent shadow-sm" : "border-stroke bg-canvas-elevated",
14
+ e
14
15
  );
15
16
  }
16
- function V(e) {
17
- return i.isValidElement(e) && e.type.displayName === "ExpandableListItemContent";
17
+ function D(t) {
18
+ return s.isValidElement(t) && t.type.displayName === "ExpandableListItemContent";
18
19
  }
19
- const D = i.forwardRef(
20
+ const M = s.forwardRef(
20
21
  ({
21
- className: e,
22
- selected: t,
23
- expanded: a,
24
- defaultExpanded: o = !1,
25
- onExpandedChange: s,
26
- disabled: l,
22
+ className: t,
23
+ selected: e,
24
+ expanded: n,
25
+ defaultExpanded: i = !1,
26
+ onExpandedChange: o,
27
+ disabled: d,
27
28
  expandAriaLabel: m = "Expand details",
28
- collapseAriaLabel: b = "Collapse details",
29
- children: p,
30
- ...f
31
- }, h) => {
32
- const d = !!t, L = i.Children.toArray(p).find(V) != null, u = i.useMemo(
29
+ collapseAriaLabel: x = "Collapse details",
30
+ children: c,
31
+ ...b
32
+ }, f) => {
33
+ const l = !!e, I = s.Children.toArray(c).find(D) != null, u = s.useMemo(
33
34
  () => ({
34
- showSelectionChrome: d,
35
- disabled: l,
35
+ showSelectionChrome: l,
36
+ disabled: d,
36
37
  expandAriaLabel: m,
37
- collapseAriaLabel: b
38
+ collapseAriaLabel: x
38
39
  }),
39
- [d, l, m, b]
40
+ [l, d, m, x]
40
41
  );
41
- if (!L)
42
- return /* @__PURE__ */ n(E, { value: u, children: /* @__PURE__ */ n(
42
+ if (!I)
43
+ return /* @__PURE__ */ a(h, { value: u, children: /* @__PURE__ */ a(
43
44
  "div",
44
45
  {
45
- ref: h,
46
+ ref: f,
46
47
  "data-component": "expandable-list-item-row",
47
48
  "data-expandable": "false",
48
- "data-selected": t ? "" : void 0,
49
- "data-selection-chrome": d ? "" : void 0,
50
- className: N(d, e),
51
- ...f,
52
- children: p
49
+ "data-selected": e ? "" : void 0,
50
+ "data-selection-chrome": l ? "" : void 0,
51
+ className: N(l, t),
52
+ ...b,
53
+ children: c
53
54
  }
54
55
  ) });
55
- const g = a !== void 0, C = g ? a ? c : "" : void 0;
56
- return /* @__PURE__ */ n(E, { value: u, children: /* @__PURE__ */ n(
56
+ const v = n !== void 0, y = v ? n ? p : "" : void 0;
57
+ return /* @__PURE__ */ a(h, { value: u, children: /* @__PURE__ */ a(
57
58
  "div",
58
59
  {
59
- ref: h,
60
+ ref: f,
60
61
  "data-component": "expandable-list-item",
61
62
  "data-expandable": "true",
62
- "data-expanded": a ?? void 0,
63
- "data-selected": t ? "" : void 0,
64
- "data-selection-chrome": d ? "" : void 0,
65
- className: N(d, e),
66
- ...f,
67
- children: /* @__PURE__ */ n(
63
+ "data-expanded": n ?? void 0,
64
+ "data-selected": e ? "" : void 0,
65
+ "data-selection-chrome": l ? "" : void 0,
66
+ className: N(l, t),
67
+ ...b,
68
+ children: /* @__PURE__ */ a(
68
69
  A,
69
70
  {
70
71
  type: "single",
71
72
  collapsible: !0,
72
- disabled: l,
73
- ...g ? { value: C } : {
74
- defaultValue: o ? c : void 0
73
+ disabled: d,
74
+ ...v ? { value: y } : {
75
+ defaultValue: i ? p : void 0
75
76
  },
76
- onValueChange: (w) => s?.(w === c),
77
- children: /* @__PURE__ */ n(
78
- k,
77
+ onValueChange: (L) => o?.(L === p),
78
+ children: /* @__PURE__ */ a(
79
+ T,
79
80
  {
80
- value: c,
81
+ value: p,
81
82
  className: "overflow-visible rounded-none border-0 bg-transparent p-0 shadow-none",
82
- children: p
83
+ children: c
83
84
  }
84
85
  )
85
86
  }
@@ -88,56 +89,56 @@ const D = i.forwardRef(
88
89
  ) });
89
90
  }
90
91
  );
91
- D.displayName = "ExpandableListItemRoot";
92
- const W = I("expandable-list-item", {
92
+ M.displayName = "ExpandableListItemRoot";
93
+ const Z = E("expandable-list-item", {
93
94
  part: "row",
94
95
  displayName: "ExpandableListItemRow",
95
- className: "flex items-start gap-3 px-3 py-3"
96
- }), M = i.forwardRef(({ className: e, onCheckedChange: t, ...a }, o) => /* @__PURE__ */ n(
96
+ className: "flex items-start gap-2 px-3 py-3"
97
+ }), _ = s.forwardRef(({ className: t, onCheckedChange: e, ...n }, i) => /* @__PURE__ */ a(
97
98
  "div",
98
99
  {
99
- className: r("pt-0.5", e),
100
+ className: r("mt-1 shrink-0", t),
100
101
  "data-component": "expandable-list-item-checkbox",
101
- onClick: (s) => s.stopPropagation(),
102
- onKeyDown: (s) => s.stopPropagation(),
103
- children: /* @__PURE__ */ n(
104
- P,
102
+ onClick: (o) => o.stopPropagation(),
103
+ onKeyDown: (o) => o.stopPropagation(),
104
+ children: /* @__PURE__ */ a(
105
+ V,
105
106
  {
106
- ref: o,
107
- onCheckedChange: (s) => t?.(s === !0),
108
- ...a
107
+ ref: i,
108
+ onCheckedChange: (o) => e?.(o === !0),
109
+ ...n
109
110
  }
110
111
  )
111
112
  }
112
113
  ));
113
- M.displayName = "ExpandableListItemCheckbox";
114
- const S = i.forwardRef(({ className: e, children: t, ...a }, o) => {
115
- const { disabled: s, expandAriaLabel: l, collapseAriaLabel: m } = x();
116
- return /* @__PURE__ */ v(
117
- T,
114
+ _.displayName = "ExpandableListItemCheckbox";
115
+ const O = s.forwardRef(({ className: t, children: e, ...n }, i) => {
116
+ const { disabled: o, expandAriaLabel: d, collapseAriaLabel: m } = C();
117
+ return /* @__PURE__ */ g(
118
+ P,
118
119
  {
119
- ref: o,
120
+ ref: i,
120
121
  variant: "plain",
121
122
  "data-component": "expandable-list-item-trigger",
122
123
  className: r(
123
- "min-w-0 items-center gap-2 text-left",
124
- s && "pointer-events-none opacity-50",
125
- e
124
+ "min-w-0 flex-1 overflow-hidden items-start gap-1 text-left",
125
+ o && "pointer-events-none opacity-50",
126
+ t
126
127
  ),
127
- disabled: s,
128
- ...a,
128
+ disabled: o,
129
+ ...n,
129
130
  children: [
130
- t,
131
- /* @__PURE__ */ n(
131
+ e,
132
+ /* @__PURE__ */ a(
132
133
  "span",
133
134
  {
134
- className: "mt-0.5 inline-flex shrink-0 text-content-icon transition-transform duration-200 motion-reduce:transition-none group-data-[state=open]:rotate-180",
135
+ className: "mt-1 inline-flex shrink-0 text-content-icon transition-transform duration-200 motion-reduce:transition-none group-data-[state=open]:rotate-180",
135
136
  "aria-hidden": !0,
136
- children: /* @__PURE__ */ n(y, { className: "size-4 rotate-90" })
137
+ children: /* @__PURE__ */ a(k, { className: "size-4 rotate-90" })
137
138
  }
138
139
  ),
139
- /* @__PURE__ */ v("span", { className: "sr-only", children: [
140
- l,
140
+ /* @__PURE__ */ g("span", { className: "sr-only", children: [
141
+ d,
141
142
  " / ",
142
143
  m
143
144
  ] })
@@ -145,89 +146,123 @@ const S = i.forwardRef(({ className: e, children: t, ...a }, o) => {
145
146
  }
146
147
  );
147
148
  });
148
- S.displayName = "ExpandableListItemTrigger";
149
- const _ = i.forwardRef(({ className: e, ...t }, a) => {
150
- const { showSelectionChrome: o } = x();
151
- return /* @__PURE__ */ n(
149
+ O.displayName = "ExpandableListItemTrigger";
150
+ const S = s.forwardRef(({ className: t, children: e, ...n }, i) => {
151
+ const o = r(
152
+ "block min-w-0 w-0 flex-1 truncate text-sm font-semibold leading-6 tracking-tight text-content",
153
+ t
154
+ );
155
+ return typeof e != "string" ? /* @__PURE__ */ a(
152
156
  "span",
153
157
  {
154
- ref: a,
158
+ ref: i,
155
159
  "data-component": "expandable-list-item-title",
156
- className: r(
157
- "text-sm font-semibold leading-6 text-content",
158
- o && "tracking-tight",
159
- e
160
- ),
161
- ...t
160
+ className: o,
161
+ ...n,
162
+ children: e
163
+ }
164
+ ) : /* @__PURE__ */ a(
165
+ w,
166
+ {
167
+ triggerClassName: o,
168
+ content: e,
169
+ side: "top",
170
+ variant: "tertiary",
171
+ children: /* @__PURE__ */ a(
172
+ "span",
173
+ {
174
+ ref: i,
175
+ "data-component": "expandable-list-item-title",
176
+ ...n,
177
+ children: e
178
+ }
179
+ )
180
+ }
181
+ );
182
+ });
183
+ S.displayName = "ExpandableListItemTitle";
184
+ const j = s.forwardRef(({ className: t, children: e, ...n }, i) => {
185
+ const o = r(
186
+ "mt-1 block min-w-0 w-full truncate text-xs font-medium leading-4 text-secondary-foreground",
187
+ t
188
+ );
189
+ return typeof e == "string" ? /* @__PURE__ */ a(
190
+ w,
191
+ {
192
+ as: "div",
193
+ triggerClassName: o,
194
+ content: e,
195
+ side: "top",
196
+ variant: "tertiary",
197
+ children: /* @__PURE__ */ a("span", { "data-component": "expandable-list-item-description", children: e })
198
+ }
199
+ ) : /* @__PURE__ */ a(
200
+ "div",
201
+ {
202
+ ref: i,
203
+ "data-component": "expandable-list-item-description",
204
+ className: o,
205
+ ...n,
206
+ children: e
162
207
  }
163
208
  );
164
209
  });
165
- _.displayName = "ExpandableListItemTitle";
166
- const j = i.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ n(
167
- "div",
168
- {
169
- ref: a,
170
- "data-component": "expandable-list-item-description",
171
- className: r("mt-0.5 text-xs font-medium leading-4 text-secondary-foreground", e),
172
- ...t
173
- }
174
- ));
175
210
  j.displayName = "ExpandableListItemDescription";
176
- const B = i.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ n(
211
+ const B = s.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ a(
177
212
  "div",
178
213
  {
179
- ref: a,
214
+ ref: n,
180
215
  "data-component": "expandable-list-item-media",
181
- className: r("flex flex-wrap items-center gap-2", e),
182
- ...t
216
+ className: r("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", t),
217
+ ...e
183
218
  }
184
219
  ));
185
220
  B.displayName = "ExpandableListItemMedia";
186
- const F = i.forwardRef(({ className: e, ...t }, a) => {
187
- const { disabled: o } = x();
188
- return /* @__PURE__ */ n(
221
+ const F = s.forwardRef(({ className: t, ...e }, n) => {
222
+ const { disabled: i } = C();
223
+ return /* @__PURE__ */ a(
189
224
  "div",
190
225
  {
191
- ref: a,
226
+ ref: n,
192
227
  "data-component": "expandable-list-item-header",
193
228
  className: r(
194
- "min-w-0 flex-1",
195
- o && "pointer-events-none opacity-50",
196
- e
229
+ "min-w-0 w-full flex-1 overflow-hidden",
230
+ i && "pointer-events-none opacity-50",
231
+ t
197
232
  ),
198
- ...t
233
+ ...e
199
234
  }
200
235
  );
201
236
  });
202
237
  F.displayName = "ExpandableListItemHeader";
203
- const H = i.forwardRef(({ className: e, children: t, ...a }, o) => /* @__PURE__ */ n(R, { className: "border-0 bg-transparent p-0 pb-[0.01rem]", children: /* @__PURE__ */ n(
238
+ const H = s.forwardRef(({ className: t, children: e, ...n }, i) => /* @__PURE__ */ a(R, { className: "border-0 bg-transparent p-0 pb-[0.01rem]", children: /* @__PURE__ */ a(
204
239
  "div",
205
240
  {
206
- ref: o,
241
+ ref: i,
207
242
  "data-component": "expandable-list-item-content",
208
243
  className: r(
209
244
  "mx-2 mb-2 overflow-hidden rounded-lg bg-canvas-subtle pt-2",
210
- e
245
+ t
211
246
  ),
212
- ...a,
213
- children: t
247
+ ...n,
248
+ children: e
214
249
  }
215
250
  ) }));
216
251
  H.displayName = "ExpandableListItemContent";
217
- const Y = I("expandable-list-item", {
252
+ const $ = E("expandable-list-item", {
218
253
  part: "footer",
219
254
  displayName: "ExpandableListItemFooter",
220
255
  className: "px-4 py-3 sm:px-5"
221
256
  });
222
257
  export {
223
- M as ExpandableListItemCheckbox,
258
+ _ as ExpandableListItemCheckbox,
224
259
  H as ExpandableListItemContent,
225
260
  j as ExpandableListItemDescription,
226
- Y as ExpandableListItemFooter,
261
+ $ as ExpandableListItemFooter,
227
262
  F as ExpandableListItemHeader,
228
263
  B as ExpandableListItemMedia,
229
- D as ExpandableListItemRoot,
230
- W as ExpandableListItemRow,
231
- _ as ExpandableListItemTitle,
232
- S as ExpandableListItemTrigger
264
+ M as ExpandableListItemRoot,
265
+ Z as ExpandableListItemRow,
266
+ S as ExpandableListItemTitle,
267
+ O as ExpandableListItemTrigger
233
268
  };