dmed-voice-assistant 1.2.11 → 1.2.12

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
@@ -21,6 +21,7 @@ const VoiceAssistant = _ref => {
21
21
  isOnlyRecognitionMode = false,
22
22
  recordListValue = [],
23
23
  recognitionListValue = [],
24
+ recordStyle = {},
24
25
  onNewRecordEvent,
25
26
  onRecordDataChange,
26
27
  onNewRecognitionEvent,
@@ -32,7 +33,6 @@ const VoiceAssistant = _ref => {
32
33
  } = _ref;
33
34
  const [mode, setMode] = (0, _react.useState)(isOnlyRecorderMode ? "recorder" : isOnlyRecognitionMode ? "recognition" : "recorder");
34
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
35
- className: "dmed-voice-assistant-class",
36
36
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_LocalizationProvider.LocalizationProvider, {
37
37
  dateAdapter: _AdapterDayjs.AdapterDayjs,
38
38
  children: [mode === 'recorder' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recorder.default, {
@@ -40,6 +40,7 @@ const VoiceAssistant = _ref => {
40
40
  setMode: setMode,
41
41
  isOnlyRecorderMode: isOnlyRecorderMode,
42
42
  recordHistoryList: recordListValue,
43
+ recordStyle: recordStyle,
43
44
  onNewRecordEvent: onNewRecordEvent,
44
45
  onRecordDataChange: onRecordDataChange
45
46
  }), mode === 'recognition' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recognition.default, {
@@ -339,7 +339,7 @@ const Recognition = _ref4 => {
339
339
  }
340
340
  }, [result]);
341
341
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
342
- className: "bg-white rounded-[5px] p-[20px] w-[440px]",
342
+ className: "bg-white rounded-[5px] p-[20px] w-[440px] dmed-voice-assistant-class",
343
343
  sx: {
344
344
  border: '1px solid #D8DEE4'
345
345
  },
package/dist/recorder.js CHANGED
@@ -48,6 +48,7 @@ const RecorderBox = _ref => {
48
48
  mode = 'recorder',
49
49
  recordHistoryList,
50
50
  isOnlyRecorderMode,
51
+ recordStyle,
51
52
  setMode,
52
53
  onNewRecordEvent,
53
54
  onRecordDataChange
@@ -197,6 +198,7 @@ const RecorderBox = _ref => {
197
198
  }, [recordHistoryList]);
198
199
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
199
200
  className: "bg-[#0B0B0B] rounded-[5px] border p-[20px] w-[850px]",
201
+ sx: recordStyle,
200
202
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Grid.default, {
201
203
  container: true,
202
204
  spacing: 2,
@@ -205,7 +207,7 @@ const RecorderBox = _ref => {
205
207
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
206
208
  className: "flex items-center justify-between",
207
209
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
208
- className: "!text-[24px] !font-[600]",
210
+ className: "!text-[24px] !font-[600] ![font-family:'Afacad']",
209
211
  color: "#EAE5DC",
210
212
  children: "Voice assistant"
211
213
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
@@ -217,7 +219,7 @@ const RecorderBox = _ref => {
217
219
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
218
220
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.MicIcon, {})
219
221
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
220
- className: "!font-600 !text-[14px]",
222
+ className: "!font-600 !text-[14px] ![font-family:'Afacad']",
221
223
  color: "#EAE5DC",
222
224
  children: "Recorder mode"
223
225
  })]
@@ -237,6 +239,9 @@ const RecorderBox = _ref => {
237
239
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.StartIcon, {})
238
240
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
239
241
  className: "!font-400 !text-[16px]",
242
+ style: {
243
+ fontFamily: "Reddit Sans"
244
+ },
240
245
  color: "#EAE5DC",
241
246
  children: "Start"
242
247
  })]
@@ -254,6 +259,9 @@ const RecorderBox = _ref => {
254
259
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
255
260
  className: "!font-400 !text-[14px]",
256
261
  color: "#EAE5DC",
262
+ style: {
263
+ fontFamily: "Reddit Sans"
264
+ },
257
265
  children: "Stop"
258
266
  })]
259
267
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
@@ -270,6 +278,9 @@ const RecorderBox = _ref => {
270
278
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
271
279
  className: "!font-400 !text-[14px]",
272
280
  color: "#EAE5DC",
281
+ style: {
282
+ fontFamily: "Reddit Sans"
283
+ },
273
284
  children: "Setup"
274
285
  })]
275
286
  })]
@@ -285,7 +296,7 @@ const RecorderBox = _ref => {
285
296
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
286
297
  children: !isStartedRecord ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.StopIcon, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.RedStopIcon, {})
287
298
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
288
- className: "!font-[600] !text-[14px]",
299
+ className: "!font-[600] !text-[14px] ![font-family:'Afacad']",
289
300
  color: "#A3DBFE",
290
301
  children: !isStartedRecord ? 'STOP' : 'REC'
291
302
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dmed-voice-assistant",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"