@seeqdev/qomponents 0.0.155-react-19-v2 → 0.0.155-react-19-v4

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.esm.js CHANGED
@@ -4646,6 +4646,13 @@ const TextField = React__default.forwardRef((props, ref) => {
4646
4646
  ref.current = receivedRef;
4647
4647
  internalRef.current = receivedRef;
4648
4648
  };
4649
+ useEffect(() => {
4650
+ if (autoFocus) {
4651
+ setTimeout(() => {
4652
+ internalRef.current?.focus();
4653
+ }, 0);
4654
+ }
4655
+ }, []);
4649
4656
  useEffect(() => {
4650
4657
  const input = internalRef.current;
4651
4658
  if (input && type !== 'number' && type !== 'email')
@@ -14303,7 +14310,9 @@ const DialogContent = React__default.forwardRef(({ className, children, ...props
14303
14310
  React__default.createElement("div", { className: "tw-select-none tw-fixed tw-w-full tw-h-full tw-opacity-50 tw-inset-0 tw-z-[1009] tw-bg-sq-dark-background\n data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n data-[state=open]:fade-in-0 " }),
14304
14311
  React__default.createElement(Content$2, { ref: ref, className: `tw-fixed tw-left-[50%] tw-top-0 tw-my-6 tw-translate-x-[-50%] tw-z-[1010] tw-grid
14305
14312
  tw-gap-4 tw-border tw-bg-sq-white dark:tw-bg-sq-dark-background tw-p-6 tw-shadow-lg tw-duration-200
14306
- tw-rounded-lg ${className}`, ...props }, children))));
14313
+ tw-rounded-lg ${className}`, ...props },
14314
+ React__default.createElement(DialogTitle$1, { className: "tw-hidden" }),
14315
+ children))));
14307
14316
  DialogContent.displayName = Content$2.displayName;
14308
14317
  const DialogHeader = (props) => (React__default.createElement("div", { className: "tw-w-full tw-justify-between" },
14309
14318
  React__default.createElement("div", { ...props })));