@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.16.2 build /home/runner/work/spor/spor/packages/spor-react
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
- ESM dist/index.mjs 299.41 KB
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 dist/index.cjs.map 640.33 KB
23
- CJS ⚡️ Build success in 2605ms
24
- DTS ⚡️ Build success in 19709ms
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 postinstall /home/runner/work/spor/spor/packages/spor-react
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: 🔐 prevent building .env in docker: https://dotenvx.com/prebuild
5
+ [dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ load multiple .env files with { path: ['.env.local', '.env'] }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d51339d: Fix label not floating with edgecase in React Hook Form
8
+
3
9
  ## 12.16.2
4
10
 
5
11
  ### Patch Changes
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);