dce-reactkit 4.2.0 → 4.2.2

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/cjs/index.js CHANGED
@@ -139,7 +139,7 @@ const ErrorBox = (props) => {
139
139
  React__default["default"].createElement("h4", { className: "mb-1" },
140
140
  React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, { icon: icon, className: "me-2" }),
141
141
  title),
142
- React__default["default"].createElement("div", null,
142
+ React__default["default"].createElement("div", { className: "text-break" },
143
143
  errorText,
144
144
  errorCodeBox),
145
145
  onClose && (React__default["default"].createElement("div", { className: "mt-2" },
@@ -2816,7 +2816,7 @@ const SimpleDateChooser = (props) => {
2816
2816
  /* -------------------------------- Setup ------------------------------- */
2817
2817
  /*------------------------------------------------------------------------*/
2818
2818
  /* -------------- Props ------------- */
2819
- const { ariaLabel, name, dontAllowPast, dontAllowFuture, numMonthsToShow, onChange, month, day, year, } = props;
2819
+ const { ariaLabel, name, dontAllowPast, dontAllowFuture, numMonthsToShow, onChange, month, day, year, isDisabled = false, } = props;
2820
2820
  // Get choices
2821
2821
  const choices = getChoices({
2822
2822
  numMonthsToShow,
@@ -2901,11 +2901,11 @@ const SimpleDateChooser = (props) => {
2901
2901
  const choice = choices[e.target.selectedIndex];
2902
2902
  // Change day, month, and year
2903
2903
  onChange(choice.month, choice.days[0], choice.year);
2904
- } }, monthOptions),
2904
+ }, disabled: isDisabled }, monthOptions),
2905
2905
  React__default["default"].createElement("select", { "aria-label": `day for ${ariaLabel}`, className: "custom-select form-select d-inline-block", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-day`, value: day, onChange: (e) => {
2906
2906
  // Only change the day
2907
2907
  onChange(month, Number.parseInt(e.target.value, 10), year);
2908
- } }, dayOptions)));
2908
+ }, disabled: isDisabled }, dayOptions)));
2909
2909
  }
2910
2910
  /* --------- DateOutOfRange --------- */
2911
2911
  if (view === View.InvalidDate) {
@@ -2963,7 +2963,7 @@ const SimpleTimeChooser = (props) => {
2963
2963
  /* -------------------------------- Setup ------------------------------- */
2964
2964
  /*------------------------------------------------------------------------*/
2965
2965
  /* -------------- Props ------------- */
2966
- const { ariaLabel, name, hour, minute, onChange, } = props;
2966
+ const { ariaLabel, name, hour, minute, onChange, isDisabled = false, } = props;
2967
2967
  let { intervalMin = DEFAULT_INTERVAL, } = props;
2968
2968
  // Use default interval if not supported
2969
2969
  if (!ALLOWED_INTERVALS.includes(intervalMin)) {
@@ -3042,7 +3042,7 @@ const SimpleTimeChooser = (props) => {
3042
3042
  const timeInfo = convertMinSinceMidnightToHoursAndMin(newTime);
3043
3043
  // Notify parent
3044
3044
  onChange(timeInfo.hours, timeInfo.minutes);
3045
- } }, timeOptions)));
3045
+ }, disabled: isDisabled }, timeOptions)));
3046
3046
  };
3047
3047
 
3048
3048
  /**