@darajs/core 1.2.2 → 1.2.3

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.
@@ -17460,7 +17460,11 @@ var __publicField = (obj, key, value) => {
17460
17460
  return _getPrototypeOf$2(o2);
17461
17461
  }
17462
17462
  function _isNativeFunction$1(fn) {
17463
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
17463
+ try {
17464
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
17465
+ } catch (e3) {
17466
+ return typeof fn === "function";
17467
+ }
17464
17468
  }
17465
17469
  function _isNativeReflectConstruct$2() {
17466
17470
  if (typeof Reflect === "undefined" || !Reflect.construct)
@@ -41320,6 +41324,9 @@ var __publicField = (obj, key, value) => {
41320
41324
  display: flex;
41321
41325
  flex-direction: ${(props) => props.inline ? "column" : "row"};
41322
41326
  align-items: ${(props) => props.inline ? "baseline" : "center"};
41327
+
41328
+ width: 8.5rem;
41329
+
41323
41330
  color: ${(props) => props.theme.colors.text};
41324
41331
 
41325
41332
  .react-datepicker-popper {
@@ -43389,7 +43396,6 @@ var __publicField = (obj, key, value) => {
43389
43396
  }
43390
43397
 
43391
43398
  input {
43392
- width: calc(100% - 1.25rem);
43393
43399
  height: calc(2.5rem - 2px);
43394
43400
  border: none;
43395
43401
  border-radius: 0.25rem;
@@ -43429,6 +43435,7 @@ var __publicField = (obj, key, value) => {
43429
43435
  // Fix: Overrides the 22ch default width of the nested regular input
43430
43436
  > div:first-child {
43431
43437
  width: 100%;
43438
+ height: auto;
43432
43439
  }
43433
43440
  `;
43434
43441
  const numericFilter = (integerOnly) => (e3) => {
@@ -43518,7 +43525,7 @@ var __publicField = (obj, key, value) => {
43518
43525
  React$2.useEffect(() => {
43519
43526
  setInput(getInitialValue(props.value, props.initialValue));
43520
43527
  }, [props.value]);
43521
- return jsxRuntime.exports.jsxs("div", { children: [jsxRuntime.exports.jsxs(InputWrapper$1, { disabled: props.disabled, errorMsg: props.errorMsg, stepper: props.stepper, children: [jsxRuntime.exports.jsx(Input$1, { autoFocus: props.autoFocus, className: props.className, disabled: props.disabled, keydownFilter, maxValue: props.maxValue, minValue: props.minValue, onBlur: props.onBlur, onChange: onChange2, onComplete: props.onComplete, onKeyDown, placeholder: props.placeholder, ref, style: props.style, value: input }), props.stepper && jsxRuntime.exports.jsx(InputStepper, { disabled: props.disabled, step, stepSkip: props.stepSkip })] }), props.errorMsg && jsxRuntime.exports.jsx(ErrorMessage$1, { children: props.errorMsg })] });
43528
+ return jsxRuntime.exports.jsxs("div", { children: [jsxRuntime.exports.jsxs(InputWrapper$1, { disabled: props.disabled, errorMsg: props.errorMsg, stepper: props.stepper, style: props.style, children: [jsxRuntime.exports.jsx(Input$1, { autoFocus: props.autoFocus, className: props.className, disabled: props.disabled, keydownFilter, maxValue: props.maxValue, minValue: props.minValue, onBlur: props.onBlur, onChange: onChange2, onComplete: props.onComplete, onKeyDown, placeholder: props.placeholder, ref, value: input }), props.stepper && jsxRuntime.exports.jsx(InputStepper, { disabled: props.disabled, step, stepSkip: props.stepSkip })] }), props.errorMsg && jsxRuntime.exports.jsx(ErrorMessage$1, { children: props.errorMsg })] });
43522
43529
  });
43523
43530
  Input$1.displayName = "NumericInput";
43524
43531
  styled__default.default.div`
@@ -58919,7 +58926,7 @@ Inferred class string: "${iconClasses}."`
58919
58926
  } else if (FallbackComponent) {
58920
58927
  childToRender = React$2.createElement(FallbackComponent, props);
58921
58928
  } else {
58922
- throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
58929
+ throw error;
58923
58930
  }
58924
58931
  }
58925
58932
  return React$2.createElement(ErrorBoundaryContext.Provider, {