@homebound/beam 2.380.0 → 2.380.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.
package/dist/index.cjs CHANGED
@@ -8388,8 +8388,9 @@ var BorderHoverParent = "BorderHoverParent";
8388
8388
  var BorderHoverChild = "BorderHoverChild";
8389
8389
 
8390
8390
  // src/forms/labelUtils.ts
8391
- function getLabelSuffix(required) {
8391
+ function useLabelSuffix(required, readOnly) {
8392
8392
  const { fieldProps } = usePresentationContext();
8393
+ if (readOnly) return void 0;
8393
8394
  if (required === true) {
8394
8395
  return fieldProps?.labelSuffix?.required;
8395
8396
  } else if (required === false) {
@@ -8459,7 +8460,7 @@ function TextFieldBase(props) {
8459
8460
  const internalProps = props.internalProps || {};
8460
8461
  const { compound = false, forceFocus = false, forceHover = false } = internalProps;
8461
8462
  const errorMessageId = `${inputProps.id}-error`;
8462
- const labelSuffix = getLabelSuffix(required);
8463
+ const labelSuffix = useLabelSuffix(required, inputProps.readOnly);
8463
8464
  const ElementType = multiline ? "textarea" : "input";
8464
8465
  const tid = useTestIds(props, defaultTestId(label));
8465
8466
  const [isFocused, setIsFocused] = (0, import_react30.useState)(false);