@zag-js/auto-resize 2.0.0-next.1 → 2.0.0-next.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/dist/autoresize-input.js
CHANGED
|
@@ -41,7 +41,7 @@ function autoResizeInput(input) {
|
|
|
41
41
|
if (cssText) ghost.style.cssText += cssText;
|
|
42
42
|
function resize() {
|
|
43
43
|
win.requestAnimationFrame(() => {
|
|
44
|
-
ghost.
|
|
44
|
+
ghost.textContent = input.value;
|
|
45
45
|
const rect = win.getComputedStyle(ghost);
|
|
46
46
|
input?.style.setProperty("width", rect.width);
|
|
47
47
|
});
|
|
@@ -17,7 +17,7 @@ function autoResizeInput(input) {
|
|
|
17
17
|
if (cssText) ghost.style.cssText += cssText;
|
|
18
18
|
function resize() {
|
|
19
19
|
win.requestAnimationFrame(() => {
|
|
20
|
-
ghost.
|
|
20
|
+
ghost.textContent = input.value;
|
|
21
21
|
const rect = win.getComputedStyle(ghost);
|
|
22
22
|
input?.style.setProperty("width", rect.width);
|
|
23
23
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/auto-resize",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.2",
|
|
4
4
|
"description": "Autoresize utilities for the web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@zag-js/dom-query": "2.0.0-next.
|
|
28
|
+
"@zag-js/dom-query": "2.0.0-next.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"clean-package": "2.2.0"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|
|
52
52
|
"test": "vitest",
|
|
53
|
-
"lint": "
|
|
53
|
+
"lint": "oxlint src",
|
|
54
54
|
"test-ci": "pnpm test --ci --runInBand -u",
|
|
55
55
|
"test-watch": "pnpm test --watchAll"
|
|
56
56
|
}
|