@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.js CHANGED
@@ -8046,8 +8046,9 @@ var BorderHoverParent = "BorderHoverParent";
8046
8046
  var BorderHoverChild = "BorderHoverChild";
8047
8047
 
8048
8048
  // src/forms/labelUtils.ts
8049
- function getLabelSuffix(required) {
8049
+ function useLabelSuffix(required, readOnly) {
8050
8050
  const { fieldProps } = usePresentationContext();
8051
+ if (readOnly) return void 0;
8051
8052
  if (required === true) {
8052
8053
  return fieldProps?.labelSuffix?.required;
8053
8054
  } else if (required === false) {
@@ -8117,7 +8118,7 @@ function TextFieldBase(props) {
8117
8118
  const internalProps = props.internalProps || {};
8118
8119
  const { compound = false, forceFocus = false, forceHover = false } = internalProps;
8119
8120
  const errorMessageId = `${inputProps.id}-error`;
8120
- const labelSuffix = getLabelSuffix(required);
8121
+ const labelSuffix = useLabelSuffix(required, inputProps.readOnly);
8121
8122
  const ElementType = multiline ? "textarea" : "input";
8122
8123
  const tid = useTestIds(props, defaultTestId(label));
8123
8124
  const [isFocused, setIsFocused] = useState11(false);