@auronui/styles 1.0.3 → 1.0.5
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/components/calendar.css +11 -4
- package/components/input.css +0 -2
- package/package.json +1 -1
package/components/calendar.css
CHANGED
|
@@ -194,14 +194,21 @@
|
|
|
194
194
|
@apply bg-default;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
/* Unavailable dates
|
|
198
|
-
|
|
197
|
+
/* Unavailable dates — Reka places data-unavailable="" on the inner CalendarCellTrigger
|
|
198
|
+
button, not the outer td. Use :has() to match the parent cell when its child trigger
|
|
199
|
+
carries the attribute (consistent with :has([data-today]) and :has([data-outside-view])
|
|
200
|
+
patterns used above). */
|
|
201
|
+
&:has([data-unavailable]) {
|
|
199
202
|
@apply status-disabled;
|
|
200
203
|
}
|
|
201
204
|
|
|
202
|
-
/* Disabled state
|
|
205
|
+
/* Disabled state — Reka places data-disabled="" on CalendarCell (td) only for
|
|
206
|
+
isDateDisabled() and disableDaysOutsideCurrentView. For minValue/maxValue out-of-range
|
|
207
|
+
dates Reka sets data-disabled="" on CalendarCellTrigger (inner button), so we also
|
|
208
|
+
match via :has() to ensure out-of-range dates are visually disabled. */
|
|
203
209
|
&:disabled:not([data-outside-month="true"]),
|
|
204
|
-
&[data-disabled]:not([data-outside-month="true"])
|
|
210
|
+
&[data-disabled]:not([data-outside-month="true"]),
|
|
211
|
+
&:has([data-disabled]):not([data-outside-month="true"]) {
|
|
205
212
|
@apply status-disabled;
|
|
206
213
|
|
|
207
214
|
text-decoration: line-through;
|
package/components/input.css
CHANGED
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* Invalid state */
|
|
50
|
-
&:has(> input:invalid),
|
|
51
50
|
&[data-invalid="true"] {
|
|
52
51
|
@apply status-invalid-field;
|
|
53
52
|
background-color: var(--color-field-focus);
|
|
@@ -451,7 +450,6 @@
|
|
|
451
450
|
}
|
|
452
451
|
|
|
453
452
|
/* Invalid state — label color flips to danger */
|
|
454
|
-
.input--label-inside:has(> input:invalid) .input__label,
|
|
455
453
|
.input--label-inside[data-invalid="true"] .input__label {
|
|
456
454
|
color: var(--color-danger);
|
|
457
455
|
}
|