@inkeep/cxkit-styled 0.5.85 → 0.5.87

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 e=require("react/jsx-runtime"),i=require("@inkeep/cxkit-primitives"),o=require("../utils.cjs"),r=({className:t,...a})=>e.jsx(i.SidebarChatPrimitive.Root,{...a,className:o.cn("w-[--width] h-full relative bg-white dark:bg-gray-dark-950","data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1","data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1","data-[state=open]:data-[position=left]:animate-sidebar-in-left","data-[state=open]:data-[position=right]:animate-sidebar-in-right","data-[state=closed]:data-[position=left]:animate-sidebar-out-left","data-[state=closed]:data-[position=right]:animate-sidebar-out-right",t)}),s=({className:t,...a})=>e.jsx(i.SidebarChatPrimitive.Resizer,{className:o.cn("px-1 bg-transparent opacity-0 hover:opacity-100","cursor-ew-resize","absolute top-0 bottom-0 z-[1]",'[[data-position="left"]>&]:-right-1','[[data-position="right"]>&]:-left-1','after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none","data-[state=open]:pointer-events-auto","transition-opacity duration-200",t),...a});exports.Resizer=s;exports.Root=r;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("@inkeep/cxkit-primitives"),r=require("../utils.cjs"),o=require("../ui/recipes/button.cjs"),s=require("../ui/recipes/scrollable.cjs"),n=({className:t,...e})=>a.jsx(i.SidebarChatPrimitive.Root,{...e,className:r.cn("w-[--width] h-full relative bg-white dark:bg-gray-dark-950","data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1","data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1","data-[state=open]:data-[position=left]:animate-sidebar-in-left","data-[state=open]:data-[position=right]:animate-sidebar-in-right","data-[state=closed]:data-[position=left]:animate-sidebar-out-left","data-[state=closed]:data-[position=right]:animate-sidebar-out-right",t)}),l=({className:t,...e})=>a.jsx(i.SidebarChatPrimitive.Resizer,{className:r.cn("px-1 bg-transparent opacity-0 hover:opacity-100","cursor-ew-resize","absolute top-0 bottom-0 z-[1]",'[[data-position="left"]>&]:-right-1','[[data-position="right"]>&]:-left-1','after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none","data-[state=open]:pointer-events-auto","transition-opacity duration-200",t),...e}),d=({className:t,...e})=>a.jsx(i.SidebarChatPrimitive.Header,{className:r.cn(s.scrollable({section:"header"}),"w-full flex flex-row items-center px-3 py-1.5","bg-white dark:bg-gray-dark-950","after:absolute","after:left-0","after:top-full","after:h-3","after:w-full","after:text-white","after:dark:text-gray-dark-950","after:bg-[linear-gradient(currentColor,_transparent)]","after:z-start",t),...e}),p=({className:t,...e})=>a.jsx(i.SidebarChatPrimitive.CloseButton,{className:r.cn(o.button({variant:"ghost",size:"xs"}),"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",t),...e});exports.CloseButton=p;exports.Header=d;exports.Resizer=l;exports.Root=n;
@@ -1,12 +1,14 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { SidebarChatPrimitive as i } from "@inkeep/cxkit-primitives";
3
+ import { SidebarChatPrimitive as r } from "@inkeep/cxkit-primitives";
4
4
  import { cn as o } from "../utils.js";
5
- const d = ({
5
+ import { button as i } from "../ui/recipes/button.js";
6
+ import { scrollable as s } from "../ui/recipes/scrollable.js";
7
+ const m = ({
6
8
  className: t,
7
9
  ...a
8
10
  }) => /* @__PURE__ */ e(
9
- i.Root,
11
+ r.Root,
10
12
  {
11
13
  ...a,
12
14
  className: o(
@@ -22,11 +24,11 @@ const d = ({
22
24
  t
23
25
  )
24
26
  }
25
- ), p = ({
27
+ ), h = ({
26
28
  className: t,
27
29
  ...a
28
30
  }) => /* @__PURE__ */ e(
29
- i.Resizer,
31
+ r.Resizer,
30
32
  {
31
33
  className: o(
32
34
  "px-1 bg-transparent opacity-0 hover:opacity-100",
@@ -43,8 +45,46 @@ const d = ({
43
45
  ),
44
46
  ...a
45
47
  }
48
+ ), g = ({
49
+ className: t,
50
+ ...a
51
+ }) => /* @__PURE__ */ e(
52
+ r.Header,
53
+ {
54
+ className: o(
55
+ s({ section: "header" }),
56
+ "w-full flex flex-row items-center px-3 py-1.5",
57
+ "bg-white dark:bg-gray-dark-950",
58
+ "after:absolute",
59
+ "after:left-0",
60
+ "after:top-full",
61
+ "after:h-3",
62
+ "after:w-full",
63
+ "after:text-white",
64
+ "after:dark:text-gray-dark-950",
65
+ "after:bg-[linear-gradient(currentColor,_transparent)]",
66
+ "after:z-start",
67
+ t
68
+ ),
69
+ ...a
70
+ }
71
+ ), b = ({
72
+ className: t,
73
+ ...a
74
+ }) => /* @__PURE__ */ e(
75
+ r.CloseButton,
76
+ {
77
+ className: o(
78
+ i({ variant: "ghost", size: "xs" }),
79
+ "relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",
80
+ t
81
+ ),
82
+ ...a
83
+ }
46
84
  );
47
85
  export {
48
- p as Resizer,
49
- d as Root
86
+ b as CloseButton,
87
+ g as Header,
88
+ h as Resizer,
89
+ m as Root
50
90
  };
package/dist/index.d.cts CHANGED
@@ -981,10 +981,16 @@ export declare type ShadowProps = React.ComponentPropsWithRef<typeof InkeepShado
981
981
  export declare namespace SidebarChat {
982
982
  export {
983
983
  SidebarChatRoot as Root,
984
- SidebarChatResizer as Resizer
984
+ SidebarChatResizer as Resizer,
985
+ SidebarChatCloseButton as CloseButton,
986
+ SidebarChatHeader as Header
985
987
  }
986
988
  }
987
989
 
990
+ declare const SidebarChatCloseButton: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.CloseButton>) => JSX.Element;
991
+
992
+ declare const SidebarChatHeader: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Header>) => JSX.Element;
993
+
988
994
  declare const SidebarChatResizer: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Resizer>) => JSX.Element;
989
995
 
990
996
  declare const SidebarChatRoot: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Root>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -981,10 +981,16 @@ export declare type ShadowProps = React.ComponentPropsWithRef<typeof InkeepShado
981
981
  export declare namespace SidebarChat {
982
982
  export {
983
983
  SidebarChatRoot as Root,
984
- SidebarChatResizer as Resizer
984
+ SidebarChatResizer as Resizer,
985
+ SidebarChatCloseButton as CloseButton,
986
+ SidebarChatHeader as Header
985
987
  }
986
988
  }
987
989
 
990
+ declare const SidebarChatCloseButton: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.CloseButton>) => JSX.Element;
991
+
992
+ declare const SidebarChatHeader: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Header>) => JSX.Element;
993
+
988
994
  declare const SidebarChatResizer: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Resizer>) => JSX.Element;
989
995
 
990
996
  declare const SidebarChatRoot: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Root>) => JSX.Element;
@@ -2177,6 +2177,11 @@ img[data-part='icon'][data-type='custom'] {
2177
2177
  bottom: 0px;
2178
2178
  }
2179
2179
 
2180
+ .after\\:left-0::after {
2181
+ content: var(--tw-content);
2182
+ left: 0px;
2183
+ }
2184
+
2180
2185
  .after\\:left-\\[1px\\]::after {
2181
2186
  content: var(--tw-content);
2182
2187
  left: 1px;
@@ -2192,11 +2197,26 @@ img[data-part='icon'][data-type='custom'] {
2192
2197
  top: 1px;
2193
2198
  }
2194
2199
 
2200
+ .after\\:top-full::after {
2201
+ content: var(--tw-content);
2202
+ top: 100%;
2203
+ }
2204
+
2195
2205
  .after\\:z-base::after {
2196
2206
  content: var(--tw-content);
2197
2207
  z-index: var(--ikp-z-index-base);
2198
2208
  }
2199
2209
 
2210
+ .after\\:z-start::after {
2211
+ content: var(--tw-content);
2212
+ z-index: var(--ikp-z-index-start);
2213
+ }
2214
+
2215
+ .after\\:h-3::after {
2216
+ content: var(--tw-content);
2217
+ height: 0.75rem;
2218
+ }
2219
+
2200
2220
  .after\\:h-\\[calc\\(100\\%-2px\\)\\]::after {
2201
2221
  content: var(--tw-content);
2202
2222
  height: calc(100% - 2px);
@@ -2212,6 +2232,11 @@ img[data-part='icon'][data-type='custom'] {
2212
2232
  width: calc(100% - 2px);
2213
2233
  }
2214
2234
 
2235
+ .after\\:w-full::after {
2236
+ content: var(--tw-content);
2237
+ width: 100%;
2238
+ }
2239
+
2215
2240
  .after\\:rounded-\\[5px\\]::after {
2216
2241
  content: var(--tw-content);
2217
2242
  border-radius: 5px;
@@ -2228,11 +2253,22 @@ img[data-part='icon'][data-type='custom'] {
2228
2253
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
2229
2254
  }
2230
2255
 
2256
+ .after\\:bg-\\[linear-gradient\\(currentColor\\2c _transparent\\)\\]::after {
2257
+ content: var(--tw-content);
2258
+ background-image: linear-gradient(currentColor, transparent);
2259
+ }
2260
+
2231
2261
  .after\\:bg-\\[linear-gradient\\(transparent\\2c _white\\)\\]::after {
2232
2262
  content: var(--tw-content);
2233
2263
  background-image: linear-gradient(transparent, white);
2234
2264
  }
2235
2265
 
2266
+ .after\\:text-white::after {
2267
+ content: var(--tw-content);
2268
+ --tw-text-opacity: 1;
2269
+ color: rgb(255 255 255 / var(--tw-text-opacity, 1));
2270
+ }
2271
+
2236
2272
  .after\\:content-\\[\\"\\"\\]::after {
2237
2273
  --tw-content: "";
2238
2274
  content: var(--tw-content);
@@ -3347,6 +3383,11 @@ img[data-part='icon'][data-type='custom'] {
3347
3383
  background-image: linear-gradient(transparent, var(--ikp-color-gray-dark-950));
3348
3384
  }
3349
3385
 
3386
+ .after\\:dark\\:text-gray-dark-950:is([data-theme="dark"] *)::after {
3387
+ content: var(--tw-content);
3388
+ color: var(--ikp-color-gray-dark-950);
3389
+ }
3390
+
3350
3391
  .dark\\:focus\\:bg-gray-dark-800:focus:is([data-theme="dark"] *) {
3351
3392
  background-color: var(--ikp-color-gray-dark-800);
3352
3393
  }
@@ -2178,6 +2178,11 @@ img[data-part='icon'][data-type='custom'] {
2178
2178
  bottom: 0px;
2179
2179
  }
2180
2180
 
2181
+ .after\\:left-0::after {
2182
+ content: var(--tw-content);
2183
+ left: 0px;
2184
+ }
2185
+
2181
2186
  .after\\:left-\\[1px\\]::after {
2182
2187
  content: var(--tw-content);
2183
2188
  left: 1px;
@@ -2193,11 +2198,26 @@ img[data-part='icon'][data-type='custom'] {
2193
2198
  top: 1px;
2194
2199
  }
2195
2200
 
2201
+ .after\\:top-full::after {
2202
+ content: var(--tw-content);
2203
+ top: 100%;
2204
+ }
2205
+
2196
2206
  .after\\:z-base::after {
2197
2207
  content: var(--tw-content);
2198
2208
  z-index: var(--ikp-z-index-base);
2199
2209
  }
2200
2210
 
2211
+ .after\\:z-start::after {
2212
+ content: var(--tw-content);
2213
+ z-index: var(--ikp-z-index-start);
2214
+ }
2215
+
2216
+ .after\\:h-3::after {
2217
+ content: var(--tw-content);
2218
+ height: 0.75rem;
2219
+ }
2220
+
2201
2221
  .after\\:h-\\[calc\\(100\\%-2px\\)\\]::after {
2202
2222
  content: var(--tw-content);
2203
2223
  height: calc(100% - 2px);
@@ -2213,6 +2233,11 @@ img[data-part='icon'][data-type='custom'] {
2213
2233
  width: calc(100% - 2px);
2214
2234
  }
2215
2235
 
2236
+ .after\\:w-full::after {
2237
+ content: var(--tw-content);
2238
+ width: 100%;
2239
+ }
2240
+
2216
2241
  .after\\:rounded-\\[5px\\]::after {
2217
2242
  content: var(--tw-content);
2218
2243
  border-radius: 5px;
@@ -2229,11 +2254,22 @@ img[data-part='icon'][data-type='custom'] {
2229
2254
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
2230
2255
  }
2231
2256
 
2257
+ .after\\:bg-\\[linear-gradient\\(currentColor\\2c _transparent\\)\\]::after {
2258
+ content: var(--tw-content);
2259
+ background-image: linear-gradient(currentColor, transparent);
2260
+ }
2261
+
2232
2262
  .after\\:bg-\\[linear-gradient\\(transparent\\2c _white\\)\\]::after {
2233
2263
  content: var(--tw-content);
2234
2264
  background-image: linear-gradient(transparent, white);
2235
2265
  }
2236
2266
 
2267
+ .after\\:text-white::after {
2268
+ content: var(--tw-content);
2269
+ --tw-text-opacity: 1;
2270
+ color: rgb(255 255 255 / var(--tw-text-opacity, 1));
2271
+ }
2272
+
2237
2273
  .after\\:content-\\[\\"\\"\\]::after {
2238
2274
  --tw-content: "";
2239
2275
  content: var(--tw-content);
@@ -3348,6 +3384,11 @@ img[data-part='icon'][data-type='custom'] {
3348
3384
  background-image: linear-gradient(transparent, var(--ikp-color-gray-dark-950));
3349
3385
  }
3350
3386
 
3387
+ .after\\:dark\\:text-gray-dark-950:is([data-theme="dark"] *)::after {
3388
+ content: var(--tw-content);
3389
+ color: var(--ikp-color-gray-dark-950);
3390
+ }
3391
+
3351
3392
  .dark\\:focus\\:bg-gray-dark-800:focus:is([data-theme="dark"] *) {
3352
3393
  background-color: var(--ikp-color-gray-dark-800);
3353
3394
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-styled",
3
- "version": "0.5.85",
3
+ "version": "0.5.87",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -39,7 +39,7 @@
39
39
  "clsx": "2.1.1",
40
40
  "merge-anything": "5.1.7",
41
41
  "tailwind-merge": "2.6.0",
42
- "@inkeep/cxkit-primitives": "0.5.85"
42
+ "@inkeep/cxkit-primitives": "0.5.87"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@biomejs/biome": "1.9.4",
@@ -59,8 +59,8 @@
59
59
  "typescript": "5.7.3",
60
60
  "vite": "5.4.11",
61
61
  "vite-plugin-dts": "4.4.0",
62
- "@inkeep/cxkit-theme": "0.5.85",
63
- "@inkeep/cxkit-types": "0.5.85"
62
+ "@inkeep/cxkit-theme": "0.5.87",
63
+ "@inkeep/cxkit-types": "0.5.87"
64
64
  },
65
65
  "module": "dist/index.js",
66
66
  "types": "dist/index.d.ts",