avo 3.0.1.beta8 → 3.0.1.beta11

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.

Potentially problematic release.


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

Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/Rakefile +2 -0
  4. data/app/assets/builds/avo.base.css +17 -10
  5. data/app/components/avo/field_wrapper_component.html.erb +1 -1
  6. data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
  7. data/app/components/avo/fields/common/badge_viewer_component.html.erb +1 -25
  8. data/app/components/avo/fields/common/badge_viewer_component.rb +24 -0
  9. data/app/components/avo/fields/common/boolean_check_component.html.erb +1 -12
  10. data/app/components/avo/fields/common/boolean_check_component.rb +2 -1
  11. data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
  12. data/app/components/avo/fields/common/gravatar_viewer_component.rb +2 -2
  13. data/app/components/avo/fields/common/heading_component.html.erb +3 -8
  14. data/app/components/avo/fields/common/heading_component.rb +1 -3
  15. data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -1
  16. data/app/components/avo/fields/file_field/index_component.html.erb +2 -2
  17. data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
  18. data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
  19. data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
  20. data/app/components/avo/fields/id_field/index_component.html.erb +1 -1
  21. data/app/components/avo/fields/text_field/index_component.html.erb +1 -1
  22. data/app/components/avo/index/resource_table_component.rb +2 -8
  23. data/app/components/avo/views/resource_edit_component.html.erb +9 -20
  24. data/app/controllers/avo/actions_controller.rb +8 -19
  25. data/app/controllers/avo/application_controller.rb +12 -0
  26. data/app/controllers/avo/search_controller.rb +2 -2
  27. data/app/views/layouts/avo/application.html.erb +1 -2
  28. data/avo.gemspec +1 -1
  29. data/bin/dev +2 -0
  30. data/lib/avo/base_action.rb +18 -23
  31. data/lib/avo/base_resource.rb +1 -1
  32. data/lib/avo/concerns/filters_session_handler.rb +3 -3
  33. data/lib/avo/concerns/has_items.rb +0 -4
  34. data/lib/avo/fields/badge_field.rb +1 -1
  35. data/lib/avo/fields/base_field.rb +12 -8
  36. data/lib/avo/fields/external_image_field.rb +2 -2
  37. data/lib/avo/fields/file_field.rb +2 -2
  38. data/lib/avo/fields/gravatar_field.rb +2 -2
  39. data/lib/avo/fields/heading_field.rb +5 -13
  40. data/lib/avo/fields/id_field.rb +2 -2
  41. data/lib/avo/fields/text_field.rb +2 -2
  42. data/lib/avo/resources/items/holder.rb +0 -6
  43. data/lib/avo/version.rb +1 -1
  44. data/lib/generators/avo/js/install_generator.rb +2 -2
  45. data/lib/generators/avo/tailwindcss/install_generator.rb +58 -12
  46. data/lib/generators/avo/templates/tailwindcss/avo.tailwind.css +5 -3
  47. data/lib/generators/avo/templates/tailwindcss/tailwind.config.js +11 -0
  48. data/lib/tasks/avo_tasks.rake +33 -5
  49. data/public/avo-assets/avo.base.css +51 -3962
  50. data/tailwind.preset.js +144 -0
  51. metadata +4 -2
@@ -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.beta8
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-08-29 00:00:00.000000000 Z
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