daisyui 1.19.0 → 1.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/CHANGELOG.md +7 -0
- package/README.md +2 -1
- package/dist/full.css +9 -9
- package/dist/styled.css +22 -10
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.20.0](https://github.com/saadeghi/daisyui/compare/v1.19.0...v1.20.0) (2021-12-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* support [checked=true] style on checkbox and toggle ([8131232](https://github.com/saadeghi/daisyui/commit/8131232836c145c23ed40707f4272fb00c6a3f1b))
|
|
11
|
+
|
|
5
12
|
## [1.19.0](https://github.com/saadeghi/daisyui/compare/v1.17.1...v1.19.0) (2021-12-22)
|
|
6
13
|
|
|
7
14
|
|
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.
|
|
82
|
+
<link href="https://cdn.jsdelivr.net/npm/daisyui@1.19.0/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
|
@@ -3194,7 +3194,7 @@ html{
|
|
|
3194
3194
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
|
|
3195
3195
|
}
|
|
3196
3196
|
|
|
3197
|
-
.checkbox:checked{
|
|
3197
|
+
.checkbox:checked,.checkbox[checked=true]{
|
|
3198
3198
|
--tw-bg-opacity:1;
|
|
3199
3199
|
background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
|
|
3200
3200
|
background-repeat:no-repeat;
|
|
@@ -3219,7 +3219,7 @@ html{
|
|
|
3219
3219
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
|
|
3220
3220
|
}
|
|
3221
3221
|
|
|
3222
|
-
.checkbox-primary:checked{
|
|
3222
|
+
.checkbox-primary:checked,.checkbox-primary[checked=true]{
|
|
3223
3223
|
--tw-bg-opacity:1;
|
|
3224
3224
|
background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
|
|
3225
3225
|
--tw-border-opacity:1;
|
|
@@ -3244,7 +3244,7 @@ html{
|
|
|
3244
3244
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
|
-
.checkbox-secondary:checked{
|
|
3247
|
+
.checkbox-secondary:checked,.checkbox-secondary[checked=true]{
|
|
3248
3248
|
--tw-bg-opacity:1;
|
|
3249
3249
|
background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
|
|
3250
3250
|
--tw-border-opacity:1;
|
|
@@ -3269,7 +3269,7 @@ html{
|
|
|
3269
3269
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
|
-
.checkbox-accent:checked{
|
|
3272
|
+
.checkbox-accent:checked,.checkbox-accent[checked=true]{
|
|
3273
3273
|
--tw-bg-opacity:1;
|
|
3274
3274
|
background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
|
|
3275
3275
|
--tw-border-opacity:1;
|
|
@@ -4774,14 +4774,14 @@ html{
|
|
|
4774
4774
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
|
|
4775
4775
|
}
|
|
4776
4776
|
|
|
4777
|
-
.toggle:checked{
|
|
4777
|
+
.toggle:checked,.toggle[checked=true]{
|
|
4778
4778
|
--chkbg:hsl(var(--bc));
|
|
4779
4779
|
--tw-bg-opacity:1;
|
|
4780
4780
|
--tw-border-opacity:1;
|
|
4781
4781
|
box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
|
|
4782
4782
|
}
|
|
4783
4783
|
|
|
4784
|
-
[dir=rtl] .toggle:checked{
|
|
4784
|
+
[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
|
|
4785
4785
|
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
4786
|
}
|
|
4787
4787
|
|
|
@@ -4789,7 +4789,7 @@ html{
|
|
|
4789
4789
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
|
|
4790
4790
|
}
|
|
4791
4791
|
|
|
4792
|
-
.toggle-primary:checked{
|
|
4792
|
+
.toggle-primary:checked,.toggle-primary[checked=true]{
|
|
4793
4793
|
--chkbg:hsl(var(--p));
|
|
4794
4794
|
--tw-bg-opacity:1;
|
|
4795
4795
|
background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
|
|
@@ -4804,7 +4804,7 @@ html{
|
|
|
4804
4804
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
|
|
4805
4805
|
}
|
|
4806
4806
|
|
|
4807
|
-
.toggle-secondary:checked{
|
|
4807
|
+
.toggle-secondary:checked,.toggle-secondary[checked=true]{
|
|
4808
4808
|
--chkbg:hsl(var(--s));
|
|
4809
4809
|
--tw-bg-opacity:1;
|
|
4810
4810
|
background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
|
|
@@ -4819,7 +4819,7 @@ html{
|
|
|
4819
4819
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
|
|
4820
4820
|
}
|
|
4821
4821
|
|
|
4822
|
-
.toggle-accent:checked{
|
|
4822
|
+
.toggle-accent:checked,.toggle-accent[checked=true]{
|
|
4823
4823
|
--chkbg:hsl(var(--a));
|
|
4824
4824
|
--tw-bg-opacity:1;
|
|
4825
4825
|
background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
|
package/dist/styled.css
CHANGED
|
@@ -1702,10 +1702,12 @@
|
|
|
1702
1702
|
.checkbox:focus-visible{
|
|
1703
1703
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
|
|
1704
1704
|
}
|
|
1705
|
-
.checkbox:checked{
|
|
1705
|
+
.checkbox:checked,.checkbox[checked=true]{
|
|
1706
1706
|
--tw-bg-opacity:1;
|
|
1707
1707
|
background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
|
|
1708
1708
|
background-repeat:no-repeat;
|
|
1709
|
+
}
|
|
1710
|
+
.checkbox:checked,.checkbox[checked=true]{
|
|
1709
1711
|
-webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
|
|
1710
1712
|
animation:checkmark var(--animation-input, .2s) ease-in-out;
|
|
1711
1713
|
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 +1725,7 @@
|
|
|
1723
1725
|
.checkbox-primary:focus-visible{
|
|
1724
1726
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
|
|
1725
1727
|
}
|
|
1726
|
-
.checkbox-primary:checked{
|
|
1728
|
+
.checkbox-primary:checked,.checkbox-primary[checked=true]{
|
|
1727
1729
|
--tw-bg-opacity:1;
|
|
1728
1730
|
background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
|
|
1729
1731
|
--tw-border-opacity:1;
|
|
@@ -1744,7 +1746,7 @@
|
|
|
1744
1746
|
.checkbox-secondary:focus-visible{
|
|
1745
1747
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
|
|
1746
1748
|
}
|
|
1747
|
-
.checkbox-secondary:checked{
|
|
1749
|
+
.checkbox-secondary:checked,.checkbox-secondary[checked=true]{
|
|
1748
1750
|
--tw-bg-opacity:1;
|
|
1749
1751
|
background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
|
|
1750
1752
|
--tw-border-opacity:1;
|
|
@@ -1765,7 +1767,7 @@
|
|
|
1765
1767
|
.checkbox-accent:focus-visible{
|
|
1766
1768
|
box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
|
|
1767
1769
|
}
|
|
1768
|
-
.checkbox-accent:checked{
|
|
1770
|
+
.checkbox-accent:checked,.checkbox-accent[checked=true]{
|
|
1769
1771
|
--tw-bg-opacity:1;
|
|
1770
1772
|
background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
|
|
1771
1773
|
--tw-border-opacity:1;
|
|
@@ -3391,20 +3393,26 @@
|
|
|
3391
3393
|
.toggle:focus-visible{
|
|
3392
3394
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
|
|
3393
3395
|
}
|
|
3394
|
-
.toggle:checked{
|
|
3395
|
-
--chkbg:hsl(var(--bc))
|
|
3396
|
+
.toggle:checked,.toggle[checked=true]{
|
|
3397
|
+
--chkbg:hsl(var(--bc))
|
|
3398
|
+
}
|
|
3399
|
+
.toggle:checked,.toggle[checked=true]{
|
|
3396
3400
|
--tw-bg-opacity:1;
|
|
3397
3401
|
--tw-border-opacity:1;
|
|
3402
|
+
}
|
|
3403
|
+
.toggle:checked,.toggle[checked=true]{
|
|
3398
3404
|
box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
|
|
3399
3405
|
}
|
|
3400
|
-
[dir=rtl] .toggle:checked{
|
|
3406
|
+
[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
|
|
3401
3407
|
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
3408
|
}
|
|
3403
3409
|
.toggle-primary:focus-visible{
|
|
3404
3410
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
|
|
3405
3411
|
}
|
|
3406
|
-
.toggle-primary:checked{
|
|
3412
|
+
.toggle-primary:checked,.toggle-primary[checked=true]{
|
|
3407
3413
|
--chkbg:hsl(var(--p));
|
|
3414
|
+
}
|
|
3415
|
+
.toggle-primary:checked,.toggle-primary[checked=true]{
|
|
3408
3416
|
--tw-bg-opacity:1;
|
|
3409
3417
|
background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
|
|
3410
3418
|
--tw-border-opacity:1;
|
|
@@ -3416,8 +3424,10 @@
|
|
|
3416
3424
|
.toggle-secondary:focus-visible{
|
|
3417
3425
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
|
|
3418
3426
|
}
|
|
3419
|
-
.toggle-secondary:checked{
|
|
3427
|
+
.toggle-secondary:checked,.toggle-secondary[checked=true]{
|
|
3420
3428
|
--chkbg:hsl(var(--s));
|
|
3429
|
+
}
|
|
3430
|
+
.toggle-secondary:checked,.toggle-secondary[checked=true]{
|
|
3421
3431
|
--tw-bg-opacity:1;
|
|
3422
3432
|
background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
|
|
3423
3433
|
--tw-border-opacity:1;
|
|
@@ -3429,8 +3439,10 @@
|
|
|
3429
3439
|
.toggle-accent:focus-visible{
|
|
3430
3440
|
--focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
|
|
3431
3441
|
}
|
|
3432
|
-
.toggle-accent:checked{
|
|
3442
|
+
.toggle-accent:checked,.toggle-accent[checked=true]{
|
|
3433
3443
|
--chkbg:hsl(var(--a));
|
|
3444
|
+
}
|
|
3445
|
+
.toggle-accent:checked,.toggle-accent[checked=true]{
|
|
3434
3446
|
--tw-bg-opacity:1;
|
|
3435
3447
|
background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
|
|
3436
3448
|
--tw-border-opacity:1;
|