impact-nova 3.0.0-alpha.3 → 3.0.0-alpha.5
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/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +2 -1
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +42 -34
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +4 -3
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +4 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +14 -12
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/iris-chat-menu.js +100 -73
- package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +76 -84
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/form-react/Fields/VirtualizedListField.js +76 -66
- package/dist/impact-nova-components.css +3 -4
- package/dist/impact-nova.css +1 -1
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as S, useState as
|
|
2
|
+
import { useRef as S, useState as g } from "react";
|
|
3
3
|
import { FunnelShow as I, ThreeDots as L, Pin as M, Pencil as A, Bin as D, ChevronRight as T } from "impact-nova-icons";
|
|
4
|
-
import { DropdownMenu as
|
|
4
|
+
import { DropdownMenu as C, DropdownMenuTrigger as v, DropdownMenuContent as b, DropdownMenuItem as p } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
5
5
|
import { ButtonIconTooltip as N } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
6
|
import { Button as x } from "../../primitives/button/button.js";
|
|
7
7
|
import { Accordion as j, AccordionItem as k, AccordionTrigger as R, AccordionContent as E } from "../../primitives/accordion/accordion.js";
|
|
8
8
|
import { useImpactNovaI18n as w } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
9
|
import { useVirtualizedList as B } from "../../../lib/virtualized/useVirtualizedList.js";
|
|
10
10
|
import { createComponent as O } from "../../../lib/primitives/create-component.js";
|
|
11
|
-
import { cn as
|
|
11
|
+
import { cn as y } from "../../../lib/utils.js";
|
|
12
12
|
import { IrisChatAttachIcon as $ } from "./iris-chat-icons.js";
|
|
13
13
|
const z = ["type", "status", "lastActivity"], ee = O(
|
|
14
14
|
"IrisChatMenu",
|
|
15
|
-
({ className: t, children:
|
|
15
|
+
({ className: t, children: d, ...l }, o) => /* @__PURE__ */ e(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
ref:
|
|
18
|
+
ref: o,
|
|
19
19
|
"data-component": "iris-chat-menu",
|
|
20
|
-
className:
|
|
20
|
+
className: y("flex flex-col gap-4 py-4", t),
|
|
21
21
|
...l,
|
|
22
|
-
children: /* @__PURE__ */ e(j, { type: "multiple", defaultValue: ["recent", "artifacts"], className: "flex flex-col gap-4", children:
|
|
22
|
+
children: /* @__PURE__ */ e(j, { type: "multiple", defaultValue: ["recent", "artifacts"], className: "flex flex-col gap-4", children: d })
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
), P = ({
|
|
26
26
|
value: t,
|
|
27
|
-
title:
|
|
27
|
+
title: d,
|
|
28
28
|
onFilterSelect: l,
|
|
29
|
-
onViewMore:
|
|
29
|
+
onViewMore: o,
|
|
30
30
|
viewMoreLabel: a,
|
|
31
31
|
className: h,
|
|
32
|
-
children:
|
|
32
|
+
children: f
|
|
33
33
|
}) => {
|
|
34
|
-
const { t: i } = w(),
|
|
34
|
+
const { t: i } = w(), m = {
|
|
35
35
|
type: i("irisChat.filterType"),
|
|
36
36
|
status: i("irisChat.filterStatus"),
|
|
37
37
|
lastActivity: i("irisChat.filterLastActivity")
|
|
@@ -41,7 +41,7 @@ const z = ["type", "status", "lastActivity"], ee = O(
|
|
|
41
41
|
{
|
|
42
42
|
value: t,
|
|
43
43
|
"data-component": "iris-chat-menu-section",
|
|
44
|
-
className:
|
|
44
|
+
className: y("rounded-none border-0 bg-transparent shadow-none", h),
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ s("div", { className: "flex h-10 items-center justify-between gap-2", children: [
|
|
47
47
|
/* @__PURE__ */ s(R, { variant: "plain", headingLevel: 3, className: "flex min-w-0 flex-1 items-center gap-2 py-0", children: [
|
|
@@ -52,33 +52,42 @@ const z = ["type", "status", "lastActivity"], ee = O(
|
|
|
52
52
|
className: "rotate-90 transition-transform group-data-[state=open]:-rotate-90"
|
|
53
53
|
}
|
|
54
54
|
) }),
|
|
55
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-content", children:
|
|
55
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-content", children: d })
|
|
56
56
|
] }),
|
|
57
|
-
/* @__PURE__ */ s(
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
|
|
57
|
+
/* @__PURE__ */ s(C, { children: [
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
N,
|
|
60
60
|
{
|
|
61
|
-
|
|
62
|
-
variant: "
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
label: i("irisChat.filter"),
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
align: "end",
|
|
64
|
+
side: "top",
|
|
65
|
+
children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
66
|
+
x,
|
|
67
|
+
{
|
|
68
|
+
type: "button",
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
size: "iconSm",
|
|
71
|
+
"aria-label": i("irisChat.filter"),
|
|
72
|
+
"data-testid": `iris-chat-filter-${t}`,
|
|
73
|
+
children: /* @__PURE__ */ e(I, { size: 16 })
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
67
76
|
}
|
|
68
|
-
)
|
|
69
|
-
/* @__PURE__ */ e(b, { align: "end", children: z.map((
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ e(b, { align: "end", children: z.map((c) => /* @__PURE__ */ e(p, { onSelect: () => l?.(c), children: m[c] }, c)) })
|
|
70
79
|
] })
|
|
71
80
|
] }),
|
|
72
81
|
/* @__PURE__ */ s(E, { className: "px-0 pb-1 pt-1", children: [
|
|
73
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col", children:
|
|
74
|
-
|
|
82
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col", children: f }),
|
|
83
|
+
o ? /* @__PURE__ */ e(
|
|
75
84
|
x,
|
|
76
85
|
{
|
|
77
86
|
type: "button",
|
|
78
87
|
variant: "link",
|
|
79
88
|
"data-testid": `iris-chat-view-more-${t}`,
|
|
80
89
|
className: "mt-1 h-auto justify-start px-2 text-sm",
|
|
81
|
-
onClick:
|
|
90
|
+
onClick: o,
|
|
82
91
|
children: a ?? i("irisChat.viewMore")
|
|
83
92
|
}
|
|
84
93
|
) : null
|
|
@@ -88,10 +97,10 @@ const z = ["type", "status", "lastActivity"], ee = O(
|
|
|
88
97
|
);
|
|
89
98
|
};
|
|
90
99
|
P.displayName = "IrisChatMenuSection";
|
|
91
|
-
const V = ({ title: t, onSelect:
|
|
92
|
-
const { t: a } = w(), [h,
|
|
93
|
-
const r =
|
|
94
|
-
if (
|
|
100
|
+
const V = ({ title: t, onSelect: d, onAction: l, className: o }) => {
|
|
101
|
+
const { t: a } = w(), [h, f] = g(!1), [i, m] = g(!1), [c, u] = g(t), n = () => {
|
|
102
|
+
const r = c.trim();
|
|
103
|
+
if (m(!1), !r || r === t) {
|
|
95
104
|
u(t);
|
|
96
105
|
return;
|
|
97
106
|
}
|
|
@@ -102,17 +111,17 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
102
111
|
{
|
|
103
112
|
"data-component": "iris-chat-list-item",
|
|
104
113
|
"data-menu-open": h ? "" : void 0,
|
|
105
|
-
className:
|
|
114
|
+
className: y(
|
|
106
115
|
"flex min-h-10 items-center justify-between gap-2 rounded-full px-3",
|
|
107
116
|
(h || i) && "bg-secondary",
|
|
108
117
|
"hover:bg-secondary",
|
|
109
|
-
|
|
118
|
+
o
|
|
110
119
|
),
|
|
111
120
|
children: [
|
|
112
121
|
i ? /* @__PURE__ */ e(
|
|
113
122
|
"input",
|
|
114
123
|
{
|
|
115
|
-
value:
|
|
124
|
+
value: c,
|
|
116
125
|
autoFocus: !0,
|
|
117
126
|
"aria-label": a("irisChat.rename"),
|
|
118
127
|
"data-testid": "iris-chat-item-rename",
|
|
@@ -120,7 +129,7 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
120
129
|
onChange: (r) => u(r.target.value),
|
|
121
130
|
onBlur: n,
|
|
122
131
|
onKeyDown: (r) => {
|
|
123
|
-
r.key === "Enter" && (r.preventDefault(), n()), r.key === "Escape" && (u(t),
|
|
132
|
+
r.key === "Enter" && (r.preventDefault(), n()), r.key === "Escape" && (u(t), m(!1));
|
|
124
133
|
}
|
|
125
134
|
}
|
|
126
135
|
) : /* @__PURE__ */ e(
|
|
@@ -128,25 +137,34 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
128
137
|
{
|
|
129
138
|
type: "button",
|
|
130
139
|
className: "min-w-0 flex-1 truncate text-start text-sm text-content",
|
|
131
|
-
onClick:
|
|
140
|
+
onClick: d,
|
|
132
141
|
children: t
|
|
133
142
|
}
|
|
134
143
|
),
|
|
135
|
-
/* @__PURE__ */ s(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
|
|
144
|
+
/* @__PURE__ */ s(C, { open: h, onOpenChange: f, children: [
|
|
145
|
+
/* @__PURE__ */ e(
|
|
146
|
+
N,
|
|
138
147
|
{
|
|
139
|
-
|
|
140
|
-
variant: "
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
label: a("irisChat.moreActions"),
|
|
149
|
+
variant: "secondary",
|
|
150
|
+
align: "end",
|
|
151
|
+
side: "top",
|
|
152
|
+
children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
153
|
+
x,
|
|
154
|
+
{
|
|
155
|
+
type: "button",
|
|
156
|
+
variant: "ghost",
|
|
157
|
+
size: "iconSm",
|
|
158
|
+
"aria-label": a("irisChat.moreActions"),
|
|
159
|
+
"data-testid": "iris-chat-item-more",
|
|
160
|
+
children: /* @__PURE__ */ e(L, { size: 16 })
|
|
161
|
+
}
|
|
162
|
+
) })
|
|
145
163
|
}
|
|
146
|
-
)
|
|
164
|
+
),
|
|
147
165
|
/* @__PURE__ */ s(b, { align: "end", className: "w-[182px]", children: [
|
|
148
166
|
/* @__PURE__ */ e(
|
|
149
|
-
|
|
167
|
+
p,
|
|
150
168
|
{
|
|
151
169
|
icon: /* @__PURE__ */ e(M, { size: 16 }),
|
|
152
170
|
onSelect: () => l?.("pin"),
|
|
@@ -154,17 +172,17 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
154
172
|
}
|
|
155
173
|
),
|
|
156
174
|
/* @__PURE__ */ e(
|
|
157
|
-
|
|
175
|
+
p,
|
|
158
176
|
{
|
|
159
177
|
icon: /* @__PURE__ */ e(A, { size: 16 }),
|
|
160
178
|
onSelect: () => {
|
|
161
|
-
u(t), window.setTimeout(() =>
|
|
179
|
+
u(t), window.setTimeout(() => m(!0), 0);
|
|
162
180
|
},
|
|
163
181
|
children: a("irisChat.rename")
|
|
164
182
|
}
|
|
165
183
|
),
|
|
166
184
|
/* @__PURE__ */ e(
|
|
167
|
-
|
|
185
|
+
p,
|
|
168
186
|
{
|
|
169
187
|
icon: /* @__PURE__ */ e($, {}),
|
|
170
188
|
onSelect: () => l?.("archive"),
|
|
@@ -172,7 +190,7 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
172
190
|
}
|
|
173
191
|
),
|
|
174
192
|
/* @__PURE__ */ e(
|
|
175
|
-
|
|
193
|
+
p,
|
|
176
194
|
{
|
|
177
195
|
icon: /* @__PURE__ */ e(D, { size: 16 }),
|
|
178
196
|
className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
|
|
@@ -189,19 +207,19 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
|
|
|
189
207
|
V.displayName = "IrisChatListItem";
|
|
190
208
|
function F({
|
|
191
209
|
items: t,
|
|
192
|
-
getItemId:
|
|
210
|
+
getItemId: d,
|
|
193
211
|
renderItem: l,
|
|
194
|
-
title:
|
|
212
|
+
title: o,
|
|
195
213
|
onFilterSelect: a,
|
|
196
214
|
estimateSize: h = 32,
|
|
197
|
-
className:
|
|
215
|
+
className: f
|
|
198
216
|
}) {
|
|
199
|
-
const { t: i } = w(),
|
|
217
|
+
const { t: i } = w(), m = S(null), c = B({
|
|
200
218
|
rowCount: t.length,
|
|
201
219
|
getRowData: (n) => t[n],
|
|
202
|
-
getRowId: (n) =>
|
|
220
|
+
getRowId: (n) => d(t[n]),
|
|
203
221
|
estimateSize: () => h,
|
|
204
|
-
scrollElementRef:
|
|
222
|
+
scrollElementRef: m,
|
|
205
223
|
hasMore: !1
|
|
206
224
|
}), u = {
|
|
207
225
|
type: i("irisChat.filterType"),
|
|
@@ -212,26 +230,35 @@ function F({
|
|
|
212
230
|
"div",
|
|
213
231
|
{
|
|
214
232
|
"data-component": "iris-chat-list",
|
|
215
|
-
className:
|
|
233
|
+
className: y("flex min-h-0 flex-1 flex-col", f),
|
|
216
234
|
children: [
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
a ? /* @__PURE__ */ s(
|
|
220
|
-
/* @__PURE__ */ e(
|
|
221
|
-
|
|
235
|
+
o || a ? /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2 py-3", children: [
|
|
236
|
+
o ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: o }) : /* @__PURE__ */ e("span", {}),
|
|
237
|
+
a ? /* @__PURE__ */ s(C, { children: [
|
|
238
|
+
/* @__PURE__ */ e(
|
|
239
|
+
N,
|
|
222
240
|
{
|
|
223
|
-
|
|
224
|
-
variant: "
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
241
|
+
label: i("irisChat.filter"),
|
|
242
|
+
variant: "secondary",
|
|
243
|
+
align: "end",
|
|
244
|
+
side: "top",
|
|
245
|
+
children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
246
|
+
x,
|
|
247
|
+
{
|
|
248
|
+
type: "button",
|
|
249
|
+
variant: "ghost",
|
|
250
|
+
size: "iconSm",
|
|
251
|
+
"aria-label": i("irisChat.filter"),
|
|
252
|
+
"data-testid": "iris-chat-filter-list",
|
|
253
|
+
children: /* @__PURE__ */ e(I, { size: 16 })
|
|
254
|
+
}
|
|
255
|
+
) })
|
|
229
256
|
}
|
|
230
|
-
)
|
|
231
|
-
/* @__PURE__ */ e(b, { align: "end", children: z.map((n) => /* @__PURE__ */ e(
|
|
257
|
+
),
|
|
258
|
+
/* @__PURE__ */ e(b, { align: "end", children: z.map((n) => /* @__PURE__ */ e(p, { onSelect: () => a(n), children: u[n] }, n)) })
|
|
232
259
|
] }) : null
|
|
233
260
|
] }) : null,
|
|
234
|
-
/* @__PURE__ */ e("div", { ref:
|
|
261
|
+
/* @__PURE__ */ e("div", { ref: m, className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ e("div", { style: { height: c.virtualizer.getTotalSize(), position: "relative" }, children: c.virtualizer.getVirtualItems().map((n) => {
|
|
235
262
|
const r = t[n.index];
|
|
236
263
|
return /* @__PURE__ */ e(
|
|
237
264
|
"div",
|
|
@@ -243,7 +270,7 @@ function F({
|
|
|
243
270
|
},
|
|
244
271
|
children: l(r)
|
|
245
272
|
},
|
|
246
|
-
|
|
273
|
+
d(r)
|
|
247
274
|
);
|
|
248
275
|
}) }) })
|
|
249
276
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const r = "border-stroke-subtle p-3 hover:border-
|
|
2
|
+
const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header hover:bg-brand-tint", o = e(
|
|
3
3
|
[
|
|
4
4
|
"group relative cursor-pointer select-none transition-[border-color,background-color,box-shadow] duration-150",
|
|
5
5
|
"has-[[data-slot=choice-card-control]:focus-visible]:outline-none has-[[data-slot=choice-card-control]:focus-visible]:ring-1 has-[[data-slot=choice-card-control]:focus-visible]:ring-focus-ring"
|
|
@@ -7,7 +7,7 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default: "flex flex-row items-
|
|
10
|
+
default: "flex flex-row items-center justify-between gap-2 overflow-hidden rounded-xl border border-solid bg-canvas-elevated",
|
|
11
11
|
featured: "flex h-[116px] w-[215px] shrink-0 flex-col overflow-hidden rounded-2xl border border-solid bg-canvas-elevated p-0",
|
|
12
12
|
compare: "flex flex-col items-stretch gap-4 overflow-visible rounded-xl border border-solid p-3"
|
|
13
13
|
},
|
|
@@ -96,5 +96,5 @@ const r = "border-stroke-subtle p-3 hover:border-brand", a = "border-brand borde
|
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
o as choiceCardVariants
|
|
100
100
|
};
|
|
@@ -2,19 +2,19 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "@radix-ui/react-popover";
|
|
3
3
|
import { cn as a } from "../../../../lib/utils.js";
|
|
4
4
|
import { preventDismissOnTooltipOutside as t } from "../../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
5
|
-
import { useOverlayPortalContainer as
|
|
6
|
-
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as
|
|
7
|
-
function
|
|
5
|
+
import { useOverlayPortalContainer as u } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
6
|
+
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as v } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
7
|
+
function O({
|
|
8
8
|
menuRef: l,
|
|
9
|
-
menuMinHeight:
|
|
9
|
+
menuMinHeight: r,
|
|
10
10
|
menuWidth: s,
|
|
11
|
-
isReadOnly:
|
|
11
|
+
isReadOnly: i,
|
|
12
12
|
id: d,
|
|
13
13
|
menuLabel: p,
|
|
14
|
-
children:
|
|
14
|
+
children: c
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */ o(n.Portal, { container:
|
|
16
|
+
const m = u();
|
|
17
|
+
return /* @__PURE__ */ o(n.Portal, { container: m, children: /* @__PURE__ */ o(
|
|
18
18
|
n.Content,
|
|
19
19
|
{
|
|
20
20
|
ref: l,
|
|
@@ -25,7 +25,7 @@ function P({
|
|
|
25
25
|
collisionPadding: 8,
|
|
26
26
|
"aria-label": p,
|
|
27
27
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
28
|
-
|
|
28
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
29
29
|
onPointerDownOutside: t,
|
|
30
30
|
onInteractOutside: t,
|
|
31
31
|
onFocusOutside: t,
|
|
@@ -37,8 +37,8 @@ function P({
|
|
|
37
37
|
},
|
|
38
38
|
className: a(
|
|
39
39
|
"z-50 flex flex-col overflow-hidden rounded-[12px] p-0 text-base shadow-elevation-select focus:outline-none sm:text-sm border-none pointer-events-auto",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
i ? "bg-disabled-surface" : "bg-canvas-elevated",
|
|
41
|
+
v
|
|
42
42
|
),
|
|
43
43
|
"data-testid": `select-menu-${d || "default"}`,
|
|
44
44
|
"data-component": "select-menu",
|
|
@@ -47,17 +47,17 @@ function P({
|
|
|
47
47
|
{
|
|
48
48
|
className: a(
|
|
49
49
|
"flex min-h-0 flex-1 flex-col overflow-hidden rounded-[12px]",
|
|
50
|
-
|
|
50
|
+
i ? "bg-disabled-surface" : "bg-canvas-elevated"
|
|
51
51
|
),
|
|
52
52
|
style: {
|
|
53
|
-
minHeight:
|
|
53
|
+
minHeight: r ? `${r}px` : void 0
|
|
54
54
|
},
|
|
55
|
-
children:
|
|
55
|
+
children: c
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
) });
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
O as SelectMenuPanel
|
|
63
63
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
4
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
6
|
-
function
|
|
5
|
+
function w({
|
|
7
6
|
isMulti: u,
|
|
8
7
|
isDisabled: p,
|
|
9
8
|
internalValue: o,
|
|
@@ -53,5 +52,5 @@ function C({
|
|
|
53
52
|
);
|
|
54
53
|
}
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
w as SelectTriggerValue
|
|
57
56
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
-
import "react";
|
|
5
4
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
6
5
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
7
6
|
import { cn as v } from "../../../../lib/utils.js";
|
|
8
7
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
9
8
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
10
9
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
11
|
-
const
|
|
10
|
+
const G = ({
|
|
12
11
|
parentOption: n,
|
|
13
12
|
isMulti: u,
|
|
14
13
|
isReadOnly: l,
|
|
@@ -106,5 +105,5 @@ const R = ({
|
|
|
106
105
|
] });
|
|
107
106
|
};
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
G as Submenu
|
|
110
109
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const HORIZONTAL_SCROLLER_FADE_WIDTH_PX = 48;
|
|
2
|
+
export declare function buildHorizontalScrollerMaskImage(canScrollLeft: boolean, canScrollRight: boolean): string | undefined;
|
|
3
|
+
export declare const horizontalScrollerEdgeFadeClassName = "pointer-events-none absolute top-0 z-10 h-full w-14";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = 48;
|
|
2
|
+
function n(a, t) {
|
|
3
|
+
if (!a && !t) return;
|
|
4
|
+
const r = 48;
|
|
5
|
+
return a && t ? `linear-gradient(to right, transparent, black ${r}px, black calc(100% - ${r}px), transparent)` : t ? `linear-gradient(to right, black, black calc(100% - ${r}px), transparent 100%)` : `linear-gradient(to right, transparent, black ${r}px, black)`;
|
|
6
|
+
}
|
|
7
|
+
const i = "pointer-events-none absolute top-0 z-10 h-full w-14";
|
|
8
|
+
export {
|
|
9
|
+
e as HORIZONTAL_SCROLLER_FADE_WIDTH_PX,
|
|
10
|
+
n as buildHorizontalScrollerMaskImage,
|
|
11
|
+
i as horizontalScrollerEdgeFadeClassName
|
|
12
|
+
};
|