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