@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 +10 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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')
|
|
@@ -14323,7 +14330,9 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
14323
14330
|
React.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 " }),
|
|
14324
14331
|
React.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
|
|
14325
14332
|
tw-gap-4 tw-border tw-bg-sq-white dark:tw-bg-sq-dark-background tw-p-6 tw-shadow-lg tw-duration-200
|
|
14326
|
-
tw-rounded-lg ${className}`, ...props },
|
|
14333
|
+
tw-rounded-lg ${className}`, ...props },
|
|
14334
|
+
React.createElement(DialogTitle$1, { className: "tw-hidden" }),
|
|
14335
|
+
children))));
|
|
14327
14336
|
DialogContent.displayName = Content$2.displayName;
|
|
14328
14337
|
const DialogHeader = (props) => (React.createElement("div", { className: "tw-w-full tw-justify-between" },
|
|
14329
14338
|
React.createElement("div", { ...props })));
|