impact-nova 2.2.5 → 2.2.7
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 +54 -56
- 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 +223 -207
- 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.js +158 -184
- package/dist/components/data-display/badge/badge.variants.d.ts +2 -2
- package/dist/components/data-display/statistics-card/statistics-card.js +138 -111
- package/dist/components/feedback/alert/alert.variants.d.ts +1 -1
- package/dist/components/feedback/tooltip/badge-overflow-tooltip.d.ts +19 -0
- package/dist/components/feedback/tooltip/badge-overflow-tooltip.js +48 -0
- package/dist/components/feedback/tooltip/index.d.ts +5 -0
- package/dist/components/feedback/tooltip/index.js +16 -10
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +2 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.js +92 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +42 -0
- package/dist/components/feedback/tooltip/tooltip.d.ts +2 -2
- package/dist/components/feedback/tooltip/tooltip.js +65 -28
- package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
- package/dist/components/feedback/tooltip/use-overflow-tooltip.d.ts +3 -0
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +109 -0
- package/dist/components/flows/command-palette/shortcut-settings.js +85 -66
- package/dist/components/flows/filter-panel/filter-panel.js +94 -83
- package/dist/components/flows/filter-strip/filter-summary.js +187 -177
- package/dist/components/flows/filter-strip/filter-tag-list.js +123 -107
- package/dist/components/forms/prompt/prompt.variants.d.ts +1 -1
- package/dist/components/forms/select/components/SelectMenuPanel.js +26 -22
- package/dist/components/forms/select/components/SelectOptionRow.js +77 -66
- package/dist/components/forms/select/components/SelectTriggerValue.js +49 -20
- package/dist/components/forms/select/components/Submenu.js +53 -39
- package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.d.ts +5 -0
- package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.js +28 -0
- package/dist/components/forms/select/select.js +121 -120
- package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.d.ts +5 -0
- package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.js +16 -0
- 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/components/primitives/tag/tag.variants.d.ts +1 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +473 -463
- package/dist/lib/overflow/is-text-overflowing.d.ts +3 -0
- package/dist/lib/overflow/is-text-overflowing.js +6 -0
- package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.d.ts +3 -0
- package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.js +34 -0
- package/dist/lib/tooltip/tooltip-content-interaction.d.ts +4 -0
- package/dist/lib/tooltip/tooltip-content-interaction.js +21 -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/dist/providers/app-providers.js +18 -11
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -1,123 +1,86 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { AccordionContent as
|
|
5
|
-
import { Checkbox as
|
|
6
|
-
import {
|
|
7
|
-
import { createCompoundPart as
|
|
8
|
-
import { cn as
|
|
9
|
-
import { useExpandableListItemContext as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const l = s.useRef(null), [c, x] = s.useState(!1), p = s.useCallback(
|
|
13
|
-
(i) => {
|
|
14
|
-
l.current = i, typeof a == "function" ? a(i) : a && (a.current = i);
|
|
15
|
-
},
|
|
16
|
-
[a]
|
|
17
|
-
), m = s.useCallback(() => {
|
|
18
|
-
const i = l.current;
|
|
19
|
-
i && x(i.scrollWidth > i.clientWidth);
|
|
20
|
-
}, []);
|
|
21
|
-
s.useLayoutEffect(() => {
|
|
22
|
-
const i = l.current;
|
|
23
|
-
if (!i) return;
|
|
24
|
-
m();
|
|
25
|
-
const v = i.parentElement, f = new ResizeObserver(m);
|
|
26
|
-
return f.observe(i), v && f.observe(v), () => {
|
|
27
|
-
f.disconnect();
|
|
28
|
-
};
|
|
29
|
-
}, [e, m]);
|
|
30
|
-
const b = /* @__PURE__ */ n(
|
|
31
|
-
"span",
|
|
32
|
-
{
|
|
33
|
-
ref: p,
|
|
34
|
-
"data-component": t,
|
|
35
|
-
className: o,
|
|
36
|
-
...r,
|
|
37
|
-
children: e
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
return /* @__PURE__ */ h(M, { open: c ? void 0 : !1, children: [
|
|
41
|
-
/* @__PURE__ */ n(S, { asChild: !0, children: b }),
|
|
42
|
-
/* @__PURE__ */ n(_, { side: "top", variant: "tertiary", children: e })
|
|
43
|
-
] });
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
g.displayName = "TruncatedTooltipText";
|
|
47
|
-
function C(e, t) {
|
|
48
|
-
return d(
|
|
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";
|
|
8
|
+
import { cn as r } from "../../../lib/utils.js";
|
|
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) {
|
|
11
|
+
return r(
|
|
49
12
|
"rounded-xl transition-[background-color,border-color,box-shadow] duration-200",
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
t ? "border-stroke-accent/40 bg-canvas-accent shadow-sm" : "border-stroke bg-canvas-elevated",
|
|
14
|
+
e
|
|
52
15
|
);
|
|
53
16
|
}
|
|
54
|
-
function
|
|
55
|
-
return s.isValidElement(
|
|
17
|
+
function D(t) {
|
|
18
|
+
return s.isValidElement(t) && t.type.displayName === "ExpandableListItemContent";
|
|
56
19
|
}
|
|
57
|
-
const
|
|
20
|
+
const M = s.forwardRef(
|
|
58
21
|
({
|
|
59
|
-
className:
|
|
60
|
-
selected:
|
|
61
|
-
expanded:
|
|
62
|
-
defaultExpanded:
|
|
63
|
-
onExpandedChange:
|
|
64
|
-
disabled:
|
|
65
|
-
expandAriaLabel:
|
|
22
|
+
className: t,
|
|
23
|
+
selected: e,
|
|
24
|
+
expanded: n,
|
|
25
|
+
defaultExpanded: i = !1,
|
|
26
|
+
onExpandedChange: o,
|
|
27
|
+
disabled: d,
|
|
28
|
+
expandAriaLabel: m = "Expand details",
|
|
66
29
|
collapseAriaLabel: x = "Collapse details",
|
|
67
|
-
children:
|
|
68
|
-
...
|
|
69
|
-
},
|
|
70
|
-
const
|
|
30
|
+
children: c,
|
|
31
|
+
...b
|
|
32
|
+
}, f) => {
|
|
33
|
+
const l = !!e, I = s.Children.toArray(c).find(D) != null, u = s.useMemo(
|
|
71
34
|
() => ({
|
|
72
|
-
showSelectionChrome:
|
|
73
|
-
disabled:
|
|
74
|
-
expandAriaLabel:
|
|
35
|
+
showSelectionChrome: l,
|
|
36
|
+
disabled: d,
|
|
37
|
+
expandAriaLabel: m,
|
|
75
38
|
collapseAriaLabel: x
|
|
76
39
|
}),
|
|
77
|
-
[
|
|
40
|
+
[l, d, m, x]
|
|
78
41
|
);
|
|
79
|
-
if (!
|
|
80
|
-
return /* @__PURE__ */
|
|
42
|
+
if (!I)
|
|
43
|
+
return /* @__PURE__ */ a(h, { value: u, children: /* @__PURE__ */ a(
|
|
81
44
|
"div",
|
|
82
45
|
{
|
|
83
|
-
ref:
|
|
46
|
+
ref: f,
|
|
84
47
|
"data-component": "expandable-list-item-row",
|
|
85
48
|
"data-expandable": "false",
|
|
86
|
-
"data-selected":
|
|
87
|
-
"data-selection-chrome":
|
|
88
|
-
className:
|
|
89
|
-
...
|
|
90
|
-
children:
|
|
49
|
+
"data-selected": e ? "" : void 0,
|
|
50
|
+
"data-selection-chrome": l ? "" : void 0,
|
|
51
|
+
className: N(l, t),
|
|
52
|
+
...b,
|
|
53
|
+
children: c
|
|
91
54
|
}
|
|
92
55
|
) });
|
|
93
|
-
const
|
|
94
|
-
return /* @__PURE__ */
|
|
56
|
+
const v = n !== void 0, y = v ? n ? p : "" : void 0;
|
|
57
|
+
return /* @__PURE__ */ a(h, { value: u, children: /* @__PURE__ */ a(
|
|
95
58
|
"div",
|
|
96
59
|
{
|
|
97
|
-
ref:
|
|
60
|
+
ref: f,
|
|
98
61
|
"data-component": "expandable-list-item",
|
|
99
62
|
"data-expandable": "true",
|
|
100
|
-
"data-expanded":
|
|
101
|
-
"data-selected":
|
|
102
|
-
"data-selection-chrome":
|
|
103
|
-
className:
|
|
104
|
-
...
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
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(
|
|
69
|
+
A,
|
|
107
70
|
{
|
|
108
71
|
type: "single",
|
|
109
72
|
collapsible: !0,
|
|
110
|
-
disabled:
|
|
111
|
-
...
|
|
112
|
-
defaultValue:
|
|
73
|
+
disabled: d,
|
|
74
|
+
...v ? { value: y } : {
|
|
75
|
+
defaultValue: i ? p : void 0
|
|
113
76
|
},
|
|
114
|
-
onValueChange: (
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
|
|
77
|
+
onValueChange: (L) => o?.(L === p),
|
|
78
|
+
children: /* @__PURE__ */ a(
|
|
79
|
+
T,
|
|
117
80
|
{
|
|
118
|
-
value:
|
|
81
|
+
value: p,
|
|
119
82
|
className: "overflow-visible rounded-none border-0 bg-transparent p-0 shadow-none",
|
|
120
|
-
children:
|
|
83
|
+
children: c
|
|
121
84
|
}
|
|
122
85
|
)
|
|
123
86
|
}
|
|
@@ -126,169 +89,180 @@ const j = s.forwardRef(
|
|
|
126
89
|
) });
|
|
127
90
|
}
|
|
128
91
|
);
|
|
129
|
-
|
|
130
|
-
const
|
|
92
|
+
M.displayName = "ExpandableListItemRoot";
|
|
93
|
+
const Z = E("expandable-list-item", {
|
|
131
94
|
part: "row",
|
|
132
95
|
displayName: "ExpandableListItemRow",
|
|
133
96
|
className: "flex items-start gap-2 px-3 py-3"
|
|
134
|
-
}),
|
|
97
|
+
}), _ = s.forwardRef(({ className: t, onCheckedChange: e, ...n }, i) => /* @__PURE__ */ a(
|
|
135
98
|
"div",
|
|
136
99
|
{
|
|
137
|
-
className:
|
|
100
|
+
className: r("mt-1 shrink-0", t),
|
|
138
101
|
"data-component": "expandable-list-item-checkbox",
|
|
139
|
-
onClick: (
|
|
140
|
-
onKeyDown: (
|
|
141
|
-
children: /* @__PURE__ */
|
|
142
|
-
|
|
102
|
+
onClick: (o) => o.stopPropagation(),
|
|
103
|
+
onKeyDown: (o) => o.stopPropagation(),
|
|
104
|
+
children: /* @__PURE__ */ a(
|
|
105
|
+
V,
|
|
143
106
|
{
|
|
144
|
-
ref:
|
|
145
|
-
onCheckedChange: (
|
|
146
|
-
...
|
|
107
|
+
ref: i,
|
|
108
|
+
onCheckedChange: (o) => e?.(o === !0),
|
|
109
|
+
...n
|
|
147
110
|
}
|
|
148
111
|
)
|
|
149
112
|
}
|
|
150
113
|
));
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
const { disabled:
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
-
|
|
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,
|
|
156
119
|
{
|
|
157
|
-
ref:
|
|
120
|
+
ref: i,
|
|
158
121
|
variant: "plain",
|
|
159
122
|
"data-component": "expandable-list-item-trigger",
|
|
160
|
-
className:
|
|
123
|
+
className: r(
|
|
161
124
|
"min-w-0 flex-1 overflow-hidden items-start gap-1 text-left",
|
|
162
|
-
|
|
163
|
-
|
|
125
|
+
o && "pointer-events-none opacity-50",
|
|
126
|
+
t
|
|
164
127
|
),
|
|
165
|
-
disabled:
|
|
166
|
-
...
|
|
128
|
+
disabled: o,
|
|
129
|
+
...n,
|
|
167
130
|
children: [
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */
|
|
131
|
+
e,
|
|
132
|
+
/* @__PURE__ */ a(
|
|
170
133
|
"span",
|
|
171
134
|
{
|
|
172
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",
|
|
173
136
|
"aria-hidden": !0,
|
|
174
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ a(k, { className: "size-4 rotate-90" })
|
|
175
138
|
}
|
|
176
139
|
),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
|
|
140
|
+
/* @__PURE__ */ g("span", { className: "sr-only", children: [
|
|
141
|
+
d,
|
|
179
142
|
" / ",
|
|
180
|
-
|
|
143
|
+
m
|
|
181
144
|
] })
|
|
182
145
|
]
|
|
183
146
|
}
|
|
184
147
|
);
|
|
185
148
|
});
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
const
|
|
149
|
+
O.displayName = "ExpandableListItemTrigger";
|
|
150
|
+
const S = s.forwardRef(({ className: t, children: e, ...n }, i) => {
|
|
151
|
+
const o = r(
|
|
189
152
|
"block min-w-0 w-0 flex-1 truncate text-sm font-semibold leading-6 tracking-tight text-content",
|
|
190
|
-
|
|
153
|
+
t
|
|
191
154
|
);
|
|
192
|
-
return typeof
|
|
155
|
+
return typeof e != "string" ? /* @__PURE__ */ a(
|
|
193
156
|
"span",
|
|
194
157
|
{
|
|
195
|
-
ref:
|
|
158
|
+
ref: i,
|
|
196
159
|
"data-component": "expandable-list-item-title",
|
|
197
|
-
className:
|
|
198
|
-
...
|
|
199
|
-
children:
|
|
160
|
+
className: o,
|
|
161
|
+
...n,
|
|
162
|
+
children: e
|
|
200
163
|
}
|
|
201
|
-
) : /* @__PURE__ */
|
|
202
|
-
|
|
164
|
+
) : /* @__PURE__ */ a(
|
|
165
|
+
w,
|
|
203
166
|
{
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
+
)
|
|
209
180
|
}
|
|
210
181
|
);
|
|
211
182
|
});
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
const
|
|
183
|
+
S.displayName = "ExpandableListItemTitle";
|
|
184
|
+
const j = s.forwardRef(({ className: t, children: e, ...n }, i) => {
|
|
185
|
+
const o = r(
|
|
215
186
|
"mt-1 block min-w-0 w-full truncate text-xs font-medium leading-4 text-secondary-foreground",
|
|
216
|
-
|
|
187
|
+
t
|
|
217
188
|
);
|
|
218
|
-
return typeof
|
|
219
|
-
|
|
189
|
+
return typeof e == "string" ? /* @__PURE__ */ a(
|
|
190
|
+
w,
|
|
220
191
|
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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 })
|
|
224
198
|
}
|
|
225
|
-
) : /* @__PURE__ */
|
|
199
|
+
) : /* @__PURE__ */ a(
|
|
226
200
|
"div",
|
|
227
201
|
{
|
|
228
|
-
ref:
|
|
202
|
+
ref: i,
|
|
229
203
|
"data-component": "expandable-list-item-description",
|
|
230
|
-
className:
|
|
231
|
-
...
|
|
232
|
-
children:
|
|
204
|
+
className: o,
|
|
205
|
+
...n,
|
|
206
|
+
children: e
|
|
233
207
|
}
|
|
234
208
|
);
|
|
235
209
|
});
|
|
236
|
-
|
|
237
|
-
const
|
|
210
|
+
j.displayName = "ExpandableListItemDescription";
|
|
211
|
+
const B = s.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ a(
|
|
238
212
|
"div",
|
|
239
213
|
{
|
|
240
|
-
ref:
|
|
214
|
+
ref: n,
|
|
241
215
|
"data-component": "expandable-list-item-media",
|
|
242
|
-
className:
|
|
243
|
-
...
|
|
216
|
+
className: r("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", t),
|
|
217
|
+
...e
|
|
244
218
|
}
|
|
245
219
|
));
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
const { disabled:
|
|
249
|
-
return /* @__PURE__ */
|
|
220
|
+
B.displayName = "ExpandableListItemMedia";
|
|
221
|
+
const F = s.forwardRef(({ className: t, ...e }, n) => {
|
|
222
|
+
const { disabled: i } = C();
|
|
223
|
+
return /* @__PURE__ */ a(
|
|
250
224
|
"div",
|
|
251
225
|
{
|
|
252
|
-
ref:
|
|
226
|
+
ref: n,
|
|
253
227
|
"data-component": "expandable-list-item-header",
|
|
254
|
-
className:
|
|
228
|
+
className: r(
|
|
255
229
|
"min-w-0 w-full flex-1 overflow-hidden",
|
|
256
|
-
|
|
257
|
-
|
|
230
|
+
i && "pointer-events-none opacity-50",
|
|
231
|
+
t
|
|
258
232
|
),
|
|
259
|
-
...
|
|
233
|
+
...e
|
|
260
234
|
}
|
|
261
235
|
);
|
|
262
236
|
});
|
|
263
|
-
|
|
264
|
-
const
|
|
237
|
+
F.displayName = "ExpandableListItemHeader";
|
|
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(
|
|
265
239
|
"div",
|
|
266
240
|
{
|
|
267
|
-
ref:
|
|
241
|
+
ref: i,
|
|
268
242
|
"data-component": "expandable-list-item-content",
|
|
269
|
-
className:
|
|
243
|
+
className: r(
|
|
270
244
|
"mx-2 mb-2 overflow-hidden rounded-lg bg-canvas-subtle pt-2",
|
|
271
|
-
|
|
245
|
+
t
|
|
272
246
|
),
|
|
273
|
-
...
|
|
274
|
-
children:
|
|
247
|
+
...n,
|
|
248
|
+
children: e
|
|
275
249
|
}
|
|
276
250
|
) }));
|
|
277
|
-
|
|
278
|
-
const
|
|
251
|
+
H.displayName = "ExpandableListItemContent";
|
|
252
|
+
const $ = E("expandable-list-item", {
|
|
279
253
|
part: "footer",
|
|
280
254
|
displayName: "ExpandableListItemFooter",
|
|
281
255
|
className: "px-4 py-3 sm:px-5"
|
|
282
256
|
});
|
|
283
257
|
export {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
258
|
+
_ as ExpandableListItemCheckbox,
|
|
259
|
+
H as ExpandableListItemContent,
|
|
260
|
+
j as ExpandableListItemDescription,
|
|
261
|
+
$ as ExpandableListItemFooter,
|
|
262
|
+
F as ExpandableListItemHeader,
|
|
263
|
+
B as ExpandableListItemMedia,
|
|
264
|
+
M as ExpandableListItemRoot,
|
|
265
|
+
Z as ExpandableListItemRow,
|
|
266
|
+
S as ExpandableListItemTitle,
|
|
267
|
+
O as ExpandableListItemTrigger
|
|
294
268
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const badgeVariants: (props?: ({
|
|
2
|
-
variant?: "
|
|
3
|
-
color?: "primary" | "
|
|
2
|
+
variant?: "solid" | "outline" | "subtle" | null | undefined;
|
|
3
|
+
color?: "primary" | "success" | "warning" | "destructive" | "neutral" | null | undefined;
|
|
4
4
|
size?: "sm" | "md" | null | undefined;
|
|
5
5
|
shape?: "circle" | "square" | null | undefined;
|
|
6
6
|
layout?: "default" | "iconOnly" | null | undefined;
|