avo 4.0.0.beta.31 → 4.0.0.beta.32
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 +12 -5
- data/app/assets/images/avo/favicon-dark.ico +0 -0
- data/app/assets/images/avo/logo-dark.png +0 -0
- data/app/assets/images/avo/logomark-dark.png +0 -0
- data/app/assets/stylesheets/css/components/ui/card.css +5 -0
- data/app/assets/stylesheets/css/components/ui/description_list.css +1 -1
- data/app/assets/stylesheets/css/layout.css +17 -0
- data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +3 -3
- data/app/views/layouts/avo/application.html.erb +2 -1
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b9c978ce261357e5a81894c47242b55abe28895b02c1dedd2d102567bf6d0da
|
|
4
|
+
data.tar.gz: 7290328cdc399b9fd14abeb646e84a0e0256b714ba71ef88eaac00294db6404f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f966bbf5104d23faa12b47819002d16ac9b39561d1112658ddde72cbb313eb2fb041c991fee21102df284a689594734395335f542f1cfa27bd7e4025f20b0c2f
|
|
7
|
+
data.tar.gz: 9df3e5f7f29afa6f16f5eaa0b0e0211b4e006deba9e0e8736bf1d783254300739a14ac0b2e49b88cac2519dacdc92ed848e6dbbaaefade335bb562bb094ff738
|
data/Gemfile.lock
CHANGED
|
@@ -1044,6 +1044,9 @@
|
|
|
1044
1044
|
.min-h-full {
|
|
1045
1045
|
min-height: 100%;
|
|
1046
1046
|
}
|
|
1047
|
+
.\!w-full {
|
|
1048
|
+
width: 100% !important;
|
|
1049
|
+
}
|
|
1047
1050
|
.w-0 {
|
|
1048
1051
|
width: calc(var(--spacing) * 0);
|
|
1049
1052
|
}
|
|
@@ -1616,10 +1619,6 @@
|
|
|
1616
1619
|
border-style: var(--tw-border-style);
|
|
1617
1620
|
border-width: 1px;
|
|
1618
1621
|
}
|
|
1619
|
-
.border-0 {
|
|
1620
|
-
border-style: var(--tw-border-style);
|
|
1621
|
-
border-width: 0px;
|
|
1622
|
-
}
|
|
1623
1622
|
.border-2 {
|
|
1624
1623
|
border-style: var(--tw-border-style);
|
|
1625
1624
|
border-width: 2px;
|
|
@@ -5715,6 +5714,14 @@
|
|
|
5715
5714
|
color: var(--color-avo-neutral-200);
|
|
5716
5715
|
box-shadow: none;
|
|
5717
5716
|
}
|
|
5717
|
+
@media (width < 40rem) {
|
|
5718
|
+
.search-input__suffix {
|
|
5719
|
+
display: none;
|
|
5720
|
+
}
|
|
5721
|
+
.search-input__input.search-input__input--with-shortcut, .search-input__input.search-input__input--with-two-key-shortcut {
|
|
5722
|
+
padding-inline-end: calc( var(--input-icon-offset) + var(--input-icon-gap) );
|
|
5723
|
+
}
|
|
5724
|
+
}
|
|
5718
5725
|
}
|
|
5719
5726
|
.top-navbar__end {
|
|
5720
5727
|
display: flex;
|
|
@@ -6580,6 +6587,7 @@
|
|
|
6580
6587
|
border-width: 1px;
|
|
6581
6588
|
border-color: var(--color-tertiary);
|
|
6582
6589
|
background-color: var(--color-secondary);
|
|
6590
|
+
overflow-x: clip;
|
|
6583
6591
|
}
|
|
6584
6592
|
.card--compact {
|
|
6585
6593
|
.card__wrapper {
|
|
@@ -6823,7 +6831,6 @@
|
|
|
6823
6831
|
display: flex;
|
|
6824
6832
|
width: 100%;
|
|
6825
6833
|
flex: 1;
|
|
6826
|
-
flex-direction: column;
|
|
6827
6834
|
flex-wrap: wrap;
|
|
6828
6835
|
:where(& > :not(:last-child)) {
|
|
6829
6836
|
--tw-divide-y-reverse: 0;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* Card Component - Based on Figma Design System */
|
|
2
2
|
.card {
|
|
3
3
|
@apply flex flex-col items-start self-stretch rounded-xl border border-tertiary bg-secondary;
|
|
4
|
+
|
|
5
|
+
/* Contain horizontal overflow so a wide inner scroller (e.g. .card__wrapper
|
|
6
|
+
wrapping a wide table) can't bleed past the card and push the document
|
|
7
|
+
wider than the viewport on narrow screens. */
|
|
8
|
+
overflow-x: clip;
|
|
4
9
|
}
|
|
5
10
|
|
|
6
11
|
/* Card variants */
|
|
@@ -181,6 +181,23 @@
|
|
|
181
181
|
color: var(--color-avo-neutral-200);
|
|
182
182
|
box-shadow: none;
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
/* On mobile, collapse the navbar search to just the input + search icon —
|
|
186
|
+
hide the keyboard shortcut suffix and drop the reserved end-padding so it
|
|
187
|
+
stays compact next to the logo. */
|
|
188
|
+
@media (width < theme(--breakpoint-sm)) {
|
|
189
|
+
.search-input__suffix {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.search-input__input.search-input__input--with-shortcut,
|
|
194
|
+
.search-input__input.search-input__input--with-two-key-shortcut {
|
|
195
|
+
padding-inline-end: calc(
|
|
196
|
+
var(--input-icon-offset) +
|
|
197
|
+
var(--input-icon-gap)
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
184
201
|
}
|
|
185
202
|
|
|
186
203
|
.top-navbar__end {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
data-association="<%= @field.id %>"
|
|
6
6
|
data-association-class="<%= @field&.target_resource&.model_class || nil %>"
|
|
7
7
|
>
|
|
8
|
-
<div class="
|
|
8
|
+
<div class="w-full flex flex-wrap">
|
|
9
9
|
<%= field_wrapper(**field_wrapper_args, label_for: @field.polymorphic_form_field_label, help: @field.polymorphic_help || '') do %>
|
|
10
10
|
<%= @form.select @field.type_input_foreign_key, @field.types.map { |type| [Avo.resource_manager.get_resource_by_model_class(type.to_s).name, type.to_s] },
|
|
11
11
|
{
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
<%= @form.hidden_field @field.type_input_foreign_key %>
|
|
30
30
|
<% end %>
|
|
31
31
|
<% end %>
|
|
32
|
-
<div data-belongs-to-field-target="container" class="hidden
|
|
32
|
+
<div data-belongs-to-field-target="container" class="hidden <%= @field.width_class %>"></div>
|
|
33
33
|
<% @field.types.each do |type| %>
|
|
34
34
|
<template data-belongs-to-field-target="type" data-type="<%= type %>">
|
|
35
35
|
<div data-polymorphic-type="<%= type %>">
|
|
36
|
-
<%= field_wrapper(**field_wrapper_args.merge!(data: reload_data), label: Avo.resource_manager.get_resource_by_model_class(type.to_s).name) do %>
|
|
36
|
+
<%= field_wrapper(**field_wrapper_args.merge!(data: reload_data), label: Avo.resource_manager.get_resource_by_model_class(type.to_s).name, class: "!w-full") do %>
|
|
37
37
|
<% if @field.is_searchable? %>
|
|
38
38
|
<%= render Avo::Pro::SearchableAssociations::AutocompleteComponent.new form: @form,
|
|
39
39
|
disabled: disabled,
|
|
@@ -53,8 +53,9 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
<main id="main-content" class="main-content" tabindex="-1">
|
|
56
|
+
<%= render Avo::BreadcrumbsComponent.new(items: avo_breadcrumbs) %>
|
|
57
|
+
|
|
56
58
|
<div class="main-content__container <%= container_classes %>">
|
|
57
|
-
<%= render Avo::BreadcrumbsComponent.new(items: avo_breadcrumbs) %>
|
|
58
59
|
|
|
59
60
|
<%= render partial: "avo/partials/custom_tools_alert" %>
|
|
60
61
|
|
data/lib/avo/version.rb
CHANGED