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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A collection of free Astro components",
4
4
  "author": "Denis Ventura",
5
5
  "type": "module",
6
- "version": "0.0.17",
6
+ "version": "0.0.19",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": {
@@ -86,10 +86,20 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
86
86
  pointer-events: none;
87
87
  }
88
88
 
89
- &:has([type='search']) .ac-input {
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
- &:has([type='password']) .ac-input {
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 {