free-astro-components 0.0.17 → 0.0.19
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/package.json +1 -1
- package/src/components/Input.astro +12 -14
package/package.json
CHANGED
|
@@ -86,10 +86,20 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
|
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
&:has(
|
|
89
|
+
&:has(.ac-input--error) .ac-input-helper-text {
|
|
90
|
+
color: rgb(var(--ac-danger));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:has(.ac-input--success) .ac-input-helper-text {
|
|
94
|
+
color: rgb(var(--ac-success));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:has(.ac-input-icon--left) .ac-input {
|
|
90
98
|
padding-left: var(--ac-spacing-12);
|
|
91
99
|
}
|
|
92
|
-
|
|
100
|
+
|
|
101
|
+
&:has(.ac-input-icon--right) .ac-input,
|
|
102
|
+
&:has(.ac-input-password-btn) .ac-input {
|
|
93
103
|
padding-right: var(--ac-spacing-12);
|
|
94
104
|
}
|
|
95
105
|
}
|
|
@@ -130,18 +140,6 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
|
|
|
130
140
|
&.ac-input--error {
|
|
131
141
|
border-color: rgb(var(--ac-danger));
|
|
132
142
|
}
|
|
133
|
-
|
|
134
|
-
&.ac-input--error + .ac-input-helper-text {
|
|
135
|
-
color: rgb(var(--ac-danger));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.ac-input--success {
|
|
139
|
-
border-color: rgb(var(--ac-success));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.ac-input--success + .ac-input-helper-text {
|
|
143
|
-
color: rgb(var(--ac-success));
|
|
144
|
-
}
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
.ac-input-label {
|