free-astro-components 0.0.18 → 0.0.20
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 +10 -14
package/package.json
CHANGED
|
@@ -86,6 +86,14 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
|
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
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
|
+
|
|
89
97
|
&:has(.ac-input-icon--left) .ac-input {
|
|
90
98
|
padding-left: var(--ac-spacing-12);
|
|
91
99
|
}
|
|
@@ -125,24 +133,12 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
|
|
|
125
133
|
background-color: rgb(var(--ac-gray-100));
|
|
126
134
|
}
|
|
127
135
|
|
|
128
|
-
&:read-only {
|
|
129
|
-
background-color: rgb(var(--ac-gray-100));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
136
|
&.ac-input--error {
|
|
133
137
|
border-color: rgb(var(--ac-danger));
|
|
134
138
|
}
|
|
135
139
|
|
|
136
|
-
|
|
137
|
-
color: rgb(var(--ac-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&.ac-input--success {
|
|
141
|
-
border-color: rgb(var(--ac-success));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&.ac-input--success + .ac-input-helper-text {
|
|
145
|
-
color: rgb(var(--ac-success));
|
|
140
|
+
&:read-only {
|
|
141
|
+
background-color: rgb(var(--ac-gray-100));
|
|
146
142
|
}
|
|
147
143
|
}
|
|
148
144
|
|