@bikdotai/bik-component-library 0.0.848 → 0.0.849-beta.1
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/cjs/components/agent-builder/AgentBuilder.js +1 -1
- package/dist/cjs/components/agent-builder/AgentBuilder.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js +2 -2
- package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/MentionEditor.js +1 -1
- package/dist/cjs/components/agent-builder/components/MentionEditor.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/MentionField.js +1 -1
- package/dist/cjs/components/agent-builder/components/MentionField.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/MentionPicker.js +11 -11
- package/dist/cjs/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/cjs/components/agent-builder/constants/tools.js +1 -1
- package/dist/cjs/components/agent-builder/constants/tools.js.map +1 -1
- package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js +1 -1
- package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
- package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js +1 -1
- package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
- package/dist/cjs/components/agent-builder/utils/mentionSerialization.js +2 -2
- package/dist/cjs/components/agent-builder/utils/mentionSerialization.js.map +1 -1
- package/dist/cjs/editor/BikEditor.styles.js +6 -0
- package/dist/cjs/editor/BikEditor.styles.js.map +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.js +71 -69
- package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.model.d.ts +8 -0
- package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.d.ts +3 -0
- package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js +113 -110
- package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
- package/dist/esm/components/agent-builder/components/MentionEditor.d.ts +7 -0
- package/dist/esm/components/agent-builder/components/MentionEditor.js +89 -74
- package/dist/esm/components/agent-builder/components/MentionEditor.js.map +1 -1
- package/dist/esm/components/agent-builder/components/MentionField.js +28 -26
- package/dist/esm/components/agent-builder/components/MentionField.js.map +1 -1
- package/dist/esm/components/agent-builder/components/MentionPicker.d.ts +14 -1
- package/dist/esm/components/agent-builder/components/MentionPicker.js +153 -124
- package/dist/esm/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/esm/components/agent-builder/constants/tools.d.ts +1 -1
- package/dist/esm/components/agent-builder/constants/tools.js +6 -5
- package/dist/esm/components/agent-builder/constants/tools.js.map +1 -1
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.d.ts +7 -0
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +99 -96
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
- package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js +79 -77
- package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
- package/dist/esm/components/agent-builder/utils/mentionSerialization.d.ts +13 -3
- package/dist/esm/components/agent-builder/utils/mentionSerialization.js +52 -40
- package/dist/esm/components/agent-builder/utils/mentionSerialization.js.map +1 -1
- package/dist/esm/editor/BikEditor.styles.js +6 -0
- package/dist/esm/editor/BikEditor.styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,79 +1,91 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useState as
|
|
1
|
+
import { jsxs as b, jsx as c, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
+
import te from "../../../assets/icons/chevronRight.svg.js";
|
|
3
|
+
import ne from "../../../assets/icons/searchIcon.svg.js";
|
|
4
|
+
import re from "../../../icons/Arrows/Normal arrows/ArrowLeft.js";
|
|
5
|
+
import { useState as q, useMemo as v, useEffect as N, useRef as oe } from "react";
|
|
6
6
|
import p from "styled-components";
|
|
7
|
-
import { TitleSmall as
|
|
7
|
+
import { TitleSmall as ie, BodySecondary as ae, BodyCaption as le } from "../../TypographyStyle.js";
|
|
8
8
|
import { COLORS as i } from "../../../constants/Theme.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import { PickerType as ce } from "../../variable-picker-v3/model.js";
|
|
10
|
+
import { CATEGORIES as se, toolSourceRank as W, CONFIG_TOOL_SOURCES as de } from "../constants/tools.js";
|
|
11
|
+
import { toolSourceLabel as U } from "../utils/mentionSerialization.js";
|
|
12
|
+
import { sourceIcon as T, renderSourceIcon as X } from "../utils/sourceIcons.js";
|
|
13
|
+
import { VariablePicker as ue } from "../../variable-picker-v3/VariablePicker.js";
|
|
14
|
+
import Y from "../../../icons/Informational/Common UI/Shield.js";
|
|
15
|
+
const h = (s) => s.meta, I = (s) => h(s)?.plainLabel ?? s.label, pe = "__bik_create_subagent__", ze = ({
|
|
16
|
+
items: s,
|
|
15
17
|
onSelect: R,
|
|
16
18
|
registerKeyHandler: S,
|
|
17
|
-
onClose:
|
|
19
|
+
onClose: x,
|
|
18
20
|
onCreateSubAgent: y,
|
|
19
|
-
initialSource:
|
|
20
|
-
toolActions:
|
|
21
|
-
integrationStatus:
|
|
22
|
-
onConnectIntegration:
|
|
21
|
+
initialSource: j,
|
|
22
|
+
toolActions: k,
|
|
23
|
+
integrationStatus: F,
|
|
24
|
+
onConnectIntegration: G,
|
|
25
|
+
variablesData: _,
|
|
26
|
+
onSelectVariable: O
|
|
23
27
|
}) => {
|
|
24
|
-
const [
|
|
25
|
-
() =>
|
|
26
|
-
[
|
|
27
|
-
), $ =
|
|
28
|
-
() =>
|
|
29
|
-
[
|
|
30
|
-
),
|
|
28
|
+
const [Z, C] = q(null), [d, D] = q(j ?? null), [B, g] = q(-1), [w, J] = q(""), m = v(
|
|
29
|
+
() => s.filter((e) => h(e)?.kind === "tool"),
|
|
30
|
+
[s]
|
|
31
|
+
), $ = v(
|
|
32
|
+
() => s.filter((e) => h(e)?.kind === "subagent"),
|
|
33
|
+
[s]
|
|
34
|
+
), z = v(() => {
|
|
31
35
|
const e = [];
|
|
32
36
|
return m.forEach((r) => {
|
|
33
37
|
const f = h(r)?.source ?? "other";
|
|
34
38
|
e.includes(f) || e.push(f);
|
|
35
39
|
}), e;
|
|
36
|
-
}, [m]),
|
|
40
|
+
}, [m]), M = v(
|
|
37
41
|
() => new Map(
|
|
38
|
-
(
|
|
42
|
+
(k ?? []).map((e) => [e.source, e])
|
|
39
43
|
),
|
|
40
|
-
[
|
|
41
|
-
), A =
|
|
42
|
-
() =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
[k]
|
|
45
|
+
), A = v(
|
|
46
|
+
() => se.filter((e) => e.key === "tool" ? m.length > 0 || (k?.length ?? 0) > 0 : e.key === "variable" ? (_?.length ?? 0) > 0 && !!O : $.length > 0 || !!y),
|
|
47
|
+
[
|
|
48
|
+
m.length,
|
|
49
|
+
$.length,
|
|
50
|
+
y,
|
|
51
|
+
k?.length,
|
|
52
|
+
_?.length,
|
|
53
|
+
O
|
|
54
|
+
]
|
|
55
|
+
), L = A.length === 1 ? A[0].key : null, a = Z ?? L, u = a ? a === "subagent" ? (
|
|
47
56
|
// Always titled — with a back arrow only when the category chooser is above.
|
|
48
57
|
{
|
|
49
58
|
title: "Sub-agent",
|
|
50
|
-
onBack:
|
|
59
|
+
onBack: L ? void 0 : () => C(null)
|
|
51
60
|
}
|
|
52
|
-
) :
|
|
53
|
-
title:
|
|
61
|
+
) : a === "variable" ? {
|
|
62
|
+
title: "Variables",
|
|
63
|
+
onBack: L ? void 0 : () => C(null)
|
|
64
|
+
} : d ? {
|
|
65
|
+
title: U(d),
|
|
54
66
|
// Deep-linked to a source (opened from a right-panel source button):
|
|
55
67
|
// that source IS the root, so no back arrow. In the @-drill flow
|
|
56
68
|
// (no initialSource) back returns to the source chooser.
|
|
57
|
-
onBack:
|
|
58
|
-
icon:
|
|
69
|
+
onBack: j ? void 0 : () => D(null),
|
|
70
|
+
icon: T(d)
|
|
59
71
|
} : (
|
|
60
72
|
// Always titled — matches the Sub-agent header; back arrow only when the
|
|
61
73
|
// category chooser is above (i.e. not the sole category).
|
|
62
74
|
{
|
|
63
75
|
title: "Tools",
|
|
64
|
-
onBack:
|
|
76
|
+
onBack: L ? void 0 : () => C(null)
|
|
65
77
|
}
|
|
66
|
-
) : null,
|
|
67
|
-
if (!
|
|
78
|
+
) : null, l = v(() => {
|
|
79
|
+
if (!a)
|
|
68
80
|
return A.map((n) => ({
|
|
69
81
|
id: n.key,
|
|
70
82
|
label: n.label,
|
|
71
83
|
drillsIn: !0,
|
|
72
84
|
onActivate: () => {
|
|
73
|
-
|
|
85
|
+
C(n.key), D(null);
|
|
74
86
|
}
|
|
75
87
|
}));
|
|
76
|
-
if (
|
|
88
|
+
if (a === "subagent") {
|
|
77
89
|
const n = w.trim().toLowerCase(), t = $.filter((o) => !n || I(o).toLowerCase().includes(n)).map((o) => ({
|
|
78
90
|
id: String(o.id),
|
|
79
91
|
label: I(o),
|
|
@@ -81,106 +93,108 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
81
93
|
onActivate: () => R(o)
|
|
82
94
|
}));
|
|
83
95
|
return y && t.push({
|
|
84
|
-
id:
|
|
96
|
+
id: pe,
|
|
85
97
|
label: "Create new",
|
|
86
98
|
drillsIn: !1,
|
|
87
99
|
isCreate: !0,
|
|
88
100
|
onActivate: () => {
|
|
89
|
-
|
|
101
|
+
x?.(), y();
|
|
90
102
|
}
|
|
91
103
|
}), t;
|
|
92
104
|
}
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
105
|
+
if (a === "variable")
|
|
106
|
+
return [];
|
|
107
|
+
if (!d) {
|
|
108
|
+
const n = (k ?? []).map((t) => t.source).filter((t) => !z.includes(t));
|
|
109
|
+
return [...z, ...n].sort((t, o) => W(t) - W(o)).map((t) => {
|
|
110
|
+
const o = M.get(t);
|
|
111
|
+
if ((o !== void 0 ? o.connected : F?.[t]) === !1)
|
|
98
112
|
return {
|
|
99
113
|
id: t,
|
|
100
|
-
label:
|
|
114
|
+
label: U(t),
|
|
101
115
|
drillsIn: !1,
|
|
102
|
-
icon:
|
|
116
|
+
icon: T(t) ?? o?.icon,
|
|
103
117
|
rightLabel: "Connect",
|
|
104
118
|
onActivate: () => {
|
|
105
|
-
|
|
119
|
+
x?.(), o?.onConnect ? o.onConnect() : G?.(t);
|
|
106
120
|
}
|
|
107
121
|
};
|
|
108
|
-
const
|
|
109
|
-
(
|
|
122
|
+
const V = m.filter(
|
|
123
|
+
(E) => (h(E)?.source ?? "other") === t
|
|
110
124
|
);
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
125
|
+
if (V.length + (o ? 1 : 0) === 1) {
|
|
126
|
+
const E = T(t) ?? o?.icon;
|
|
113
127
|
if (o)
|
|
114
128
|
return {
|
|
115
129
|
id: t,
|
|
116
130
|
label: o.label,
|
|
117
131
|
drillsIn: !1,
|
|
118
|
-
icon:
|
|
132
|
+
icon: E,
|
|
119
133
|
onActivate: () => {
|
|
120
|
-
|
|
134
|
+
x?.(), o.onSelect();
|
|
121
135
|
}
|
|
122
136
|
};
|
|
123
|
-
const
|
|
137
|
+
const P = V[0];
|
|
124
138
|
return {
|
|
125
|
-
id: String(
|
|
126
|
-
label: I(
|
|
139
|
+
id: String(P.id),
|
|
140
|
+
label: I(P),
|
|
127
141
|
drillsIn: !1,
|
|
128
|
-
icon:
|
|
129
|
-
authRequired: h(
|
|
130
|
-
onActivate: () => R(
|
|
142
|
+
icon: E,
|
|
143
|
+
authRequired: h(P)?.authRequired,
|
|
144
|
+
onActivate: () => R(P)
|
|
131
145
|
};
|
|
132
146
|
}
|
|
133
147
|
return {
|
|
134
148
|
id: t,
|
|
135
|
-
label:
|
|
149
|
+
label: U(t),
|
|
136
150
|
drillsIn: !0,
|
|
137
|
-
icon:
|
|
138
|
-
onActivate: () =>
|
|
151
|
+
icon: T(t) ?? o?.icon,
|
|
152
|
+
onActivate: () => D(t)
|
|
139
153
|
};
|
|
140
154
|
});
|
|
141
155
|
}
|
|
142
|
-
const e = w.trim().toLowerCase(), r = m.filter((n) => (h(n)?.source ?? "other") ===
|
|
156
|
+
const e = w.trim().toLowerCase(), r = m.filter((n) => (h(n)?.source ?? "other") === d).filter((n) => !e || I(n).toLowerCase().includes(e)).map((n) => ({
|
|
143
157
|
id: String(n.id),
|
|
144
158
|
label: I(n),
|
|
145
159
|
drillsIn: !1,
|
|
146
160
|
authRequired: h(n)?.authRequired,
|
|
147
161
|
onActivate: () => R(n)
|
|
148
|
-
})), f =
|
|
162
|
+
})), f = M.get(d);
|
|
149
163
|
if (f) {
|
|
150
|
-
const n =
|
|
164
|
+
const n = d in de;
|
|
151
165
|
r.push({
|
|
152
|
-
id: `create:${
|
|
166
|
+
id: `create:${d}`,
|
|
153
167
|
label: f.label,
|
|
154
168
|
drillsIn: !1,
|
|
155
169
|
isCreate: !n,
|
|
156
170
|
onActivate: () => {
|
|
157
|
-
|
|
171
|
+
x?.(), f.onSelect();
|
|
158
172
|
}
|
|
159
173
|
});
|
|
160
174
|
}
|
|
161
175
|
return r;
|
|
162
176
|
}, [
|
|
163
|
-
|
|
177
|
+
a,
|
|
164
178
|
A,
|
|
165
|
-
|
|
179
|
+
d,
|
|
166
180
|
w,
|
|
167
181
|
m,
|
|
168
182
|
$,
|
|
169
|
-
|
|
183
|
+
z,
|
|
170
184
|
R,
|
|
171
|
-
v,
|
|
172
|
-
y,
|
|
173
185
|
x,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
186
|
+
y,
|
|
187
|
+
k,
|
|
188
|
+
M,
|
|
189
|
+
F,
|
|
190
|
+
G
|
|
177
191
|
]);
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
|
|
192
|
+
N(() => g(-1), [a, d, w, s]), N(() => J(""), [a, d]);
|
|
193
|
+
const Q = oe({ rows: l, activeIndex: B, header: u });
|
|
194
|
+
Q.current = { rows: l, activeIndex: B, header: u }, N(() => {
|
|
181
195
|
if (S)
|
|
182
196
|
return S((e) => {
|
|
183
|
-
const { rows: r, activeIndex: f, header: n } =
|
|
197
|
+
const { rows: r, activeIndex: f, header: n } = Q.current;
|
|
184
198
|
switch (e.key) {
|
|
185
199
|
case "ArrowDown":
|
|
186
200
|
return r.length && g((t) => (t + 1) % r.length), !0;
|
|
@@ -196,10 +210,10 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
196
210
|
}
|
|
197
211
|
}), () => S(null);
|
|
198
212
|
}, [S]);
|
|
199
|
-
const
|
|
200
|
-
return /* @__PURE__ */ b(
|
|
213
|
+
const K = a ? l.length && !l[0].drillsIn ? "items" : "sources" : "categories", H = a === "tool" && !!d || a === "subagent";
|
|
214
|
+
return /* @__PURE__ */ b(fe, { className: `bik-mention-picker bik-mention-picker--${K}`, children: [
|
|
201
215
|
u && /* @__PURE__ */ b(
|
|
202
|
-
|
|
216
|
+
ye,
|
|
203
217
|
{
|
|
204
218
|
type: "button",
|
|
205
219
|
onClick: u.onBack,
|
|
@@ -209,76 +223,91 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
209
223
|
cursor: u.onBack ? "pointer" : "default"
|
|
210
224
|
},
|
|
211
225
|
children: [
|
|
212
|
-
u.onBack && /* @__PURE__ */
|
|
213
|
-
|
|
226
|
+
u.onBack && /* @__PURE__ */ c(
|
|
227
|
+
re,
|
|
214
228
|
{
|
|
215
229
|
width: 20,
|
|
216
230
|
height: 20,
|
|
217
231
|
color: i.content.primary
|
|
218
232
|
}
|
|
219
233
|
),
|
|
220
|
-
u.icon &&
|
|
221
|
-
/* @__PURE__ */ b(
|
|
234
|
+
u.icon && X(u.icon),
|
|
235
|
+
/* @__PURE__ */ b(ie, { children: [
|
|
222
236
|
" ",
|
|
223
237
|
u.title
|
|
224
238
|
] })
|
|
225
239
|
]
|
|
226
240
|
}
|
|
227
241
|
),
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
|
|
242
|
+
H && /* @__PURE__ */ b(he, { children: [
|
|
243
|
+
/* @__PURE__ */ c(
|
|
244
|
+
ne,
|
|
231
245
|
{
|
|
232
246
|
width: 20,
|
|
233
247
|
height: 20,
|
|
234
248
|
color: i.content.placeholder
|
|
235
249
|
}
|
|
236
250
|
),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
|
|
251
|
+
/* @__PURE__ */ c(
|
|
252
|
+
ge,
|
|
239
253
|
{
|
|
240
254
|
autoFocus: !0,
|
|
241
255
|
value: w,
|
|
242
256
|
placeholder: "Search",
|
|
243
257
|
"data-test": "mention-picker-search",
|
|
244
|
-
onChange: (e) =>
|
|
258
|
+
onChange: (e) => J(e.target.value),
|
|
245
259
|
onKeyDown: (e) => {
|
|
246
|
-
|
|
260
|
+
l.length && (e.key === "ArrowDown" ? (e.preventDefault(), g((r) => (r + 1) % l.length)) : e.key === "ArrowUp" ? (e.preventDefault(), g((r) => (r + l.length - 1) % l.length)) : e.key === "Enter" && (e.preventDefault(), (l[B] ?? l[0])?.onActivate()));
|
|
247
261
|
}
|
|
248
262
|
}
|
|
249
263
|
)
|
|
250
264
|
] }),
|
|
251
|
-
a
|
|
252
|
-
|
|
265
|
+
a === "variable" ? (
|
|
266
|
+
// Shared variable catalog, embedded as this drill-in view. Selecting a
|
|
267
|
+
// variable dismisses the menu FIRST (strips the typed "@" + query),
|
|
268
|
+
// then hands the variable up to insert its `{{token}}` at the cursor.
|
|
269
|
+
/* @__PURE__ */ c(
|
|
270
|
+
ue,
|
|
271
|
+
{
|
|
272
|
+
type: ce.EMBEDDED,
|
|
273
|
+
data: _ ?? [],
|
|
274
|
+
showRecommendedBar: !1,
|
|
275
|
+
onSelect: (e) => {
|
|
276
|
+
x?.(), O?.(e);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
) : l.length === 0 ? /* @__PURE__ */ c(we, { children: a === "subagent" ? null : "No tools available" }) : l.map((e, r) => /* @__PURE__ */ c(
|
|
281
|
+
me,
|
|
253
282
|
{
|
|
254
283
|
type: "button",
|
|
255
|
-
$active: r ===
|
|
284
|
+
$active: r === B,
|
|
256
285
|
onMouseEnter: () => g(r),
|
|
257
286
|
onMouseLeave: () => g(-1),
|
|
258
287
|
onClick: e.onActivate,
|
|
259
|
-
children: e.isCreate ? /* @__PURE__ */
|
|
260
|
-
/* @__PURE__ */ b(
|
|
261
|
-
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
e.authRequired && /* @__PURE__ */
|
|
264
|
-
|
|
288
|
+
children: e.isCreate ? /* @__PURE__ */ c(ve, { children: e.label }) : /* @__PURE__ */ b(ee, { children: [
|
|
289
|
+
/* @__PURE__ */ b(be, { children: [
|
|
290
|
+
X(e.icon),
|
|
291
|
+
/* @__PURE__ */ c(ae, { color: i.content.primary, children: e.label }),
|
|
292
|
+
e.authRequired && /* @__PURE__ */ c(
|
|
293
|
+
Y,
|
|
265
294
|
{
|
|
266
295
|
size: 14,
|
|
267
296
|
"aria-label": "Requires customer verification"
|
|
268
297
|
}
|
|
269
298
|
)
|
|
270
299
|
] }),
|
|
271
|
-
e.rightLabel ? /* @__PURE__ */
|
|
300
|
+
e.rightLabel ? /* @__PURE__ */ c(ke, { children: e.rightLabel }) : e.drillsIn && /* @__PURE__ */ c(te, { width: 12, height: 12 })
|
|
272
301
|
] })
|
|
273
302
|
},
|
|
274
303
|
e.id
|
|
275
304
|
)),
|
|
276
|
-
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
305
|
+
l.some((e) => e.authRequired) && /* @__PURE__ */ b(xe, { children: [
|
|
306
|
+
/* @__PURE__ */ c(Y, { size: 14 }),
|
|
307
|
+
/* @__PURE__ */ c(le, { color: i.content.secondary, children: "Requires customer verification" })
|
|
279
308
|
] })
|
|
280
309
|
] });
|
|
281
|
-
},
|
|
310
|
+
}, fe = p.div`
|
|
282
311
|
display: flex;
|
|
283
312
|
flex-direction: column;
|
|
284
313
|
min-width: 240px;
|
|
@@ -288,13 +317,13 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
288
317
|
border: 1px solid ${i.stroke.primary};
|
|
289
318
|
border-radius: 4px;
|
|
290
319
|
box-shadow: 0px -2px 8px 0px #0000001f;
|
|
291
|
-
`,
|
|
320
|
+
`, he = p.div`
|
|
292
321
|
display: flex;
|
|
293
322
|
align-items: center;
|
|
294
323
|
gap: 8px;
|
|
295
324
|
padding: 10px 12px;
|
|
296
325
|
border-bottom: 1px solid ${i.stroke.primary};
|
|
297
|
-
`,
|
|
326
|
+
`, ge = p.input`
|
|
298
327
|
flex: 1;
|
|
299
328
|
min-width: 0;
|
|
300
329
|
border: none;
|
|
@@ -307,7 +336,7 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
307
336
|
&::placeholder {
|
|
308
337
|
color: ${i.content.placeholder};
|
|
309
338
|
}
|
|
310
|
-
`,
|
|
339
|
+
`, me = p.button`
|
|
311
340
|
display: flex;
|
|
312
341
|
justify-content: space-between;
|
|
313
342
|
align-items: center;
|
|
@@ -317,39 +346,39 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
317
346
|
height: 48px;
|
|
318
347
|
border: none;
|
|
319
348
|
border-bottom: 1px solid ${i.stroke.primary};
|
|
320
|
-
background: ${(
|
|
349
|
+
background: ${(s) => s.$active ? i.surface.subdued : "transparent"};
|
|
321
350
|
cursor: pointer;
|
|
322
351
|
text-align: left;
|
|
323
352
|
|
|
324
353
|
&:hover {
|
|
325
354
|
background: ${i.surface.hovered};
|
|
326
355
|
}
|
|
327
|
-
`,
|
|
356
|
+
`, be = p.div`
|
|
328
357
|
display: flex;
|
|
329
358
|
align-items: center;
|
|
330
359
|
gap: 12px;
|
|
331
360
|
min-width: 0;
|
|
332
|
-
`,
|
|
361
|
+
`, xe = p.div`
|
|
333
362
|
display: flex;
|
|
334
363
|
align-items: center;
|
|
335
364
|
gap: 6px;
|
|
336
365
|
padding: 8px 12px;
|
|
337
366
|
border-top: 1px solid ${i.stroke.primary};
|
|
338
|
-
`,
|
|
367
|
+
`, ke = p.span`
|
|
339
368
|
flex-shrink: 0;
|
|
340
369
|
color: ${i.content.brand};
|
|
341
370
|
font-family: Inter;
|
|
342
371
|
font-size: 14px;
|
|
343
372
|
font-weight: 600;
|
|
344
373
|
white-space: nowrap;
|
|
345
|
-
`,
|
|
374
|
+
`, ve = p.div`
|
|
346
375
|
width: 100%;
|
|
347
376
|
text-align: center;
|
|
348
377
|
color: ${i.content.brand};
|
|
349
378
|
font-family: Inter;
|
|
350
379
|
font-size: 14px;
|
|
351
380
|
font-weight: 600;
|
|
352
|
-
`,
|
|
381
|
+
`, ye = p.button`
|
|
353
382
|
display: flex;
|
|
354
383
|
align-items: center;
|
|
355
384
|
padding: 12px 16px;
|
|
@@ -362,13 +391,13 @@ const h = (l) => l.meta, I = (l) => h(l)?.plainLabel ?? l.label, ce = "__bik_cre
|
|
|
362
391
|
font-weight: 600;
|
|
363
392
|
height: 48px;
|
|
364
393
|
gap: 4px;
|
|
365
|
-
`,
|
|
394
|
+
`, we = p.div`
|
|
366
395
|
padding: 12px 10px;
|
|
367
396
|
font-family: Inter;
|
|
368
397
|
font-size: 13px;
|
|
369
398
|
color: ${i.content.secondary};
|
|
370
399
|
`;
|
|
371
400
|
export {
|
|
372
|
-
|
|
401
|
+
ze as MentionPicker
|
|
373
402
|
};
|
|
374
403
|
//# sourceMappingURL=MentionPicker.js.map
|