carbon-react 153.7.0 → 153.7.1

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.
Files changed (71) hide show
  1. package/esm/__internal__/checkable-input/checkable-input.component.d.ts +4 -1
  2. package/esm/__internal__/fieldset/fieldset.component.d.ts +4 -1
  3. package/esm/__internal__/fieldset/fieldset.style.d.ts +4 -0
  4. package/esm/__internal__/form-field/form-field.component.d.ts +4 -1
  5. package/esm/components/button/button.component.js +9 -1
  6. package/esm/components/checkbox/checkbox-group/checkbox-group.component.d.ts +4 -1
  7. package/esm/components/checkbox/checkbox-group/checkbox-group.component.js +6 -0
  8. package/esm/components/date-range/date-range.component.d.ts +4 -1
  9. package/esm/components/date-range/date-range.component.js +6 -0
  10. package/esm/components/fieldset/fieldset.component.d.ts +4 -1
  11. package/esm/components/fieldset/fieldset.component.js +6 -0
  12. package/esm/components/fieldset/fieldset.style.d.ts +4 -1
  13. package/esm/components/file-input/file-input.component.d.ts +4 -1
  14. package/esm/components/file-input/file-input.component.js +6 -0
  15. package/esm/components/inline-inputs/inline-inputs.component.d.ts +4 -1
  16. package/esm/components/inline-inputs/inline-inputs.component.js +6 -0
  17. package/esm/components/numeral-date/numeral-date.component.d.ts +4 -1
  18. package/esm/components/numeral-date/numeral-date.component.js +5 -0
  19. package/esm/components/radio-button/radio-button-group/radio-button-group.component.d.ts +4 -1
  20. package/esm/components/radio-button/radio-button-group/radio-button-group.component.js +5 -0
  21. package/esm/components/select/__internal__/select-textbox/select-textbox.component.d.ts +4 -1
  22. package/esm/components/select/filterable-select/filterable-select.component.d.ts +4 -1
  23. package/esm/components/select/filterable-select/filterable-select.component.js +5 -0
  24. package/esm/components/select/multi-select/multi-select.component.d.ts +4 -1
  25. package/esm/components/select/multi-select/multi-select.component.js +5 -0
  26. package/esm/components/select/simple-select/simple-select.component.d.ts +4 -1
  27. package/esm/components/select/simple-select/simple-select.component.js +5 -0
  28. package/esm/components/text-editor/text-editor.component.d.ts +4 -1
  29. package/esm/components/text-editor/text-editor.component.js +6 -0
  30. package/esm/components/textarea/textarea.component.d.ts +4 -1
  31. package/esm/components/textarea/textarea.component.js +6 -1
  32. package/esm/components/textbox/textbox.component.d.ts +4 -1
  33. package/esm/components/textbox/textbox.component.js +6 -1
  34. package/esm/components/time/time.component.d.ts +4 -1
  35. package/esm/components/time/time.component.js +6 -0
  36. package/lib/__internal__/checkable-input/checkable-input.component.d.ts +4 -1
  37. package/lib/__internal__/fieldset/fieldset.component.d.ts +4 -1
  38. package/lib/__internal__/fieldset/fieldset.style.d.ts +4 -0
  39. package/lib/__internal__/form-field/form-field.component.d.ts +4 -1
  40. package/lib/components/button/button.component.js +9 -1
  41. package/lib/components/checkbox/checkbox-group/checkbox-group.component.d.ts +4 -1
  42. package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +6 -0
  43. package/lib/components/date-range/date-range.component.d.ts +4 -1
  44. package/lib/components/date-range/date-range.component.js +6 -0
  45. package/lib/components/fieldset/fieldset.component.d.ts +4 -1
  46. package/lib/components/fieldset/fieldset.component.js +6 -0
  47. package/lib/components/fieldset/fieldset.style.d.ts +4 -1
  48. package/lib/components/file-input/file-input.component.d.ts +4 -1
  49. package/lib/components/file-input/file-input.component.js +6 -0
  50. package/lib/components/inline-inputs/inline-inputs.component.d.ts +4 -1
  51. package/lib/components/inline-inputs/inline-inputs.component.js +6 -0
  52. package/lib/components/numeral-date/numeral-date.component.d.ts +4 -1
  53. package/lib/components/numeral-date/numeral-date.component.js +5 -0
  54. package/lib/components/radio-button/radio-button-group/radio-button-group.component.d.ts +4 -1
  55. package/lib/components/radio-button/radio-button-group/radio-button-group.component.js +5 -0
  56. package/lib/components/select/__internal__/select-textbox/select-textbox.component.d.ts +4 -1
  57. package/lib/components/select/filterable-select/filterable-select.component.d.ts +4 -1
  58. package/lib/components/select/filterable-select/filterable-select.component.js +5 -0
  59. package/lib/components/select/multi-select/multi-select.component.d.ts +4 -1
  60. package/lib/components/select/multi-select/multi-select.component.js +5 -0
  61. package/lib/components/select/simple-select/simple-select.component.d.ts +4 -1
  62. package/lib/components/select/simple-select/simple-select.component.js +5 -0
  63. package/lib/components/text-editor/text-editor.component.d.ts +4 -1
  64. package/lib/components/text-editor/text-editor.component.js +6 -0
  65. package/lib/components/textarea/textarea.component.d.ts +4 -1
  66. package/lib/components/textarea/textarea.component.js +6 -1
  67. package/lib/components/textbox/textbox.component.d.ts +4 -1
  68. package/lib/components/textbox/textbox.component.js +6 -1
  69. package/lib/components/time/time.component.d.ts +4 -1
  70. package/lib/components/time/time.component.js +6 -0
  71. package/package.json +5 -4
@@ -53,7 +53,10 @@ export interface FormFieldProps extends CommonFormFieldProps, TagProps {
53
53
  fieldHelpInline?: boolean;
54
54
  /** Id of the element a label should be bound to */
55
55
  id: string;
56
- /** Flag to configure component as optional in Form */
56
+ /**
57
+ * [Legacy] Flag to configure component as optional.
58
+ * @deprecated If the value of this component is not required, use the `isRequired` prop and set it to false instead.
59
+ */
57
60
  isOptional?: boolean;
58
61
  /** Flag to configure component as mandatory */
59
62
  isRequired?: boolean;
@@ -121,6 +121,14 @@ const Button = /*#__PURE__*/_react.default.forwardRef(({
121
121
  internalRef?.click();
122
122
  }
123
123
  };
124
+ const handleClick = event => {
125
+ internalRef?.focus();
126
+ if (inSplitButton) {
127
+ onChildButtonClick?.(onClick)?.(event);
128
+ } else if (onClick) {
129
+ onClick(event);
130
+ }
131
+ };
124
132
  switch (size) {
125
133
  case "small":
126
134
  paddingX = 2;
@@ -144,7 +152,7 @@ const Button = /*#__PURE__*/_react.default.forwardRef(({
144
152
  "aria-describedby": ariaDescribedBy,
145
153
  as: !isDisabled && href ? "a" : "button",
146
154
  onKeyDown: href ? handleLinkKeyDown : undefined,
147
- onClick: inSplitButton ? onChildButtonClick?.(onClick) : onClick,
155
+ onClick: handleClick,
148
156
  draggable: false,
149
157
  buttonType: buttonType,
150
158
  disabled: isDisabled,
@@ -29,7 +29,10 @@ export interface CheckboxGroupProps extends ValidationProps, MarginProps, TagPro
29
29
  labelSpacing?: 1 | 2;
30
30
  /** Flag to configure component as mandatory */
31
31
  required?: boolean;
32
- /** Flag to configure component as optional. */
32
+ /**
33
+ * [Legacy] Flag to configure component as optional.
34
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
35
+ */
33
36
  isOptional?: boolean;
34
37
  /** [Legacy] Overrides the default tooltip */
35
38
  tooltipPosition?: "top" | "bottom" | "left" | "right";
@@ -18,10 +18,12 @@ var _checkboxGroup2 = _interopRequireDefault(require("./__internal__/checkbox-gr
18
18
  var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
19
19
  var _useInputAccessibility = _interopRequireDefault(require("../../../hooks/__internal__/useInputAccessibility"));
20
20
  var _hintText = _interopRequireDefault(require("../../../__internal__/hint-text"));
21
+ var _logger = _interopRequireDefault(require("../../../__internal__/utils/logger"));
21
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
25
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
26
+ let deprecateOptionalWarnTriggered = false;
25
27
  const CheckboxGroup = ({
26
28
  children,
27
29
  legend,
@@ -40,6 +42,10 @@ const CheckboxGroup = ({
40
42
  id,
41
43
  ...rest
42
44
  }) => {
45
+ if (!deprecateOptionalWarnTriggered && isOptional) {
46
+ deprecateOptionalWarnTriggered = true;
47
+ _logger.default.deprecate("`isOptional` is deprecated in CheckboxGroup and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
48
+ }
43
49
  const {
44
50
  validationRedesignOptIn
45
51
  } = (0, _react.useContext)(_newValidation.default);
@@ -83,7 +83,10 @@ export interface DateRangeProps extends StyledDateRangeProps, MarginProps, TagPr
83
83
  tooltipPosition?: "top" | "bottom" | "left" | "right";
84
84
  /** Flag to configure component as mandatory. */
85
85
  required?: boolean;
86
- /** Flag to configure component as optional. */
86
+ /**
87
+ * [Legacy] Flag to configure component as optional.
88
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
89
+ */
87
90
  isOptional?: boolean;
88
91
  /** Date format string to be applied to the date inputs */
89
92
  dateFormatOverride?: string;
@@ -16,10 +16,12 @@ var _usePrevious = _interopRequireDefault(require("../../hooks/__internal__/useP
16
16
  var _dateFormats = _interopRequireDefault(require("../date/__internal__/date-formats"));
17
17
  var _dateRange2 = _interopRequireDefault(require("./__internal__/date-range.context"));
18
18
  var _newValidation = _interopRequireDefault(require("../carbon-provider/__internal__/new-validation.context"));
19
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
19
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
23
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
24
+ let deprecateOptionalWarnTriggered = false;
23
25
  const DateRange = ({
24
26
  endDateProps = {},
25
27
  id,
@@ -41,6 +43,10 @@ const DateRange = ({
41
43
  datePickerEndAriaLabelledBy,
42
44
  ...rest
43
45
  }) => {
46
+ if (!deprecateOptionalWarnTriggered && isOptional) {
47
+ deprecateOptionalWarnTriggered = true;
48
+ _logger.default.deprecate("`isOptional` is deprecated in DateRange and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
49
+ }
44
50
  const {
45
51
  validationRedesignOptIn
46
52
  } = (0, _react.useContext)(_newValidation.default);
@@ -8,7 +8,10 @@ export interface FieldsetProps extends MarginProps, TagProps {
8
8
  legend?: string;
9
9
  /** Flag to configure fields as mandatory. */
10
10
  required?: boolean;
11
- /** Flag to configure fields as optional. */
11
+ /**
12
+ * [Legacy] Flag to configure component as optional.
13
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
14
+ */
12
15
  isOptional?: boolean;
13
16
  }
14
17
  export declare const Fieldset: {
@@ -10,10 +10,12 @@ var _fieldset = require("./fieldset.style");
10
10
  var _newValidation = _interopRequireDefault(require("../carbon-provider/__internal__/new-validation.context"));
11
11
  var _utils = require("../../style/utils");
12
12
  var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLocale"));
13
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
13
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
17
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
+ let deprecateOptionalWarnTriggered = false;
17
19
  const Fieldset = ({
18
20
  children,
19
21
  legend,
@@ -21,6 +23,10 @@ const Fieldset = ({
21
23
  isOptional,
22
24
  ...rest
23
25
  }) => {
26
+ if (!deprecateOptionalWarnTriggered && isOptional) {
27
+ deprecateOptionalWarnTriggered = true;
28
+ _logger.default.deprecate("`isOptional` is deprecated in Fieldset and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
29
+ }
24
30
  const [ref, setRef] = (0, _react.useState)(null);
25
31
  const marginProps = (0, _utils.filterStyledSystemMarginProps)(rest);
26
32
  const {
@@ -5,7 +5,10 @@ declare const FieldsetStyle: import("styled-components").StyledComponent<"fields
5
5
  export interface StyledLegendProps {
6
6
  /** Flag to configure fields as mandatory. */
7
7
  isRequired?: boolean;
8
- /** Flag to configure fields as optional. */
8
+ /**
9
+ * [Legacy] Flag to configure fields as optional.
10
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
11
+ */
9
12
  isOptional?: boolean;
10
13
  /** Text used for the optional label */
11
14
  optionalLabel?: string;
@@ -33,7 +33,10 @@ export interface FileInputProps extends Pick<ValidationProps, "error">, Pick<Inp
33
33
  uploadStatus?: FileUploadStatusProps | FileUploadStatusProps[];
34
34
  /** Flag to configure component as mandatory. */
35
35
  required?: boolean;
36
- /** Flag to configure component as optional. */
36
+ /**
37
+ * [Legacy] Flag to configure component as optional.
38
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
39
+ */
37
40
  isOptional?: boolean;
38
41
  }
39
42
  export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -19,10 +19,12 @@ var _fileUploadStatus = _interopRequireDefault(require("./__internal__/file-uplo
19
19
  var _box = _interopRequireDefault(require("../box"));
20
20
  var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLocale"));
21
21
  var _hintText = _interopRequireDefault(require("../../__internal__/hint-text"));
22
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
22
23
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
24
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
25
26
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
27
+ let deprecateOptionalWarnTriggered = false;
26
28
  const FileInput = exports.FileInput = /*#__PURE__*/_react.default.forwardRef(({
27
29
  accept,
28
30
  buttonText,
@@ -45,6 +47,10 @@ const FileInput = exports.FileInput = /*#__PURE__*/_react.default.forwardRef(({
45
47
  uploadStatus = [],
46
48
  ...rest
47
49
  }, ref) => {
50
+ if (!deprecateOptionalWarnTriggered && isOptional) {
51
+ deprecateOptionalWarnTriggered = true;
52
+ _logger.default.deprecate("`isOptional` is deprecated in FileInput and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
53
+ }
48
54
  const locale = (0, _useLocale.default)();
49
55
  const textOnButton = buttonText || locale.fileInput.selectFile();
50
56
  const mainText = dragAndDropText || locale.fileInput.dragAndDrop();
@@ -26,7 +26,10 @@ export interface InlineInputsProps extends MarginProps, StyledContentContainerPr
26
26
  labelId?: string;
27
27
  /** Flag to configure component as mandatory. */
28
28
  required?: boolean;
29
- /** Flag to configure component as optional. */
29
+ /**
30
+ * [Legacy] Flag to configure component as optional.
31
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
32
+ */
30
33
  isOptional?: boolean;
31
34
  }
32
35
  declare const InlineInputs: {
@@ -10,6 +10,7 @@ var _inlineInputs = _interopRequireWildcard(require("./inline-inputs.style"));
10
10
  var _useIsAboveBreakpoint = _interopRequireDefault(require("../../hooks/__internal__/useIsAboveBreakpoint"));
11
11
  var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tags"));
12
12
  var _utils = require("../../style/utils");
13
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
13
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -22,6 +23,7 @@ const columnWrapper = (children, gutter) => {
22
23
  }, input);
23
24
  });
24
25
  };
26
+ let deprecateOptionalWarnTriggered = false;
25
27
  const InlineInputs = ({
26
28
  adaptiveLabelBreakpoint,
27
29
  label,
@@ -37,6 +39,10 @@ const InlineInputs = ({
37
39
  isOptional,
38
40
  ...rest
39
41
  }) => {
42
+ if (!deprecateOptionalWarnTriggered && isOptional) {
43
+ deprecateOptionalWarnTriggered = true;
44
+ _logger.default.deprecate("`isOptional` is deprecated in InlineInputs and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
45
+ }
40
46
  const largeScreen = (0, _useIsAboveBreakpoint.default)(adaptiveLabelBreakpoint);
41
47
  const ref = (0, _react.useRef)(null);
42
48
  let inlineLabel = labelInline;
@@ -80,7 +80,10 @@ export interface NumeralDateProps extends ValidationProps, MarginProps, TagProps
80
80
  * A React ref to pass to the input corresponding to the year
81
81
  */
82
82
  yearRef?: React.ForwardedRef<HTMLInputElement>;
83
- /** Flag to configure component as optional. */
83
+ /**
84
+ * [Legacy] Flag to configure component as optional.
85
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
86
+ */
84
87
  isOptional?: boolean;
85
88
  }
86
89
  export type ValidDateFormat = (typeof ALLOWED_DATE_FORMATS)[number];
@@ -87,6 +87,7 @@ const getDateLabel = (datePart, locale) => {
87
87
  return locale.numeralDate.labels.day();
88
88
  }
89
89
  };
90
+ let deprecateOptionalWarnTriggered = false;
90
91
  const NumeralDate = exports.NumeralDate = /*#__PURE__*/(0, _react.forwardRef)(({
91
92
  dateFormat = ["dd", "mm", "yyyy"],
92
93
  defaultValue,
@@ -122,6 +123,10 @@ const NumeralDate = exports.NumeralDate = /*#__PURE__*/(0, _react.forwardRef)(({
122
123
  yearRef,
123
124
  ...rest
124
125
  }, ref) => {
126
+ if (!deprecateOptionalWarnTriggered && isOptional) {
127
+ deprecateOptionalWarnTriggered = true;
128
+ _logger.default.deprecate("`isOptional` is deprecated in NumeralDate and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
129
+ }
125
130
  const locale = (0, _useLocale.default)();
126
131
  const {
127
132
  validationRedesignOptIn
@@ -41,7 +41,10 @@ export interface RadioButtonGroupProps extends ValidationProps, MarginProps, Tag
41
41
  onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
42
42
  /** Flag to configure component as mandatory */
43
43
  required?: boolean;
44
- /** Flag to configure component as optional. */
44
+ /**
45
+ * [Legacy] Flag to configure component as optional.
46
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
47
+ */
45
48
  isOptional?: boolean;
46
49
  /** value of the selected RadioButton */
47
50
  value?: string;
@@ -25,6 +25,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
25
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
26
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
27
27
  let deprecateUncontrolledWarnTriggered = false;
28
+ let deprecateOptionalWarnTriggered = false;
28
29
  const RadioButtonGroup = ({
29
30
  children,
30
31
  id,
@@ -50,6 +51,10 @@ const RadioButtonGroup = ({
50
51
  tooltipPosition,
51
52
  ...rest
52
53
  }) => {
54
+ if (!deprecateOptionalWarnTriggered && isOptional) {
55
+ deprecateOptionalWarnTriggered = true;
56
+ _logger.default.deprecate("`isOptional` is deprecated in RadioButtonGroup and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
57
+ }
53
58
  const {
54
59
  validationRedesignOptIn
55
60
  } = (0, _react.useContext)(_newValidation.default);
@@ -56,7 +56,10 @@ export interface FormInputPropTypes extends ValidationProps, Omit<CommonTextboxP
56
56
  *
57
57
  */
58
58
  labelId?: string;
59
- /** Flag to configure component as optional in Form */
59
+ /**
60
+ * [Legacy] Flag to configure component as optional.
61
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
62
+ */
60
63
  isOptional?: boolean;
61
64
  }
62
65
  export interface SelectTextboxProps extends FormInputPropTypes {
@@ -56,7 +56,10 @@ export interface FilterableSelectProps extends Omit<FormInputPropTypes, "default
56
56
  /** Boolean to disable automatic filtering and highlighting of options.
57
57
  * This allows custom filtering and option styling to be performed outside of the component when the filter text changes. */
58
58
  disableDefaultFiltering?: boolean;
59
- /** Flag to configure component as optional. */
59
+ /**
60
+ * [Legacy] Flag to configure component as optional.
61
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
62
+ */
60
63
  isOptional?: boolean;
61
64
  /** Flag to configure component as mandatory */
62
65
  required?: boolean;
@@ -24,6 +24,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
24
24
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
25
25
  let deprecateUncontrolledWarnTriggered = false;
26
26
  const FilterableSelectList = (0, _withFilter.default)(_selectList.default);
27
+ let deprecateOptionalWarnTriggered = false;
27
28
  const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
28
29
  "aria-label": ariaLabel,
29
30
  "aria-labelledby": ariaLabelledby,
@@ -64,6 +65,10 @@ const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.
64
65
  listWidth,
65
66
  ...textboxProps
66
67
  }, ref) => {
68
+ if (!deprecateOptionalWarnTriggered && isOptional) {
69
+ deprecateOptionalWarnTriggered = true;
70
+ _logger.default.deprecate("`isOptional` is deprecated in FilterableSelect and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
71
+ }
67
72
  const [activeDescendantId, setActiveDescendantId] = (0, _react.useState)("");
68
73
  const selectListId = (0, _react.useRef)((0, _guid.default)());
69
74
  const containerRef = (0, _react.useRef)(null);
@@ -52,7 +52,10 @@ export interface MultiSelectProps extends Omit<FormInputPropTypes, "defaultValue
52
52
  * Higher values make for smoother scrolling but may impact performance.
53
53
  * Only used if the `enableVirtualScroll` prop is set. */
54
54
  virtualScrollOverscan?: number;
55
- /** Flag to configure component as optional. */
55
+ /**
56
+ * [Legacy] Flag to configure component as optional.
57
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
58
+ */
56
59
  isOptional?: boolean;
57
60
  /** Specify a callback triggered on change */
58
61
  onChange?: (ev: CustomSelectChangeEvent | React.ChangeEvent<HTMLInputElement>) => void;
@@ -25,6 +25,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
26
26
  let deprecateUncontrolledWarnTriggered = false;
27
27
  const FilterableSelectList = (0, _withFilter.default)(_selectList.default);
28
+ let deprecateOptionalWarnTriggered = false;
28
29
  const MultiSelect = exports.MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
29
30
  "aria-label": ariaLabel,
30
31
  "aria-labelledby": ariaLabelledby,
@@ -65,6 +66,10 @@ const MultiSelect = exports.MultiSelect = /*#__PURE__*/_react.default.forwardRef
65
66
  listWidth,
66
67
  ...textboxProps
67
68
  }, ref) => {
69
+ if (!deprecateOptionalWarnTriggered && isOptional) {
70
+ deprecateOptionalWarnTriggered = true;
71
+ _logger.default.deprecate("`isOptional` is deprecated in MultiSelect and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
72
+ }
68
73
  const [activeDescendantId, setActiveDescendantId] = (0, _react.useState)("");
69
74
  const selectListId = (0, _react.useRef)((0, _guid.default)());
70
75
  const accessibilityLabelId = (0, _react.useRef)((0, _guid.default)());
@@ -50,7 +50,10 @@ export interface SimpleSelectProps extends Omit<FormInputPropTypes, "defaultValu
50
50
  * Higher values make for smoother scrolling but may impact performance.
51
51
  * Only used if the `enableVirtualScroll` prop is set. */
52
52
  virtualScrollOverscan?: number;
53
- /** Flag to configure component as optional in Form */
53
+ /**
54
+ * [Legacy] Flag to configure component as optional.
55
+ * @deprecated If the value of this component is not required, use the `isRequired` prop and set it to false instead.
56
+ */
54
57
  isOptional?: boolean;
55
58
  /** Flag to configure component as mandatory */
56
59
  isRequired?: boolean;
@@ -21,6 +21,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
21
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
22
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
23
23
  let deprecateUncontrolledWarnTriggered = false;
24
+ let deprecateOptionalWarnTriggered = false;
24
25
  const SimpleSelect = exports.SimpleSelect = /*#__PURE__*/_react.default.forwardRef(({
25
26
  "aria-describedby": ariaDescribedBy,
26
27
  "aria-label": ariaLabel,
@@ -58,6 +59,10 @@ const SimpleSelect = exports.SimpleSelect = /*#__PURE__*/_react.default.forwardR
58
59
  listWidth,
59
60
  ...props
60
61
  }, ref) => {
62
+ if (!deprecateOptionalWarnTriggered && isOptional) {
63
+ deprecateOptionalWarnTriggered = true;
64
+ _logger.default.deprecate("`isOptional` is deprecated in SimpleSelect and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
65
+ }
61
66
  const selectListId = (0, _react.useRef)((0, _guid.default)());
62
67
  const containerRef = (0, _react.useRef)(null);
63
68
  const listboxRef = (0, _react.useRef)(null);
@@ -14,7 +14,10 @@ export interface TextEditorProps extends MarginProps, TagProps {
14
14
  header?: React.ReactNode;
15
15
  /** A hint string rendered before the editor but after the label. Intended to describe the purpose or content of the input. */
16
16
  inputHint?: string;
17
- /** Whether the content of the editor can be empty */
17
+ /**
18
+ * [Legacy] Whether the content of the editor can be empty
19
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
20
+ */
18
21
  isOptional?: boolean;
19
22
  /** The label to display above the editor */
20
23
  labelText: string;
@@ -19,6 +19,7 @@ var _helpers = require("./__internal__/helpers");
19
19
  var _label = _interopRequireDefault(require("../../__internal__/label"));
20
20
  var _useDebounce = _interopRequireDefault(require("../../hooks/__internal__/useDebounce"));
21
21
  var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLocale"));
22
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
22
23
  var _constants = require("./__internal__/constants");
23
24
  var _plugins = require("./__internal__/plugins");
24
25
  var _textEditor = _interopRequireDefault(require("./text-editor.context"));
@@ -31,6 +32,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
31
32
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
32
33
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
33
34
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /* eslint-disable no-console */
35
+ let deprecateOptionalWarnTriggered = false;
34
36
  const TextEditor = ({
35
37
  characterLimit = 3000,
36
38
  error,
@@ -53,6 +55,10 @@ const TextEditor = ({
53
55
  value,
54
56
  ...rest
55
57
  }) => {
58
+ if (!deprecateOptionalWarnTriggered && isOptional) {
59
+ deprecateOptionalWarnTriggered = true;
60
+ _logger.default.deprecate("`isOptional` is deprecated in TextEditor and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
61
+ }
56
62
  const editorRef = (0, _react.useRef)(undefined);
57
63
  const locale = (0, _useLocale.default)();
58
64
  const [characterLimitWarning, setCharacterLimitWarning] = (0, _react.useState)(undefined);
@@ -77,7 +77,10 @@ export interface TextareaProps extends ValidationProps, MarginProps, Omit<Common
77
77
  placeholder?: string;
78
78
  /** Adds readOnly property */
79
79
  readOnly?: boolean;
80
- /** Flag to configure component as optional */
80
+ /**
81
+ * [Legacy] Flag to configure component as optional.
82
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
83
+ */
81
84
  isOptional?: boolean;
82
85
  /** The number of visible text lines for the control. When set, this determines the height of the textarea, and the minHeight property is ignored. */
83
86
  rows?: number;
@@ -27,8 +27,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
27
27
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
28
28
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
29
29
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
30
- let deprecateUncontrolledWarnTriggered = false;
31
30
  let deprecatedAriaDescribedByWarnTriggered = false;
31
+ let deprecateOptionalWarnTriggered = false;
32
+ let deprecateUncontrolledWarnTriggered = false;
32
33
  let warnBorderRadiusArrayTooLarge = false;
33
34
  const Textarea = exports.OriginalTextarea = exports.Textarea = /*#__PURE__*/_react.default.forwardRef(({
34
35
  "aria-labelledby": ariaLabelledBy,
@@ -75,6 +76,10 @@ const Textarea = exports.OriginalTextarea = exports.Textarea = /*#__PURE__*/_rea
75
76
  minHeight = _textarea.DEFAULT_MIN_HEIGHT,
76
77
  ...rest
77
78
  }, ref) => {
79
+ if (!deprecateOptionalWarnTriggered && isOptional) {
80
+ deprecateOptionalWarnTriggered = true;
81
+ _logger.default.deprecate("`isOptional` is deprecated in TextArea and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
82
+ }
78
83
  const {
79
84
  validationRedesignOptIn
80
85
  } = (0, _react.useContext)(_newValidation.default);
@@ -87,7 +87,10 @@ export interface CommonTextboxProps extends ValidationProps, MarginProps, Omit<C
87
87
  tooltipPosition?: "top" | "bottom" | "left" | "right";
88
88
  /** [Legacy] Aria label for rendered help component. */
89
89
  helpAriaLabel?: string;
90
- /** Flag to configure component as optional. */
90
+ /**
91
+ * [Legacy] Flag to configure component as optional.
92
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
93
+ */
91
94
  isOptional?: boolean;
92
95
  /** The id attribute for the validation tooltip */
93
96
  tooltipId?: string;
@@ -31,8 +31,9 @@ const ALIGN_DEFAULT = exports.ALIGN_DEFAULT = "left";
31
31
  const SIZE_DEFAULT = exports.SIZE_DEFAULT = "medium";
32
32
  const LABEL_WIDTH_DEFAULT = exports.LABEL_WIDTH_DEFAULT = 30;
33
33
  const LABEL_VALIDATION_DEFAULT = exports.LABEL_VALIDATION_DEFAULT = false;
34
- let deprecateUncontrolledWarnTriggered = false;
35
34
  let deprecatedAriaDescribedByWarnTriggered = false;
35
+ let deprecateOptionalWarnTriggered = false;
36
+ let deprecateUncontrolledWarnTriggered = false;
36
37
  const Textbox = exports.Textbox = /*#__PURE__*/_react.default.forwardRef(({
37
38
  "aria-labelledby": ariaLabelledBy,
38
39
  "aria-describedby": ariaDescribedByProp,
@@ -89,6 +90,10 @@ const Textbox = exports.Textbox = /*#__PURE__*/_react.default.forwardRef(({
89
90
  tooltipId,
90
91
  ...props
91
92
  }, ref) => {
93
+ if (!deprecateOptionalWarnTriggered && isOptional) {
94
+ deprecateOptionalWarnTriggered = true;
95
+ _logger.default.deprecate("`isOptional` is deprecated in Textbox and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
96
+ }
92
97
  const characterCountValue = typeof value === "string" ? value : "";
93
98
  const [uniqueId, uniqueName] = (0, _useUniqueId.default)(id, name);
94
99
  const [characterCountAriaLive, setCharacterCountAriaLive] = (0, _react.useState)("off");
@@ -60,7 +60,10 @@ export interface TimeProps extends TagProps, MarginProps {
60
60
  onBlur?: (ev?: React.FocusEvent<HTMLInputElement>, value?: TimeValue) => void;
61
61
  /** Flag to configure component as mandatory */
62
62
  required?: boolean;
63
- /** Flag to configure component as optional */
63
+ /**
64
+ * [Legacy] Flag to configure component as optional.
65
+ * @deprecated If the value of this component is not required, use the `required` prop and set it to false instead.
66
+ */
64
67
  isOptional?: boolean;
65
68
  /** If true, the component will be disabled */
66
69
  disabled?: boolean;
@@ -10,6 +10,7 @@ var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLoc
10
10
  var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tags/tags"));
11
11
  var _useInputAccessibility = _interopRequireDefault(require("../../hooks/__internal__/useInputAccessibility"));
12
12
  var _utils = require("../../style/utils");
13
+ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
13
14
  var _fieldset = _interopRequireDefault(require("../../__internal__/fieldset"));
14
15
  var _box = _interopRequireDefault(require("../box"));
15
16
  var _textbox = _interopRequireDefault(require("../textbox/textbox.style"));
@@ -23,6 +24,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
23
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
24
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
25
26
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
27
+ let deprecateOptionalWarnTriggered = false;
26
28
  const Time = /*#__PURE__*/_react.default.forwardRef(({
27
29
  label,
28
30
  labelAlign,
@@ -42,6 +44,10 @@ const Time = /*#__PURE__*/_react.default.forwardRef(({
42
44
  toggleProps = {},
43
45
  ...rest
44
46
  }, ref) => {
47
+ if (!deprecateOptionalWarnTriggered && isOptional) {
48
+ deprecateOptionalWarnTriggered = true;
49
+ _logger.default.deprecate("`isOptional` is deprecated in Time and support will soon be removed. If the value of this component is not required, use the `required` prop and set it to false instead.");
50
+ }
45
51
  const {
46
52
  id: hoursInputId,
47
53
  label: hoursLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "153.7.0",
3
+ "version": "153.7.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",
@@ -69,8 +69,8 @@
69
69
  "@commitlint/cli": "^17.6.3",
70
70
  "@commitlint/config-conventional": "^17.6.3",
71
71
  "@dotenvx/dotenvx": "^1.25.1",
72
- "@playwright/experimental-ct-react": "~1.47.0",
73
- "@playwright/test": "~1.47.0",
72
+ "@playwright/experimental-ct-react": "^1.52.0",
73
+ "@playwright/test": "^1.52.0",
74
74
  "@sage/design-tokens": "~4.29.0",
75
75
  "@semantic-release/changelog": "^6.0.3",
76
76
  "@semantic-release/exec": "^6.0.3",
@@ -167,6 +167,7 @@
167
167
  "typescript": "~5.3.0",
168
168
  "url-loader": "^4.1.1",
169
169
  "uuid": "^8.3.2",
170
+ "vite": "^6.3.4",
170
171
  "webpack-dev-server": "^4.15.1"
171
172
  },
172
173
  "dependencies": {
@@ -189,7 +190,7 @@
189
190
  "lodash": "^4.17.21",
190
191
  "polished": "^4.2.2",
191
192
  "prop-types": "^15.8.1",
192
- "react-day-picker": "^9.3.2",
193
+ "react-day-picker": "~9.3.2",
193
194
  "react-dnd": "^16.0.1",
194
195
  "react-dnd-html5-backend": "^16.0.1",
195
196
  "react-is": "^17.0.2",