@dloizides/ui-forms 1.25.0 → 1.25.1
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -856,9 +856,11 @@ function useThemedInput(options = {}) {
|
|
|
856
856
|
const style = useMemo(() => {
|
|
857
857
|
const restBorder = hasError ? errorColor : colors.border;
|
|
858
858
|
const focusBorder = hasError ? errorColor : primary;
|
|
859
|
-
const
|
|
859
|
+
const editableBorder = isFocused ? focusBorder : isHovered ? withAlpha(colors.text, HOVER_BORDER_ALPHA) : restBorder;
|
|
860
|
+
const readOnlyBorder = hasError ? errorColor : colors.surface;
|
|
861
|
+
const borderColor = editable ? editableBorder : readOnlyBorder;
|
|
860
862
|
const editableFill = isFocused ? colors.surface : colors.surfaceElevated;
|
|
861
|
-
const backgroundColor = editable ? editableFill : colors.
|
|
863
|
+
const backgroundColor = editable ? editableFill : colors.surface;
|
|
862
864
|
const base = { color: editable ? colors.text : colors.textSecondary, borderColor, backgroundColor };
|
|
863
865
|
if (!IS_WEB5) return base;
|
|
864
866
|
const ringColor = hasError ? errorColor : themeFocusRingColor(theme);
|