daisyui 1.24.3 → 1.25.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,18 @@
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.0](https://github.com/saadeghi/daisyui/compare/v1.24.3...v1.25.0) (2022-01-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * add indeterminate style for checkbox and toggle, fix [#420](https://github.com/saadeghi/daisyui/issues/420) ([fd11e61](https://github.com/saadeghi/daisyui/commit/fd11e61fd7760a767260f77c62196460de08a534))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * [#400](https://github.com/saadeghi/daisyui/issues/400) ([9df4224](https://github.com/saadeghi/daisyui/commit/9df4224a7989f21e9b5613bb4405849dfb9030aa))
16
+
5
17
  ### [1.24.3](https://github.com/saadeghi/daisyui/compare/v1.24.2...v1.24.3) (2022-01-17)
6
18
 
7
19
 
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.2/dist/full.css" rel="stylesheet" type="text/css" />
82
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@1.24.3/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
@@ -1539,7 +1539,6 @@ html{
1539
1539
  .drawer{
1540
1540
  display:grid;
1541
1541
  overflow:hidden;
1542
- max-height:100vh;
1543
1542
  }
1544
1543
 
1545
1544
  .drawer.drawer-end{
@@ -1721,12 +1720,6 @@ html{
1721
1720
  }
1722
1721
  }
1723
1722
 
1724
- @supports (-webkit-touch-callout:none){
1725
- .drawer{
1726
- max-height:-webkit-fill-available;
1727
- }
1728
- }
1729
-
1730
1723
  .dropdown{
1731
1724
  display:inline-block;
1732
1725
  position:relative;
@@ -3300,6 +3293,15 @@ html{
3300
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);
3301
3294
  }
3302
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
+
3303
3305
  .checkbox-primary{
3304
3306
  --chkbg:var(--p);
3305
3307
  --chkfg:var(--pc);
@@ -4888,6 +4890,17 @@ html{
4888
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);
4889
4891
  }
4890
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
+
4891
4904
  .toggle-primary:focus-visible{
4892
4905
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
4893
4906
  }
package/dist/styled.css CHANGED
@@ -318,7 +318,6 @@
318
318
  }.drawer{
319
319
  display:grid;
320
320
  overflow:hidden;
321
- max-height:100vh;
322
321
  }
323
322
  .drawer.drawer-end{
324
323
  direction:rtl;
@@ -461,12 +460,6 @@
461
460
  --tw-translate-x:0px;
462
461
  }
463
462
  }
464
- }
465
-
466
- @supports (-webkit-touch-callout:none){
467
- .drawer{
468
- max-height:-webkit-fill-available;
469
- }
470
463
  }.dropdown{
471
464
  display:inline-block;
472
465
  position:relative;
@@ -1749,6 +1742,14 @@
1749
1742
  animation:checkmark var(--animation-input, .2s) ease-in-out;
1750
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);
1751
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
+ }
1752
1753
  .checkbox-primary{
1753
1754
  --chkbg:var(--p);
1754
1755
  --chkfg:var(--pc);
@@ -3508,6 +3509,15 @@
3508
3509
  [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
3509
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);
3510
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
+ }
3511
3521
  .toggle-primary:focus-visible{
3512
3522
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3513
3523
  }