@cuekit-ai/react 1.6.6 → 1.6.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.
package/dist/index.js CHANGED
@@ -39779,8 +39779,9 @@ var ChatPopup = ({
39779
39779
  style: {
39780
39780
  padding: "10px 12px",
39781
39781
  borderRadius: 8,
39782
- border: "1px solid hsl(var(--voice-accent))",
39783
- background: "hsl(var(--voice-accent))",
39782
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`,
39783
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
39784
+ color: "#fff",
39784
39785
  fontSize: 12,
39785
39786
  fontWeight: 700,
39786
39787
  display: "flex",
@@ -39792,25 +39793,7 @@ var ChatPopup = ({
39792
39793
  "aria-label": muteState.isMuted ? "Unmute microphone" : "Mute microphone",
39793
39794
  title: muteState.isMuted ? "Unmute microphone" : "Mute microphone"
39794
39795
  },
39795
- muteState.isMuted ? /* @__PURE__ */ import_react14.default.createElement(
39796
- mic_off_default,
39797
- {
39798
- style: {
39799
- width: 16,
39800
- height: 16,
39801
- color: "hsl(var(--voice-user-text))"
39802
- }
39803
- }
39804
- ) : /* @__PURE__ */ import_react14.default.createElement(
39805
- mic_default,
39806
- {
39807
- style: {
39808
- width: 16,
39809
- height: 16,
39810
- color: "hsl(var(--voice-user-text))"
39811
- }
39812
- }
39813
- )
39796
+ muteState.isMuted ? /* @__PURE__ */ import_react14.default.createElement(mic_off_default, { style: { width: 16, height: 16, color: "#fff" } }) : /* @__PURE__ */ import_react14.default.createElement(mic_default, { style: { width: 16, height: 16, color: "#fff" } })
39814
39797
  ),
39815
39798
  isConnected2 && onEndCall && /* @__PURE__ */ import_react14.default.createElement(
39816
39799
  "button",
@@ -39820,9 +39803,9 @@ var ChatPopup = ({
39820
39803
  style: {
39821
39804
  padding: "10px 12px",
39822
39805
  borderRadius: 8,
39823
- border: "1px solid hsl(var(--voice-accent))",
39824
- background: "hsl(var(--voice-accent))",
39825
- color: "hsl(var(--voice-user-text))",
39806
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`,
39807
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
39808
+ color: "#fff",
39826
39809
  fontSize: 12,
39827
39810
  fontWeight: 700,
39828
39811
  display: "flex",
@@ -39831,7 +39814,7 @@ var ChatPopup = ({
39831
39814
  cursor: "pointer"
39832
39815
  }
39833
39816
  },
39834
- /* @__PURE__ */ import_react14.default.createElement(phone_off_default, { style: { width: 16, height: 16 } })
39817
+ /* @__PURE__ */ import_react14.default.createElement(phone_off_default, { style: { width: 16, height: 16, color: "#fff" } })
39835
39818
  )
39836
39819
  )
39837
39820
  )
@@ -42357,6 +42340,7 @@ var MicButton = ({
42357
42340
  };
42358
42341
  }
42359
42342
  };
42343
+ const micButtonGradient = currentTheme === "dark" ? "radial-gradient(circle at 50% 0%, #9a92f6, #5447cd)" : "radial-gradient(circle at 50% 0%, #9a92f6, #6257d9)";
42360
42344
  const buttonStyles = {
42361
42345
  container: {
42362
42346
  position: "relative",
@@ -42372,7 +42356,7 @@ var MicButton = ({
42372
42356
  width: `${buttonSize}px`,
42373
42357
  height: `${buttonSize}px`,
42374
42358
  borderRadius: "50%",
42375
- background: "var(--gradient-mic-button)",
42359
+ background: micButtonGradient,
42376
42360
  transition: "all 0.5s",
42377
42361
  border: "none",
42378
42362
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
@@ -42427,10 +42411,27 @@ var MicButton = ({
42427
42411
  "button",
42428
42412
  {
42429
42413
  className: "voice-chat-cancel-button",
42430
- onClick: () => setShowLanguageSelector(false)
42414
+ onClick: () => setShowLanguageSelector(false),
42415
+ style: {
42416
+ background: currentTheme === "dark" ? "hsl(248 32% 17.5%)" : "#f6f5ff",
42417
+ color: currentTheme === "dark" ? "hsl(252 20% 65%)" : "#6257d9",
42418
+ border: `1px solid ${currentTheme === "dark" ? "hsl(248 32% 22%)" : "#c0bbfb"}`
42419
+ }
42431
42420
  },
42432
42421
  "Cancel"
42433
- ), /* @__PURE__ */ import_react20.default.createElement("button", { className: "voice-chat-confirm-button", onClick: handleLanguageConfirm }, "Start Voice Chat"))) : /* @__PURE__ */ import_react20.default.createElement("div", { className: "voice-chat-main-button" }, showLanguageDropdown && /* @__PURE__ */ import_react20.default.createElement(
42422
+ ), /* @__PURE__ */ import_react20.default.createElement(
42423
+ "button",
42424
+ {
42425
+ className: "voice-chat-confirm-button",
42426
+ onClick: handleLanguageConfirm,
42427
+ style: {
42428
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
42429
+ color: "#fff",
42430
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`
42431
+ }
42432
+ },
42433
+ "Start Voice Chat"
42434
+ ))) : /* @__PURE__ */ import_react20.default.createElement("div", { className: "voice-chat-main-button" }, showLanguageDropdown && /* @__PURE__ */ import_react20.default.createElement(
42434
42435
  LanguageSelector,
42435
42436
  {
42436
42437
  selectedLanguage,
package/dist/index.mjs CHANGED
@@ -15811,8 +15811,9 @@ var ChatPopup = ({
15811
15811
  style: {
15812
15812
  padding: "10px 12px",
15813
15813
  borderRadius: 8,
15814
- border: "1px solid hsl(var(--voice-accent))",
15815
- background: "hsl(var(--voice-accent))",
15814
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`,
15815
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
15816
+ color: "#fff",
15816
15817
  fontSize: 12,
15817
15818
  fontWeight: 700,
15818
15819
  display: "flex",
@@ -15824,25 +15825,7 @@ var ChatPopup = ({
15824
15825
  "aria-label": muteState.isMuted ? "Unmute microphone" : "Mute microphone",
15825
15826
  title: muteState.isMuted ? "Unmute microphone" : "Mute microphone"
15826
15827
  },
15827
- muteState.isMuted ? /* @__PURE__ */ React10.createElement(
15828
- mic_off_default,
15829
- {
15830
- style: {
15831
- width: 16,
15832
- height: 16,
15833
- color: "hsl(var(--voice-user-text))"
15834
- }
15835
- }
15836
- ) : /* @__PURE__ */ React10.createElement(
15837
- mic_default,
15838
- {
15839
- style: {
15840
- width: 16,
15841
- height: 16,
15842
- color: "hsl(var(--voice-user-text))"
15843
- }
15844
- }
15845
- )
15828
+ muteState.isMuted ? /* @__PURE__ */ React10.createElement(mic_off_default, { style: { width: 16, height: 16, color: "#fff" } }) : /* @__PURE__ */ React10.createElement(mic_default, { style: { width: 16, height: 16, color: "#fff" } })
15846
15829
  ),
15847
15830
  isConnected && onEndCall && /* @__PURE__ */ React10.createElement(
15848
15831
  "button",
@@ -15852,9 +15835,9 @@ var ChatPopup = ({
15852
15835
  style: {
15853
15836
  padding: "10px 12px",
15854
15837
  borderRadius: 8,
15855
- border: "1px solid hsl(var(--voice-accent))",
15856
- background: "hsl(var(--voice-accent))",
15857
- color: "hsl(var(--voice-user-text))",
15838
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`,
15839
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
15840
+ color: "#fff",
15858
15841
  fontSize: 12,
15859
15842
  fontWeight: 700,
15860
15843
  display: "flex",
@@ -15863,7 +15846,7 @@ var ChatPopup = ({
15863
15846
  cursor: "pointer"
15864
15847
  }
15865
15848
  },
15866
- /* @__PURE__ */ React10.createElement(phone_off_default, { style: { width: 16, height: 16 } })
15849
+ /* @__PURE__ */ React10.createElement(phone_off_default, { style: { width: 16, height: 16, color: "#fff" } })
15867
15850
  )
15868
15851
  )
15869
15852
  )
@@ -18380,6 +18363,7 @@ var MicButton = ({
18380
18363
  };
18381
18364
  }
18382
18365
  };
18366
+ const micButtonGradient = currentTheme === "dark" ? "radial-gradient(circle at 50% 0%, #9a92f6, #5447cd)" : "radial-gradient(circle at 50% 0%, #9a92f6, #6257d9)";
18383
18367
  const buttonStyles = {
18384
18368
  container: {
18385
18369
  position: "relative",
@@ -18395,7 +18379,7 @@ var MicButton = ({
18395
18379
  width: `${buttonSize}px`,
18396
18380
  height: `${buttonSize}px`,
18397
18381
  borderRadius: "50%",
18398
- background: "var(--gradient-mic-button)",
18382
+ background: micButtonGradient,
18399
18383
  transition: "all 0.5s",
18400
18384
  border: "none",
18401
18385
  boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
@@ -18450,10 +18434,27 @@ var MicButton = ({
18450
18434
  "button",
18451
18435
  {
18452
18436
  className: "voice-chat-cancel-button",
18453
- onClick: () => setShowLanguageSelector(false)
18437
+ onClick: () => setShowLanguageSelector(false),
18438
+ style: {
18439
+ background: currentTheme === "dark" ? "hsl(248 32% 17.5%)" : "#f6f5ff",
18440
+ color: currentTheme === "dark" ? "hsl(252 20% 65%)" : "#6257d9",
18441
+ border: `1px solid ${currentTheme === "dark" ? "hsl(248 32% 22%)" : "#c0bbfb"}`
18442
+ }
18454
18443
  },
18455
18444
  "Cancel"
18456
- ), /* @__PURE__ */ React15.createElement("button", { className: "voice-chat-confirm-button", onClick: handleLanguageConfirm }, "Start Voice Chat"))) : /* @__PURE__ */ React15.createElement("div", { className: "voice-chat-main-button" }, showLanguageDropdown && /* @__PURE__ */ React15.createElement(
18445
+ ), /* @__PURE__ */ React15.createElement(
18446
+ "button",
18447
+ {
18448
+ className: "voice-chat-confirm-button",
18449
+ onClick: handleLanguageConfirm,
18450
+ style: {
18451
+ background: currentTheme === "dark" ? "#8177ed" : "#6257d9",
18452
+ color: "#fff",
18453
+ border: `1px solid ${currentTheme === "dark" ? "#8177ed" : "#6257d9"}`
18454
+ }
18455
+ },
18456
+ "Start Voice Chat"
18457
+ ))) : /* @__PURE__ */ React15.createElement("div", { className: "voice-chat-main-button" }, showLanguageDropdown && /* @__PURE__ */ React15.createElement(
18457
18458
  LanguageSelector,
18458
18459
  {
18459
18460
  selectedLanguage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuekit-ai/react",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {