odaptos_design_system 1.4.133 → 1.4.135

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,8 +1,8 @@
1
1
  import React from 'react';
2
2
  interface RowCellProps {
3
- prefix: string;
4
- value: string;
5
- sufix: string;
3
+ prefix?: string;
4
+ value?: string;
5
+ sufix?: string;
6
6
  }
7
7
  export declare const RowCell: ({ prefix, value, sufix }: RowCellProps) => React.JSX.Element;
8
8
  export {};
@@ -8893,8 +8893,8 @@ const RowCell = ({
8893
8893
  }) => {
8894
8894
  const yesValues = ['yes', 'oui', 'sí', 'si', 'ja'];
8895
8895
  const noValues = ['no', 'non', 'nein', 'não', 'nao'];
8896
- const showCheckmark = yesValues.includes(value.toLowerCase());
8897
- const hideCheckmark = noValues.includes(value.toLowerCase());
8896
+ const showCheckmark = value ? yesValues.includes(value.toLowerCase()) : false;
8897
+ const hideCheckmark = value ? noValues.includes(value.toLowerCase()) : false;
8898
8898
  return /*#__PURE__*/React__default.createElement("div", {
8899
8899
  className: styles$a.rowCell
8900
8900
  }, prefix && /*#__PURE__*/React__default.createElement(Text, {
@@ -8903,7 +8903,7 @@ const RowCell = ({
8903
8903
  text: prefix
8904
8904
  }), showCheckmark ? /*#__PURE__*/React__default.createElement(CheckedIcon, {
8905
8905
  className: styles$a.checkedIcon
8906
- }) : hideCheckmark ? null : /*#__PURE__*/React__default.createElement(Text, {
8906
+ }) : hideCheckmark || !value ? null : /*#__PURE__*/React__default.createElement(Text, {
8907
8907
  size: "sm",
8908
8908
  weight: "bold",
8909
8909
  text: value
@@ -9070,12 +9070,17 @@ const FeatureRow = ({
9070
9070
  variant: "tertiary",
9071
9071
  size: "xxs",
9072
9072
  className: styles$a.tooltipButton
9073
- }))), tierList.map((tier, index) => /*#__PURE__*/React__default.createElement(RowCell, {
9074
- key: `${feature.Name}-${index}`,
9075
- prefix: feature[tier].Prefix,
9076
- value: feature[tier].Value,
9077
- sufix: feature[tier].Sufix
9078
- })));
9073
+ }))), tierList.map((tier, index) => {
9074
+ const tierPrefix = feature[tier] ? feature[tier].Prefix : undefined;
9075
+ const tierValue = feature[tier] ? feature[tier].Value : undefined;
9076
+ const tierSufix = feature[tier] ? feature[tier].Sufix : undefined;
9077
+ return /*#__PURE__*/React__default.createElement(RowCell, {
9078
+ key: `${feature.Name}-${index}`,
9079
+ prefix: tierPrefix,
9080
+ value: tierValue,
9081
+ sufix: tierSufix
9082
+ });
9083
+ }));
9079
9084
  };
9080
9085
 
9081
9086
  const SectionTitleRow = ({
@@ -9219,7 +9224,9 @@ const Chat = ({
9219
9224
  className: `${styles$d.tasks_container} ${styles$d.no_scrollbar}`
9220
9225
  }, isTaskMode ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, tasks.map(task => {
9221
9226
  if (task.type === 'question' || task.type === 'task' || task.type === 'scenario' && isInterviewer) {
9222
- const realTask = JSON.parse(task.body);
9227
+ console.log('isInterviewer', isInterviewer);
9228
+ console.log('task', task);
9229
+ const realTask = !isInterviewer ? task : JSON.parse(task.body);
9223
9230
  return /*#__PURE__*/React__default.createElement(Task, {
9224
9231
  key: realTask._id,
9225
9232
  taskNumber: `${realTask.type === 'task' ? 'Task' : realTask.type === 'question' ? 'Question' : 'Scenario'} #${realTask.index}`,
@@ -9235,7 +9242,7 @@ const Chat = ({
9235
9242
  isInterviewer: isInterviewer
9236
9243
  });
9237
9244
  } else if (task.type === 'scenario' && !isInterviewer) {
9238
- const scenario = JSON.parse(task.body);
9245
+ const scenario = isInterviewer ? task : JSON.parse(task.body);
9239
9246
  return /*#__PURE__*/React__default.createElement(Scenario, {
9240
9247
  title: scenario.name,
9241
9248
  description: scenario.description ?? '',
@@ -9351,7 +9358,9 @@ const CircledIconButton = ({
9351
9358
  return /*#__PURE__*/React__default.createElement("button", Object.assign({
9352
9359
  className: `${styles$f.circle_icon_button} ${className ?? ''} ${isActive ? styles$f.active : ''}`
9353
9360
  }, props), icon ?? /*#__PURE__*/React__default.createElement(MeetingIcon, null), isNotif && /*#__PURE__*/React__default.createElement(NotifAlertIcon, {
9354
- className: styles$f.notif_icon
9361
+ className: styles$f.notif_icon,
9362
+ stroke: colors.black,
9363
+ fill: colors.red_500
9355
9364
  }));
9356
9365
  };
9357
9366
 
@@ -9504,7 +9513,9 @@ const InterviewButton = ({
9504
9513
  size: "base",
9505
9514
  weight: "semi-bold"
9506
9515
  }), isNotif && /*#__PURE__*/React__default.createElement(NotifAlertIcon, {
9507
- className: styles$i.notif_icon
9516
+ className: styles$i.notif_icon,
9517
+ stroke: colors.black,
9518
+ fill: colors.red_500
9508
9519
  }));
9509
9520
  };
9510
9521