daisyui 1.21.0 → 1.22.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,14 @@
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.22.0](https://github.com/saadeghi/daisyui/compare/v1.20.1...v1.22.0) (2022-01-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * add rating component (fix [#374](https://github.com/saadeghi/daisyui/issues/374)) ([6285227](https://github.com/saadeghi/daisyui/commit/6285227ffbf9818b9bc2d8be1a4a5a610ad09954))
11
+ * responsive table compact (fix [#364](https://github.com/saadeghi/daisyui/issues/364)) ([6e3d9b1](https://github.com/saadeghi/daisyui/commit/6e3d9b1074a3f1b02af27d102c3b13e30427f511))
12
+
5
13
  ## [1.21.0](https://github.com/saadeghi/daisyui/compare/v1.20.1...v1.21.0) (2022-01-01)
6
14
 
7
15
 
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.20.1/dist/full.css" rel="stylesheet" type="text/css" />
82
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@1.21.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
 
package/dist/full.css CHANGED
@@ -2273,6 +2273,24 @@ html{
2273
2273
  outline:none;
2274
2274
  }
2275
2275
 
2276
+ .rating{
2277
+ display:inline-flex;
2278
+ position:relative;
2279
+ }
2280
+
2281
+ .rating :where(input){
2282
+ cursor:pointer;
2283
+ -webkit-animation:rating-pop var(--animation-input, .25s) ease-out;
2284
+ animation:rating-pop var(--animation-input, .25s) ease-out;
2285
+ -webkit-appearance:none;
2286
+ -moz-appearance:none;
2287
+ appearance:none;
2288
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2289
+ --tw-bg-opacity:1;
2290
+ height:1.5rem;
2291
+ width:1.5rem;
2292
+ }
2293
+
2276
2294
  .select{
2277
2295
  -webkit-appearance:none;
2278
2296
  -moz-appearance:none;
@@ -4227,6 +4245,57 @@ html{
4227
4245
  --range-shdw:var(--a);
4228
4246
  }
4229
4247
 
4248
+ .rating .rating-hidden{
4249
+ background-color:transparent;
4250
+ width:.5rem;
4251
+ }
4252
+
4253
+ .rating input:checked~input{
4254
+ --tw-bg-opacity:0.2;
4255
+ }
4256
+
4257
+ .rating input:focus-visible{
4258
+ transition-property:transform;
4259
+ transition-duration:.15s;
4260
+ transition-duration:.3s;
4261
+ transition-timing-function:cubic-bezier(.4, 0, .2, 1);
4262
+ transform:translateY(-.125em);
4263
+ }
4264
+
4265
+ .rating input:active:focus{
4266
+ -webkit-animation:none;
4267
+ animation:none;
4268
+ transform:translateY(-.125em);
4269
+ }
4270
+
4271
+ @-webkit-keyframes rating-pop{
4272
+ 0%{
4273
+ transform:translateY(-.125em);
4274
+ }
4275
+
4276
+ 40%{
4277
+ transform:translateY(-.125em);
4278
+ }
4279
+
4280
+ to{
4281
+ transform:translateY(0);
4282
+ }
4283
+ }
4284
+
4285
+ @keyframes rating-pop{
4286
+ 0%{
4287
+ transform:translateY(-.125em);
4288
+ }
4289
+
4290
+ 40%{
4291
+ transform:translateY(-.125em);
4292
+ }
4293
+
4294
+ to{
4295
+ transform:translateY(0);
4296
+ }
4297
+ }
4298
+
4230
4299
  .select-bordered{
4231
4300
  --tw-border-opacity:0.2;
4232
4301
  }
@@ -9410,6 +9479,26 @@ html{
9410
9479
  width:2rem;
9411
9480
  }
9412
9481
 
9482
+ .rating-xs input{
9483
+ height:.75rem;
9484
+ width:.75rem;
9485
+ }
9486
+
9487
+ .rating-sm input{
9488
+ height:1rem;
9489
+ width:1rem;
9490
+ }
9491
+
9492
+ .rating-md input{
9493
+ height:1.5rem;
9494
+ width:1.5rem;
9495
+ }
9496
+
9497
+ .rating-lg input{
9498
+ height:2.5rem;
9499
+ width:2.5rem;
9500
+ }
9501
+
9413
9502
  .select-md{
9414
9503
  height:3rem;
9415
9504
  font-size:.875rem;
@@ -14135,6 +14224,26 @@ html{
14135
14224
  width:2rem;
14136
14225
  }
14137
14226
 
14227
+ .sm\:rating-xs input{
14228
+ height:.75rem;
14229
+ width:.75rem;
14230
+ }
14231
+
14232
+ .sm\:rating-sm input{
14233
+ height:1rem;
14234
+ width:1rem;
14235
+ }
14236
+
14237
+ .sm\:rating-md input{
14238
+ height:1.5rem;
14239
+ width:1.5rem;
14240
+ }
14241
+
14242
+ .sm\:rating-lg input{
14243
+ height:2.5rem;
14244
+ width:2.5rem;
14245
+ }
14246
+
14138
14247
  .sm\:select-md{
14139
14248
  height:3rem;
14140
14249
  font-size:.875rem;
@@ -18861,6 +18970,26 @@ html{
18861
18970
  width:2rem;
18862
18971
  }
18863
18972
 
18973
+ .md\:rating-xs input{
18974
+ height:.75rem;
18975
+ width:.75rem;
18976
+ }
18977
+
18978
+ .md\:rating-sm input{
18979
+ height:1rem;
18980
+ width:1rem;
18981
+ }
18982
+
18983
+ .md\:rating-md input{
18984
+ height:1.5rem;
18985
+ width:1.5rem;
18986
+ }
18987
+
18988
+ .md\:rating-lg input{
18989
+ height:2.5rem;
18990
+ width:2.5rem;
18991
+ }
18992
+
18864
18993
  .md\:select-md{
18865
18994
  height:3rem;
18866
18995
  font-size:.875rem;
@@ -23587,6 +23716,26 @@ html{
23587
23716
  width:2rem;
23588
23717
  }
23589
23718
 
23719
+ .lg\:rating-xs input{
23720
+ height:.75rem;
23721
+ width:.75rem;
23722
+ }
23723
+
23724
+ .lg\:rating-sm input{
23725
+ height:1rem;
23726
+ width:1rem;
23727
+ }
23728
+
23729
+ .lg\:rating-md input{
23730
+ height:1.5rem;
23731
+ width:1.5rem;
23732
+ }
23733
+
23734
+ .lg\:rating-lg input{
23735
+ height:2.5rem;
23736
+ width:2.5rem;
23737
+ }
23738
+
23590
23739
  .lg\:select-md{
23591
23740
  height:3rem;
23592
23741
  font-size:.875rem;
@@ -28313,6 +28462,26 @@ html{
28313
28462
  width:2rem;
28314
28463
  }
28315
28464
 
28465
+ .xl\:rating-xs input{
28466
+ height:.75rem;
28467
+ width:.75rem;
28468
+ }
28469
+
28470
+ .xl\:rating-sm input{
28471
+ height:1rem;
28472
+ width:1rem;
28473
+ }
28474
+
28475
+ .xl\:rating-md input{
28476
+ height:1.5rem;
28477
+ width:1.5rem;
28478
+ }
28479
+
28480
+ .xl\:rating-lg input{
28481
+ height:2.5rem;
28482
+ width:2.5rem;
28483
+ }
28484
+
28316
28485
  .xl\:select-md{
28317
28486
  height:3rem;
28318
28487
  font-size:.875rem;
@@ -33039,6 +33208,26 @@ html{
33039
33208
  width:2rem;
33040
33209
  }
33041
33210
 
33211
+ .\32xl\:rating-xs input{
33212
+ height:.75rem;
33213
+ width:.75rem;
33214
+ }
33215
+
33216
+ .\32xl\:rating-sm input{
33217
+ height:1rem;
33218
+ width:1rem;
33219
+ }
33220
+
33221
+ .\32xl\:rating-md input{
33222
+ height:1.5rem;
33223
+ width:1.5rem;
33224
+ }
33225
+
33226
+ .\32xl\:rating-lg input{
33227
+ height:2.5rem;
33228
+ width:2.5rem;
33229
+ }
33230
+
33042
33231
  .\32xl\:select-md{
33043
33232
  height:3rem;
33044
33233
  font-size:.875rem;
package/dist/styled.css CHANGED
@@ -874,6 +874,12 @@
874
874
  }
875
875
  .range:focus{
876
876
  outline:none;
877
+ }.rating{
878
+ display:inline-flex;
879
+ position:relative;
880
+ }
881
+ .rating :where(input){
882
+ cursor:pointer;
877
883
  }.select{
878
884
  -webkit-appearance:none;
879
885
  -moz-appearance:none;
@@ -2802,7 +2808,66 @@
2802
2808
  }
2803
2809
  .range-accent{
2804
2810
  --range-shdw:var(--a);
2805
- }.select{
2811
+ }.rating :where(input){
2812
+ -webkit-animation:rating-pop var(--animation-input, .25s) ease-out;
2813
+ animation:rating-pop var(--animation-input, .25s) ease-out;
2814
+ -webkit-appearance:none;
2815
+ -moz-appearance:none;
2816
+ appearance:none;
2817
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2818
+ --tw-bg-opacity:1;
2819
+ height:1.5rem;
2820
+ width:1.5rem;
2821
+ }
2822
+ .rating .rating-hidden{
2823
+ background-color:transparent;
2824
+ width:.5rem;
2825
+ }
2826
+ .rating input:checked~input{
2827
+ --tw-bg-opacity:0.2;
2828
+ }
2829
+ .rating input:focus-visible{
2830
+ transition-property:transform;
2831
+ transition-duration:.15s;
2832
+ transition-timing-function:cubic-bezier(.4, 0, .2, 1);
2833
+ transition-duration:.3s;
2834
+ transform:translateY(-.125em);
2835
+ }
2836
+ .rating input:active:focus{
2837
+ -webkit-animation:none;
2838
+ animation:none;
2839
+ }
2840
+ .rating input:active:focus{
2841
+ transform:translateY(-.125em);
2842
+ }
2843
+
2844
+ @-webkit-keyframes rating-pop{
2845
+ 0%{
2846
+ transform:translateY(-.125em);
2847
+ }
2848
+
2849
+ 40%{
2850
+ transform:translateY(-.125em);
2851
+ }
2852
+
2853
+ to{
2854
+ transform:translateY(0);
2855
+ }
2856
+ }
2857
+
2858
+ @keyframes rating-pop{
2859
+ 0%{
2860
+ transform:translateY(-.125em);
2861
+ }
2862
+
2863
+ 40%{
2864
+ transform:translateY(-.125em);
2865
+ }
2866
+
2867
+ to{
2868
+ transform:translateY(0);
2869
+ }
2870
+ }.select{
2806
2871
  --tw-bg-opacity:1;
2807
2872
  background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
2808
2873
  --tw-border-opacity:1;