daisyui 1.24.2 → 1.25.2

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,39 @@
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.25.2](https://github.com/saadeghi/daisyui/compare/v1.25.1...v1.25.2) (2022-01-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * [#422](https://github.com/saadeghi/daisyui/issues/422) ([afd8dd6](https://github.com/saadeghi/daisyui/commit/afd8dd66df93ffe7560b5133f89bb0082ffd969e))
11
+
12
+ ### [1.25.1](https://github.com/saadeghi/daisyui/compare/v1.25.0...v1.25.1) (2022-01-23)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * [#422](https://github.com/saadeghi/daisyui/issues/422) ([5c6577d](https://github.com/saadeghi/daisyui/commit/5c6577db662e5991a39c8a8f9d7c52aee8b31980))
18
+
19
+ ## [1.25.0](https://github.com/saadeghi/daisyui/compare/v1.24.3...v1.25.0) (2022-01-23)
20
+
21
+
22
+ ### Features
23
+
24
+ * add indeterminate style for checkbox and toggle, fix [#420](https://github.com/saadeghi/daisyui/issues/420) ([fd11e61](https://github.com/saadeghi/daisyui/commit/fd11e61fd7760a767260f77c62196460de08a534))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * [#400](https://github.com/saadeghi/daisyui/issues/400) ([9df4224](https://github.com/saadeghi/daisyui/commit/9df4224a7989f21e9b5613bb4405849dfb9030aa))
30
+
31
+ ### [1.24.3](https://github.com/saadeghi/daisyui/compare/v1.24.2...v1.24.3) (2022-01-17)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * rating iOS backward compatibility ([e183b4f](https://github.com/saadeghi/daisyui/commit/e183b4f6d69e85432194c842b8c45ae3313ab3ff))
37
+
5
38
  ### [1.24.2](https://github.com/saadeghi/daisyui/compare/v1.24.1...v1.24.2) (2022-01-17)
6
39
 
7
40
 
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.24.1/dist/full.css" rel="stylesheet" type="text/css" />
82
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@1.25.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
 
package/dist/full.css CHANGED
@@ -1574,6 +1574,8 @@ html{
1574
1574
  z-index:0;
1575
1575
  grid-column-start:1;
1576
1576
  grid-row-start:1;
1577
+ -ms-scroll-chaining:none;
1578
+ overscroll-behavior:contain;
1577
1579
  transition-property:all;
1578
1580
  transition-duration:.15s;
1579
1581
  transition-duration:.3s;
@@ -2318,9 +2320,6 @@ html{
2318
2320
  cursor:pointer;
2319
2321
  -webkit-animation:rating-pop var(--animation-input, .25s) ease-out;
2320
2322
  animation:rating-pop var(--animation-input, .25s) ease-out;
2321
- -webkit-appearance:none;
2322
- -moz-appearance:none;
2323
- appearance:none;
2324
2323
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2325
2324
  --tw-bg-opacity:1;
2326
2325
  height:1.5rem;
@@ -2649,7 +2648,7 @@ html{
2649
2648
  overflow:hidden;
2650
2649
  }
2651
2650
 
2652
- .avatar-group .avatar{
2651
+ .avatar-group :where(.avatar){
2653
2652
  --tw-border-opacity:1;
2654
2653
  border-color:hsla(var(--b1) / var(--tw-border-opacity, 1));
2655
2654
  border-radius:9999px;
@@ -3294,6 +3293,15 @@ html{
3294
3293
  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);
3295
3294
  }
3296
3295
 
3296
+ .checkbox:indeterminate{
3297
+ --tw-bg-opacity:1;
3298
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
3299
+ background-repeat:no-repeat;
3300
+ -webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
3301
+ animation:checkmark var(--animation-input, .2s) ease-in-out;
3302
+ background-image:linear-gradient(90deg, transparent 80%, hsl(var(--chkbg)) 0), linear-gradient(-90deg, transparent 80%, hsl(var(--chkbg)) 0), linear-gradient(0deg, hsl(var(--chkbg)) 43%, hsl(var(--chkfg)) 0, hsl(var(--chkfg)) 57%, hsl(var(--chkbg)) 0);
3303
+ }
3304
+
3297
3305
  .checkbox-primary{
3298
3306
  --chkbg:var(--p);
3299
3307
  --chkfg:var(--pc);
@@ -3847,7 +3855,7 @@ html{
3847
3855
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
3848
3856
  }
3849
3857
 
3850
- .menu li>:where(a.active){
3858
+ .menu li>:where(a.active),.menu li>:where(button.active){
3851
3859
  --tw-bg-opacity:1;
3852
3860
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
3853
3861
  --tw-text-opacity:1;
@@ -4286,6 +4294,12 @@ html{
4286
4294
  --range-shdw:var(--a);
4287
4295
  }
4288
4296
 
4297
+ .rating input{
4298
+ -moz-appearance:none;
4299
+ appearance:none;
4300
+ -webkit-appearance:none;
4301
+ }
4302
+
4289
4303
  .rating .rating-hidden{
4290
4304
  background-color:transparent;
4291
4305
  width:.5rem;
@@ -4876,6 +4890,17 @@ html{
4876
4890
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
4877
4891
  }
4878
4892
 
4893
+ .toggle:indeterminate{
4894
+ --chkbg:hsl(var(--bc));
4895
+ --tw-bg-opacity:1;
4896
+ --tw-border-opacity:1;
4897
+ box-shadow:calc(var(--handleoffset)/2) 0 0 2px hsl(var(--b1)) inset, calc(var(--handleoffset)/-2) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
4898
+ }
4899
+
4900
+ [dir=rtl] .toggle:indeterminate{
4901
+ box-shadow:calc(var(--handleoffset)/2) 0 0 2px hsl(var(--b1)) inset, calc(var(--handleoffset)/-2) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
4902
+ }
4903
+
4879
4904
  .toggle-primary:focus-visible{
4880
4905
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
4881
4906
  }
package/dist/styled.css CHANGED
@@ -349,6 +349,8 @@
349
349
  z-index:0;
350
350
  grid-column-start:1;
351
351
  grid-row-start:1;
352
+ -ms-scroll-chaining:none;
353
+ overscroll-behavior:contain;
352
354
  }
353
355
 
354
356
  .drawer-toggle~.drawer-side{
@@ -1101,7 +1103,7 @@
1101
1103
  display:flex;
1102
1104
  overflow:hidden;
1103
1105
  }
1104
- .avatar-group .avatar{
1106
+ .avatar-group :where(.avatar){
1105
1107
  --tw-border-opacity:1;
1106
1108
  border-color:hsla(var(--b1) / var(--tw-border-opacity, 1));
1107
1109
  border-radius:9999px;
@@ -1740,6 +1742,14 @@
1740
1742
  animation:checkmark var(--animation-input, .2s) ease-in-out;
1741
1743
  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);
1742
1744
  }
1745
+ .checkbox:indeterminate{
1746
+ --tw-bg-opacity:1;
1747
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
1748
+ background-repeat:no-repeat;
1749
+ -webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
1750
+ animation:checkmark var(--animation-input, .2s) ease-in-out;
1751
+ background-image:linear-gradient(90deg, transparent 80%, hsl(var(--chkbg)) 0), linear-gradient(-90deg, transparent 80%, hsl(var(--chkbg)) 0), linear-gradient(0deg, hsl(var(--chkbg)) 43%, hsl(var(--chkfg)) 0, hsl(var(--chkfg)) 57%, hsl(var(--chkbg)) 0);
1752
+ }
1743
1753
  .checkbox-primary{
1744
1754
  --chkbg:var(--p);
1745
1755
  --chkfg:var(--pc);
@@ -2364,7 +2374,7 @@
2364
2374
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2365
2375
  --tw-bg-opacity:0.1;
2366
2376
  }
2367
- .menu li>:where(a.active){
2377
+ .menu li>:where(a.active),.menu li>:where(button.active){
2368
2378
  --tw-bg-opacity:1;
2369
2379
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
2370
2380
  --tw-text-opacity:1;
@@ -2829,12 +2839,14 @@
2829
2839
  }
2830
2840
  .range-accent{
2831
2841
  --range-shdw:var(--a);
2832
- }.rating :where(input){
2842
+ }.rating input{
2843
+ -moz-appearance:none;
2844
+ appearance:none;
2845
+ -webkit-appearance:none;
2846
+ }
2847
+ .rating :where(input){
2833
2848
  -webkit-animation:rating-pop var(--animation-input, .25s) ease-out;
2834
2849
  animation:rating-pop var(--animation-input, .25s) ease-out;
2835
- -webkit-appearance:none;
2836
- -moz-appearance:none;
2837
- appearance:none;
2838
2850
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2839
2851
  --tw-bg-opacity:1;
2840
2852
  height:1.5rem;
@@ -3497,6 +3509,15 @@
3497
3509
  [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
3498
3510
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3499
3511
  }
3512
+ .toggle:indeterminate{
3513
+ --chkbg:hsl(var(--bc));
3514
+ --tw-bg-opacity:1;
3515
+ --tw-border-opacity:1;
3516
+ box-shadow:calc(var(--handleoffset)/2) 0 0 2px hsl(var(--b1)) inset, calc(var(--handleoffset)/-2) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3517
+ }
3518
+ [dir=rtl] .toggle:indeterminate{
3519
+ box-shadow:calc(var(--handleoffset)/2) 0 0 2px hsl(var(--b1)) inset, calc(var(--handleoffset)/-2) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3520
+ }
3500
3521
  .toggle-primary:focus-visible{
3501
3522
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3502
3523
  }