@inkeep/cxkit-react 0.5.18 → 0.5.21
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/chat-button.cjs +1 -1
- package/dist/components/chat-button.js +22 -19
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +38 -31
- package/dist/components/searchbar.cjs +1 -1
- package/dist/components/searchbar.js +27 -21
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("@inkeep/cxkit-styled"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("@inkeep/cxkit-styled"),x=require("react"),B=require("./modal.cjs"),I=require("./embedded-search-and-chat.cjs"),j=require("./embedded-search-and-chat.impl.cjs"),S=require("./embedded-chat.cjs");function b(n){const[r,o]=x.useState(!1),{modalSettings:s,label:i,defaultView:a="chat",canToggleView:c=!0,avatar:C,...d}=n,m={...d,shouldShowAskAICard:c},{config:h,...u}=j.useWidgetImpl({...m,defaultView:a}),g={...s,isOpen:r,onOpenChange:l=>{n.forceDefaultView&&!l&&u.setView(a??"chat"),o(!!l)}};return t.jsxs(t.Fragment,{children:[t.jsx(e.Shadow,{wrapperStyles:{display:"contents"},children:t.jsx(e.RootProvider,{config:h,componentType:e.WebWidgetInteractionType.ChatButton,children:t.jsx(p,{label:i,avatar:C,setOpen:o})})}),t.jsx(B.InkeepModal,{...h,componentType:e.WebWidgetInteractionType.ChatButton,modalSettings:g,children:c?t.jsx(I.InkeepEmbeddedSearchAndChatImpl,{...u}):t.jsx(S.InkeepEmbeddedChatImpl,{...d})})]})}function p(n){const{label:r="Ask AI",avatar:o,setOpen:s}=n;return t.jsx(e.ChatButton.Container,{children:t.jsxs(e.ChatButton.ChatButton,{onClick:i=>{i.button!==2&&s(a=>!a)},children:[t.jsx(e.ChatButton.ChatButtonText,{children:r}),t.jsx(e.ChatButton.ChatButtonAvatarContent,{children:t.jsx(e.ChatButton.ChatButtonAvatarImage,{avatar:o})})]})})}exports.ChatButtonImpl=p;exports.InkeepChatButton=b;
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Shadow as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { InkeepModal as
|
|
6
|
-
import { InkeepEmbeddedSearchAndChatImpl as
|
|
7
|
-
import { useWidgetImpl as
|
|
2
|
+
import { jsxs as u, Fragment as I, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Shadow as B, RootProvider as S, WebWidgetInteractionType as h, ChatButton as e } from "@inkeep/cxkit-styled";
|
|
4
|
+
import { useState as k } from "react";
|
|
5
|
+
import { InkeepModal as w } from "./modal.js";
|
|
6
|
+
import { InkeepEmbeddedSearchAndChatImpl as A } from "./embedded-search-and-chat.js";
|
|
7
|
+
import { useWidgetImpl as b } from "./embedded-search-and-chat.impl.js";
|
|
8
8
|
import { InkeepEmbeddedChatImpl as v } from "./embedded-chat.js";
|
|
9
9
|
function D(n) {
|
|
10
|
-
const [r, o] =
|
|
10
|
+
const [r, o] = k(!1), {
|
|
11
11
|
modalSettings: i,
|
|
12
12
|
label: l,
|
|
13
13
|
defaultView: a = "chat",
|
|
14
|
-
canToggleView:
|
|
15
|
-
avatar:
|
|
16
|
-
...
|
|
17
|
-
} = n,
|
|
14
|
+
canToggleView: c = !0,
|
|
15
|
+
avatar: C,
|
|
16
|
+
...p
|
|
17
|
+
} = n, f = {
|
|
18
|
+
...p,
|
|
19
|
+
shouldShowAskAICard: c
|
|
20
|
+
}, { config: s, ...m } = b({ ...f, defaultView: a }), g = {
|
|
18
21
|
...i,
|
|
19
22
|
isOpen: r,
|
|
20
23
|
onOpenChange: (d) => {
|
|
21
|
-
n.forceDefaultView && !d &&
|
|
24
|
+
n.forceDefaultView && !d && m.setView(a ?? "chat"), o(!!d);
|
|
22
25
|
}
|
|
23
26
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ t(
|
|
27
|
+
return /* @__PURE__ */ u(I, { children: [
|
|
28
|
+
/* @__PURE__ */ t(B, { wrapperStyles: { display: "contents" }, children: /* @__PURE__ */ t(S, { config: s, componentType: h.ChatButton, children: /* @__PURE__ */ t(y, { label: l, avatar: C, setOpen: o }) }) }),
|
|
26
29
|
/* @__PURE__ */ t(
|
|
27
|
-
|
|
30
|
+
w,
|
|
28
31
|
{
|
|
29
|
-
...
|
|
32
|
+
...s,
|
|
30
33
|
componentType: h.ChatButton,
|
|
31
|
-
modalSettings:
|
|
32
|
-
children:
|
|
34
|
+
modalSettings: g,
|
|
35
|
+
children: c ? /* @__PURE__ */ t(A, { ...m }) : /* @__PURE__ */ t(v, { ...p })
|
|
33
36
|
}
|
|
34
37
|
)
|
|
35
38
|
] });
|
|
36
39
|
}
|
|
37
40
|
function y(n) {
|
|
38
41
|
const { label: r = "Ask AI", avatar: o, setOpen: i } = n;
|
|
39
|
-
return /* @__PURE__ */ t(e.Container, { children: /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ t(e.Container, { children: /* @__PURE__ */ u(
|
|
40
43
|
e.ChatButton,
|
|
41
44
|
{
|
|
42
45
|
onClick: (l) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("@inkeep/cxkit-styled"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("@inkeep/cxkit-styled"),o=require("react"),l=require("./widget-toggle.cjs"),u=require("./modal.cjs");function S(r){const{baseSettings:s,searchSettings:t}=r;return e.jsx(d.Shadow,{children:e.jsx(d.RootProvider,{config:{baseSettings:s,searchSettings:t},componentType:d.WebWidgetInteractionType.EmbeddedSearch,children:e.jsx(h,{...r})})})}function i(r){const{children:s,onToggleView:t,isHidden:n,shouldAutoFocusInput:c=!t}=r;return e.jsx(d.EmbeddedSearch.Provider,{isHidden:n,shouldAutoFocusInput:c,children:s})}function h(r){return e.jsx(i,{...r,children:e.jsx(m,{...r})})}function m(r){const{onToggleView:s,shouldShowAskAICard:t}=r,n=d.useModal(),c=d.useWidget(),a=n&&!c?u.ModalContent:o.Fragment;return e.jsx(a,{children:e.jsx(d.EmbeddedSearch.Wrapper,{"data-show-ask-ai-card":d.dataAttr(t),"data-composite":d.dataAttr(!!s||n?.isOpen),children:e.jsxs(d.EmbeddedSearch.Root,{children:[e.jsx(b,{...r}),e.jsxs(d.EmbeddedSearch.Content,{children:[e.jsx(x,{...r}),e.jsx(j,{})]}),e.jsx(g,{})]})})})}function b(r){const{onToggleView:s,askAILabel:t,searchLabel:n}=r,{query:c}=d.useSearch();return e.jsxs(d.EmbeddedSearch.InputGroup,{children:[e.jsx(d.EmbeddedSearch.InputIcon,{}),e.jsx(d.EmbeddedSearch.Input,{}),e.jsx(d.EmbeddedSearch.Loading,{}),s&&e.jsx(l.WidgetToggle,{onToggleView:s,query:c,askAILabel:t,searchLabel:n,view:"search"}),e.jsx(d.Modal.Close,{})]})}function x(r){const{askAILabel:s,onToggleView:t,shouldShowAskAICard:n=!!t}=r,{query:c}=d.useSearch(),{handleToggle:a}=l.useToggleView({onToggleView:t,query:c});return n?e.jsxs(d.EmbeddedSearch.AskAITrigger,{onSelect:()=>a("chat",!0),children:[e.jsx(d.EmbeddedSearch.AskAITriggerIcon,{}),e.jsxs(d.EmbeddedSearch.AskAITriggerLabel,{children:[s||"Ask AI",c&&` "${c}"`]}),e.jsx(d.EmbeddedSearch.AskAITriggerIndicator,{})]}):null}function j(){return e.jsxs(d.EmbeddedSearch.Results,{children:[e.jsx(d.EmbeddedSearch.ResultsLoading,{}),e.jsx(d.EmbeddedSearch.ResultsTabList,{children:r=>r.map(s=>e.jsx(d.EmbeddedSearch.ResultsTab,{tab:s},s))}),e.jsx(d.EmbeddedSearch.ResultsEmpty,{}),e.jsxs(d.EmbeddedSearch.ResultsScrollArea,{children:[e.jsx(d.EmbeddedSearch.ResultsScrollAreaViewport,{children:e.jsx(E,{})}),e.jsx(d.EmbeddedSearch.ResultsScrollAreaScrollbar,{children:e.jsx(d.EmbeddedSearch.ResultsScrollAreaThumb,{})}),e.jsx(d.EmbeddedSearch.ResultsScrollAreaCorner,{})]})]})}function E(){return e.jsx(d.EmbeddedSearch.ResultsList,{children:r=>r.map(s=>e.jsxs(d.EmbeddedSearch.ResultsItem,{item:s,children:[e.jsx(d.EmbeddedSearch.ResultsItemBreadcrumbs,{children:t=>t.map((n,c)=>e.jsxs(o.Fragment,{children:[n,e.jsx(d.EmbeddedSearch.ResultsItemBreadcrumbIcon,{})]},`${n}-${c}`))}),e.jsx(d.EmbeddedSearch.ResultsItemIcon,{}),e.jsx(d.EmbeddedSearch.ResultsItemTitle,{}),e.jsx(d.EmbeddedSearch.ResultsItemTag,{}),e.jsx(d.EmbeddedSearch.ResultsItemDescription,{children:t=>t.map((n,c)=>e.jsx(d.EmbeddedSearch.ResultsItemDescriptionPart,{part:n},`part-${c}`))}),e.jsx(d.EmbeddedSearch.ResultsItemIndicator,{})]},s.id))})}function g(){return e.jsx(d.EmbeddedSearch.Footer,{children:e.jsxs(d.EmbeddedSearch.TaglineContainer,{children:[e.jsx(d.EmbeddedSearch.TaglineText,{}),e.jsx(d.EmbeddedSearch.TaglineLogo,{}),e.jsx(d.EmbeddedSearch.TaglineBrandName,{})]})})}exports.InkeepEmbeddedSearch=S;exports.InkeepEmbeddedSearchImpl=h;exports.InkeepEmbeddedSearchImplContent=m;exports.InkeepEmbeddedSearchProvider=i;
|
|
@@ -1,75 +1,82 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import { Shadow as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { WidgetToggle as
|
|
3
|
+
import { Shadow as h, RootProvider as g, WebWidgetInteractionType as m, EmbeddedSearch as t, useModal as I, useWidget as p, dataAttr as d, useSearch as a, Modal as A } from "@inkeep/cxkit-styled";
|
|
4
|
+
import { Fragment as u } from "react";
|
|
5
|
+
import { WidgetToggle as R, useToggleView as T } from "./widget-toggle.js";
|
|
6
6
|
import { ModalContent as S } from "./modal.js";
|
|
7
7
|
function P(r) {
|
|
8
8
|
const { baseSettings: n, searchSettings: o } = r;
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
|
|
10
10
|
g,
|
|
11
11
|
{
|
|
12
12
|
config: {
|
|
13
13
|
baseSettings: n,
|
|
14
14
|
searchSettings: o
|
|
15
15
|
},
|
|
16
|
-
componentType:
|
|
16
|
+
componentType: m.EmbeddedSearch,
|
|
17
17
|
children: /* @__PURE__ */ e(b, { ...r })
|
|
18
18
|
}
|
|
19
19
|
) });
|
|
20
20
|
}
|
|
21
21
|
function f(r) {
|
|
22
|
-
const { children: n, onToggleView: o, isHidden:
|
|
23
|
-
return /* @__PURE__ */ e(t.Provider, { isHidden:
|
|
22
|
+
const { children: n, onToggleView: o, isHidden: s, shouldAutoFocusInput: l = !o } = r;
|
|
23
|
+
return /* @__PURE__ */ e(t.Provider, { isHidden: s, shouldAutoFocusInput: l, children: n });
|
|
24
24
|
}
|
|
25
25
|
function b(r) {
|
|
26
26
|
return /* @__PURE__ */ e(f, { ...r, children: /* @__PURE__ */ e(k, { ...r }) });
|
|
27
27
|
}
|
|
28
28
|
function k(r) {
|
|
29
|
-
const { onToggleView: n } = r,
|
|
30
|
-
return /* @__PURE__ */ e(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
const { onToggleView: n, shouldShowAskAICard: o } = r, s = I(), l = p();
|
|
30
|
+
return /* @__PURE__ */ e(s && !l ? S : u, { children: /* @__PURE__ */ e(
|
|
31
|
+
t.Wrapper,
|
|
32
|
+
{
|
|
33
|
+
"data-show-ask-ai-card": d(o),
|
|
34
|
+
"data-composite": d(!!n || s?.isOpen),
|
|
35
|
+
children: /* @__PURE__ */ i(t.Root, { children: [
|
|
36
|
+
/* @__PURE__ */ e(w, { ...r }),
|
|
37
|
+
/* @__PURE__ */ i(t.Content, { children: [
|
|
38
|
+
/* @__PURE__ */ e(C, { ...r }),
|
|
39
|
+
/* @__PURE__ */ e(L, {})
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ e(W, {})
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
) });
|
|
38
45
|
}
|
|
39
46
|
function w(r) {
|
|
40
|
-
const { onToggleView: n, askAILabel: o, searchLabel:
|
|
47
|
+
const { onToggleView: n, askAILabel: o, searchLabel: s } = r, { query: l } = a();
|
|
41
48
|
return /* @__PURE__ */ i(t.InputGroup, { children: [
|
|
42
49
|
/* @__PURE__ */ e(t.InputIcon, {}),
|
|
43
50
|
/* @__PURE__ */ e(t.Input, {}),
|
|
44
51
|
/* @__PURE__ */ e(t.Loading, {}),
|
|
45
52
|
n && /* @__PURE__ */ e(
|
|
46
|
-
|
|
53
|
+
R,
|
|
47
54
|
{
|
|
48
55
|
onToggleView: n,
|
|
49
|
-
query:
|
|
56
|
+
query: l,
|
|
50
57
|
askAILabel: o,
|
|
51
|
-
searchLabel:
|
|
58
|
+
searchLabel: s,
|
|
52
59
|
view: "search"
|
|
53
60
|
}
|
|
54
61
|
),
|
|
55
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(A.Close, {})
|
|
56
63
|
] });
|
|
57
64
|
}
|
|
58
|
-
function
|
|
59
|
-
const { askAILabel: n, onToggleView: o, shouldShowAskAICard:
|
|
65
|
+
function C(r) {
|
|
66
|
+
const { askAILabel: n, onToggleView: o, shouldShowAskAICard: s = !!o } = r, { query: l } = a(), { handleToggle: c } = T({
|
|
60
67
|
onToggleView: o,
|
|
61
|
-
query:
|
|
68
|
+
query: l
|
|
62
69
|
});
|
|
63
|
-
return
|
|
70
|
+
return s ? /* @__PURE__ */ i(t.AskAITrigger, { onSelect: () => c("chat", !0), children: [
|
|
64
71
|
/* @__PURE__ */ e(t.AskAITriggerIcon, {}),
|
|
65
72
|
/* @__PURE__ */ i(t.AskAITriggerLabel, { children: [
|
|
66
73
|
n || "Ask AI",
|
|
67
|
-
|
|
74
|
+
l && ` "${l}"`
|
|
68
75
|
] }),
|
|
69
76
|
/* @__PURE__ */ e(t.AskAITriggerIndicator, {})
|
|
70
77
|
] }) : null;
|
|
71
78
|
}
|
|
72
|
-
function
|
|
79
|
+
function L() {
|
|
73
80
|
return /* @__PURE__ */ i(t.Results, { children: [
|
|
74
81
|
/* @__PURE__ */ e(t.ResultsLoading, {}),
|
|
75
82
|
/* @__PURE__ */ e(t.ResultsTabList, { children: (r) => r.map((n) => /* @__PURE__ */ e(t.ResultsTab, { tab: n }, n)) }),
|
|
@@ -83,14 +90,14 @@ function C() {
|
|
|
83
90
|
}
|
|
84
91
|
function E() {
|
|
85
92
|
return /* @__PURE__ */ e(t.ResultsList, { children: (r) => r.map((n) => /* @__PURE__ */ i(t.ResultsItem, { item: n, children: [
|
|
86
|
-
/* @__PURE__ */ e(t.ResultsItemBreadcrumbs, { children: (o) => o.map((l) => /* @__PURE__ */ i(
|
|
87
|
-
|
|
93
|
+
/* @__PURE__ */ e(t.ResultsItemBreadcrumbs, { children: (o) => o.map((s, l) => /* @__PURE__ */ i(u, { children: [
|
|
94
|
+
s,
|
|
88
95
|
/* @__PURE__ */ e(t.ResultsItemBreadcrumbIcon, {})
|
|
89
|
-
] }, l)) }),
|
|
96
|
+
] }, `${s}-${l}`)) }),
|
|
90
97
|
/* @__PURE__ */ e(t.ResultsItemIcon, {}),
|
|
91
98
|
/* @__PURE__ */ e(t.ResultsItemTitle, {}),
|
|
92
99
|
/* @__PURE__ */ e(t.ResultsItemTag, {}),
|
|
93
|
-
/* @__PURE__ */ e(t.ResultsItemDescription, { children: (o) => o.map((
|
|
100
|
+
/* @__PURE__ */ e(t.ResultsItemDescription, { children: (o) => o.map((s, l) => /* @__PURE__ */ e(t.ResultsItemDescriptionPart, { part: s }, `part-${l}`)) }),
|
|
94
101
|
/* @__PURE__ */ e(t.ResultsItemIndicator, {})
|
|
95
102
|
] }, n.id)) });
|
|
96
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),B=require("react"),m=require("./embedded-search-and-chat.cjs"),x=require("./embedded-search-and-chat.impl.cjs"),j=require("./embedded-search.cjs"),r=require("@inkeep/cxkit-styled"),g=require("./modal.cjs");function y(a){const[n,t]=B.useState(!1),{modalSettings:s,defaultView:c="search",canToggleView:o=!0,...u}=a,h={...u,shouldShowAskAICard:o},{config:d,...i}=x.useWidgetImpl({...h,defaultView:c}),S={shortcutKey:"k",...s,isOpen:n,onOpenChange:l=>{a.forceDefaultView&&!l&&i.setView(c??"search"),t(!!l)}};return e.jsxs(e.Fragment,{children:[e.jsx(r.Shadow,{wrapperStyles:{display:"contents"},children:e.jsx(r.RootProvider,{config:d,componentType:r.WebWidgetInteractionType.SearchBar,children:e.jsx(p,{setOpen:t,modalSettings:S})})}),e.jsx(g.InkeepModal,{...d,modalSettings:S,componentType:r.WebWidgetInteractionType.SearchBar,children:o?e.jsx(m.InkeepEmbeddedSearchAndChatImpl,{...i}):e.jsx(j.InkeepEmbeddedSearchImpl,{...h})})]})}function p(a){const{setOpen:n,modalSettings:t}=a;return e.jsx(r.SearchBar.SearchBarContainer,{children:e.jsxs(r.SearchBar.SearchBarButton,{onClick:s=>{s.button!==2&&n(c=>!c)},children:[e.jsxs(r.SearchBar.SearchBarContentWrapper,{children:[e.jsx(r.SearchBar.SearchBarIcon,{}),e.jsx(r.SearchBar.SearchBarText,{})]}),e.jsxs(r.SearchBar.SearchBarKbdWrapper,{children:[e.jsx(r.SearchBar.SearchBarKbdModifier,{shortcutKey:t?.shortcutKey}),e.jsx(r.SearchBar.SearchBarKbdShortcutKey,{shortcutKey:t?.shortcutKey})]})]})})}exports.InkeepSearchBar=y;exports.SearchBarImpl=p;
|
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as a, Fragment as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { InkeepEmbeddedSearchAndChatImpl as
|
|
5
|
-
import { useWidgetImpl as
|
|
6
|
-
import { InkeepEmbeddedSearchImpl as
|
|
7
|
-
import { Shadow as
|
|
8
|
-
import { InkeepModal as
|
|
2
|
+
import { jsxs as a, Fragment as f, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as B } from "react";
|
|
4
|
+
import { InkeepEmbeddedSearchAndChatImpl as g } from "./embedded-search-and-chat.js";
|
|
5
|
+
import { useWidgetImpl as y } from "./embedded-search-and-chat.impl.js";
|
|
6
|
+
import { InkeepEmbeddedSearchImpl as I } from "./embedded-search.js";
|
|
7
|
+
import { Shadow as K, RootProvider as b, WebWidgetInteractionType as S, SearchBar as r } from "@inkeep/cxkit-styled";
|
|
8
|
+
import { InkeepModal as k } from "./modal.js";
|
|
9
9
|
function E(n) {
|
|
10
|
-
const [c, t] =
|
|
10
|
+
const [c, t] = B(!1), {
|
|
11
11
|
modalSettings: i,
|
|
12
12
|
defaultView: o = "search",
|
|
13
|
-
canToggleView:
|
|
14
|
-
...
|
|
15
|
-
} = n,
|
|
13
|
+
canToggleView: h = !0,
|
|
14
|
+
...u
|
|
15
|
+
} = n, s = {
|
|
16
|
+
...u,
|
|
17
|
+
shouldShowAskAICard: h
|
|
18
|
+
}, { config: p, ...d } = y({
|
|
19
|
+
...s,
|
|
20
|
+
defaultView: o
|
|
21
|
+
}), m = {
|
|
16
22
|
shortcutKey: "k",
|
|
17
23
|
...i,
|
|
18
24
|
isOpen: c,
|
|
19
|
-
onOpenChange: (
|
|
20
|
-
n.forceDefaultView && !
|
|
25
|
+
onOpenChange: (l) => {
|
|
26
|
+
n.forceDefaultView && !l && d.setView(o ?? "search"), t(!!l);
|
|
21
27
|
}
|
|
22
28
|
};
|
|
23
|
-
return /* @__PURE__ */ a(
|
|
24
|
-
/* @__PURE__ */ e(
|
|
29
|
+
return /* @__PURE__ */ a(f, { children: [
|
|
30
|
+
/* @__PURE__ */ e(K, { wrapperStyles: { display: "contents" }, children: /* @__PURE__ */ e(b, { config: p, componentType: S.SearchBar, children: /* @__PURE__ */ e(w, { setOpen: t, modalSettings: m }) }) }),
|
|
25
31
|
/* @__PURE__ */ e(
|
|
26
|
-
|
|
32
|
+
k,
|
|
27
33
|
{
|
|
28
34
|
...p,
|
|
29
|
-
modalSettings:
|
|
30
|
-
componentType:
|
|
31
|
-
children:
|
|
35
|
+
modalSettings: m,
|
|
36
|
+
componentType: S.SearchBar,
|
|
37
|
+
children: h ? /* @__PURE__ */ e(g, { ...d }) : /* @__PURE__ */ e(I, { ...s })
|
|
32
38
|
}
|
|
33
39
|
)
|
|
34
40
|
] });
|
|
35
41
|
}
|
|
36
|
-
function
|
|
42
|
+
function w(n) {
|
|
37
43
|
const { setOpen: c, modalSettings: t } = n;
|
|
38
44
|
return /* @__PURE__ */ e(r.SearchBarContainer, { children: /* @__PURE__ */ a(
|
|
39
45
|
r.SearchBarButton,
|
|
@@ -56,5 +62,5 @@ function k(n) {
|
|
|
56
62
|
}
|
|
57
63
|
export {
|
|
58
64
|
E as InkeepSearchBar,
|
|
59
|
-
|
|
65
|
+
w as SearchBarImpl
|
|
60
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@inkeep/cxkit-styled": "0.5.
|
|
23
|
+
"@inkeep/cxkit-styled": "0.5.21"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@biomejs/biome": "1.9.4",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"typescript": "5.7.3",
|
|
44
44
|
"vite": "5.4.11",
|
|
45
45
|
"vite-plugin-dts": "4.4.0",
|
|
46
|
-
"@inkeep/cxkit-color-mode": "0.5.
|
|
47
|
-
"@inkeep/cxkit-types": "0.5.
|
|
46
|
+
"@inkeep/cxkit-color-mode": "0.5.21",
|
|
47
|
+
"@inkeep/cxkit-types": "0.5.21"
|
|
48
48
|
},
|
|
49
49
|
"module": "dist/index.js",
|
|
50
50
|
"types": "dist/index.d.ts",
|