avo 4.0.0.beta.44 → 4.0.0.beta.45
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/builds/avo/application.css +101 -60
- data/app/assets/stylesheets/application.css +0 -1
- data/app/assets/stylesheets/css/components/breadcrumbs.css +11 -2
- data/app/assets/stylesheets/css/components/color_scheme_switcher.css +7 -1
- data/app/assets/stylesheets/css/components/filters.css +1 -1
- data/app/assets/stylesheets/css/components/input.css +2 -2
- data/app/assets/stylesheets/css/components/ui/card.css +8 -2
- data/app/assets/stylesheets/css/components/ui/dropdown.css +1 -1
- data/app/assets/stylesheets/css/components/ui/tabs.css +22 -0
- data/app/assets/stylesheets/css/layout.css +44 -61
- data/app/assets/stylesheets/css/variables.css +4 -0
- data/app/components/avo/fields/common/heading_component.html.erb +1 -3
- data/app/components/avo/fields/common/heading_component.rb +1 -1
- data/app/components/avo/fields/date_field/edit_component.html.erb +3 -2
- data/app/components/avo/fields/date_time_field/edit_component.html.erb +3 -2
- data/app/components/avo/fields/heading_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/time_field/edit_component.html.erb +3 -2
- data/app/components/avo/views/resource_index_component.html.erb +3 -5
- data/app/views/avo/partials/_navbar.html.erb +2 -1
- data/lib/avo/configuration.rb +1 -1
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/initializer/avo.tt +1 -1
- metadata +2 -8
- data/app/assets/stylesheets/css/components/tab_group.css +0 -18
- data/public/avo-assets/avo.base.css +0 -13370
- data/public/avo-assets/avo.base.js +0 -1201
- data/public/avo-assets/avo.base.js.map +0 -7
- data/public/avo-assets/late-registration.js +0 -2
- data/public/avo-assets/late-registration.js.map +0 -7
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<%= content_tag :div, class: @classes, data: @data do %>
|
|
2
|
-
<div class="py-2 px-4 h-full w-full">
|
|
3
2
|
<% if @field.as_html %>
|
|
4
3
|
<%= sanitize @field.value %>
|
|
5
4
|
<% else %>
|
|
6
|
-
<div class="
|
|
5
|
+
<div class="uppercase"><%= @field.value %></div>
|
|
7
6
|
<% end %>
|
|
8
|
-
</div>
|
|
9
7
|
<% end %>
|
|
@@ -7,7 +7,7 @@ class Avo::Fields::Common::HeadingComponent < Avo::BaseComponent
|
|
|
7
7
|
|
|
8
8
|
def after_initialize
|
|
9
9
|
@view = @field.resource.view
|
|
10
|
-
@classes = "flex items-start
|
|
10
|
+
@classes = "flex items-start leading-tight bg-background text-content-secondary font-medium text-xs py-2 px-4 h-full w-full #{@field.get_html(:classes, view: @view, element: :wrapper)}"
|
|
11
11
|
@data = {**stimulus_data_attributes, **@field.get_html(:data, view: @view, element: :wrapper)}
|
|
12
12
|
add_stimulus_attributes_for(@field.resource, @data)
|
|
13
13
|
end
|
|
@@ -36,16 +36,17 @@
|
|
|
36
36
|
%>
|
|
37
37
|
|
|
38
38
|
<%= content_tag :button,
|
|
39
|
-
class: "absolute end-0
|
|
39
|
+
class: "absolute inset-y-0 end-0 flex items-center justify-center px-2.5 uppercase font-semibold text-xs disabled:cursor-not-allowed disabled:opacity-50 text-content-secondary cursor-pointer rounded-lg",
|
|
40
40
|
id: :reset,
|
|
41
41
|
type: :button,
|
|
42
42
|
title: t("avo.reset").capitalize,
|
|
43
43
|
disabled: disabled?,
|
|
44
|
+
style: "outline-offset: var(--focus-outline-offset-inset)",
|
|
44
45
|
data: {
|
|
45
46
|
action: "click->date-field#clear",
|
|
46
47
|
tippy: :tooltip
|
|
47
48
|
} do %>
|
|
48
|
-
<%= helpers.svg "tabler/outline/x", class: "
|
|
49
|
+
<%= helpers.svg "tabler/outline/x", class: "size-4" %>
|
|
49
50
|
<% end %>
|
|
50
51
|
<% end %>
|
|
51
52
|
<% end %>
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
style: @field.get_html(:style, view: view, element: :input)
|
|
38
38
|
%>
|
|
39
39
|
<%= content_tag :button,
|
|
40
|
-
class: "absolute end-0
|
|
40
|
+
class: "absolute inset-y-0 end-0 flex items-center justify-center px-2.5 uppercase font-semibold text-xs disabled:cursor-not-allowed disabled:opacity-50 text-content-secondary cursor-pointer rounded-lg",
|
|
41
41
|
id: :reset,
|
|
42
42
|
type: :button,
|
|
43
43
|
title: t("avo.reset").capitalize,
|
|
44
44
|
disabled: disabled?,
|
|
45
|
+
style: "outline-offset: var(--focus-outline-offset-inset)",
|
|
45
46
|
data: {
|
|
46
47
|
action: "click->date-field#clear",
|
|
47
48
|
tippy: :tooltip
|
|
48
49
|
} do %>
|
|
49
|
-
<%= helpers.svg "tabler/outline/x", class: "
|
|
50
|
+
<%= helpers.svg "tabler/outline/x", class: "size-4" %>
|
|
50
51
|
<% end %>
|
|
51
52
|
<% end %>
|
|
52
53
|
<% end %>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
<%= content_tag :div, class: class_names("w-full", {"overflow-hidden rounded-t-card-wrapper": @index == 0}), data: {field_id: @field.id} do %>
|
|
2
2
|
<%= render Avo::Fields::Common::HeadingComponent.new field: @field %>
|
|
3
|
-
|
|
3
|
+
<% end %>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<%= tag.div class: class_names(@field.width_class, "overflow-hidden rounded-t": @index == 0), data: {field_id: @field.id} do %>
|
|
1
|
+
<%= tag.div class: class_names(@field.width_class, "overflow-hidden rounded-t-card-wrapper": @index == 0), data: {field_id: @field.id, index: @index} do %>
|
|
2
2
|
<%= render Avo::Fields::Common::HeadingComponent.new field: @field %>
|
|
3
3
|
<% end %>
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
style: @field.get_html(:style, view: view, element: :input)
|
|
38
38
|
%>
|
|
39
39
|
<%= content_tag :button,
|
|
40
|
-
class: "absolute end-0
|
|
40
|
+
class: "absolute inset-y-0 end-0 flex items-center justify-center px-2.5 uppercase font-semibold text-xs disabled:cursor-not-allowed disabled:opacity-50 text-content-secondary cursor-pointer rounded-lg",
|
|
41
41
|
id: :reset,
|
|
42
42
|
type: :button,
|
|
43
43
|
title: t("avo.reset").capitalize,
|
|
44
44
|
disabled: disabled?,
|
|
45
|
+
style: "outline-offset: var(--focus-outline-offset-inset)",
|
|
45
46
|
data: {
|
|
46
47
|
action: "click->date-field#clear",
|
|
47
48
|
tippy: :tooltip
|
|
48
49
|
} do %>
|
|
49
|
-
<%= helpers.svg "tabler/outline/x", class: "
|
|
50
|
+
<%= helpers.svg "tabler/outline/x", class: "size-4" %>
|
|
50
51
|
<% end %>
|
|
51
52
|
<% end %>
|
|
52
53
|
<% end %>
|
|
@@ -62,11 +62,9 @@
|
|
|
62
62
|
<% end %>
|
|
63
63
|
|
|
64
64
|
<% header.with_controls do %>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<% end %>
|
|
69
|
-
</div>
|
|
65
|
+
<% @resource.render_index_controls(item: singular_resource_name.downcase).each do |control| %>
|
|
66
|
+
<%= render_control control %>
|
|
67
|
+
<% end %>
|
|
70
68
|
<% end %>
|
|
71
69
|
<% end %>
|
|
72
70
|
<% end %>
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
<div class="top-navbar__start">
|
|
8
8
|
<%# Mobile always needs a toggle to reach the overlay sidebar. Desktop toggle
|
|
9
9
|
is optional and controlled by sidebar_toggle_visible. %>
|
|
10
|
-
<%= a_button class: class_names(
|
|
10
|
+
<%= a_button class: class_names("shrink-0 -ms-1.5 lg:ms-0", "lg:hidden": !Avo.configuration.sidebar_toggle_visible),
|
|
11
11
|
size: :sm,
|
|
12
12
|
style: :text,
|
|
13
|
+
padding: :sm,
|
|
13
14
|
data: {
|
|
14
15
|
action: 'click->sidebar#toggleSidebarForViewport',
|
|
15
16
|
sidebar_toggle_icon: true,
|
data/lib/avo/configuration.rb
CHANGED
data/lib/avo/version.rb
CHANGED
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: 4.0.0.beta.
|
|
4
|
+
version: 4.0.0.beta.45
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Marin
|
|
@@ -267,7 +267,6 @@ files:
|
|
|
267
267
|
- app/assets/stylesheets/css/components/input.css
|
|
268
268
|
- app/assets/stylesheets/css/components/media_library.css
|
|
269
269
|
- app/assets/stylesheets/css/components/modal.css
|
|
270
|
-
- app/assets/stylesheets/css/components/tab_group.css
|
|
271
270
|
- app/assets/stylesheets/css/components/tooltip.css
|
|
272
271
|
- app/assets/stylesheets/css/components/ui/badge.css
|
|
273
272
|
- app/assets/stylesheets/css/components/ui/card.css
|
|
@@ -1160,11 +1159,6 @@ files:
|
|
|
1160
1159
|
- lib/generators/model_generator.rb
|
|
1161
1160
|
- lib/generators/rails/avo_resource_generator.rb
|
|
1162
1161
|
- lib/tasks/avo_tasks.rake
|
|
1163
|
-
- public/avo-assets/avo.base.css
|
|
1164
|
-
- public/avo-assets/avo.base.js
|
|
1165
|
-
- public/avo-assets/avo.base.js.map
|
|
1166
|
-
- public/avo-assets/late-registration.js
|
|
1167
|
-
- public/avo-assets/late-registration.js.map
|
|
1168
1162
|
- tailwind.custom.js
|
|
1169
1163
|
homepage: https://avohq.io
|
|
1170
1164
|
licenses:
|
|
@@ -1191,7 +1185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1191
1185
|
- !ruby/object:Gem::Version
|
|
1192
1186
|
version: '0'
|
|
1193
1187
|
requirements: []
|
|
1194
|
-
rubygems_version: 4.0.
|
|
1188
|
+
rubygems_version: 4.0.6
|
|
1195
1189
|
specification_version: 4
|
|
1196
1190
|
summary: Admin panel framework and Content Management System for Ruby on Rails.
|
|
1197
1191
|
test_files: []
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* Tab Group Component */
|
|
2
|
-
@layer components {
|
|
3
|
-
/* Dashed border wraps both the tabs list and the active tab's content.
|
|
4
|
-
The element extends 5px past each side of its container so the border
|
|
5
|
-
sits outside the panel padding without requiring the parent to know
|
|
6
|
-
about it. Uses width + negative margin-inline (RTL-safe) instead of
|
|
7
|
-
left/right. */
|
|
8
|
-
.tab-group {
|
|
9
|
-
@apply relative border border-dashed border-tertiary rounded-2xl;
|
|
10
|
-
--tab-group-modifier: 8;
|
|
11
|
-
--tab-group-padding: calc(var(--tab-group-modifier) - (var(--tab-group-modifier)/2));
|
|
12
|
-
|
|
13
|
-
width: calc(100% + calc(var(--spacing) * var(--tab-group-modifier)));
|
|
14
|
-
margin-inline: calc(var(--spacing) * var(--tab-group-padding) * -1);
|
|
15
|
-
padding: calc(var(--spacing) * var(--tab-group-padding));
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|