@kopexa/assistant 0.0.1 → 0.0.3

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.
@@ -64,6 +64,7 @@ function MessageAction({
64
64
  tooltip,
65
65
  children,
66
66
  label,
67
+ className,
67
68
  variant = "ghost",
68
69
  size = "sm",
69
70
  ...props
@@ -73,6 +74,7 @@ function MessageAction({
73
74
  const button = /* @__PURE__ */ jsx(
74
75
  IconButton,
75
76
  {
77
+ className: cn(styles.action(), className),
76
78
  size,
77
79
  type: "button",
78
80
  variant,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // src/prompt-input.tsx
4
- import { Button } from "@kopexa/button";
4
+ import { IconButton } from "@kopexa/button";
5
5
  import { ArrowUp } from "@kopexa/icons";
6
6
  import { cn } from "@kopexa/shared-utils";
7
7
  import { promptInput } from "@kopexa/theme";
@@ -74,16 +74,15 @@ var PromptInput = forwardRef(
74
74
  value,
75
75
  onChange: handleTextareaChange,
76
76
  onKeyDown: handleKeyDown,
77
- disabled: disabled || isLoading,
77
+ disabled,
78
78
  rows: 1,
79
79
  "aria-label": placeholder
80
80
  }
81
81
  ),
82
82
  /* @__PURE__ */ jsx("div", { className: styles.actions(), children: /* @__PURE__ */ jsx(
83
- Button,
83
+ IconButton,
84
84
  {
85
85
  type: "submit",
86
- isIconOnly: true,
87
86
  disabled: !canSubmit,
88
87
  isLoading,
89
88
  className: styles.submitButton(),
package/dist/index.js CHANGED
@@ -184,6 +184,7 @@ function MessageAction({
184
184
  tooltip,
185
185
  children,
186
186
  label,
187
+ className,
187
188
  variant = "ghost",
188
189
  size = "sm",
189
190
  ...props
@@ -193,6 +194,7 @@ function MessageAction({
193
194
  const button = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
194
195
  import_button2.IconButton,
195
196
  {
197
+ className: (0, import_shared_utils2.cn)(styles2.action(), className),
196
198
  size,
197
199
  type: "button",
198
200
  variant,
@@ -474,16 +476,15 @@ var PromptInput = (0, import_react3.forwardRef)(
474
476
  value,
475
477
  onChange: handleTextareaChange,
476
478
  onKeyDown: handleKeyDown,
477
- disabled: disabled || isLoading,
479
+ disabled,
478
480
  rows: 1,
479
481
  "aria-label": placeholder
480
482
  }
481
483
  ),
482
484
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: styles3.actions(), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
483
- import_button3.Button,
485
+ import_button3.IconButton,
484
486
  {
485
487
  type: "submit",
486
- isIconOnly: true,
487
488
  disabled: !canSubmit,
488
489
  isLoading,
489
490
  className: styles3.submitButton(),
package/dist/index.mjs CHANGED
@@ -18,10 +18,10 @@ import {
18
18
  MessageContent,
19
19
  MessageResponse,
20
20
  MessageToolbar
21
- } from "./chunk-OLZG7MMU.mjs";
21
+ } from "./chunk-O2FEBHG6.mjs";
22
22
  import {
23
23
  PromptInput
24
- } from "./chunk-UIXG4SXX.mjs";
24
+ } from "./chunk-S5SWZRM3.mjs";
25
25
  export {
26
26
  Conversation,
27
27
  ConversationContent,
@@ -37,7 +37,7 @@ type MessageActionProps = MessageActionBaseProps & ({
37
37
  /** Accessible label (required if tooltip not provided) */
38
38
  label: string;
39
39
  });
40
- declare function MessageAction({ tooltip, children, label, variant, size, ...props }: MessageActionProps): react_jsx_runtime.JSX.Element;
40
+ declare function MessageAction({ tooltip, children, label, className, variant, size, ...props }: MessageActionProps): react_jsx_runtime.JSX.Element;
41
41
  declare namespace MessageAction {
42
42
  var displayName: string;
43
43
  }
package/dist/message.d.ts CHANGED
@@ -37,7 +37,7 @@ type MessageActionProps = MessageActionBaseProps & ({
37
37
  /** Accessible label (required if tooltip not provided) */
38
38
  label: string;
39
39
  });
40
- declare function MessageAction({ tooltip, children, label, variant, size, ...props }: MessageActionProps): react_jsx_runtime.JSX.Element;
40
+ declare function MessageAction({ tooltip, children, label, className, variant, size, ...props }: MessageActionProps): react_jsx_runtime.JSX.Element;
41
41
  declare namespace MessageAction {
42
42
  var displayName: string;
43
43
  }
package/dist/message.js CHANGED
@@ -92,6 +92,7 @@ function MessageAction({
92
92
  tooltip,
93
93
  children,
94
94
  label,
95
+ className,
95
96
  variant = "ghost",
96
97
  size = "sm",
97
98
  ...props
@@ -101,6 +102,7 @@ function MessageAction({
101
102
  const button = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
103
  import_button.IconButton,
103
104
  {
105
+ className: (0, import_shared_utils.cn)(styles.action(), className),
104
106
  size,
105
107
  type: "button",
106
108
  variant,
package/dist/message.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  MessageContent,
14
14
  MessageResponse,
15
15
  MessageToolbar
16
- } from "./chunk-OLZG7MMU.mjs";
16
+ } from "./chunk-O2FEBHG6.mjs";
17
17
  export {
18
18
  Message,
19
19
  MessageAction,
@@ -94,16 +94,15 @@ var PromptInput = (0, import_react.forwardRef)(
94
94
  value,
95
95
  onChange: handleTextareaChange,
96
96
  onKeyDown: handleKeyDown,
97
- disabled: disabled || isLoading,
97
+ disabled,
98
98
  rows: 1,
99
99
  "aria-label": placeholder
100
100
  }
101
101
  ),
102
102
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.actions(), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
103
- import_button.Button,
103
+ import_button.IconButton,
104
104
  {
105
105
  type: "submit",
106
- isIconOnly: true,
107
106
  disabled: !canSubmit,
108
107
  isLoading,
109
108
  className: styles.submitButton(),
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  import {
4
4
  PromptInput
5
- } from "./chunk-UIXG4SXX.mjs";
5
+ } from "./chunk-S5SWZRM3.mjs";
6
6
  export {
7
7
  PromptInput
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/assistant",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "AI assistant components for building conversational interfaces",
5
5
  "keywords": [
6
6
  "assistant",
@@ -30,15 +30,15 @@
30
30
  "peerDependencies": {
31
31
  "react": ">=19.0.0-rc.0",
32
32
  "react-dom": ">=19.0.0-rc.0",
33
- "@kopexa/theme": "17.16.0"
33
+ "@kopexa/theme": "17.17.2"
34
34
  },
35
35
  "dependencies": {
36
36
  "use-stick-to-bottom": "^1.1.2",
37
- "@kopexa/button": "17.0.29",
38
- "@kopexa/react-utils": "17.0.29",
39
- "@kopexa/tooltip": "17.1.1",
40
- "@kopexa/icons": "17.5.0",
41
- "@kopexa/shared-utils": "17.0.29"
37
+ "@kopexa/icons": "17.5.3",
38
+ "@kopexa/react-utils": "17.0.32",
39
+ "@kopexa/button": "17.0.32",
40
+ "@kopexa/shared-utils": "17.0.32",
41
+ "@kopexa/tooltip": "17.1.4"
42
42
  },
43
43
  "clean-package": "../../../clean-package.config.json",
44
44
  "module": "dist/index.mjs",