@abgov/react-components 6.8.0 → 6.9.0-alpha.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/index.mjs CHANGED
@@ -788,6 +788,7 @@ function GoabDropdown(props) {
788
788
  placeholder: props.placeholder,
789
789
  testid: props.testId,
790
790
  width: props.width,
791
+ maxwidth: props.maxWidth,
791
792
  relative: props.relative ? "true" : void 0,
792
793
  autocomplete: props.autoComplete,
793
794
  id: props.id,
@@ -3818,7 +3819,8 @@ function GoabTextArea({
3818
3819
  ml,
3819
3820
  autoComplete,
3820
3821
  onChange,
3821
- onKeyPress
3822
+ onKeyPress,
3823
+ onBlur
3822
3824
  }) {
3823
3825
  const el = useRef(null);
3824
3826
  useEffect(() => {
@@ -3826,33 +3828,27 @@ function GoabTextArea({
3826
3828
  return;
3827
3829
  }
3828
3830
  const current = el.current;
3829
- const listener = (e) => {
3831
+ const changeListener = (e) => {
3830
3832
  const detail = e.detail;
3831
3833
  onChange == null ? void 0 : onChange(detail);
3832
3834
  };
3833
- if (onChange) {
3834
- current.addEventListener("_change", listener);
3835
- }
3836
- return () => {
3837
- if (onChange) {
3838
- current.removeEventListener("_change", listener);
3839
- }
3840
- };
3841
- }, [el, onChange]);
3842
- useEffect(() => {
3843
- if (!el.current) {
3844
- return;
3845
- }
3846
- const current = el.current;
3847
3835
  const keypressListener = (e) => {
3848
3836
  const detail = e.detail;
3849
3837
  onKeyPress == null ? void 0 : onKeyPress(detail);
3850
3838
  };
3839
+ const blurListener = (e) => {
3840
+ const detail = e.detail;
3841
+ onBlur == null ? void 0 : onBlur(detail);
3842
+ };
3843
+ current.addEventListener("_change", changeListener);
3851
3844
  current.addEventListener("_keyPress", keypressListener);
3845
+ current.addEventListener("_blur", blurListener);
3852
3846
  return () => {
3847
+ current.removeEventListener("_change", changeListener);
3853
3848
  current.removeEventListener("_keyPress", keypressListener);
3849
+ current.removeEventListener("_blur", blurListener);
3854
3850
  };
3855
- }, [el, onKeyPress]);
3851
+ }, [el, onChange, onKeyPress, onBlur]);
3856
3852
  return /* @__PURE__ */ jsx(
3857
3853
  "goa-textarea",
3858
3854
  {
@@ -3905,6 +3901,7 @@ function GoabTooltip(props) {
3905
3901
  content: isStringContent ? props.content : void 0,
3906
3902
  halign: props.hAlign,
3907
3903
  testid: props.testId,
3904
+ maxwidth: props.maxWidth,
3908
3905
  mt: props.mt,
3909
3906
  mr: props.mr,
3910
3907
  mb: props.mb,