daisyui 2.19.1 → 2.20.0

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/dist/styled.css CHANGED
@@ -1992,7 +1992,8 @@
1992
1992
  outline-offset: 2px;
1993
1993
  }
1994
1994
  .checkbox:checked,
1995
- .checkbox[checked="true"] {
1995
+ .checkbox[checked="true"],
1996
+ .checkbox[aria-checked=true] {
1996
1997
  --tw-bg-opacity: 1;
1997
1998
  background-color: hsl(var(--bc) / var(--tw-bg-opacity));
1998
1999
  background-repeat: no-repeat;
@@ -2020,7 +2021,8 @@
2020
2021
  outline: 2px solid hsl(var(--p));
2021
2022
  }
2022
2023
  .checkbox-primary:checked,
2023
- .checkbox-primary[checked="true"] {
2024
+ .checkbox-primary[checked="true"],
2025
+ .checkbox-primary[aria-checked=true] {
2024
2026
  --tw-border-opacity: 1;
2025
2027
  border-color: hsl(var(--p) / var(--tw-border-opacity));
2026
2028
  --tw-bg-opacity: 1;
@@ -2042,7 +2044,8 @@
2042
2044
  outline: 2px solid hsl(var(--s));
2043
2045
  }
2044
2046
  .checkbox-secondary:checked,
2045
- .checkbox-secondary[checked="true"] {
2047
+ .checkbox-secondary[checked="true"],
2048
+ .checkbox-secondary[aria-checked=true] {
2046
2049
  --tw-border-opacity: 1;
2047
2050
  border-color: hsl(var(--s) / var(--tw-border-opacity));
2048
2051
  --tw-bg-opacity: 1;
@@ -2064,7 +2067,8 @@
2064
2067
  outline: 2px solid hsl(var(--a));
2065
2068
  }
2066
2069
  .checkbox-accent:checked,
2067
- .checkbox-accent[checked="true"] {
2070
+ .checkbox-accent[checked="true"],
2071
+ .checkbox-accent[aria-checked=true] {
2068
2072
  --tw-border-opacity: 1;
2069
2073
  border-color: hsl(var(--a) / var(--tw-border-opacity));
2070
2074
  --tw-bg-opacity: 1;
@@ -2104,7 +2108,8 @@ body[dir="rtl"] .checkbox {
2104
2108
  }
2105
2109
 
2106
2110
  body[dir="rtl"] .checkbox:checked,
2107
- body[dir="rtl"] .checkbox[checked="true"] {
2111
+ body[dir="rtl"] .checkbox[checked="true"],
2112
+ body[dir="rtl"] .checkbox[aria-checked=true] {
2108
2113
  background-image: linear-gradient(45deg, transparent 65%, hsl(var(--chkbg)) 65.99%), linear-gradient(-45deg, transparent 75%, hsl(var(--chkbg)) 75.99%), linear-gradient(45deg, hsl(var(--chkbg)) 40%, transparent 40.99%), linear-gradient(-45deg, hsl(var(--chkbg)) 30%, hsl(var(--chkfg)) 30.99%, hsl(var(--chkfg)) 40%, transparent 40.99%), linear-gradient(45deg, hsl(var(--chkfg)) 50%, hsl(var(--chkbg)) 50.99%);
2109
2114
  }
2110
2115
  .collapse:focus-visible {
@@ -3028,7 +3033,8 @@ body[dir="rtl"] .checkbox:checked,
3028
3033
  outline: 2px solid hsl(var(--bc));
3029
3034
  outline-offset: 2px;
3030
3035
  }
3031
- .radio:checked {
3036
+ .radio:checked,
3037
+ .radio[aria-checked=true] {
3032
3038
  --tw-bg-opacity: 1;
3033
3039
  background-color: hsl(var(--bc) / var(--tw-bg-opacity));
3034
3040
  animation: radiomark var(--animation-input, 0.2s) ease-in-out;
@@ -3046,7 +3052,8 @@ body[dir="rtl"] .checkbox:checked,
3046
3052
  .radio-primary:focus-visible {
3047
3053
  outline: 2px solid hsl(var(--p));
3048
3054
  }
3049
- .radio-primary:checked {
3055
+ .radio-primary:checked,
3056
+ .radio-primary[aria-checked=true] {
3050
3057
  --tw-border-opacity: 1;
3051
3058
  border-color: hsl(var(--p) / var(--tw-border-opacity));
3052
3059
  --tw-bg-opacity: 1;
@@ -3066,7 +3073,8 @@ body[dir="rtl"] .checkbox:checked,
3066
3073
  .radio-secondary:focus-visible {
3067
3074
  outline: 2px solid hsl(var(--s));
3068
3075
  }
3069
- .radio-secondary:checked {
3076
+ .radio-secondary:checked,
3077
+ .radio-secondary[aria-checked=true] {
3070
3078
  --tw-border-opacity: 1;
3071
3079
  border-color: hsl(var(--s) / var(--tw-border-opacity));
3072
3080
  --tw-bg-opacity: 1;
@@ -3086,7 +3094,8 @@ body[dir="rtl"] .checkbox:checked,
3086
3094
  .radio-accent:focus-visible {
3087
3095
  outline: 2px solid hsl(var(--a));
3088
3096
  }
3089
- .radio-accent:checked {
3097
+ .radio-accent:checked,
3098
+ .radio-accent[aria-checked=true] {
3090
3099
  --tw-border-opacity: 1;
3091
3100
  border-color: hsl(var(--a) / var(--tw-border-opacity));
3092
3101
  --tw-bg-opacity: 1;
@@ -3193,7 +3202,8 @@ body[dir="rtl"] .checkbox:checked,
3193
3202
  width: 0.5rem;
3194
3203
  background-color: transparent;
3195
3204
  }
3196
- .rating input:checked ~ input {
3205
+ .rating input:checked ~ input,
3206
+ .rating input[aria-checked=true] ~ input {
3197
3207
  --tw-bg-opacity: 0.2;
3198
3208
  }
3199
3209
  .rating input:focus-visible {
@@ -3872,13 +3882,14 @@ body[dir="rtl"] .checkbox:checked,
3872
3882
  outline-offset: 2px;
3873
3883
  }
3874
3884
  .toggle:checked,
3875
- .toggle[checked="true"] {
3885
+ .toggle[checked="true"],
3886
+ .toggle[aria-checked=true] {
3876
3887
  --chkbg: hsl(var(--bc));
3877
3888
  --tw-border-opacity: 1;
3878
3889
  --tw-bg-opacity: 1;
3879
3890
  box-shadow: var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset;
3880
3891
  }
3881
- [dir="rtl"] .toggle:checked, [dir="rtl"] .toggle[checked="true"] {
3892
+ [dir="rtl"] .toggle:checked, [dir="rtl"] .toggle[checked="true"], [dir="rtl"] .toggle[aria-checked=true] {
3882
3893
  box-shadow: calc(var(--handleoffset) * 1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset;
3883
3894
  }
3884
3895
  .toggle:indeterminate {
@@ -3894,7 +3905,8 @@ body[dir="rtl"] .checkbox:checked,
3894
3905
  outline: 2px solid hsl(var(--p));
3895
3906
  }
3896
3907
  .toggle-primary:checked,
3897
- .toggle-primary[checked="true"] {
3908
+ .toggle-primary[checked="true"],
3909
+ .toggle-primary[aria-checked=true] {
3898
3910
  --chkbg: hsl(var(--p));
3899
3911
  border-color: hsl(var(--p) / var(--tw-border-opacity));
3900
3912
  --tw-border-opacity: 0.1;
@@ -3907,7 +3919,8 @@ body[dir="rtl"] .checkbox:checked,
3907
3919
  outline: 2px solid hsl(var(--s));
3908
3920
  }
3909
3921
  .toggle-secondary:checked,
3910
- .toggle-secondary[checked="true"] {
3922
+ .toggle-secondary[checked="true"],
3923
+ .toggle-secondary[aria-checked=true] {
3911
3924
  --chkbg: hsl(var(--s));
3912
3925
  border-color: hsl(var(--s) / var(--tw-border-opacity));
3913
3926
  --tw-border-opacity: 0.1;
@@ -3920,7 +3933,8 @@ body[dir="rtl"] .checkbox:checked,
3920
3933
  outline: 2px solid hsl(var(--a));
3921
3934
  }
3922
3935
  .toggle-accent:checked,
3923
- .toggle-accent[checked="true"] {
3936
+ .toggle-accent[checked="true"],
3937
+ .toggle-accent[aria-checked=true] {
3924
3938
  --chkbg: hsl(var(--a));
3925
3939
  border-color: hsl(var(--a) / var(--tw-border-opacity));
3926
3940
  --tw-border-opacity: 0.1;