daisyui 1.17.1 → 1.20.1

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
@@ -319,6 +319,12 @@
319
319
  display:grid;
320
320
  overflow:hidden;
321
321
  }
322
+ .drawer.drawer-end{
323
+ direction:rtl;
324
+ }
325
+ .drawer.drawer-end>*{
326
+ direction:ltr;
327
+ }
322
328
  .drawer.drawer-end .drawer-toggle~.drawer-side>.drawer-overlay+*{
323
329
  justify-self:end;
324
330
  --tw-translate-x:100%;
@@ -424,6 +430,7 @@
424
430
  .drawer-mobile.drawer-end{
425
431
  grid-auto-columns:auto -webkit-max-content;
426
432
  grid-auto-columns:auto max-content;
433
+ direction:ltr;
427
434
  }
428
435
  .drawer-mobile.drawer-end>.drawer-toggle~.drawer-content{
429
436
  height:auto;
@@ -1638,6 +1645,11 @@
1638
1645
  border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
1639
1646
  border-width:1px;
1640
1647
  }
1648
+ .card-bordered{
1649
+ --tw-border-opacity:1;
1650
+ border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
1651
+ border-width:1px;
1652
+ }
1641
1653
  .card.compact .card-body{
1642
1654
  font-size:.875rem;
1643
1655
  line-height:1.25rem;
@@ -1697,10 +1709,12 @@
1697
1709
  .checkbox:focus-visible{
1698
1710
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
1699
1711
  }
1700
- .checkbox:checked{
1712
+ .checkbox:checked,.checkbox[checked=true]{
1701
1713
  --tw-bg-opacity:1;
1702
1714
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
1703
1715
  background-repeat:no-repeat;
1716
+ }
1717
+ .checkbox:checked,.checkbox[checked=true]{
1704
1718
  -webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
1705
1719
  animation:checkmark var(--animation-input, .2s) ease-in-out;
1706
1720
  background-image:linear-gradient(-45deg, transparent 65%, hsl(var(--chkbg)) 0), linear-gradient(45deg, transparent 75%, hsl(var(--chkbg)) 0), linear-gradient(-45deg, hsl(var(--chkbg)) 40%, transparent 0), linear-gradient(45deg, hsl(var(--chkbg)) 30%, hsl(var(--chkfg)) 0, hsl(var(--chkfg)) 40%, transparent 0), linear-gradient(-45deg, hsl(var(--chkfg)) 50%, hsl(var(--chkbg)) 0);
@@ -1718,7 +1732,7 @@
1718
1732
  .checkbox-primary:focus-visible{
1719
1733
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
1720
1734
  }
1721
- .checkbox-primary:checked{
1735
+ .checkbox-primary:checked,.checkbox-primary[checked=true]{
1722
1736
  --tw-bg-opacity:1;
1723
1737
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
1724
1738
  --tw-border-opacity:1;
@@ -1739,7 +1753,7 @@
1739
1753
  .checkbox-secondary:focus-visible{
1740
1754
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
1741
1755
  }
1742
- .checkbox-secondary:checked{
1756
+ .checkbox-secondary:checked,.checkbox-secondary[checked=true]{
1743
1757
  --tw-bg-opacity:1;
1744
1758
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
1745
1759
  --tw-border-opacity:1;
@@ -1760,7 +1774,7 @@
1760
1774
  .checkbox-accent:focus-visible{
1761
1775
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
1762
1776
  }
1763
- .checkbox-accent:checked{
1777
+ .checkbox-accent:checked,.checkbox-accent[checked=true]{
1764
1778
  --tw-bg-opacity:1;
1765
1779
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
1766
1780
  --tw-border-opacity:1;
@@ -2315,27 +2329,27 @@
2315
2329
  .menu[class*=p-] li a{
2316
2330
  border-radius:var(--rounded-btn, .5rem);
2317
2331
  }
2318
- .menu li>a,.menu li>span{
2332
+ .menu li>:where(a),.menu li>:where(span){
2319
2333
  padding:.75rem 1.25rem;
2320
2334
  color:currentColor;
2321
2335
  }
2322
- .menu li>a:focus,.menu li>a:hover{
2323
- --tw-bg-opacity:1;
2324
- background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2325
- --tw-bg-opacity:0.1;
2326
- }
2327
- .menu li>a.active{
2328
- --tw-bg-opacity:1;
2329
- background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
2330
- --tw-text-opacity:1;
2331
- color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2332
- }
2333
- .menu li>a:active{
2334
- --tw-bg-opacity:1;
2335
- background-color:hsla(var(--pf) / var(--tw-bg-opacity, 1));
2336
- --tw-text-opacity:1;
2337
- color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2338
- }
2336
+ .menu li>:where(a:focus),.menu li>:where(a:hover){
2337
+ --tw-bg-opacity:1;
2338
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2339
+ --tw-bg-opacity:0.1;
2340
+ }
2341
+ .menu li>:where(a.active){
2342
+ --tw-bg-opacity:1;
2343
+ background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
2344
+ --tw-text-opacity:1;
2345
+ color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2346
+ }
2347
+ .menu li>:where(a:active){
2348
+ --tw-bg-opacity:1;
2349
+ background-color:hsla(var(--pf) / var(--tw-bg-opacity, 1));
2350
+ --tw-text-opacity:1;
2351
+ color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2352
+ }
2339
2353
  .menu li.disabled>a:hover,.menu li.disabled>span:hover{
2340
2354
  background-color:transparent;
2341
2355
  }
@@ -3208,7 +3222,7 @@
3208
3222
  }.table{
3209
3223
  text-align:left;
3210
3224
  }
3211
- .table td,.table th{
3225
+ .table :where(th,td){
3212
3226
  padding:1rem;
3213
3227
  vertical-align:middle;
3214
3228
  white-space:nowrap;
@@ -3221,12 +3235,12 @@
3221
3235
  --tw-bg-opacity:1;
3222
3236
  background-color:hsla(var(--b3) / var(--tw-bg-opacity, 1));
3223
3237
  }
3224
- .table:not(.table-zebra) tbody tr:not(:last-child) td,.table:not(.table-zebra) tbody tr:not(:last-child) th,.table:not(.table-zebra) tfoot tr:not(:last-child) td,.table:not(.table-zebra) tfoot tr:not(:last-child) th,.table:not(.table-zebra) thead tr:not(:last-child) td,.table:not(.table-zebra) thead tr:not(:last-child) th{
3225
- --tw-border-opacity:1;
3226
- border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
3227
- border-bottom-width:1px;
3228
- }
3229
- .table tfoot td,.table tfoot th,.table thead td,.table thead th{
3238
+ .table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){
3239
+ --tw-border-opacity:1;
3240
+ border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
3241
+ border-bottom-width:1px;
3242
+ }
3243
+ .table :where(thead,tfoot) :where(th,td){
3230
3244
  --tw-bg-opacity:1;
3231
3245
  background-color:hsla(var(--b2) / var(--tw-bg-opacity, 1));
3232
3246
  font-weight:700;
@@ -3234,18 +3248,18 @@
3234
3248
  line-height:1rem;
3235
3249
  text-transform:uppercase;
3236
3250
  }
3237
- .table tfoot td:first-child,.table tfoot th:first-child,.table thead td:first-child,.table thead th:first-child{
3251
+ .table :where(thead,tfoot) :where(th,td):first-child{
3238
3252
  border-top-left-radius:.5rem;
3239
3253
  border-bottom-left-radius:.5rem;
3240
3254
  }
3241
- .table tfoot td:last-child,.table tfoot th:last-child,.table thead td:last-child,.table thead th:last-child{
3255
+ .table :where(thead,tfoot) :where(th,td):last-child{
3242
3256
  border-top-right-radius:.5rem;
3243
3257
  border-bottom-right-radius:.5rem;
3244
3258
  }
3245
- .table tbody td,.table tbody th{
3246
- --tw-bg-opacity:1;
3247
- background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
3248
- }
3259
+ .table :where(tbody th,tbody td){
3260
+ --tw-bg-opacity:1;
3261
+ background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
3262
+ }
3249
3263
  .table-zebra tbody tr td:first-child,.table-zebra tbody tr th:first-child{
3250
3264
  border-top-left-radius:.5rem;
3251
3265
  border-bottom-left-radius:.5rem;
@@ -3386,20 +3400,26 @@
3386
3400
  .toggle:focus-visible{
3387
3401
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
3388
3402
  }
3389
- .toggle:checked{
3390
- --chkbg:hsl(var(--bc));
3403
+ .toggle:checked,.toggle[checked=true]{
3404
+ --chkbg:hsl(var(--bc))
3405
+ }
3406
+ .toggle:checked,.toggle[checked=true]{
3391
3407
  --tw-bg-opacity:1;
3392
3408
  --tw-border-opacity:1;
3409
+ }
3410
+ .toggle:checked,.toggle[checked=true]{
3393
3411
  box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3394
3412
  }
3395
- [dir=rtl] .toggle:checked{
3413
+ [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
3396
3414
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3397
3415
  }
3398
3416
  .toggle-primary:focus-visible{
3399
3417
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3400
3418
  }
3401
- .toggle-primary:checked{
3419
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3402
3420
  --chkbg:hsl(var(--p));
3421
+ }
3422
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3403
3423
  --tw-bg-opacity:1;
3404
3424
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
3405
3425
  --tw-border-opacity:1;
@@ -3411,8 +3431,10 @@
3411
3431
  .toggle-secondary:focus-visible{
3412
3432
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
3413
3433
  }
3414
- .toggle-secondary:checked{
3434
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3415
3435
  --chkbg:hsl(var(--s));
3436
+ }
3437
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3416
3438
  --tw-bg-opacity:1;
3417
3439
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
3418
3440
  --tw-border-opacity:1;
@@ -3424,8 +3446,10 @@
3424
3446
  .toggle-accent:focus-visible{
3425
3447
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
3426
3448
  }
3427
- .toggle-accent:checked{
3449
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3428
3450
  --chkbg:hsl(var(--a));
3451
+ }
3452
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3429
3453
  --tw-bg-opacity:1;
3430
3454
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
3431
3455
  --tw-border-opacity:1;