daisyui 1.18.0 → 1.21.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/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.21.0](https://github.com/saadeghi/daisyui/compare/v1.20.1...v1.21.0) (2022-01-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * responsive table compact (fix [#364](https://github.com/saadeghi/daisyui/issues/364)) ([6e3d9b1](https://github.com/saadeghi/daisyui/commit/6e3d9b1074a3f1b02af27d102c3b13e30427f511))
11
+
12
+ ### [1.20.1](https://github.com/saadeghi/daisyui/compare/v1.20.0...v1.20.1) (2021-12-30)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * [#369](https://github.com/saadeghi/daisyui/issues/369) ([7b1b52b](https://github.com/saadeghi/daisyui/commit/7b1b52b71561e86dedf3e69f98e08143ed6a762a))
18
+
19
+ ## [1.20.0](https://github.com/saadeghi/daisyui/compare/v1.19.0...v1.20.0) (2021-12-26)
20
+
21
+
22
+ ### Features
23
+
24
+ * support [checked=true] style on checkbox and toggle ([8131232](https://github.com/saadeghi/daisyui/commit/8131232836c145c23ed40707f4272fb00c6a3f1b))
25
+
26
+ ## [1.19.0](https://github.com/saadeghi/daisyui/compare/v1.17.1...v1.19.0) (2021-12-22)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * menu text color ([30c79ac](https://github.com/saadeghi/daisyui/commit/30c79ac51ba7b1dd642ad8d8871e131da875887f))
32
+
5
33
  ## [1.18.0](https://github.com/saadeghi/daisyui/compare/v1.17.1...v1.18.0) (2021-12-22)
6
34
 
7
35
 
package/README.md CHANGED
@@ -79,7 +79,7 @@ Loading CSS files from CDN is not recommended for production. It's better to ins
79
79
 
80
80
 
81
81
  ```html
82
- <link href="https://cdn.jsdelivr.net/npm/daisyui@1.17.1/dist/full.css" rel="stylesheet" type="text/css" />
82
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@1.20.1/dist/full.css" rel="stylesheet" type="text/css" />
83
83
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
84
84
  ```
85
85
 
@@ -207,6 +207,7 @@ Read the documents for more info:
207
207
  - [dailydev](https://app.daily.dev/posts/-4OPGw0te)
208
208
  - [Future Tech Blog (Japanese)](https://future-architect.github.io/articles/20211124a/)
209
209
  - Youtube videos
210
+ - [Supabase & Sveltekit - Build Twitter in 75 minutes](https://www.youtube.com/watch?v=mPQyckogDYc)
210
211
  - [Setup the Best Frontend JavaScript Stack - Svelte, Vite, TailwindCSS and DaisyUI](https://www.youtube.com/watch?v=mEBPN_9jTAE)
211
212
  - [Jamstack powered Image gallery with Cloudinary, Tailwind and DaisyUI](https://www.youtube.com/watch?v=Hpjq0D1vcpM)
212
213
  - [SvelteKit Crash Course w/ Tailwind CSS and DaisyUI, GraphQL and dynamic routes](https://www.youtube.com/watch?v=zH2qG9YwN3s)
package/dist/full.css CHANGED
@@ -1541,6 +1541,14 @@ html{
1541
1541
  overflow:hidden;
1542
1542
  }
1543
1543
 
1544
+ .drawer.drawer-end{
1545
+ direction:rtl;
1546
+ }
1547
+
1548
+ .drawer.drawer-end>*{
1549
+ direction:ltr;
1550
+ }
1551
+
1544
1552
  .drawer.drawer-end .drawer-toggle~.drawer-side>.drawer-overlay+*{
1545
1553
  justify-self:end;
1546
1554
  --tw-translate-x:100%;
@@ -1692,6 +1700,7 @@ html{
1692
1700
  .drawer-mobile.drawer-end{
1693
1701
  grid-auto-columns:auto -webkit-max-content;
1694
1702
  grid-auto-columns:auto max-content;
1703
+ direction:ltr;
1695
1704
  }
1696
1705
 
1697
1706
  .drawer-mobile.drawer-end>.drawer-toggle~.drawer-content{
@@ -3194,7 +3203,7 @@ html{
3194
3203
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
3195
3204
  }
3196
3205
 
3197
- .checkbox:checked{
3206
+ .checkbox:checked,.checkbox[checked=true]{
3198
3207
  --tw-bg-opacity:1;
3199
3208
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
3200
3209
  background-repeat:no-repeat;
@@ -3219,7 +3228,7 @@ html{
3219
3228
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3220
3229
  }
3221
3230
 
3222
- .checkbox-primary:checked{
3231
+ .checkbox-primary:checked,.checkbox-primary[checked=true]{
3223
3232
  --tw-bg-opacity:1;
3224
3233
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
3225
3234
  --tw-border-opacity:1;
@@ -3244,7 +3253,7 @@ html{
3244
3253
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
3245
3254
  }
3246
3255
 
3247
- .checkbox-secondary:checked{
3256
+ .checkbox-secondary:checked,.checkbox-secondary[checked=true]{
3248
3257
  --tw-bg-opacity:1;
3249
3258
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
3250
3259
  --tw-border-opacity:1;
@@ -3269,7 +3278,7 @@ html{
3269
3278
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
3270
3279
  }
3271
3280
 
3272
- .checkbox-accent:checked{
3281
+ .checkbox-accent:checked,.checkbox-accent[checked=true]{
3273
3282
  --tw-bg-opacity:1;
3274
3283
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
3275
3284
  --tw-border-opacity:1;
@@ -3739,7 +3748,7 @@ html{
3739
3748
  border-radius:var(--rounded-btn, .5rem);
3740
3749
  }
3741
3750
 
3742
- .menu li>a,.menu li>span{
3751
+ .menu li>:where(a),.menu li>:where(span){
3743
3752
  padding:.75rem 1.25rem;
3744
3753
  color:currentColor;
3745
3754
  }
@@ -4635,12 +4644,6 @@ html{
4635
4644
  background-color:hsla(var(--b2) / var(--tw-bg-opacity, 1));
4636
4645
  }
4637
4646
 
4638
- .table-compact td,.table-compact th{
4639
- font-size:.875rem;
4640
- line-height:1.25rem;
4641
- padding:.5rem;
4642
- }
4643
-
4644
4647
  .textarea-bordered{
4645
4648
  --tw-border-opacity:0.2;
4646
4649
  }
@@ -4774,14 +4777,14 @@ html{
4774
4777
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
4775
4778
  }
4776
4779
 
4777
- .toggle:checked{
4780
+ .toggle:checked,.toggle[checked=true]{
4778
4781
  --chkbg:hsl(var(--bc));
4779
4782
  --tw-bg-opacity:1;
4780
4783
  --tw-border-opacity:1;
4781
4784
  box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
4782
4785
  }
4783
4786
 
4784
- [dir=rtl] .toggle:checked{
4787
+ [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
4785
4788
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
4786
4789
  }
4787
4790
 
@@ -4789,7 +4792,7 @@ html{
4789
4792
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
4790
4793
  }
4791
4794
 
4792
- .toggle-primary:checked{
4795
+ .toggle-primary:checked,.toggle-primary[checked=true]{
4793
4796
  --chkbg:hsl(var(--p));
4794
4797
  --tw-bg-opacity:1;
4795
4798
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
@@ -4804,7 +4807,7 @@ html{
4804
4807
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
4805
4808
  }
4806
4809
 
4807
- .toggle-secondary:checked{
4810
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
4808
4811
  --chkbg:hsl(var(--s));
4809
4812
  --tw-bg-opacity:1;
4810
4813
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
@@ -4819,7 +4822,7 @@ html{
4819
4822
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
4820
4823
  }
4821
4824
 
4822
- .toggle-accent:checked{
4825
+ .toggle-accent:checked,.toggle-accent[checked=true]{
4823
4826
  --chkbg:hsl(var(--a));
4824
4827
  --tw-bg-opacity:1;
4825
4828
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
@@ -9771,6 +9774,18 @@ html{
9771
9774
  margin-left:50%;
9772
9775
  }
9773
9776
 
9777
+ .table-normal :where(th,td){
9778
+ font-size:1rem;
9779
+ line-height:1.5rem;
9780
+ padding:1rem;
9781
+ }
9782
+
9783
+ .table-compact :where(th,td){
9784
+ font-size:.875rem;
9785
+ line-height:1.25rem;
9786
+ padding:.5rem;
9787
+ }
9788
+
9774
9789
  @media (min-width:640px){
9775
9790
  .sm\:animate-none{
9776
9791
  -webkit-animation:none;
@@ -14483,6 +14498,18 @@ html{
14483
14498
  --tw-translate-y:-50%;
14484
14499
  margin-left:50%;
14485
14500
  }
14501
+
14502
+ .sm\:table-normal :where(th,td){
14503
+ font-size:1rem;
14504
+ line-height:1.5rem;
14505
+ padding:1rem;
14506
+ }
14507
+
14508
+ .sm\:table-compact :where(th,td){
14509
+ font-size:.875rem;
14510
+ line-height:1.25rem;
14511
+ padding:.5rem;
14512
+ }
14486
14513
  }
14487
14514
 
14488
14515
  @media (min-width:768px){
@@ -19197,6 +19224,18 @@ html{
19197
19224
  --tw-translate-y:-50%;
19198
19225
  margin-left:50%;
19199
19226
  }
19227
+
19228
+ .md\:table-normal :where(th,td){
19229
+ font-size:1rem;
19230
+ line-height:1.5rem;
19231
+ padding:1rem;
19232
+ }
19233
+
19234
+ .md\:table-compact :where(th,td){
19235
+ font-size:.875rem;
19236
+ line-height:1.25rem;
19237
+ padding:.5rem;
19238
+ }
19200
19239
  }
19201
19240
 
19202
19241
  @media (min-width:1024px){
@@ -23911,6 +23950,18 @@ html{
23911
23950
  --tw-translate-y:-50%;
23912
23951
  margin-left:50%;
23913
23952
  }
23953
+
23954
+ .lg\:table-normal :where(th,td){
23955
+ font-size:1rem;
23956
+ line-height:1.5rem;
23957
+ padding:1rem;
23958
+ }
23959
+
23960
+ .lg\:table-compact :where(th,td){
23961
+ font-size:.875rem;
23962
+ line-height:1.25rem;
23963
+ padding:.5rem;
23964
+ }
23914
23965
  }
23915
23966
 
23916
23967
  @media (min-width:1280px){
@@ -28625,6 +28676,18 @@ html{
28625
28676
  --tw-translate-y:-50%;
28626
28677
  margin-left:50%;
28627
28678
  }
28679
+
28680
+ .xl\:table-normal :where(th,td){
28681
+ font-size:1rem;
28682
+ line-height:1.5rem;
28683
+ padding:1rem;
28684
+ }
28685
+
28686
+ .xl\:table-compact :where(th,td){
28687
+ font-size:.875rem;
28688
+ line-height:1.25rem;
28689
+ padding:.5rem;
28690
+ }
28628
28691
  }
28629
28692
 
28630
28693
  @media (min-width:1536px){
@@ -33339,5 +33402,17 @@ html{
33339
33402
  --tw-translate-y:-50%;
33340
33403
  margin-left:50%;
33341
33404
  }
33405
+
33406
+ .\32xl\:table-normal :where(th,td){
33407
+ font-size:1rem;
33408
+ line-height:1.5rem;
33409
+ padding:1rem;
33410
+ }
33411
+
33412
+ .\32xl\:table-compact :where(th,td){
33413
+ font-size:.875rem;
33414
+ line-height:1.25rem;
33415
+ padding:.5rem;
33416
+ }
33342
33417
  }
33343
33418
 
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;
@@ -1702,10 +1709,12 @@
1702
1709
  .checkbox:focus-visible{
1703
1710
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
1704
1711
  }
1705
- .checkbox:checked{
1712
+ .checkbox:checked,.checkbox[checked=true]{
1706
1713
  --tw-bg-opacity:1;
1707
1714
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
1708
1715
  background-repeat:no-repeat;
1716
+ }
1717
+ .checkbox:checked,.checkbox[checked=true]{
1709
1718
  -webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
1710
1719
  animation:checkmark var(--animation-input, .2s) ease-in-out;
1711
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);
@@ -1723,7 +1732,7 @@
1723
1732
  .checkbox-primary:focus-visible{
1724
1733
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
1725
1734
  }
1726
- .checkbox-primary:checked{
1735
+ .checkbox-primary:checked,.checkbox-primary[checked=true]{
1727
1736
  --tw-bg-opacity:1;
1728
1737
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
1729
1738
  --tw-border-opacity:1;
@@ -1744,7 +1753,7 @@
1744
1753
  .checkbox-secondary:focus-visible{
1745
1754
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
1746
1755
  }
1747
- .checkbox-secondary:checked{
1756
+ .checkbox-secondary:checked,.checkbox-secondary[checked=true]{
1748
1757
  --tw-bg-opacity:1;
1749
1758
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
1750
1759
  --tw-border-opacity:1;
@@ -1765,7 +1774,7 @@
1765
1774
  .checkbox-accent:focus-visible{
1766
1775
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
1767
1776
  }
1768
- .checkbox-accent:checked{
1777
+ .checkbox-accent:checked,.checkbox-accent[checked=true]{
1769
1778
  --tw-bg-opacity:1;
1770
1779
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
1771
1780
  --tw-border-opacity:1;
@@ -2320,7 +2329,7 @@
2320
2329
  .menu[class*=p-] li a{
2321
2330
  border-radius:var(--rounded-btn, .5rem);
2322
2331
  }
2323
- .menu li>a,.menu li>span{
2332
+ .menu li>:where(a),.menu li>:where(span){
2324
2333
  padding:.75rem 1.25rem;
2325
2334
  color:currentColor;
2326
2335
  }
@@ -3263,11 +3272,6 @@
3263
3272
  --tw-bg-opacity:1;
3264
3273
  background-color:hsla(var(--b2) / var(--tw-bg-opacity, 1));
3265
3274
  }
3266
- .table-compact td,.table-compact th{
3267
- font-size:.875rem;
3268
- line-height:1.25rem;
3269
- padding:.5rem;
3270
- }
3271
3275
  .textarea{
3272
3276
  --tw-bg-opacity:1;
3273
3277
  background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
@@ -3391,20 +3395,26 @@
3391
3395
  .toggle:focus-visible{
3392
3396
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
3393
3397
  }
3394
- .toggle:checked{
3395
- --chkbg:hsl(var(--bc));
3398
+ .toggle:checked,.toggle[checked=true]{
3399
+ --chkbg:hsl(var(--bc))
3400
+ }
3401
+ .toggle:checked,.toggle[checked=true]{
3396
3402
  --tw-bg-opacity:1;
3397
3403
  --tw-border-opacity:1;
3404
+ }
3405
+ .toggle:checked,.toggle[checked=true]{
3398
3406
  box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3399
3407
  }
3400
- [dir=rtl] .toggle:checked{
3408
+ [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
3401
3409
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3402
3410
  }
3403
3411
  .toggle-primary:focus-visible{
3404
3412
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3405
3413
  }
3406
- .toggle-primary:checked{
3414
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3407
3415
  --chkbg:hsl(var(--p));
3416
+ }
3417
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3408
3418
  --tw-bg-opacity:1;
3409
3419
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
3410
3420
  --tw-border-opacity:1;
@@ -3416,8 +3426,10 @@
3416
3426
  .toggle-secondary:focus-visible{
3417
3427
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
3418
3428
  }
3419
- .toggle-secondary:checked{
3429
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3420
3430
  --chkbg:hsl(var(--s));
3431
+ }
3432
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3421
3433
  --tw-bg-opacity:1;
3422
3434
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
3423
3435
  --tw-border-opacity:1;
@@ -3429,8 +3441,10 @@
3429
3441
  .toggle-accent:focus-visible{
3430
3442
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
3431
3443
  }
3432
- .toggle-accent:checked{
3444
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3433
3445
  --chkbg:hsl(var(--a));
3446
+ }
3447
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3434
3448
  --tw-bg-opacity:1;
3435
3449
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
3436
3450
  --tw-border-opacity:1;