free-astro-components 0.0.19 → 0.0.21

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.19",
6
+ "version": "0.0.21",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": {
@@ -81,11 +81,15 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
81
81
  position: relative;
82
82
  }
83
83
 
84
- &:has(:disabled) {
84
+ &:has(.ac-input:disabled) {
85
85
  opacity: var(--ac-disabled-opacity);
86
86
  pointer-events: none;
87
87
  }
88
88
 
89
+ &:has(.ac-input:read-only) .ac-input {
90
+ background-color: rgb(var(--ac-gray-100));
91
+ }
92
+
89
93
  &:has(.ac-input--error) .ac-input-helper-text {
90
94
  color: rgb(var(--ac-danger));
91
95
  }
@@ -133,10 +137,6 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
133
137
  background-color: rgb(var(--ac-gray-100));
134
138
  }
135
139
 
136
- &:read-only {
137
- background-color: rgb(var(--ac-gray-100));
138
- }
139
-
140
140
  &.ac-input--error {
141
141
  border-color: rgb(var(--ac-danger));
142
142
  }