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.
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +2 -1
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +12 -11
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +109 -87
- package/dist/components/data/ag-grid-react/index.d.ts +2 -0
- package/dist/components/data/ag-grid-react/index.js +41 -36
- package/dist/components/data/data-table/data-table-saved-views.js +216 -191
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +2 -1
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +30 -27
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +44 -30
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +1 -1
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +162 -127
- package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +30 -29
- package/dist/components/data/expandable-list-item/expandable-list-item.types.d.ts +8 -1
- package/dist/components/data/expandable-list-item/index.d.ts +1 -1
- package/dist/components/data-display/statistics-card/statistics-card.js +138 -111
- package/dist/components/feedback/tooltip/index.d.ts +3 -0
- package/dist/components/feedback/tooltip/index.js +13 -9
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +2 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.js +69 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +37 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.d.ts +3 -0
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +55 -0
- package/dist/components/flows/command-palette/shortcut-settings.js +85 -66
- package/dist/components/flows/filter-panel/filter-panel.js +76 -69
- package/dist/components/flows/filter-strip/filter-summary.js +184 -163
- package/dist/components/flows/filter-strip/filter-tag-list.js +119 -103
- package/dist/components/forms/select/components/SelectOptionRow.js +35 -27
- package/dist/components/forms/select/components/SelectTriggerValue.js +49 -20
- package/dist/components/forms/select/components/Submenu.js +40 -31
- package/dist/components/layout/horizontal-scroller/index.d.ts +4 -0
- package/dist/components/layout/horizontal-scroller/index.js +6 -2
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +10 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +124 -0
- package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.d.ts +13 -0
- package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.js +40 -0
- package/dist/components/primitives/stepper/stepper.js +61 -42
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +468 -460
- package/dist/lib/overflow/is-text-overflowing.d.ts +3 -0
- package/dist/lib/overflow/is-text-overflowing.js +6 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/llms/rules/troubleshooting.js +1 -1
- 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
|
|
3
|
-
import { FilterPopoverContent as
|
|
4
|
-
import { Popover as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
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:
|
|
9
|
-
title:
|
|
10
|
-
maxVisibleTags:
|
|
11
|
-
formatOverflow:
|
|
8
|
+
tags: o,
|
|
9
|
+
title: l = "Attributes",
|
|
10
|
+
maxVisibleTags: n = 4,
|
|
11
|
+
formatOverflow: c,
|
|
12
|
+
externalCopyFunction: m
|
|
12
13
|
}) {
|
|
13
|
-
const
|
|
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:
|
|
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
|
-
|
|
23
|
-
|
|
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:
|
|
31
|
+
children: a
|
|
31
32
|
},
|
|
32
|
-
`${
|
|
33
|
+
`${h}-${a}`
|
|
33
34
|
)),
|
|
34
|
-
t.length > 0 ? /* @__PURE__ */ r(
|
|
35
|
-
/* @__PURE__ */ r(
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
|
|
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: "
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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 ${
|
|
47
|
+
"aria-label": `${t.length} more attributes for ${l}`,
|
|
46
48
|
children: d
|
|
47
49
|
}
|
|
48
50
|
) }) }),
|
|
49
|
-
/* @__PURE__ */ r(
|
|
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
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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(
|
|
12
|
-
|
|
16
|
+
children: /* @__PURE__ */ e(
|
|
17
|
+
o,
|
|
13
18
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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('
|
|
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
|
|
2
|
-
import * as
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { AccordionContent as R, Accordion as A, AccordionItem as
|
|
5
|
-
import { Checkbox as
|
|
6
|
-
import {
|
|
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
|
|
9
|
-
function N(
|
|
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
|
-
|
|
13
|
-
|
|
13
|
+
t ? "border-stroke-accent/40 bg-canvas-accent shadow-sm" : "border-stroke bg-canvas-elevated",
|
|
14
|
+
e
|
|
14
15
|
);
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
17
|
+
function D(t) {
|
|
18
|
+
return s.isValidElement(t) && t.type.displayName === "ExpandableListItemContent";
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
+
const M = s.forwardRef(
|
|
20
21
|
({
|
|
21
|
-
className:
|
|
22
|
-
selected:
|
|
23
|
-
expanded:
|
|
24
|
-
defaultExpanded:
|
|
25
|
-
onExpandedChange:
|
|
26
|
-
disabled:
|
|
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:
|
|
29
|
-
children:
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
const
|
|
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:
|
|
35
|
-
disabled:
|
|
35
|
+
showSelectionChrome: l,
|
|
36
|
+
disabled: d,
|
|
36
37
|
expandAriaLabel: m,
|
|
37
|
-
collapseAriaLabel:
|
|
38
|
+
collapseAriaLabel: x
|
|
38
39
|
}),
|
|
39
|
-
[
|
|
40
|
+
[l, d, m, x]
|
|
40
41
|
);
|
|
41
|
-
if (!
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
if (!I)
|
|
43
|
+
return /* @__PURE__ */ a(h, { value: u, children: /* @__PURE__ */ a(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
45
|
-
ref:
|
|
46
|
+
ref: f,
|
|
46
47
|
"data-component": "expandable-list-item-row",
|
|
47
48
|
"data-expandable": "false",
|
|
48
|
-
"data-selected":
|
|
49
|
-
"data-selection-chrome":
|
|
50
|
-
className: N(
|
|
51
|
-
...
|
|
52
|
-
children:
|
|
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
|
|
56
|
-
return /* @__PURE__ */
|
|
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:
|
|
60
|
+
ref: f,
|
|
60
61
|
"data-component": "expandable-list-item",
|
|
61
62
|
"data-expandable": "true",
|
|
62
|
-
"data-expanded":
|
|
63
|
-
"data-selected":
|
|
64
|
-
"data-selection-chrome":
|
|
65
|
-
className: N(
|
|
66
|
-
...
|
|
67
|
-
children: /* @__PURE__ */
|
|
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:
|
|
73
|
-
...
|
|
74
|
-
defaultValue:
|
|
73
|
+
disabled: d,
|
|
74
|
+
...v ? { value: y } : {
|
|
75
|
+
defaultValue: i ? p : void 0
|
|
75
76
|
},
|
|
76
|
-
onValueChange: (
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
|
|
77
|
+
onValueChange: (L) => o?.(L === p),
|
|
78
|
+
children: /* @__PURE__ */ a(
|
|
79
|
+
T,
|
|
79
80
|
{
|
|
80
|
-
value:
|
|
81
|
+
value: p,
|
|
81
82
|
className: "overflow-visible rounded-none border-0 bg-transparent p-0 shadow-none",
|
|
82
|
-
children:
|
|
83
|
+
children: c
|
|
83
84
|
}
|
|
84
85
|
)
|
|
85
86
|
}
|
|
@@ -88,56 +89,56 @@ const D = i.forwardRef(
|
|
|
88
89
|
) });
|
|
89
90
|
}
|
|
90
91
|
);
|
|
91
|
-
|
|
92
|
-
const
|
|
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-
|
|
96
|
-
}),
|
|
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("
|
|
100
|
+
className: r("mt-1 shrink-0", t),
|
|
100
101
|
"data-component": "expandable-list-item-checkbox",
|
|
101
|
-
onClick: (
|
|
102
|
-
onKeyDown: (
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
|
|
102
|
+
onClick: (o) => o.stopPropagation(),
|
|
103
|
+
onKeyDown: (o) => o.stopPropagation(),
|
|
104
|
+
children: /* @__PURE__ */ a(
|
|
105
|
+
V,
|
|
105
106
|
{
|
|
106
|
-
ref:
|
|
107
|
-
onCheckedChange: (
|
|
108
|
-
...
|
|
107
|
+
ref: i,
|
|
108
|
+
onCheckedChange: (o) => e?.(o === !0),
|
|
109
|
+
...n
|
|
109
110
|
}
|
|
110
111
|
)
|
|
111
112
|
}
|
|
112
113
|
));
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
const { disabled:
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
|
|
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:
|
|
120
|
+
ref: i,
|
|
120
121
|
variant: "plain",
|
|
121
122
|
"data-component": "expandable-list-item-trigger",
|
|
122
123
|
className: r(
|
|
123
|
-
"min-w-0 items-
|
|
124
|
-
|
|
125
|
-
|
|
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:
|
|
128
|
-
...
|
|
128
|
+
disabled: o,
|
|
129
|
+
...n,
|
|
129
130
|
children: [
|
|
130
|
-
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
e,
|
|
132
|
+
/* @__PURE__ */ a(
|
|
132
133
|
"span",
|
|
133
134
|
{
|
|
134
|
-
className: "mt-
|
|
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__ */
|
|
137
|
+
children: /* @__PURE__ */ a(k, { className: "size-4 rotate-90" })
|
|
137
138
|
}
|
|
138
139
|
),
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
|
|
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
|
-
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
|
|
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:
|
|
158
|
+
ref: i,
|
|
155
159
|
"data-component": "expandable-list-item-title",
|
|
156
|
-
className:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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 =
|
|
211
|
+
const B = s.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ a(
|
|
177
212
|
"div",
|
|
178
213
|
{
|
|
179
|
-
ref:
|
|
214
|
+
ref: n,
|
|
180
215
|
"data-component": "expandable-list-item-media",
|
|
181
|
-
className: r("flex flex-
|
|
182
|
-
...
|
|
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 =
|
|
187
|
-
const { disabled:
|
|
188
|
-
return /* @__PURE__ */
|
|
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:
|
|
226
|
+
ref: n,
|
|
192
227
|
"data-component": "expandable-list-item-header",
|
|
193
228
|
className: r(
|
|
194
|
-
"min-w-0 flex-1",
|
|
195
|
-
|
|
196
|
-
|
|
229
|
+
"min-w-0 w-full flex-1 overflow-hidden",
|
|
230
|
+
i && "pointer-events-none opacity-50",
|
|
231
|
+
t
|
|
197
232
|
),
|
|
198
|
-
...
|
|
233
|
+
...e
|
|
199
234
|
}
|
|
200
235
|
);
|
|
201
236
|
});
|
|
202
237
|
F.displayName = "ExpandableListItemHeader";
|
|
203
|
-
const H =
|
|
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:
|
|
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
|
-
|
|
245
|
+
t
|
|
211
246
|
),
|
|
212
|
-
...
|
|
213
|
-
children:
|
|
247
|
+
...n,
|
|
248
|
+
children: e
|
|
214
249
|
}
|
|
215
250
|
) }));
|
|
216
251
|
H.displayName = "ExpandableListItemContent";
|
|
217
|
-
const
|
|
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
|
-
|
|
258
|
+
_ as ExpandableListItemCheckbox,
|
|
224
259
|
H as ExpandableListItemContent,
|
|
225
260
|
j as ExpandableListItemDescription,
|
|
226
|
-
|
|
261
|
+
$ as ExpandableListItemFooter,
|
|
227
262
|
F as ExpandableListItemHeader,
|
|
228
263
|
B as ExpandableListItemMedia,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
264
|
+
M as ExpandableListItemRoot,
|
|
265
|
+
Z as ExpandableListItemRow,
|
|
266
|
+
S as ExpandableListItemTitle,
|
|
267
|
+
O as ExpandableListItemTrigger
|
|
233
268
|
};
|