@inkeep/cxkit-styled 0.5.0 → 0.5.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.
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("@inkeep/cxkit-primitives"),s=require("../utils.cjs"),d=require("../ui/recipes/citation.cjs"),i=require("../ui/recipes/link.cjs"),c=require("../ui/recipes/scrollable.cjs"),n=require("./embedded-search/results-loading.cjs"),l=e=>a.jsx(r.EmbeddedSearchPrimitive.Provider,{...e}),o=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Wrapper,{className:s.cn("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),m=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Root,{className:s.cn("data-[hidden]:hidden flex flex-col w-full",e),...t}),b=r.EmbeddedSearchPrimitive.Content,h=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputGroup,{className:s.cn("flex items-center w-full px-5 py-4 gap-3",e),...t}),u=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputIcon,{className:s.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),p=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Input,{className:s.cn("min-h-[38px] overflow-hidden w-full resize-none","py-2 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),x=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Loading,{className:s.cn("animate-spin text-gray-400 dark:text-white-alpha-500",e),...t}),g=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITrigger,{className:s.cn(d.citation({slot:"root"}),"m-auto w-[calc(100%_-_theme(spacing.5))]","border-transparent dark:border-transparent","mb-3 py-0 h-11 cursor-pointer",e),...t}),S=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIcon,{className:s.cn("[grid-area:icon] h-5 w-5","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),E=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerLabel,{className:s.cn(d.citation({slot:"title"}),"font-normal",e),...t}),I=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicator,{className:s.cn(d.citation({slot:"indicator"}),e),...t}),R=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Results,{className:s.cn(c.scrollable({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","transition-all duration-300 ease-in-out",e),...t}),v=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsLoading,{className:s.cn("group mb-1 relative transition-all w-full h-full",e),children:a.jsx(n.ResultsLoading,{}),...t}),f=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsEmpty,{className:s.cn("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),k=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTabList,{className:s.cn("shrink-0 max-w-full","flex gap-3 px-5 py-1","overflow-x-auto [scrollbar-width:thin]",e),...t}),P=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTab,{className:s.cn("px-3 text-1sm font-medium rounded-full","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300",e),...t}),T=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollArea,{className:s.cn("overflow-hidden h-full",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out befter:from-white","befter:dark:from-gray-dark-950 befter:to-transparent","before:top-0 after:bottom-0","before:bg-gradient-to-b after:bg-gradient-to-t","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaViewport,{className:s.cn("h-full w-full rounded-[inherit]",e),...t}),j=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaScrollbar,{className:s.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),A=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaThumb,{className:s.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),w=r.EmbeddedSearchPrimitive.ResultsScrollAreaCorner,N=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsList,{className:s.cn("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-[1px]",e),...t}),L=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItem,{className:s.cn(d.citation({slot:"root"}),e),...t}),B=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbs,{className:s.cn(d.citation({slot:"breadcrumbs"}),e),...t}),C=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbIcon,{className:s.cn(d.citation({slot:"breadcrumbsIcon"}),e),...t}),_=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIcon,{className:s.cn(d.citation({slot:"icon"}),e),...t}),q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTitle,{className:s.cn(d.citation({slot:"title"}),e),...t}),D=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTag,{className:s.cn(d.citation({slot:"tag"}),e),...t}),F=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescription,{className:s.cn(d.citation({slot:"description"}),e),...t}),G=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescriptionPart,{className:s.cn(d.citation({slot:"descriptionPart"}),e),...t}),V=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIndicator,{className:s.cn(d.citation({slot:"indicator"}),e),...t}),W=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Footer,{className:s.cn("justify-self-end pt-1 pb-3 px-5","hidden data-[has-results]:flex",e),...t}),z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineContainer,{className:s.cn("flex items-center whitespace-nowrap",e),...t}),M=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineText,{className:s.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),O=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineLogo,{className:s.cn("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),H=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineBrandName,{className:s.cn(i.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t});exports.AskAITrigger=g;exports.AskAITriggerIcon=S;exports.AskAITriggerIndicator=I;exports.AskAITriggerLabel=E;exports.Content=b;exports.Footer=W;exports.Input=p;exports.InputGroup=h;exports.InputIcon=u;exports.Loading=x;exports.Provider=l;exports.Results=R;exports.ResultsEmpty=f;exports.ResultsItem=L;exports.ResultsItemBreadcrumbIcon=C;exports.ResultsItemBreadcrumbs=B;exports.ResultsItemDescription=F;exports.ResultsItemDescriptionPart=G;exports.ResultsItemIcon=_;exports.ResultsItemIndicator=V;exports.ResultsItemTag=D;exports.ResultsItemTitle=q;exports.ResultsList=N;exports.ResultsLoading=v;exports.ResultsScrollArea=T;exports.ResultsScrollAreaCorner=w;exports.ResultsScrollAreaScrollbar=j;exports.ResultsScrollAreaThumb=A;exports.ResultsScrollAreaViewport=y;exports.ResultsTab=P;exports.ResultsTabList=k;exports.Root=m;exports.TaglineBrandName=H;exports.TaglineContainer=z;exports.TaglineLogo=O;exports.TaglineText=M;exports.Wrapper=o;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("@inkeep/cxkit-primitives"),s=require("../utils.cjs"),d=require("../ui/recipes/citation.cjs"),i=require("../ui/recipes/link.cjs"),c=require("../ui/recipes/scrollable.cjs"),n=require("./embedded-search/results-loading.cjs"),l=e=>a.jsx(r.EmbeddedSearchPrimitive.Provider,{...e}),o=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Wrapper,{className:s.cn("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),m=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Root,{className:s.cn("data-[hidden]:hidden flex flex-col w-full",e),...t}),b=r.EmbeddedSearchPrimitive.Content,h=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputGroup,{className:s.cn("flex items-center w-full px-5 pt-3 pb-1 gap-3",e),...t}),u=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputIcon,{className:s.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),p=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Input,{className:s.cn("min-h-[38px] overflow-hidden w-full resize-none","py-1.5 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),x=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Loading,{className:s.cn("animate-spin text-gray-400 dark:text-white-alpha-500",e),...t}),g=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITrigger,{className:s.cn(d.citation({slot:"root"}),"m-auto w-[calc(100%_-_theme(spacing.5))]","border-transparent dark:border-transparent","mb-3 py-0 h-11 cursor-pointer",e),...t}),S=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIcon,{className:s.cn("[grid-area:icon] h-5 w-5","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),E=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerLabel,{className:s.cn(d.citation({slot:"title"}),"font-normal",e),...t}),I=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicator,{className:s.cn(d.citation({slot:"indicator"}),e),...t}),R=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Results,{className:s.cn(c.scrollable({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","transition-all duration-300 ease-in-out pb-2",e),...t}),v=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsLoading,{className:s.cn("group mb-1 relative transition-all w-full h-full",e),children:a.jsx(n.ResultsLoading,{}),...t}),f=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsEmpty,{className:s.cn("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),k=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTabList,{className:s.cn("shrink-0 max-w-full","flex gap-3 px-5 py-1","overflow-x-auto [scrollbar-width:thin]",e),...t}),P=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTab,{className:s.cn("px-3 text-1sm font-medium rounded-full","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300",e),...t}),T=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollArea,{className:s.cn("overflow-hidden h-full",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out befter:from-white","befter:dark:from-gray-dark-950 befter:to-transparent","before:top-0 after:bottom-0","before:bg-gradient-to-b after:bg-gradient-to-t","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaViewport,{className:s.cn("h-full w-full rounded-[inherit]",e),...t}),j=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaScrollbar,{className:s.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),A=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaThumb,{className:s.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),w=r.EmbeddedSearchPrimitive.ResultsScrollAreaCorner,N=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsList,{className:s.cn("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-[1px]",e),...t}),L=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItem,{className:s.cn(d.citation({slot:"root"}),e),...t}),B=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbs,{className:s.cn(d.citation({slot:"breadcrumbs"}),e),...t}),C=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbIcon,{className:s.cn(d.citation({slot:"breadcrumbsIcon"}),e),...t}),_=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIcon,{className:s.cn(d.citation({slot:"icon"}),e),...t}),q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTitle,{className:s.cn(d.citation({slot:"title"}),e),...t}),D=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTag,{className:s.cn(d.citation({slot:"tag"}),e),...t}),F=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescription,{className:s.cn(d.citation({slot:"description"}),e),...t}),G=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescriptionPart,{className:s.cn(d.citation({slot:"descriptionPart"}),e),...t}),V=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIndicator,{className:s.cn(d.citation({slot:"indicator"}),e),...t}),W=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Footer,{className:s.cn("justify-self-end pt-1 pb-3 px-5","hidden data-[has-results]:flex",e),...t}),z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineContainer,{className:s.cn("flex items-center whitespace-nowrap",e),...t}),M=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineText,{className:s.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),O=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineLogo,{className:s.cn("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),H=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineBrandName,{className:s.cn(i.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t});exports.AskAITrigger=g;exports.AskAITriggerIcon=S;exports.AskAITriggerIndicator=I;exports.AskAITriggerLabel=E;exports.Content=b;exports.Footer=W;exports.Input=p;exports.InputGroup=h;exports.InputIcon=u;exports.Loading=x;exports.Provider=l;exports.Results=R;exports.ResultsEmpty=f;exports.ResultsItem=L;exports.ResultsItemBreadcrumbIcon=C;exports.ResultsItemBreadcrumbs=B;exports.ResultsItemDescription=F;exports.ResultsItemDescriptionPart=G;exports.ResultsItemIcon=_;exports.ResultsItemIndicator=V;exports.ResultsItemTag=D;exports.ResultsItemTitle=q;exports.ResultsList=N;exports.ResultsLoading=v;exports.ResultsScrollArea=T;exports.ResultsScrollAreaCorner=w;exports.ResultsScrollAreaScrollbar=j;exports.ResultsScrollAreaThumb=A;exports.ResultsScrollAreaViewport=y;exports.ResultsTab=P;exports.ResultsTabList=k;exports.Root=m;exports.TaglineBrandName=H;exports.TaglineContainer=z;exports.TaglineLogo=O;exports.TaglineText=M;exports.Wrapper=o;
@@ -31,7 +31,7 @@ const g = (e) => /* @__PURE__ */ s(a.Provider, { ...e }), x = ({ className: e, .
31
31
  }) => /* @__PURE__ */ s(
32
32
  a.InputGroup,
33
33
  {
34
- className: r("flex items-center w-full px-5 py-4 gap-3", e),
34
+ className: r("flex items-center w-full px-5 pt-3 pb-1 gap-3", e),
35
35
  ...t
36
36
  }
37
37
  ), S = ({
@@ -51,7 +51,7 @@ const g = (e) => /* @__PURE__ */ s(a.Provider, { ...e }), x = ({ className: e, .
51
51
  {
52
52
  className: r(
53
53
  "min-h-[38px] overflow-hidden w-full resize-none",
54
- "py-2 max-h-[10vh] placeholder:text-gray-500",
54
+ "py-1.5 max-h-[10vh] placeholder:text-gray-500",
55
55
  "w-full dark:placeholder:text-gray-dark-200",
56
56
  "border-none outline-none shadow-none bg-transparent",
57
57
  e
@@ -126,7 +126,7 @@ const g = (e) => /* @__PURE__ */ s(a.Provider, { ...e }), x = ({ className: e, .
126
126
  d({ section: "content" }),
127
127
  "h-0 max-h-full",
128
128
  "data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]",
129
- "transition-all duration-300 ease-in-out",
129
+ "transition-all duration-300 ease-in-out pb-2",
130
130
  e
131
131
  ),
132
132
  ...t
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("../utils.cjs"),c=require("@inkeep/cxkit-primitives"),i=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContainer,{className:t.cn("md:min-w-[min(320px,100%)] w-full h-full min-h-10",r),...e}),n=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarButton,{className:t.cn("rounded-md border px-4 min-w-0 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",r),...e}),h=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContentWrapper,{className:t.cn("flex items-center gap-2 min-w-0",r),...e}),s=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarText,{className:t.cn("text-md text-gray-500 dark:text-white-alpha-600",r),...e}),o=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarIcon,{className:t.cn("text-gray-500 dark:text-white-alpha-600",r),...e}),S=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdWrapper,{className:t.cn("text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",r),...e}),B=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdModifier,{className:t.cn("",r),...e}),m=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdShortcutKey,{className:t.cn("",r),...e});exports.SearchBarButton=n;exports.SearchBarContainer=i;exports.SearchBarContentWrapper=h;exports.SearchBarIcon=o;exports.SearchBarKbdModifier=B;exports.SearchBarKbdShortcutKey=m;exports.SearchBarKbdWrapper=S;exports.SearchBarText=s;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("../utils.cjs"),c=require("@inkeep/cxkit-primitives"),i=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContainer,{className:t.cn("md:min-w-[min(320px,100%)] w-full h-full min-h-9",r),...e}),n=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarButton,{className:t.cn("rounded-md border px-3 min-w-0 min-h-9 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",r),...e}),h=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContentWrapper,{className:t.cn("flex items-center gap-2 min-w-0",r),...e}),s=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarText,{className:t.cn("text-md text-gray-500 dark:text-white-alpha-600",r),...e}),o=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarIcon,{className:t.cn("text-gray-500 dark:text-white-alpha-600 text-xl",r),...e}),S=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdWrapper,{className:t.cn("text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",r),...e}),B=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdModifier,{className:t.cn("",r),...e}),m=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdShortcutKey,{className:t.cn("",r),...e});exports.SearchBarButton=n;exports.SearchBarContainer=i;exports.SearchBarContentWrapper=h;exports.SearchBarIcon=o;exports.SearchBarKbdModifier=B;exports.SearchBarKbdShortcutKey=m;exports.SearchBarKbdWrapper=S;exports.SearchBarText=s;
@@ -1,81 +1,81 @@
1
1
  "use client";
2
- import { jsx as e } from "react/jsx-runtime";
2
+ import { jsx as a } from "react/jsx-runtime";
3
3
  import { cn as t } from "../utils.js";
4
4
  import { SearchBarPrimitive as c } from "@inkeep/cxkit-primitives";
5
- const h = ({
5
+ const s = ({
6
6
  className: r,
7
- ...a
8
- }) => /* @__PURE__ */ e(
7
+ ...e
8
+ }) => /* @__PURE__ */ a(
9
9
  c.SearchBarContainer,
10
10
  {
11
- className: t("md:min-w-[min(320px,100%)] w-full h-full min-h-10", r),
12
- ...a
11
+ className: t("md:min-w-[min(320px,100%)] w-full h-full min-h-9", r),
12
+ ...e
13
13
  }
14
14
  ), i = ({
15
15
  className: r,
16
- ...a
17
- }) => /* @__PURE__ */ e(
16
+ ...e
17
+ }) => /* @__PURE__ */ a(
18
18
  c.SearchBarButton,
19
19
  {
20
20
  className: t(
21
- "rounded-md border px-4 min-w-0 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",
21
+ "rounded-md border px-3 min-w-0 min-h-9 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",
22
22
  r
23
23
  ),
24
- ...a
24
+ ...e
25
25
  }
26
26
  ), m = ({
27
27
  className: r,
28
- ...a
29
- }) => /* @__PURE__ */ e(
28
+ ...e
29
+ }) => /* @__PURE__ */ a(
30
30
  c.SearchBarContentWrapper,
31
31
  {
32
32
  className: t("flex items-center gap-2 min-w-0", r),
33
- ...a
33
+ ...e
34
34
  }
35
35
  ), l = ({
36
36
  className: r,
37
- ...a
38
- }) => /* @__PURE__ */ e(
37
+ ...e
38
+ }) => /* @__PURE__ */ a(
39
39
  c.SearchBarText,
40
40
  {
41
41
  className: t("text-md text-gray-500 dark:text-white-alpha-600", r),
42
- ...a
42
+ ...e
43
43
  }
44
44
  ), d = ({
45
45
  className: r,
46
- ...a
47
- }) => /* @__PURE__ */ e(
46
+ ...e
47
+ }) => /* @__PURE__ */ a(
48
48
  c.SearchBarIcon,
49
49
  {
50
- className: t("text-gray-500 dark:text-white-alpha-600", r),
51
- ...a
50
+ className: t("text-gray-500 dark:text-white-alpha-600 text-xl", r),
51
+ ...e
52
52
  }
53
53
  ), p = ({
54
54
  className: r,
55
- ...a
56
- }) => /* @__PURE__ */ e(
55
+ ...e
56
+ }) => /* @__PURE__ */ a(
57
57
  c.SearchBarKbdWrapper,
58
58
  {
59
59
  className: t(
60
60
  "text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",
61
61
  r
62
62
  ),
63
- ...a
63
+ ...e
64
64
  }
65
- ), B = ({
65
+ ), x = ({
66
66
  className: r,
67
- ...a
68
- }) => /* @__PURE__ */ e(c.SearchBarKbdModifier, { className: t("", r), ...a }), S = ({
67
+ ...e
68
+ }) => /* @__PURE__ */ a(c.SearchBarKbdModifier, { className: t("", r), ...e }), B = ({
69
69
  className: r,
70
- ...a
71
- }) => /* @__PURE__ */ e(c.SearchBarKbdShortcutKey, { className: t("", r), ...a });
70
+ ...e
71
+ }) => /* @__PURE__ */ a(c.SearchBarKbdShortcutKey, { className: t("", r), ...e });
72
72
  export {
73
73
  i as SearchBarButton,
74
- h as SearchBarContainer,
74
+ s as SearchBarContainer,
75
75
  m as SearchBarContentWrapper,
76
76
  d as SearchBarIcon,
77
- B as SearchBarKbdModifier,
78
- S as SearchBarKbdShortcutKey,
77
+ x as SearchBarKbdModifier,
78
+ B as SearchBarKbdShortcutKey,
79
79
  p as SearchBarKbdWrapper,
80
80
  l as SearchBarText
81
81
  };
@@ -813,9 +813,6 @@ video {
813
813
  .min-h-0 {
814
814
  min-height: 0px;
815
815
  }
816
- .min-h-10 {
817
- min-height: 2.5rem;
818
- }
819
816
  .min-h-20 {
820
817
  min-height: 5rem;
821
818
  }
@@ -1219,6 +1216,9 @@ video {
1219
1216
  .break-words {
1220
1217
  overflow-wrap: break-word;
1221
1218
  }
1219
+ .rounded {
1220
+ border-radius: 0.25rem;
1221
+ }
1222
1222
  .rounded-\\[0_0_6px_6px\\] {
1223
1223
  border-radius: 0 0 6px 6px;
1224
1224
  }
@@ -1294,9 +1294,6 @@ video {
1294
1294
  .bg-\\[--start-color\\] {
1295
1295
  background-color: var(--start-color);
1296
1296
  }
1297
- .bg-black-alpha-600 {
1298
- background-color: var(--ikp-color-black-alpha-600);
1299
- }
1300
1297
  .bg-gray-100 {
1301
1298
  background-color: var(--ikp-color-gray-100);
1302
1299
  }
@@ -1321,6 +1318,9 @@ video {
1321
1318
  .bg-inkeep-primary-text-bold {
1322
1319
  background-color: var(--ikp-color-inkeep-primary-text-bold);
1323
1320
  }
1321
+ .bg-overlay-light {
1322
+ background-color: var(--ikp-color-overlay-light);
1323
+ }
1324
1324
  .bg-transparent {
1325
1325
  background-color: transparent;
1326
1326
  }
@@ -1457,6 +1457,9 @@ video {
1457
1457
  .pb-1 {
1458
1458
  padding-bottom: 0.25rem;
1459
1459
  }
1460
+ .pb-2 {
1461
+ padding-bottom: 0.5rem;
1462
+ }
1460
1463
  .pb-2\\.5 {
1461
1464
  padding-bottom: 0.625rem;
1462
1465
  }
@@ -1499,6 +1502,9 @@ video {
1499
1502
  .pt-2 {
1500
1503
  padding-top: 0.5rem;
1501
1504
  }
1505
+ .pt-3 {
1506
+ padding-top: 0.75rem;
1507
+ }
1502
1508
  .pt-4 {
1503
1509
  padding-top: 1rem;
1504
1510
  }
@@ -2489,9 +2495,9 @@ img[data-part='icon'][data-type='custom'] {
2489
2495
  opacity: 0.5;
2490
2496
  }
2491
2497
 
2492
- .data-\\[active\\]\\:shadow-sm[data-active] {
2493
- --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2494
- --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
2498
+ .data-\\[active\\]\\:shadow[data-active] {
2499
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2500
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
2495
2501
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2496
2502
  }
2497
2503
 
@@ -2927,6 +2933,10 @@ img[data-part='icon'][data-type='custom'] {
2927
2933
  background-color: var(--ikp-color-inkeep-expanded-primary-300);
2928
2934
  }
2929
2935
 
2936
+ .dark\\:bg-overlay-dark:is([data-theme="dark"] *) {
2937
+ background-color: var(--ikp-color-overlay-dark);
2938
+ }
2939
+
2930
2940
  .dark\\:bg-transparent:is([data-theme="dark"] *) {
2931
2941
  background-color: transparent;
2932
2942
  }
@@ -814,9 +814,6 @@ video {
814
814
  .min-h-0 {
815
815
  min-height: 0px;
816
816
  }
817
- .min-h-10 {
818
- min-height: 2.5rem;
819
- }
820
817
  .min-h-20 {
821
818
  min-height: 5rem;
822
819
  }
@@ -1220,6 +1217,9 @@ video {
1220
1217
  .break-words {
1221
1218
  overflow-wrap: break-word;
1222
1219
  }
1220
+ .rounded {
1221
+ border-radius: 0.25rem;
1222
+ }
1223
1223
  .rounded-\\[0_0_6px_6px\\] {
1224
1224
  border-radius: 0 0 6px 6px;
1225
1225
  }
@@ -1295,9 +1295,6 @@ video {
1295
1295
  .bg-\\[--start-color\\] {
1296
1296
  background-color: var(--start-color);
1297
1297
  }
1298
- .bg-black-alpha-600 {
1299
- background-color: var(--ikp-color-black-alpha-600);
1300
- }
1301
1298
  .bg-gray-100 {
1302
1299
  background-color: var(--ikp-color-gray-100);
1303
1300
  }
@@ -1322,6 +1319,9 @@ video {
1322
1319
  .bg-inkeep-primary-text-bold {
1323
1320
  background-color: var(--ikp-color-inkeep-primary-text-bold);
1324
1321
  }
1322
+ .bg-overlay-light {
1323
+ background-color: var(--ikp-color-overlay-light);
1324
+ }
1325
1325
  .bg-transparent {
1326
1326
  background-color: transparent;
1327
1327
  }
@@ -1458,6 +1458,9 @@ video {
1458
1458
  .pb-1 {
1459
1459
  padding-bottom: 0.25rem;
1460
1460
  }
1461
+ .pb-2 {
1462
+ padding-bottom: 0.5rem;
1463
+ }
1461
1464
  .pb-2\\.5 {
1462
1465
  padding-bottom: 0.625rem;
1463
1466
  }
@@ -1500,6 +1503,9 @@ video {
1500
1503
  .pt-2 {
1501
1504
  padding-top: 0.5rem;
1502
1505
  }
1506
+ .pt-3 {
1507
+ padding-top: 0.75rem;
1508
+ }
1503
1509
  .pt-4 {
1504
1510
  padding-top: 1rem;
1505
1511
  }
@@ -2490,9 +2496,9 @@ img[data-part='icon'][data-type='custom'] {
2490
2496
  opacity: 0.5;
2491
2497
  }
2492
2498
 
2493
- .data-\\[active\\]\\:shadow-sm[data-active] {
2494
- --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2495
- --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
2499
+ .data-\\[active\\]\\:shadow[data-active] {
2500
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2501
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
2496
2502
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2497
2503
  }
2498
2504
 
@@ -2928,6 +2934,10 @@ img[data-part='icon'][data-type='custom'] {
2928
2934
  background-color: var(--ikp-color-inkeep-expanded-primary-300);
2929
2935
  }
2930
2936
 
2937
+ .dark\\:bg-overlay-dark:is([data-theme="dark"] *) {
2938
+ background-color: var(--ikp-color-overlay-dark);
2939
+ }
2940
+
2931
2941
  .dark\\:bg-transparent:is([data-theme="dark"] *) {
2932
2942
  background-color: transparent;
2933
2943
  }
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),t=require("./button.cjs"),a=e.cva("",{variants:{slot:{overlay:["fixed inset-0 bg-black-alpha-600","data-[state=closed]:hidden","data-[state=open]:animate-fade-in","backdrop-blur-sm overflow-y-auto","place-items-center grid z-overlay"],content:["fixed","top-[5%]","left-1/2","translate-x-[-50%]","z-overlay","flex flex-col","w-full","duration-200","text-inherit rounded-md","bg-white shadow-lg dark:bg-gray-dark-950","focus-visible:outline-none","focus:outline-none","data-[state=closed]:hidden","data-[state=closed]:animate-fade-out","data-[state=open]:animate-fade-in","data-[mobile]:inset-0","data-[mobile]:h-[unset]","data-[mobile]:w-[unset]","data-[mobile]:transform-none","data-[mobile]:rounded-none","[&[data-mobile]>div]:h-full","[&[data-mobile]>div]:max-h-dvh","[&[data-mobile]>div]:max-h-[unset]"],header:["px-6 py-4 text-xl font-semibold flex-0 flex flex-col"],close:[t.button({variant:"ghost",size:"md"}),"w-8 h-8 min-w-0","text-lg text-gray-500 dark:text-white-alpha-500","absolute top-2 right-3"],body:["px-6 py-2 flex-1"]}}});exports.modal=a;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),t=require("./button.cjs"),a=e.cva("",{variants:{slot:{overlay:["fixed inset-0","bg-overlay-light dark:bg-overlay-dark","data-[state=closed]:hidden","data-[state=open]:animate-fade-in","backdrop-blur-sm overflow-y-auto","place-items-center grid z-overlay"],content:["fixed","top-[5%]","left-1/2","translate-x-[-50%]","z-overlay","flex flex-col","w-full","duration-200","text-inherit rounded-md","bg-white shadow-lg dark:bg-gray-dark-950 dark:shadow-none","focus-visible:outline-none","focus:outline-none","data-[state=closed]:hidden","data-[state=closed]:animate-fade-out","data-[state=open]:animate-fade-in","data-[mobile]:inset-0","data-[mobile]:h-[unset]","data-[mobile]:w-[unset]","data-[mobile]:transform-none","data-[mobile]:rounded-none","[&[data-mobile]>div]:h-full","[&[data-mobile]>div]:max-h-dvh","[&[data-mobile]>div]:max-h-[unset]"],header:["px-6 py-4 text-xl font-semibold flex-0 flex flex-col"],close:[t.button({variant:"ghost",size:"md"}),"w-8 h-8 min-w-0","text-lg text-gray-500 dark:text-white-alpha-500","absolute top-2 right-3"],body:["px-6 py-2 flex-1"]}}});exports.modal=a;
@@ -1,11 +1,12 @@
1
1
  "use client";
2
2
  import { cva as e } from "class-variance-authority";
3
- import { button as t } from "./button.js";
3
+ import { button as a } from "./button.js";
4
4
  const d = e("", {
5
5
  variants: {
6
6
  slot: {
7
7
  overlay: [
8
- "fixed inset-0 bg-black-alpha-600",
8
+ "fixed inset-0",
9
+ "bg-overlay-light dark:bg-overlay-dark",
9
10
  "data-[state=closed]:hidden",
10
11
  "data-[state=open]:animate-fade-in",
11
12
  "backdrop-blur-sm overflow-y-auto",
@@ -24,7 +25,7 @@ const d = e("", {
24
25
  "duration-200",
25
26
  "text-inherit rounded-md",
26
27
  // 'px-6 py-2',
27
- "bg-white shadow-lg dark:bg-gray-dark-950",
28
+ "bg-white shadow-lg dark:bg-gray-dark-950 dark:shadow-none",
28
29
  "focus-visible:outline-none",
29
30
  "focus:outline-none",
30
31
  "data-[state=closed]:hidden",
@@ -44,7 +45,7 @@ const d = e("", {
44
45
  ],
45
46
  header: ["px-6 py-4 text-xl font-semibold flex-0 flex flex-col"],
46
47
  close: [
47
- t({ variant: "ghost", size: "md" }),
48
+ a({ variant: "ghost", size: "md" }),
48
49
  "w-8 h-8 min-w-0",
49
50
  "text-lg text-gray-500 dark:text-white-alpha-500",
50
51
  "absolute top-2 right-3"
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("class-variance-authority"),a=require("./button.cjs"),e=t.cva("",{variants:{slot:{root:["bg-gray-50 dark:bg-transparent","border border-transparent dark:border-gray-dark-700","rounded-md p-0.5 flex items-center"],button:["group",a.button({size:"xs"}),"rounded-md data-[active]:shadow-sm","bg-transparent data-[active]:bg-white","text-gray-600 data-[active]:text-gray-800","dark:text-white-alpha-600 dark:data-[active]:text-white-alpha-950","dark:data-[active]:bg-gray-dark-700 dark:shadow-none","hover:text-gray-800 hover:dark:text-white-alpha-950","focus-visible:ring-transparent"],icon:["mr-1 text-gray-500 data-[active]:text-gray-600","dark:text-white-alpha-500 dark:data-[active]:text-white-alpha-600","group-hover:text-gray-600 dark:group-hover:text-white-alpha-600"]}}});exports.widgetToggle=e;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("class-variance-authority"),a=require("./button.cjs"),e=t.cva("",{variants:{slot:{root:["bg-gray-50 dark:bg-transparent","border border-transparent dark:border-gray-dark-700","rounded-md p-0.5 flex items-center"],button:["group",a.button({size:"xs"}),"rounded data-[active]:shadow","bg-transparent data-[active]:bg-white","text-gray-600 data-[active]:text-gray-800","dark:text-white-alpha-600 dark:data-[active]:text-white-alpha-950","dark:data-[active]:bg-gray-dark-700 dark:shadow-none","hover:text-gray-800 hover:dark:text-white-alpha-950","focus-visible:ring-transparent"],icon:["mr-1 text-gray-500 data-[active]:text-gray-600","dark:text-white-alpha-500 dark:data-[active]:text-white-alpha-600","group-hover:text-gray-600 dark:group-hover:text-white-alpha-600"]}}});exports.widgetToggle=e;
@@ -12,7 +12,7 @@ const d = t("", {
12
12
  button: [
13
13
  "group",
14
14
  a({ size: "xs" }),
15
- "rounded-md data-[active]:shadow-sm",
15
+ "rounded data-[active]:shadow",
16
16
  "bg-transparent data-[active]:bg-white",
17
17
  "text-gray-600 data-[active]:text-gray-800",
18
18
  "dark:text-white-alpha-600 dark:data-[active]:text-white-alpha-950",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-styled",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -24,7 +24,7 @@
24
24
  "clsx": "2.1.1",
25
25
  "merge-anything": "6.0.2",
26
26
  "tailwind-merge": "2.6.0",
27
- "@inkeep/cxkit-primitives": "0.5.0"
27
+ "@inkeep/cxkit-primitives": "0.5.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@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-theme": "0.5.0",
47
- "@inkeep/cxkit-types": "0.5.0"
46
+ "@inkeep/cxkit-theme": "0.5.1",
47
+ "@inkeep/cxkit-types": "0.5.1"
48
48
  },
49
49
  "module": "dist/index.js",
50
50
  "types": "dist/index.d.ts",