avo 3.0.1.beta13 → 3.0.1.beta16
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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/builds/avo.base.css +31 -8
- data/avo.gemspec +1 -1
- data/lib/avo/version.rb +1 -1
- data/lib/tasks/avo_tasks.rake +15 -3
- data/public/avo-assets/avo.base.css +3951 -45
- data/tailwind.custom.js +47 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeca068bc2080254dbe24ecb7723e3ca2e67e9dbf39dfd4402b4a02a08d7e86a
|
4
|
+
data.tar.gz: 15c9f5776135a1dcf34870ef917c28a290fa03c364b991b822f2bc9169fbd283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca26b0a4548406e1e533006a0d70908f284fa7b4dbac57272a4c0bf4fb4c724dc6fa6ae84f0fb60c712713469b55eef620497059359d6fec49a8bac5428f580
|
7
|
+
data.tar.gz: 6a4b09310ab5caf79e74dd9fa4af7571e89f3ef5912ea046a58570a5e4a31814fba6a50f3197dac9d1bd3adb0de8d430f7d99faa0cb2d63e6f08243c46d0afb3
|
data/Gemfile.lock
CHANGED
@@ -3393,7 +3393,7 @@ body.dark,body[data-theme=dark]{
|
|
3393
3393
|
transition:inherit
|
3394
3394
|
}
|
3395
3395
|
|
3396
|
-
/*! tailwindcss v3.3.
|
3396
|
+
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
|
3397
3397
|
*/
|
3398
3398
|
|
3399
3399
|
/*
|
@@ -3583,6 +3583,10 @@ select,
|
|
3583
3583
|
textarea {
|
3584
3584
|
font-family: inherit;
|
3585
3585
|
/* 1 */
|
3586
|
+
font-feature-settings: inherit;
|
3587
|
+
/* 1 */
|
3588
|
+
font-variation-settings: inherit;
|
3589
|
+
/* 1 */
|
3586
3590
|
font-size: 100%;
|
3587
3591
|
/* 1 */
|
3588
3592
|
font-weight: inherit;
|
@@ -3733,6 +3737,14 @@ menu {
|
|
3733
3737
|
padding: 0;
|
3734
3738
|
}
|
3735
3739
|
|
3740
|
+
/*
|
3741
|
+
Reset default styling for dialogs.
|
3742
|
+
*/
|
3743
|
+
|
3744
|
+
dialog {
|
3745
|
+
padding: 0;
|
3746
|
+
}
|
3747
|
+
|
3736
3748
|
/*
|
3737
3749
|
Prevent resizing textareas horizontally by default.
|
3738
3750
|
*/
|
@@ -3807,7 +3819,7 @@ video {
|
|
3807
3819
|
display: none;
|
3808
3820
|
}
|
3809
3821
|
|
3810
|
-
[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select{
|
3822
|
+
[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select{
|
3811
3823
|
appearance:none;
|
3812
3824
|
background-color:#fff;
|
3813
3825
|
border-color:#757D8A;
|
@@ -3822,7 +3834,7 @@ video {
|
|
3822
3834
|
--tw-shadow:0 0 #0000;
|
3823
3835
|
}
|
3824
3836
|
|
3825
|
-
[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus{
|
3837
|
+
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus{
|
3826
3838
|
outline:2px solid transparent;
|
3827
3839
|
outline-offset:2px;
|
3828
3840
|
--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);
|
@@ -3845,7 +3857,17 @@ input::placeholder,textarea::placeholder{
|
|
3845
3857
|
}
|
3846
3858
|
|
3847
3859
|
::-webkit-date-and-time-value{
|
3848
|
-
min-height:1.5em
|
3860
|
+
min-height:1.5em;
|
3861
|
+
text-align:inherit
|
3862
|
+
}
|
3863
|
+
|
3864
|
+
::-webkit-datetime-edit{
|
3865
|
+
display:inline-flex
|
3866
|
+
}
|
3867
|
+
|
3868
|
+
::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{
|
3869
|
+
padding-top:0;
|
3870
|
+
padding-bottom:0
|
3849
3871
|
}
|
3850
3872
|
|
3851
3873
|
select{
|
@@ -3855,24 +3877,24 @@ select{
|
|
3855
3877
|
background-size:1.5em 1.5em;
|
3856
3878
|
padding-right:2.5rem;
|
3857
3879
|
-webkit-print-color-adjust:exact;
|
3858
|
-
color-adjust:exact
|
3880
|
+
print-color-adjust:exact
|
3859
3881
|
}
|
3860
3882
|
|
3861
|
-
[multiple]{
|
3883
|
+
[multiple],[size]:where(select:not([size="1"])){
|
3862
3884
|
background-image:initial;
|
3863
3885
|
background-position:initial;
|
3864
3886
|
background-repeat:unset;
|
3865
3887
|
background-size:initial;
|
3866
3888
|
padding-right:0.75rem;
|
3867
3889
|
-webkit-print-color-adjust:unset;
|
3868
|
-
color-adjust:unset
|
3890
|
+
print-color-adjust:unset
|
3869
3891
|
}
|
3870
3892
|
|
3871
3893
|
[type='checkbox'],[type='radio']{
|
3872
3894
|
appearance:none;
|
3873
3895
|
padding:0;
|
3874
3896
|
-webkit-print-color-adjust:exact;
|
3875
|
-
color-adjust:exact;
|
3897
|
+
print-color-adjust:exact;
|
3876
3898
|
display:inline-block;
|
3877
3899
|
vertical-align:middle;
|
3878
3900
|
background-origin:border-box;
|
@@ -3954,6 +3976,7 @@ select{
|
|
3954
3976
|
}
|
3955
3977
|
|
3956
3978
|
[type='file']:focus{
|
3979
|
+
outline:1px solid ButtonText;
|
3957
3980
|
outline:1px auto -webkit-focus-ring-color
|
3958
3981
|
}
|
3959
3982
|
|
data/avo.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.required_ruby_version = ">= 3.0.0"
|
31
31
|
spec.post_install_message = "Thank you for using Avo 💪 Docs are available at https://docs.avohq.io"
|
32
32
|
|
33
|
-
spec.files = Dir["{bin,app,config,db,lib,public}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "avo.gemspec", "Gemfile", "Gemfile.lock", "tailwind.preset.js"]
|
33
|
+
spec.files = Dir["{bin,app,config,db,lib,public}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "avo.gemspec", "Gemfile", "Gemfile.lock", "tailwind.preset.js", "tailwind.custom.js"]
|
34
34
|
|
35
35
|
spec.add_dependency "activerecord", ">= 6.1"
|
36
36
|
spec.add_dependency "activesupport", ">= 6.1"
|
data/lib/avo/version.rb
CHANGED
data/lib/tasks/avo_tasks.rake
CHANGED
@@ -74,10 +74,15 @@ task "avo:sym_link" do
|
|
74
74
|
["avo", "avo-advanced", "avo-pro", "avo-dynamic_filters", "avo-dashboards", "avo-menu"].each do |gem|
|
75
75
|
path = `bundle show #{gem} 2> /dev/null`.chomp
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
# If path is emty we check if package is defined outside of root (on release process it is)
|
78
|
+
if path.empty?
|
79
|
+
next if !Dir.exist?("../#{gem}")
|
80
|
+
|
81
|
+
path = File.expand_path("../#{gem}")
|
80
82
|
end
|
83
|
+
|
84
|
+
puts "[Avo->] Linking #{gem} to #{path}"
|
85
|
+
`ln -s #{path} #{packages_path}/#{gem}`
|
81
86
|
end
|
82
87
|
|
83
88
|
base_css_path = Avo::Engine.root.join("app", "assets", "builds", "avo.base.css")
|
@@ -92,3 +97,10 @@ task "avo:sym_link" do
|
|
92
97
|
puts "[Avo->] Linking tailwind.preset.js to #{base_preset_path}"
|
93
98
|
`ln -s #{base_preset_path} #{dest_preset_path}`
|
94
99
|
end
|
100
|
+
|
101
|
+
desc "Installs yarn dependencies for Avo"
|
102
|
+
task "avo:yarn_install" do
|
103
|
+
# tailwind.preset.js needs this dependencies in order to be required
|
104
|
+
puts "[Avo->] Adding yarn dependencies"
|
105
|
+
`yarn add tailwindcss @tailwindcss/forms @tailwindcss/typography --cwd #{Avo::Engine.root}`
|
106
|
+
end
|