avo 3.0.1.beta16 → 3.0.1.beta17

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eeca068bc2080254dbe24ecb7723e3ca2e67e9dbf39dfd4402b4a02a08d7e86a
4
- data.tar.gz: 15c9f5776135a1dcf34870ef917c28a290fa03c364b991b822f2bc9169fbd283
3
+ metadata.gz: a972e86418e5d1b89d9c8799f21c623e904ca1dc0e98f419fa046b6ef7e5f0b6
4
+ data.tar.gz: ce5ccf3beaa7bd52951e177eeef72f2c326ffbf3ec4f4581beaa7090361bb36a
5
5
  SHA512:
6
- metadata.gz: eca26b0a4548406e1e533006a0d70908f284fa7b4dbac57272a4c0bf4fb4c724dc6fa6ae84f0fb60c712713469b55eef620497059359d6fec49a8bac5428f580
7
- data.tar.gz: 6a4b09310ab5caf79e74dd9fa4af7571e89f3ef5912ea046a58570a5e4a31814fba6a50f3197dac9d1bd3adb0de8d430f7d99faa0cb2d63e6f08243c46d0afb3
6
+ metadata.gz: b0d399266bf925fd72a1202df392d897e29b8b94803e079a853f05b5be96215849695b2d8d4e6ff2df785f5c1997f61bc3fe14ed08836c4eb711f02f4190f9b5
7
+ data.tar.gz: '01168d97b3e4ade2d906a43d6031956f3acb5a3fafd2e8e53f596f78f7fe1197e1a213087bca8a0f21e8c52f51510151734fa8c0a4a009067d2e58a1014b25dd'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.0.1.beta16)
4
+ avo (3.0.1.beta17)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -6455,6 +6455,18 @@ tag.tagify__tag{
6455
6455
  }
6456
6456
  }
6457
6457
 
6458
+ .sr-only{
6459
+ position:absolute;
6460
+ width:1px;
6461
+ height:1px;
6462
+ padding:0;
6463
+ margin:-1px;
6464
+ overflow:hidden;
6465
+ clip:rect(0, 0, 0, 0);
6466
+ white-space:nowrap;
6467
+ border-width:0
6468
+ }
6469
+
6458
6470
  .pointer-events-none{
6459
6471
  pointer-events:none
6460
6472
  }
@@ -6508,6 +6520,14 @@ tag.tagify__tag{
6508
6520
  right:0px
6509
6521
  }
6510
6522
 
6523
+ .-bottom-1{
6524
+ bottom:-0.25rem
6525
+ }
6526
+
6527
+ .-bottom-1\.5{
6528
+ bottom:-0.375rem
6529
+ }
6530
+
6511
6531
  .-top-\[0\.1rem\]{
6512
6532
  top:-0.1rem
6513
6533
  }
@@ -6544,10 +6564,18 @@ tag.tagify__tag{
6544
6564
  left:1.25rem
6545
6565
  }
6546
6566
 
6567
+ .left-auto{
6568
+ left:auto
6569
+ }
6570
+
6547
6571
  .right-0{
6548
6572
  right:0px
6549
6573
  }
6550
6574
 
6575
+ .right-3{
6576
+ right:0.75rem
6577
+ }
6578
+
6551
6579
  .start-1{
6552
6580
  inset-inline-start:0.25rem
6553
6581
  }
@@ -6560,6 +6588,10 @@ tag.tagify__tag{
6560
6588
  top:50%
6561
6589
  }
6562
6590
 
6591
+ .top-2{
6592
+ top:0.5rem
6593
+ }
6594
+
6563
6595
  .top-3{
6564
6596
  top:0.75rem
6565
6597
  }
@@ -6572,6 +6604,10 @@ tag.tagify__tag{
6572
6604
  top:-1px
6573
6605
  }
6574
6606
 
6607
+ .top-auto{
6608
+ top:auto
6609
+ }
6610
+
6575
6611
  .top-full{
6576
6612
  top:100%
6577
6613
  }
@@ -6620,6 +6656,34 @@ tag.tagify__tag{
6620
6656
  grid-column:span 4 / span 4
6621
6657
  }
6622
6658
 
6659
+ .col-span-full{
6660
+ grid-column:1 / -1
6661
+ }
6662
+
6663
+ .row-span-1{
6664
+ grid-row:span 1 / span 1
6665
+ }
6666
+
6667
+ .row-span-2{
6668
+ grid-row:span 2 / span 2
6669
+ }
6670
+
6671
+ .row-span-3{
6672
+ grid-row:span 3 / span 3
6673
+ }
6674
+
6675
+ .row-span-4{
6676
+ grid-row:span 4 / span 4
6677
+ }
6678
+
6679
+ .row-span-5{
6680
+ grid-row:span 5 / span 5
6681
+ }
6682
+
6683
+ .row-span-6{
6684
+ grid-row:span 6 / span 6
6685
+ }
6686
+
6623
6687
  .float-right{
6624
6688
  float:right
6625
6689
  }
@@ -6632,6 +6696,16 @@ tag.tagify__tag{
6632
6696
  margin:0.25rem
6633
6697
  }
6634
6698
 
6699
+ .-mx-1{
6700
+ margin-left:-0.25rem;
6701
+ margin-right:-0.25rem
6702
+ }
6703
+
6704
+ .-mx-1\.5{
6705
+ margin-left:-0.375rem;
6706
+ margin-right:-0.375rem
6707
+ }
6708
+
6635
6709
  .-mx-2{
6636
6710
  margin-left:-0.5rem;
6637
6711
  margin-right:-0.5rem
@@ -6703,6 +6777,10 @@ tag.tagify__tag{
6703
6777
  margin-top:-3rem
6704
6778
  }
6705
6779
 
6780
+ .-mt-2{
6781
+ margin-top:-0.5rem
6782
+ }
6783
+
6706
6784
  .-mt-9{
6707
6785
  margin-top:-2.25rem
6708
6786
  }
@@ -6735,6 +6813,10 @@ tag.tagify__tag{
6735
6813
  margin-left:8.333333%
6736
6814
  }
6737
6815
 
6816
+ .ml-1\/2{
6817
+ margin-left:50%
6818
+ }
6819
+
6738
6820
  .ml-10{
6739
6821
  margin-left:2.5rem
6740
6822
  }
@@ -6751,6 +6833,10 @@ tag.tagify__tag{
6751
6833
  margin-left:1rem
6752
6834
  }
6753
6835
 
6836
+ .ml-6{
6837
+ margin-left:1.5rem
6838
+ }
6839
+
6754
6840
  .ml-auto{
6755
6841
  margin-left:auto
6756
6842
  }
@@ -6779,6 +6865,10 @@ tag.tagify__tag{
6779
6865
  margin-right:1rem
6780
6866
  }
6781
6867
 
6868
+ .mr-px{
6869
+ margin-right:1px
6870
+ }
6871
+
6782
6872
  .mt-0{
6783
6873
  margin-top:0px
6784
6874
  }
@@ -6979,10 +7069,34 @@ tag.tagify__tag{
6979
7069
  min-height:6rem
6980
7070
  }
6981
7071
 
7072
+ .min-h-\[16rem\]{
7073
+ min-height:16rem
7074
+ }
7075
+
7076
+ .min-h-\[24rem\]{
7077
+ min-height:24rem
7078
+ }
7079
+
7080
+ .min-h-\[32rem\]{
7081
+ min-height:32rem
7082
+ }
7083
+
6982
7084
  .min-h-\[3rem\]{
6983
7085
  min-height:3rem
6984
7086
  }
6985
7087
 
7088
+ .min-h-\[40rem\]{
7089
+ min-height:40rem
7090
+ }
7091
+
7092
+ .min-h-\[48rem\]{
7093
+ min-height:48rem
7094
+ }
7095
+
7096
+ .min-h-\[8rem\]{
7097
+ min-height:8rem
7098
+ }
7099
+
6986
7100
  .min-h-full{
6987
7101
  min-height:100%
6988
7102
  }
@@ -7031,6 +7145,10 @@ tag.tagify__tag{
7031
7145
  width:1.25rem
7032
7146
  }
7033
7147
 
7148
+ .w-52{
7149
+ width:13rem
7150
+ }
7151
+
7034
7152
  .w-64{
7035
7153
  width:16rem
7036
7154
  }
@@ -7043,6 +7161,10 @@ tag.tagify__tag{
7043
7161
  width:1%
7044
7162
  }
7045
7163
 
7164
+ .w-\[calc\(100\%\+1rem\)\]{
7165
+ width:calc(100% + 1rem)
7166
+ }
7167
+
7046
7168
  .w-auto{
7047
7169
  width:auto
7048
7170
  }
@@ -7095,10 +7217,18 @@ tag.tagify__tag{
7095
7217
  max-width:32rem
7096
7218
  }
7097
7219
 
7220
+ .max-w-xs{
7221
+ max-width:20rem
7222
+ }
7223
+
7098
7224
  .flex-1{
7099
7225
  flex:1 1 0%
7100
7226
  }
7101
7227
 
7228
+ .flex-auto{
7229
+ flex:1 1 auto
7230
+ }
7231
+
7102
7232
  .flex-shrink{
7103
7233
  flex-shrink:1
7104
7234
  }
@@ -7280,6 +7410,10 @@ tag.tagify__tag{
7280
7410
  justify-content:space-evenly
7281
7411
  }
7282
7412
 
7413
+ .gap-0{
7414
+ gap:0px
7415
+ }
7416
+
7283
7417
  .gap-1{
7284
7418
  gap:0.25rem
7285
7419
  }
@@ -7557,6 +7691,11 @@ tag.tagify__tag{
7557
7691
  border-color:rgb(172 177 185 / var(--tw-border-opacity))
7558
7692
  }
7559
7693
 
7694
+ .border-gray-50{
7695
+ --tw-border-opacity:1;
7696
+ border-color:rgb(241 242 243 / var(--tw-border-opacity))
7697
+ }
7698
+
7560
7699
  .border-gray-500{
7561
7700
  --tw-border-opacity:1;
7562
7701
  border-color:rgb(117 125 138 / var(--tw-border-opacity))
@@ -7908,6 +8047,10 @@ tag.tagify__tag{
7908
8047
  padding:0.5rem
7909
8048
  }
7910
8049
 
8050
+ .p-3{
8051
+ padding:0.75rem
8052
+ }
8053
+
7911
8054
  .p-4{
7912
8055
  padding:1rem
7913
8056
  }
@@ -7916,6 +8059,10 @@ tag.tagify__tag{
7916
8059
  padding:1.5rem
7917
8060
  }
7918
8061
 
8062
+ .p-px{
8063
+ padding:1px
8064
+ }
8065
+
7919
8066
  .px-0{
7920
8067
  padding-left:0px;
7921
8068
  padding-right:0px
@@ -7926,6 +8073,11 @@ tag.tagify__tag{
7926
8073
  padding-right:0.25rem
7927
8074
  }
7928
8075
 
8076
+ .px-1\.5{
8077
+ padding-left:0.375rem;
8078
+ padding-right:0.375rem
8079
+ }
8080
+
7929
8081
  .px-10{
7930
8082
  padding-left:2.5rem;
7931
8083
  padding-right:2.5rem
@@ -7961,6 +8113,11 @@ tag.tagify__tag{
7961
8113
  padding-bottom:0px
7962
8114
  }
7963
8115
 
8116
+ .py-0\.5{
8117
+ padding-top:0.125rem;
8118
+ padding-bottom:0.125rem
8119
+ }
8120
+
7964
8121
  .py-1{
7965
8122
  padding-top:0.25rem;
7966
8123
  padding-bottom:0.25rem
@@ -8034,6 +8191,10 @@ tag.tagify__tag{
8034
8191
  padding-bottom:1.5rem
8035
8192
  }
8036
8193
 
8194
+ .pl-1{
8195
+ padding-left:0.25rem
8196
+ }
8197
+
8037
8198
  .pr-0{
8038
8199
  padding-right:0px
8039
8200
  }
@@ -8090,11 +8251,25 @@ tag.tagify__tag{
8090
8251
  text-align:justify
8091
8252
  }
8092
8253
 
8254
+ .font-sans{
8255
+ font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
8256
+ }
8257
+
8093
8258
  .text-2xl{
8094
8259
  font-size:1.5rem;
8095
8260
  line-height:2rem
8096
8261
  }
8097
8262
 
8263
+ .text-3xl{
8264
+ font-size:1.875rem;
8265
+ line-height:2.25rem
8266
+ }
8267
+
8268
+ .text-5xl{
8269
+ font-size:3rem;
8270
+ line-height:1
8271
+ }
8272
+
8098
8273
  .text-base{
8099
8274
  font-size:1rem;
8100
8275
  line-height:1.5rem
@@ -8128,6 +8303,10 @@ tag.tagify__tag{
8128
8303
  font-weight:500
8129
8304
  }
8130
8305
 
8306
+ .font-normal{
8307
+ font-weight:400
8308
+ }
8309
+
8131
8310
  .font-semibold{
8132
8311
  font-weight:600
8133
8312
  }
@@ -8292,6 +8471,10 @@ tag.tagify__tag{
8292
8471
  color:rgb(236 72 153 / var(--tw-text-opacity))
8293
8472
  }
8294
8473
 
8474
+ .text-primary-400{
8475
+ color:rgb(var(--color-primary-400))
8476
+ }
8477
+
8295
8478
  .text-primary-500{
8296
8479
  color:rgb(var(--color-primary-500))
8297
8480
  }
@@ -8383,6 +8566,10 @@ tag.tagify__tag{
8383
8566
  text-decoration-line:line-through
8384
8567
  }
8385
8568
 
8569
+ .no-underline{
8570
+ text-decoration-line:none
8571
+ }
8572
+
8386
8573
  .antialiased{
8387
8574
  -webkit-font-smoothing:antialiased;
8388
8575
  -moz-osx-font-smoothing:grayscale
@@ -8497,6 +8684,12 @@ tag.tagify__tag{
8497
8684
  transition-duration:150ms
8498
8685
  }
8499
8686
 
8687
+ .transition-all{
8688
+ transition-property:all;
8689
+ transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
8690
+ transition-duration:150ms
8691
+ }
8692
+
8500
8693
  .transition-opacity{
8501
8694
  transition-property:opacity;
8502
8695
  transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
@@ -8668,6 +8861,10 @@ trix-editor {
8668
8861
  background-color:rgb(var(--color-primary-400))
8669
8862
  }
8670
8863
 
8864
+ .focus-within\:border-primary-500:focus-within{
8865
+ border-color:rgb(var(--color-primary-500))
8866
+ }
8867
+
8671
8868
  .hover\:z-\[21\]:hover{
8672
8869
  z-index:21
8673
8870
  }
@@ -8841,6 +9038,11 @@ trix-editor {
8841
9038
  background-color:rgb(227 229 232 / var(--tw-bg-opacity))
8842
9039
  }
8843
9040
 
9041
+ .hover\:bg-gray-25:hover{
9042
+ --tw-bg-opacity:1;
9043
+ background-color:rgb(246 246 247 / var(--tw-bg-opacity))
9044
+ }
9045
+
8844
9046
  .hover\:bg-gray-50:hover{
8845
9047
  --tw-bg-opacity:1;
8846
9048
  background-color:rgb(241 242 243 / var(--tw-bg-opacity))
@@ -9033,6 +9235,16 @@ trix-editor {
9033
9235
  color:rgb(94 100 110 / var(--tw-text-opacity))
9034
9236
  }
9035
9237
 
9238
+ .hover\:text-gray-700:hover{
9239
+ --tw-text-opacity:1;
9240
+ color:rgb(70 75 83 / var(--tw-text-opacity))
9241
+ }
9242
+
9243
+ .hover\:text-gray-900:hover{
9244
+ --tw-text-opacity:1;
9245
+ color:rgb(23 25 28 / var(--tw-text-opacity))
9246
+ }
9247
+
9036
9248
  .hover\:text-white:hover{
9037
9249
  --tw-text-opacity:1;
9038
9250
  color:rgb(255 255 255 / var(--tw-text-opacity))
@@ -9807,10 +10019,23 @@ trix-editor {
9807
10019
  display:block
9808
10020
  }
9809
10021
 
10022
+ .group:hover .group-hover\:bg-gray-200{
10023
+ --tw-bg-opacity:1;
10024
+ background-color:rgb(200 203 208 / var(--tw-bg-opacity))
10025
+ }
10026
+
10027
+ .group:hover .group-hover\:bg-primary-500{
10028
+ background-color:rgb(var(--color-primary-500))
10029
+ }
10030
+
9810
10031
  .group:hover .group-hover\:pt-4{
9811
10032
  padding-top:1rem
9812
10033
  }
9813
10034
 
10035
+ .group:active .group-active\:bg-primary-400{
10036
+ background-color:rgb(var(--color-primary-400))
10037
+ }
10038
+
9814
10039
  @media print{
9815
10040
  .print\:hidden{
9816
10041
  display:none
@@ -9850,6 +10075,26 @@ trix-editor {
9850
10075
  right:0px
9851
10076
  }
9852
10077
 
10078
+ .sm\:col-span-1{
10079
+ grid-column:span 1 / span 1
10080
+ }
10081
+
10082
+ .sm\:col-span-2{
10083
+ grid-column:span 2 / span 2
10084
+ }
10085
+
10086
+ .sm\:col-span-3{
10087
+ grid-column:span 3 / span 3
10088
+ }
10089
+
10090
+ .sm\:col-span-4{
10091
+ grid-column:span 4 / span 4
10092
+ }
10093
+
10094
+ .sm\:col-span-5{
10095
+ grid-column:span 5 / span 5
10096
+ }
10097
+
9853
10098
  .sm\:col-span-6{
9854
10099
  grid-column:span 6 / span 6
9855
10100
  }
@@ -9882,6 +10127,10 @@ trix-editor {
9882
10127
  width:auto
9883
10128
  }
9884
10129
 
10130
+ .sm\:min-w-\[16rem\]{
10131
+ min-width:16rem
10132
+ }
10133
+
9885
10134
  .sm\:min-w-\[300px\]{
9886
10135
  min-width:300px
9887
10136
  }
@@ -9898,6 +10147,22 @@ trix-editor {
9898
10147
  grid-template-columns:repeat(2, minmax(0, 1fr))
9899
10148
  }
9900
10149
 
10150
+ .sm\:grid-cols-3{
10151
+ grid-template-columns:repeat(3, minmax(0, 1fr))
10152
+ }
10153
+
10154
+ .sm\:grid-cols-4{
10155
+ grid-template-columns:repeat(4, minmax(0, 1fr))
10156
+ }
10157
+
10158
+ .sm\:grid-cols-5{
10159
+ grid-template-columns:repeat(5, minmax(0, 1fr))
10160
+ }
10161
+
10162
+ .sm\:grid-cols-6{
10163
+ grid-template-columns:repeat(6, minmax(0, 1fr))
10164
+ }
10165
+
9901
10166
  .sm\:flex-row{
9902
10167
  flex-direction:row
9903
10168
  }
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.0.1.beta16" unless const_defined?(:VERSION)
2
+ VERSION = "3.0.1.beta17" unless const_defined?(:VERSION)
3
3
  end
@@ -32,8 +32,9 @@ module Generators
32
32
  copy_file template_path("avo.tailwind.css"), path
33
33
  end
34
34
 
35
+ script_name = "avo:tailwind:css"
35
36
  if Rails.root.join("Procfile.dev").exist?
36
- say "Add #{cmd = "avo_css: yarn avo:tailwindcss --watch"} to Procfile.dev"
37
+ say "Add #{cmd = "avo_css: yarn #{script_name} --watch"} to Procfile.dev"
37
38
  append_to_file "Procfile.dev", "#{cmd}\n"
38
39
  else
39
40
  say "Add default Procfile.dev"
@@ -43,7 +44,6 @@ module Generators
43
44
  run "gem install foreman"
44
45
  end
45
46
 
46
- script_name = "avo:tailwindcss"
47
47
  script_command = "tailwindcss -i ./app/assets/stylesheets/avo/tailwind.css -o ./app/assets/builds/avo.tailwind.css -c ./config/avo/tailwind.config.js --minify"
48
48
  pretty_script_command = "\"#{script_name}\": \"#{script_command}\""
49
49
 
@@ -66,7 +66,17 @@ module Generators
66
66
 
67
67
  rake_enhance = <<~RUBY
68
68
 
69
+ # When running `rake assets:precompile` this is the order of events:
70
+ # 1 - Task `avo:yarn_install`
71
+ # 2 - Task `avo:sym_link`
72
+ # 3 - Cmd `yarn avo:tailwind:css`
73
+ # 4 - Task `assets:precompile`
69
74
  Rake::Task["assets:precompile"].enhance(["avo:sym_link"])
75
+ Rake::Task["avo:sym_link"].enhance(["avo:yarn_install"])
76
+ Rake::Task["avo:sym_link"].enhance do
77
+ `yarn avo:tailwind:css`
78
+ end
79
+
70
80
  RUBY
71
81
 
72
82
  if (path = Rails.root.join("Rakefile")).exist?
@@ -78,12 +88,14 @@ module Generators
78
88
  say rake_enhance, :green
79
89
  end
80
90
 
81
- say "Make sure you run \"bundle exec rake avo:sym_link\" before compiling the assets with the \"#{script_name}\" task.", :green
91
+ say "Make sure you run \"bundle exec rake avo:sym_link\" and \"bundle exec rake avo:yarn_install\" before compiling the assets with the \"#{script_name}\" task.", :green
82
92
  if (path = Rails.root.join("bin", "dev")).exist?
83
93
  lines = File.read(path).lines
84
94
 
85
95
  # Insert the task after the shebang line (the first line)
86
- lines.insert(1, "bundle exec rake avo:sym_link")
96
+ shebang = lines.first
97
+ lines[0] = "#{shebang}\nbundle exec rake avo:sym_link\nbundle exec rake avo:yarn_install\n"
98
+
87
99
 
88
100
  File.write(path, lines.join)
89
101
  end
@@ -1,2 +1,2 @@
1
1
  web: bin/rails server -p 3000
2
- avo_css: yarn avo:tailwindcss --watch
2
+ avo_css: yarn avo:tailwind:css --watch
@@ -1,5 +1,5 @@
1
1
  @import 'tailwindcss/base';
2
- # Have all of Avo's custom and plugins styles available.
2
+ /* Have all of Avo's custom and plugins styles available. */
3
3
  @import '../../../../tmp/avo/base.css';
4
4
  @import 'tailwindcss/components';
5
5
  @import 'tailwindcss/utilities';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1.beta16
4
+ version: 3.0.1.beta17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-20 00:00:00.000000000 Z
12
+ date: 2023-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord