@vygruppen/spor-react 12.16.2 → 12.16.3
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/useFLoatingInputState.tsx +18 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.16.
|
|
2
|
+
> @vygruppen/spor-react@12.16.3 build /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
|
@@ -11,17 +11,17 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
CJS Build start
|
|
13
13
|
DTS Build start
|
|
14
|
-
|
|
15
|
-
ESM dist/icons/index.mjs 110.00 B
|
|
16
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
|
17
|
-
ESM dist/index.mjs.map 640.33 KB
|
|
18
|
-
ESM ⚡️ Build success in 2604ms
|
|
19
|
-
CJS dist/index.cjs 321.10 KB
|
|
14
|
+
CJS dist/index.cjs 321.60 KB
|
|
20
15
|
CJS dist/icons/index.cjs 381.00 B
|
|
16
|
+
CJS dist/index.cjs.map 641.26 KB
|
|
21
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
22
|
-
CJS
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
CJS ⚡️ Build success in 2563ms
|
|
19
|
+
ESM dist/icons/index.mjs 110.00 B
|
|
20
|
+
ESM dist/index.mjs 299.89 KB
|
|
21
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
|
22
|
+
ESM dist/index.mjs.map 641.26 KB
|
|
23
|
+
ESM ⚡️ Build success in 2565ms
|
|
24
|
+
DTS ⚡️ Build success in 20182ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
26
|
DTS dist/index.d.ts 157.02 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.16.
|
|
2
|
+
> @vygruppen/spor-react@12.16.3 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
[dotenv@17.2.2] injecting env (0) from .env -- tip:
|
|
5
|
+
[dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ load multiple .env files with { path: ['.env.local', '.env'] }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[35m◒[39m Generating conditions types...
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2893,6 +2893,20 @@ function useFloatingInputState({
|
|
|
2893
2893
|
setUncontrolledValue(inputRef.current.value);
|
|
2894
2894
|
}
|
|
2895
2895
|
}, [isControlled, uncontrolledValue, inputRef]);
|
|
2896
|
+
const syncFromRef = React28__namespace.default.useCallback(() => {
|
|
2897
|
+
if (!isControlled && (inputRef == null ? void 0 : inputRef.current)) {
|
|
2898
|
+
const v = inputRef.current.value;
|
|
2899
|
+
if (v !== uncontrolledValue) {
|
|
2900
|
+
setUncontrolledValue(v);
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}, [isControlled, inputRef, uncontrolledValue]);
|
|
2904
|
+
React28.useEffect(() => {
|
|
2905
|
+
if (!isControlled) {
|
|
2906
|
+
const id = requestAnimationFrame(syncFromRef);
|
|
2907
|
+
return () => cancelAnimationFrame(id);
|
|
2908
|
+
}
|
|
2909
|
+
}, [isControlled, syncFromRef]);
|
|
2896
2910
|
const handleFocus = (e) => {
|
|
2897
2911
|
onFocus == null ? void 0 : onFocus(e);
|
|
2898
2912
|
setFocused(true);
|