odaptos_design_system 2.0.58 → 2.0.60

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.
@@ -2,13 +2,14 @@ import React from 'react';
2
2
  interface CheckboxProps {
3
3
  label?: string;
4
4
  leftLabel?: string;
5
- onChange: () => void;
5
+ onChange: (e: any) => void;
6
6
  onBlur?: () => void;
7
7
  checked: boolean;
8
8
  disabled?: boolean;
9
9
  required?: boolean;
10
10
  className?: string;
11
11
  color?: string;
12
+ name?: string;
12
13
  }
13
- export declare const Checkbox: ({ label, leftLabel, onBlur, checked, disabled, onChange, required, className, color, }: CheckboxProps) => React.JSX.Element;
14
+ export declare const Checkbox: ({ label, leftLabel, onBlur, checked, disabled, onChange, required, className, color, name, }: CheckboxProps) => React.JSX.Element;
14
15
  export {};
@@ -11286,7 +11286,9 @@ function BpCheckbox({
11286
11286
  onChange,
11287
11287
  required,
11288
11288
  onBlur,
11289
- color = '#0077FF'
11289
+ color = '#0077FF',
11290
+ // Valeur par défaut
11291
+ name
11290
11292
  }) {
11291
11293
  const BpCheckedIcon = styles$15.styled(BpIcon)({
11292
11294
  backgroundColor: color,
@@ -11321,8 +11323,15 @@ function BpCheckbox({
11321
11323
  checked: checked,
11322
11324
  disabled: disabled,
11323
11325
  required: required,
11324
- onChange: onChange,
11325
- onBlur: onBlur
11326
+ onChange: e => onChange({
11327
+ ...e,
11328
+ target: {
11329
+ ...e.target,
11330
+ name: name || ''
11331
+ }
11332
+ }),
11333
+ onBlur: onBlur,
11334
+ name: name
11326
11335
  });
11327
11336
  }
11328
11337
  const Checkbox = ({
@@ -11334,7 +11343,8 @@ const Checkbox = ({
11334
11343
  onChange,
11335
11344
  required,
11336
11345
  className,
11337
- color
11346
+ color,
11347
+ name
11338
11348
  }) => {
11339
11349
  return /*#__PURE__*/React__default.createElement("div", {
11340
11350
  className: `${styles$d.checkboxContainer} ${disabled ? styles$d.disabled : ''} ${className}`,
@@ -11351,7 +11361,8 @@ const Checkbox = ({
11351
11361
  onChange: onChange,
11352
11362
  required: required,
11353
11363
  onBlur: onBlur,
11354
- color: color
11364
+ color: color,
11365
+ name: name
11355
11366
  }), label && /*#__PURE__*/React__default.createElement(Text, {
11356
11367
  text: label,
11357
11368
  size: "sm"
@@ -12589,7 +12600,7 @@ const ControlsBar = ({
12589
12600
  disabled: disabledEndInterview,
12590
12601
  onClick: () => endInterview(),
12591
12602
  icon: /*#__PURE__*/React__default.createElement(HangUpIcon, null)
12592
- }), !isInterviewer && screenShareText && enableScreenSharing && isModerated && /*#__PURE__*/React__default.createElement(InterviewButton, {
12603
+ }), !isInterviewer && screenShareText && enableScreenSharing && /*#__PURE__*/React__default.createElement(InterviewButton, {
12593
12604
  id: "odaptos_screen_share",
12594
12605
  text: screenShareText,
12595
12606
  variant: "screenshare",