avo 3.0.1.beta8 → 3.0.1.beta11
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/Rakefile +2 -0
- data/app/assets/builds/avo.base.css +17 -10
- data/app/components/avo/field_wrapper_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/common/badge_viewer_component.html.erb +1 -25
- data/app/components/avo/fields/common/badge_viewer_component.rb +24 -0
- data/app/components/avo/fields/common/boolean_check_component.html.erb +1 -12
- data/app/components/avo/fields/common/boolean_check_component.rb +2 -1
- data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
- data/app/components/avo/fields/common/gravatar_viewer_component.rb +2 -2
- data/app/components/avo/fields/common/heading_component.html.erb +3 -8
- data/app/components/avo/fields/common/heading_component.rb +1 -3
- data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/index_component.html.erb +2 -2
- data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/id_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/text_field/index_component.html.erb +1 -1
- data/app/components/avo/index/resource_table_component.rb +2 -8
- data/app/components/avo/views/resource_edit_component.html.erb +9 -20
- data/app/controllers/avo/actions_controller.rb +8 -19
- data/app/controllers/avo/application_controller.rb +12 -0
- data/app/controllers/avo/search_controller.rb +2 -2
- data/app/views/layouts/avo/application.html.erb +1 -2
- data/avo.gemspec +1 -1
- data/bin/dev +2 -0
- data/lib/avo/base_action.rb +18 -23
- data/lib/avo/base_resource.rb +1 -1
- data/lib/avo/concerns/filters_session_handler.rb +3 -3
- data/lib/avo/concerns/has_items.rb +0 -4
- data/lib/avo/fields/badge_field.rb +1 -1
- data/lib/avo/fields/base_field.rb +12 -8
- data/lib/avo/fields/external_image_field.rb +2 -2
- data/lib/avo/fields/file_field.rb +2 -2
- data/lib/avo/fields/gravatar_field.rb +2 -2
- data/lib/avo/fields/heading_field.rb +5 -13
- data/lib/avo/fields/id_field.rb +2 -2
- data/lib/avo/fields/text_field.rb +2 -2
- data/lib/avo/resources/items/holder.rb +0 -6
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/js/install_generator.rb +2 -2
- data/lib/generators/avo/tailwindcss/install_generator.rb +58 -12
- data/lib/generators/avo/templates/tailwindcss/avo.tailwind.css +5 -3
- data/lib/generators/avo/templates/tailwindcss/tailwind.config.js +11 -0
- data/lib/tasks/avo_tasks.rake +33 -5
- data/public/avo-assets/avo.base.css +51 -3962
- data/tailwind.preset.js +144 -0
- metadata +4 -2
data/tailwind.preset.js
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
const plugin = require('tailwindcss/plugin')
|
2
|
+
const colors = require('tailwindcss/colors')
|
3
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
4
|
+
|
5
|
+
const { primary, blue, gray } = require('./tailwind.custom')
|
6
|
+
|
7
|
+
module.exports = {
|
8
|
+
content: [
|
9
|
+
'./tmp/avo/packages/*/safelist.txt',
|
10
|
+
'./tmp/avo/packages/*/lib/avo/**/*.rb',
|
11
|
+
'./tmp/avo/packages/*/app/helpers/**/*.rb',
|
12
|
+
'./tmp/avo/packages/*/app/views/**/*.erb',
|
13
|
+
'./tmp/avo/packages/*/app/javascript/**/*.js',
|
14
|
+
'./tmp/avo/packages/*/app/components/**/*.{html.erb,rb}',
|
15
|
+
'./tmp/avo/packages/*/app/controllers/**/*.rb',
|
16
|
+
'./tmp/avo/packages/*/lib/**/*.rb',
|
17
|
+
'./tmp/avo/packages/*/public/**/*.{js,css}',
|
18
|
+
],
|
19
|
+
theme: {
|
20
|
+
extend: {
|
21
|
+
colors: {
|
22
|
+
blue,
|
23
|
+
gray,
|
24
|
+
primary,
|
25
|
+
sky: colors.sky,
|
26
|
+
teal: colors.teal,
|
27
|
+
slate: colors.slate,
|
28
|
+
indigo: colors.indigo,
|
29
|
+
application: 'rgb(var(--color-application-background))',
|
30
|
+
},
|
31
|
+
fontFamily: {
|
32
|
+
// eslint-disable-next-line max-len
|
33
|
+
sans: '"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"',
|
34
|
+
},
|
35
|
+
inset: {
|
36
|
+
'1/2': '50%',
|
37
|
+
full: '100%',
|
38
|
+
},
|
39
|
+
borderRadius: {
|
40
|
+
xl: '1rem',
|
41
|
+
},
|
42
|
+
boxShadow: {
|
43
|
+
row: '0 0 15px -5px rgba(0, 0, 0, 0.25)',
|
44
|
+
context: '0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 0 25px -5px rgba(0, 0, 0, 0.1)',
|
45
|
+
panel: '0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)',
|
46
|
+
modal: ' 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',
|
47
|
+
stripe: '0 15px 35px #31315d1a, 0 5px 15px #00000014',
|
48
|
+
},
|
49
|
+
minWidth: {
|
50
|
+
'1/2': '50%',
|
51
|
+
'1/3': '33.333333%',
|
52
|
+
'2/3': '66.666667%',
|
53
|
+
'1/4': '25%',
|
54
|
+
'2/4': '50%',
|
55
|
+
'3/4': '75%',
|
56
|
+
'1/5': '20%',
|
57
|
+
'2/5': '40%',
|
58
|
+
'3/5': '60%',
|
59
|
+
'4/5': '80%',
|
60
|
+
},
|
61
|
+
maxWidth: {
|
62
|
+
168: '42rem',
|
63
|
+
},
|
64
|
+
minHeight: {
|
65
|
+
inherit: 'inherit',
|
66
|
+
16: '4rem',
|
67
|
+
24: '6rem',
|
68
|
+
48: '12rem',
|
69
|
+
'1/2': '50%',
|
70
|
+
'1/3': '33.333333%',
|
71
|
+
'2/3': '66.666667%',
|
72
|
+
'1/4': '25%',
|
73
|
+
'2/4': '50%',
|
74
|
+
'3/4': '75%',
|
75
|
+
'1/5': '20%',
|
76
|
+
'2/5': '40%',
|
77
|
+
'3/5': '60%',
|
78
|
+
'4/5': '80%',
|
79
|
+
},
|
80
|
+
spacing: {
|
81
|
+
full: '100%',
|
82
|
+
72: '18rem',
|
83
|
+
80: '20rem',
|
84
|
+
88: '22rem',
|
85
|
+
96: '24rem',
|
86
|
+
'1/2': '50%',
|
87
|
+
'1/3': '33.333333%',
|
88
|
+
'2/3': '66.666667%',
|
89
|
+
'1/4': '25%',
|
90
|
+
'2/4': '50%',
|
91
|
+
'3/4': '75%',
|
92
|
+
'1/5': '20%',
|
93
|
+
'2/5': '40%',
|
94
|
+
'3/5': '60%',
|
95
|
+
'4/5': '80%',
|
96
|
+
'1/6': '16.666667%',
|
97
|
+
'2/6': '33.333333%',
|
98
|
+
'3/6': '50%',
|
99
|
+
'4/6': '66.666667%',
|
100
|
+
'5/6': '83.333333%',
|
101
|
+
'1/12': '8.333333%',
|
102
|
+
'2/12': '16.666667%',
|
103
|
+
'3/12': '25%',
|
104
|
+
'4/12': '33.333333%',
|
105
|
+
'5/12': '41.666667%',
|
106
|
+
'6/12': '50%',
|
107
|
+
'7/12': '58.333333%',
|
108
|
+
'8/12': '66.666667%',
|
109
|
+
'9/12': '75%',
|
110
|
+
'10/12': '83.333333%',
|
111
|
+
'11/12': '91.666667%',
|
112
|
+
},
|
113
|
+
transitionTimingFunction: {
|
114
|
+
pop: 'cubic-bezier(.23,2,.73,.55)',
|
115
|
+
},
|
116
|
+
},
|
117
|
+
screens: {
|
118
|
+
xs: '495px',
|
119
|
+
...defaultTheme.screens,
|
120
|
+
},
|
121
|
+
},
|
122
|
+
variants: {
|
123
|
+
display: ['responsive', 'hover', 'focus', 'group-hover', 'checked'],
|
124
|
+
padding: ['responsive', 'group-hover'],
|
125
|
+
borderColor: ['responsive', 'hover', 'focus', 'disabled'],
|
126
|
+
backgroundColor: ['responsive', 'hover', 'focus', 'disabled'],
|
127
|
+
textColor: ['responsive', 'hover', 'focus', 'disabled'],
|
128
|
+
translate: ['responsive', 'hover', 'focus', 'active'],
|
129
|
+
cursor: ['responsive', 'disabled'],
|
130
|
+
},
|
131
|
+
plugins: [
|
132
|
+
require('@tailwindcss/forms'),
|
133
|
+
require('@tailwindcss/typography'),
|
134
|
+
plugin(({ addUtilities }) => {
|
135
|
+
const newUtilities = {
|
136
|
+
'.backface-hidden': {
|
137
|
+
backfaceVisibility: 'hidden',
|
138
|
+
},
|
139
|
+
}
|
140
|
+
|
141
|
+
addUtilities(newUtilities, ['group-hover'])
|
142
|
+
}),
|
143
|
+
],
|
144
|
+
}
|
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.
|
4
|
+
version: 3.0.1.beta11
|
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-
|
12
|
+
date: 2023-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -1909,6 +1909,7 @@ files:
|
|
1909
1909
|
- lib/generators/avo/templates/scope.tt
|
1910
1910
|
- lib/generators/avo/templates/tailwindcss/Procfile.dev
|
1911
1911
|
- lib/generators/avo/templates/tailwindcss/avo.tailwind.css
|
1912
|
+
- lib/generators/avo/templates/tailwindcss/tailwind.config.js
|
1912
1913
|
- lib/generators/avo/templates/tool/controller.tt
|
1913
1914
|
- lib/generators/avo/templates/tool/sidebar_item.tt
|
1914
1915
|
- lib/generators/avo/templates/tool/view.tt
|
@@ -1946,6 +1947,7 @@ files:
|
|
1946
1947
|
- public/avo-assets/logo.png
|
1947
1948
|
- public/avo-assets/logomark.png
|
1948
1949
|
- public/avo-assets/placeholder.svg
|
1950
|
+
- tailwind.preset.js
|
1949
1951
|
homepage: https://avohq.io
|
1950
1952
|
licenses:
|
1951
1953
|
- Commercial
|