@vygruppen/spor-react 12.16.2 → 12.16.4
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 +12 -0
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/input/useFLoatingInputState.tsx +18 -0
- package/src/typography/Text.tsx +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.16.
|
|
2
|
+
> @vygruppen/spor-react@12.16.4 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 2709ms
|
|
19
|
+
ESM dist/index.mjs 299.89 KB
|
|
20
|
+
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
|
22
|
+
ESM dist/index.mjs.map 641.26 KB
|
|
23
|
+
ESM ⚡️ Build success in 2711ms
|
|
24
|
+
DTS ⚡️ Build success in 19151ms
|
|
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.4 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: 🛠️ run anywhere with `dotenvx run -- yourcommand`
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[35m◒[39m Generating conditions types...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 12.16.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 641c3a4: Fix text color on text to inherit from parent.
|
|
8
|
+
|
|
9
|
+
## 12.16.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d51339d: Fix label not floating with edgecase in React Hook Form
|
|
14
|
+
|
|
3
15
|
## 12.16.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -783,7 +783,7 @@ function resolveTextProps({
|
|
|
783
783
|
}
|
|
784
784
|
var Text3 = React28.forwardRef(
|
|
785
785
|
function Text4(props, ref) {
|
|
786
|
-
const { variant, lineHeight, fontSize, color = "
|
|
786
|
+
const { variant, lineHeight, fontSize, color = "inherit", ...rest } = props;
|
|
787
787
|
const resolvedProps = resolveTextProps({ variant, fontSize, lineHeight });
|
|
788
788
|
return /* @__PURE__ */ jsxRuntime.jsx(react.Text, { ...resolvedProps, color, ...rest, ref });
|
|
789
789
|
}
|
|
@@ -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);
|