@homebound/beam 3.0.4 → 3.0.6

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/index.cjs CHANGED
@@ -8639,7 +8639,7 @@ function TextFieldBase(props) {
8639
8639
  maybeTooltip({
8640
8640
  title: tooltip,
8641
8641
  placement: "top",
8642
- children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0, import_runtime22.mergeProps)(BorderHoverChild, void 0, {
8642
+ children: inputProps.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...(0, import_runtime22.trussProps)({
8643
8643
  // Use input wrapper to get common styles, but then we need to override some
8644
8644
  ...fieldStyles.inputWrapperReadOnly,
8645
8645
  ...multiline ? {
@@ -8647,7 +8647,7 @@ function TextFieldBase(props) {
8647
8647
  alignItems: "aifs",
8648
8648
  gap: "gap2"
8649
8649
  } : {
8650
- ...wrap === false ? {
8650
+ ...!wrap ? {
8651
8651
  whiteSpace: "wsnw",
8652
8652
  overflow: "oh",
8653
8653
  textOverflow: "to_ellipsis"
@@ -12996,6 +12996,7 @@ function NumberField(props) {
12996
12996
  wip: false
12997
12997
  });
12998
12998
  const lastSentRef = (0, import_react54.useRef)(void 0);
12999
+ const focusValueRef = (0, import_react54.useRef)(void 0);
12999
13000
  const [, forceRender] = (0, import_react54.useState)(0);
13000
13001
  const propValue = value === void 0 ? Number.NaN : value / factor;
13001
13002
  if (valueRef.current.wip && !Object.is(valueRef.current.value, propValue)) {
@@ -13011,7 +13012,7 @@ function NumberField(props) {
13011
13012
  // // This is called on blur with the final/committed value.
13012
13013
  onChange: (value2) => {
13013
13014
  const formatted = formatValue(value2, factor, numFractionDigits, numIntegerDigits, positiveOnly);
13014
- if (formatted !== lastSentRef.current) return;
13015
+ if (formatted !== lastSentRef.current && formatted === focusValueRef.current) return;
13015
13016
  onChange(formatted);
13016
13017
  },
13017
13018
  onFocus: () => {
@@ -13020,6 +13021,7 @@ function NumberField(props) {
13020
13021
  value: value === void 0 ? Number.NaN : value / factor
13021
13022
  };
13022
13023
  lastSentRef.current = value;
13024
+ focusValueRef.current = value;
13023
13025
  },
13024
13026
  onBlur: () => {
13025
13027
  valueRef.current = {