@sarunyu/system-one 4.7.2 → 4.7.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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/input.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3509,7 +3509,7 @@ const Input = React.forwardRef(function Input2({
|
|
|
3509
3509
|
const controlled = value !== void 0;
|
|
3510
3510
|
const currentValue = controlled ? value : internalValue;
|
|
3511
3511
|
const isDisabled = forceState === "disabled";
|
|
3512
|
-
const state = forceState
|
|
3512
|
+
const state = forceState && forceState !== "default" ? forceState : focused ? "focus" : "default";
|
|
3513
3513
|
const isError = state === "error";
|
|
3514
3514
|
const isFocus = state === "focus";
|
|
3515
3515
|
const isFilled = currentValue.length > 0;
|