@seeqdev/qomponents 0.0.155-react-19 → 0.0.155-react-19-v3

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
@@ -4666,6 +4666,13 @@ const TextField = React.forwardRef((props, ref) => {
4666
4666
  ref.current = receivedRef;
4667
4667
  internalRef.current = receivedRef;
4668
4668
  };
4669
+ React.useEffect(() => {
4670
+ if (autoFocus) {
4671
+ setTimeout(() => {
4672
+ internalRef.current?.focus();
4673
+ }, 0);
4674
+ }
4675
+ }, []);
4669
4676
  React.useEffect(() => {
4670
4677
  const input = internalRef.current;
4671
4678
  if (input && type !== 'number' && type !== 'email')
@@ -14394,6 +14401,7 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
14394
14401
  'tw-max-w-5xl': size === '5xl',
14395
14402
  'tw-max-w-6xl': size === '6xl',
14396
14403
  }, dialogClassName) },
14404
+ React.createElement(DialogTitle, { className: "tw-hidden" }),
14397
14405
  React.createElement(DialogHeader, { className: "modal-header tw-flex tw-w-full tw-justify-between tw-border-sq-disabled-gray\n dark:tw-border-sq-dark-disabled-gray tw-border-0 tw-border-b tw-px-6 tw-py-4" },
14398
14406
  React.createElement("div", { className: "tw-flex tw-w-full" }, renderTitle()),
14399
14407
  !hideCloseIcon && (React.createElement(DialogClose, { autoFocus: false, className: "[&:has(:focus-visible)]:none tw-opacity-70 tw-bg-transparent hover:tw-opacity-100 close tw-cursor-pointer tw-ml-4", "data-testid": "closeButton" },