@2uinc/frontend-component-xpert-chatbot 1.40.6-beta.6 → 1.40.6-beta.7

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.
@@ -4215,63 +4215,73 @@ function Ni({
4215
4215
  120
4216
4216
  )}px`);
4217
4217
  };
4218
- return /* @__PURE__ */ _.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: n }, children: [
4219
- /* @__PURE__ */ _.jsx(
4220
- "textarea",
4221
- {
4222
- "data-testid": "ConversationInput",
4223
- disabled: F,
4224
- value: g,
4225
- ref: r,
4226
- onInput: w,
4227
- onChange: P,
4228
- placeholder: "Write a message",
4229
- cols: "5",
4230
- rows: "1",
4231
- maxLength: u?.input?.maxLength ?? 5e3,
4232
- onKeyDown: x,
4233
- style: {
4234
- margin: "0",
4235
- borderRadius: "1rem",
4236
- boxSizing: "border-box",
4237
- fontFamily: "inherit",
4238
- fontSize: "1rem",
4239
- // required to avoid IOS mobile scaling when input is focused
4240
- fontWeight: "300",
4241
- lineHeight: "1.56rem",
4242
- minHeight: "3.25rem",
4243
- padding: "12.5px 45px 12.5px 12.5px",
4244
- resize: "none",
4245
- width: "100%",
4246
- border: `2px solid ${s}`
4247
- }
4248
- }
4249
- ),
4250
- T && c || p || m ? /* @__PURE__ */ _.jsx(
4251
- "button",
4252
- {
4253
- "data-testid": "Stop",
4254
- className: "xpert-chatbot-popup__input--stop-btn",
4255
- onClick: (V) => {
4256
- V.preventDefault(), l();
4257
- },
4258
- "aria-label": "Stop streaming",
4259
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4260
- }
4261
- ) : /* @__PURE__ */ _.jsx(
4262
- "button",
4263
- {
4264
- "data-testid": "Send",
4265
- disabled: F,
4266
- className: "xpert-chatbot-popup__input--send-btn",
4267
- onClick: (V) => {
4268
- V.preventDefault(), t(g), X();
4269
- },
4270
- "aria-label": "Send message",
4271
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4272
- }
4273
- )
4274
- ] });
4218
+ return /* @__PURE__ */ _.jsxs(
4219
+ "div",
4220
+ {
4221
+ className: "xpert-chatbot-popup__input--group",
4222
+ style: {
4223
+ margin: n,
4224
+ border: `2px solid ${s}`,
4225
+ borderRadius: "1rem"
4226
+ },
4227
+ children: [
4228
+ /* @__PURE__ */ _.jsx(
4229
+ "textarea",
4230
+ {
4231
+ "data-testid": "ConversationInput",
4232
+ disabled: F,
4233
+ value: g,
4234
+ ref: r,
4235
+ onInput: w,
4236
+ onChange: P,
4237
+ placeholder: "Write a message",
4238
+ cols: "5",
4239
+ rows: "1",
4240
+ maxLength: u?.input?.maxLength ?? 5e3,
4241
+ onKeyDown: x,
4242
+ style: {
4243
+ margin: "0",
4244
+ boxSizing: "border-box",
4245
+ fontFamily: "inherit",
4246
+ fontSize: "1rem",
4247
+ // required to avoid IOS mobile scaling when input is focused
4248
+ fontWeight: "300",
4249
+ lineHeight: "1.56rem",
4250
+ minHeight: "3.25rem",
4251
+ padding: "12.5px 45px 12.5px 12.5px",
4252
+ resize: "none",
4253
+ width: "100%",
4254
+ border: `2px solid ${s}`
4255
+ }
4256
+ }
4257
+ ),
4258
+ T && c || p || m ? /* @__PURE__ */ _.jsx(
4259
+ "button",
4260
+ {
4261
+ "data-testid": "Stop",
4262
+ className: "xpert-chatbot-popup__input--stop-btn",
4263
+ onClick: (V) => {
4264
+ V.preventDefault(), l();
4265
+ },
4266
+ "aria-label": "Stop streaming",
4267
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4268
+ }
4269
+ ) : /* @__PURE__ */ _.jsx(
4270
+ "button",
4271
+ {
4272
+ "data-testid": "Send",
4273
+ disabled: F,
4274
+ className: "xpert-chatbot-popup__input--send-btn",
4275
+ onClick: (V) => {
4276
+ V.preventDefault(), t(g), X();
4277
+ },
4278
+ "aria-label": "Send message",
4279
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4280
+ }
4281
+ )
4282
+ ]
4283
+ }
4284
+ );
4275
4285
  }
4276
4286
  Ni.propTypes = {
4277
4287
  containerStyle: A.shape(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.40.6-beta.6",
3
+ "version": "1.40.6-beta.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"