avo 3.30.4 → 4.0.0.beta.2
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 +18 -1
- data/Gemfile.lock +257 -174
- data/README.md +1 -1
- data/app/assets/builds/avo/application.css +13979 -0
- data/app/assets/builds/avo/application.js +1160 -0
- data/app/assets/builds/avo/application.js.map +7 -0
- data/app/assets/builds/avo/late-registration.js +2 -0
- data/app/assets/builds/avo/late-registration.js.map +7 -0
- data/app/assets/config/avo_manifest.js +2 -1
- data/app/assets/images/avo/placeholder.svg +1 -0
- data/app/assets/stylesheets/application.css +250 -0
- data/app/assets/stylesheets/css/button-group.css +23 -0
- data/app/assets/stylesheets/css/components/avatar.css +128 -0
- data/app/assets/stylesheets/css/components/breadcrumbs.css +43 -0
- data/app/assets/stylesheets/css/components/button.css +343 -0
- data/app/assets/stylesheets/css/components/color_scheme_switcher.css +226 -0
- data/app/assets/stylesheets/css/components/discreet_information.css +49 -0
- data/app/assets/stylesheets/css/components/field-wrapper.css +107 -0
- data/app/assets/stylesheets/css/components/grid.css +120 -0
- data/app/assets/stylesheets/css/components/input.css +312 -0
- data/app/assets/stylesheets/css/components/modal.css +228 -0
- data/app/assets/stylesheets/css/components/tooltip.css +25 -0
- data/app/assets/stylesheets/css/components/ui/badge.css +143 -0
- data/app/assets/stylesheets/css/components/ui/card.css +95 -0
- data/app/assets/stylesheets/css/components/ui/checkbox.css +50 -0
- data/app/assets/stylesheets/css/components/ui/description_list.css +3 -0
- data/app/assets/stylesheets/css/components/ui/dropdown.css +68 -0
- data/app/assets/stylesheets/css/components/ui/file_upload_input.css +94 -0
- data/app/assets/stylesheets/css/components/ui/file_upload_item.css +78 -0
- data/app/assets/stylesheets/css/components/ui/panel.css +59 -0
- data/app/assets/stylesheets/css/components/ui/panel_header.css +48 -0
- data/app/assets/stylesheets/css/components/ui/radio.css +22 -0
- data/app/assets/stylesheets/css/components/ui/tabs.css +74 -0
- data/app/assets/stylesheets/css/css-animations.css +54 -0
- data/app/assets/stylesheets/css/fields/code.css +75 -9
- data/app/assets/stylesheets/css/fields/easy-mde.css +7 -0
- data/app/assets/stylesheets/css/fields/key_value.css +97 -0
- data/app/assets/stylesheets/css/fields/progress.css +4 -4
- data/app/assets/stylesheets/css/fields/status.css +7 -1
- data/app/assets/stylesheets/css/fields/tags.css +33 -16
- data/app/assets/stylesheets/css/fields/tiptap.css +17 -15
- data/app/assets/stylesheets/css/fields/trix.css +62 -2
- data/app/assets/stylesheets/css/fonts.css +24 -24
- data/app/assets/stylesheets/css/layout.css +135 -0
- data/app/assets/stylesheets/css/pagination.css +114 -78
- data/app/assets/stylesheets/css/resource-controls.css +13 -0
- data/app/assets/stylesheets/css/search.css +22 -12
- data/app/assets/stylesheets/css/sidebar.css +310 -24
- data/app/assets/stylesheets/css/table.css +60 -0
- data/app/assets/stylesheets/css/tooltips.css +1 -1
- data/app/assets/stylesheets/css/typography.css +10 -1
- data/app/assets/stylesheets/css/variables.css +318 -0
- data/app/assets/svgs/avo/moon-plus-plus.svg +1 -0
- data/app/components/avo/actions_component.html.erb +30 -36
- data/app/components/avo/actions_component.rb +8 -11
- data/app/components/avo/alert_component.html.erb +3 -3
- data/app/components/avo/alert_component.rb +1 -1
- data/app/components/avo/asset_manager/javascript_component.html.erb +1 -2
- data/app/components/avo/backtrace_alert_component.html.erb +4 -4
- data/app/components/avo/base_component.rb +3 -4
- data/app/components/avo/breadcrumb_element_component.html.erb +17 -0
- data/app/components/avo/breadcrumb_element_component.rb +21 -0
- data/app/components/avo/breadcrumbs_component.html.erb +19 -0
- data/app/components/avo/breadcrumbs_component.rb +5 -0
- data/app/components/avo/button_component.rb +20 -126
- data/app/components/avo/clipboard_component.html.erb +3 -2
- data/app/components/avo/clipboard_component.rb +1 -1
- data/app/components/avo/component_missing_component.rb +11 -0
- data/app/components/avo/cover_component.html.erb +3 -0
- data/app/components/avo/cover_component.rb +25 -0
- data/app/components/avo/debug/status_component.html.erb +59 -0
- data/app/components/avo/debug/status_component.rb +30 -0
- data/app/components/avo/description_list_component.rb +11 -0
- data/app/components/avo/discreet_information_component.html.erb +31 -6
- data/app/components/avo/discreet_information_component.rb +23 -32
- data/app/components/avo/divider_component.html.erb +2 -2
- data/app/components/avo/empty_state_component.html.erb +2 -9
- data/app/components/avo/empty_state_component.rb +0 -8
- data/app/components/avo/field_wrapper_component.html.erb +21 -22
- data/app/components/avo/field_wrapper_component.rb +9 -18
- data/app/components/avo/fields/avatar_field/index_component.html.erb +9 -0
- data/app/components/avo/fields/avatar_field/index_component.rb +4 -0
- data/app/components/avo/fields/badge_field/index_component.html.erb +7 -1
- data/app/components/avo/fields/badge_field/show_component.html.erb +6 -1
- data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +16 -14
- data/app/components/avo/fields/belongs_to_field/edit_component.rb +13 -3
- data/app/components/avo/fields/boolean_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_group_field/edit_component.rb +2 -3
- data/app/components/avo/fields/code_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/common/boolean_check_component.rb +3 -3
- data/app/components/avo/fields/common/boolean_group_component.html.erb +2 -2
- data/app/components/avo/fields/common/files/controls_component.html.erb +30 -27
- data/app/components/avo/fields/common/files/controls_component.rb +0 -1
- data/app/components/avo/fields/common/files/list_viewer_component.html.erb +4 -5
- data/app/components/avo/fields/common/files/view_type/grid_item_component.html.erb +1 -1
- data/app/components/avo/fields/common/files/view_type/list_item_component.html.erb +7 -19
- data/app/components/avo/fields/common/heading_component.html.erb +2 -2
- data/app/components/avo/fields/common/heading_component.rb +1 -1
- data/app/components/avo/fields/common/key_value_component.html.erb +20 -24
- data/app/components/avo/fields/common/nested_field_component.html.erb +1 -1
- data/app/components/avo/fields/common/nested_field_component.rb +1 -1
- data/app/components/avo/fields/common/progress_bar_component.html.erb +2 -2
- data/app/components/avo/fields/common/stars_component.html.erb +1 -1
- data/app/components/avo/fields/common/status_viewer_component.html.erb +4 -10
- data/app/components/avo/fields/date_field/edit_component.html.erb +14 -1
- data/app/components/avo/fields/date_time_field/edit_component.html.erb +3 -3
- data/app/components/avo/fields/easy_mde_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/edit_component.rb +9 -5
- data/app/components/avo/fields/file_field/edit_component.html.erb +14 -6
- data/app/components/avo/fields/files_field/edit_component.html.erb +11 -4
- data/app/components/avo/fields/has_one_field/show_component.html.erb +10 -9
- data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/show_component.html.erb +2 -2
- data/app/components/avo/fields/password_field/edit_component.html.erb +5 -7
- data/app/components/avo/fields/progress_bar_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/radio_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/show_component.rb +4 -7
- data/app/components/avo/fields/stars_field/edit_component.html.erb +3 -4
- data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/tags_field/tag_component.html.erb +7 -8
- data/app/components/avo/fields/time_field/edit_component.html.erb +3 -3
- data/app/components/avo/fields/tiptap_field/edit_component.html.erb +11 -11
- data/app/components/avo/fields/tiptap_field/show_component.html.erb +4 -4
- data/app/components/avo/fields/trix_field/edit_component.html.erb +2 -2
- data/app/components/avo/filters_component.html.erb +8 -16
- data/app/components/avo/index/field_wrapper_component.html.erb +9 -2
- data/app/components/avo/index/field_wrapper_component.rb +0 -16
- data/app/components/avo/index/grid_cover_empty_state_component.html.erb +16 -2
- data/app/components/avo/index/grid_cover_empty_state_component.rb +90 -0
- data/app/components/avo/index/grid_item_component.html.erb +29 -12
- data/app/components/avo/index/grid_item_component.rb +12 -10
- data/app/components/avo/index/resource_controls_component.html.erb +1 -1
- data/app/components/avo/index/resource_controls_component.rb +7 -17
- data/app/components/avo/index/resource_controls_dropdown_component.html.erb +3 -0
- data/app/components/avo/index/resource_controls_dropdown_component.rb +81 -0
- data/app/components/avo/index/table_row_component.html.erb +11 -11
- data/app/components/avo/items/panel_component.html.erb +8 -18
- data/app/components/avo/items/panel_component.rb +0 -20
- data/app/components/avo/items/switcher_component.html.erb +60 -1
- data/app/components/avo/items/switcher_component.rb +10 -5
- data/app/components/avo/items/visible_items_component.html.erb +2 -1
- data/app/components/avo/items/visible_items_component.rb +1 -0
- data/app/components/avo/media_library/item_details_component.html.erb +2 -2
- data/app/components/avo/media_library/list_component.html.erb +24 -19
- data/app/components/avo/media_library/list_component.rb +2 -2
- data/app/components/avo/media_library/list_item_component.html.erb +3 -3
- data/app/components/avo/modal_component.html.erb +52 -20
- data/app/components/avo/modal_component.rb +7 -12
- data/app/components/avo/paginator_component.html.erb +46 -33
- data/app/components/avo/paginator_component.rb +10 -5
- data/app/components/avo/panel_name_component.html.erb +1 -1
- data/app/components/avo/profile_item_component.html.erb +4 -4
- data/app/components/avo/profile_item_component.rb +2 -4
- data/app/components/avo/referrer_params_component.html.erb +1 -1
- data/app/components/avo/resource_component.rb +8 -19
- data/app/components/avo/resource_listing_component.html.erb +22 -0
- data/app/components/avo/resource_listing_component.rb +28 -0
- data/app/components/avo/resource_sidebar_component.html.erb +2 -2
- data/app/components/avo/resource_sidebar_component.rb +0 -4
- data/app/components/avo/row_component.html.erb +1 -1
- data/app/components/avo/row_selector_component.html.erb +2 -4
- data/app/components/avo/row_selector_component.rb +0 -1
- data/app/components/avo/search_overlay_component.html.erb +6 -0
- data/app/components/avo/search_overlay_component.rb +2 -0
- data/app/components/avo/sidebar/base_item_component.rb +9 -9
- data/app/components/avo/sidebar/group_component.html.erb +23 -27
- data/app/components/avo/sidebar/group_component.rb +4 -0
- data/app/components/avo/sidebar/link_component.html.erb +30 -7
- data/app/components/avo/sidebar/link_component.rb +30 -2
- data/app/components/avo/sidebar/section_component.html.erb +31 -11
- data/app/components/avo/sidebar/section_component.rb +1 -3
- data/app/components/avo/sidebar_component.html.erb +35 -36
- data/app/components/avo/sidebar_component.rb +16 -0
- data/app/components/avo/sidebar_profile_component.html.erb +27 -36
- data/app/components/avo/sidebar_profile_component.rb +14 -0
- data/app/components/avo/tab_group_component.html.erb +21 -9
- data/app/components/avo/tab_group_component.rb +54 -15
- data/app/components/avo/turbo_frame_wrapper_component.html.erb +4 -8
- data/app/components/avo/turbo_frame_wrapper_component.rb +9 -0
- data/app/components/avo/u_i/avatar_component.html.erb +11 -0
- data/app/components/avo/u_i/avatar_component.rb +61 -0
- data/app/components/avo/u_i/badge_component.html.erb +9 -0
- data/app/components/avo/u_i/badge_component.rb +35 -0
- data/app/components/avo/u_i/card_component.html.erb +29 -0
- data/app/components/avo/u_i/card_component.rb +65 -0
- data/app/components/avo/u_i/dropdown_component.html.erb +14 -0
- data/app/components/avo/u_i/dropdown_component.rb +26 -0
- data/app/components/avo/u_i/dropdown_menu_component.html.erb +16 -0
- data/app/components/avo/u_i/dropdown_menu_component.rb +8 -0
- data/app/components/avo/u_i/file_upload_input_component.html.erb +26 -0
- data/app/components/avo/u_i/file_upload_input_component.rb +15 -0
- data/app/components/avo/u_i/file_upload_item_component.html.erb +48 -0
- data/app/components/avo/u_i/file_upload_item_component.rb +17 -0
- data/app/components/avo/u_i/icon_button_component.html.erb +7 -0
- data/app/components/avo/u_i/icon_button_component.rb +22 -0
- data/app/components/avo/u_i/panel_component.html.erb +49 -0
- data/app/components/avo/u_i/panel_component.rb +29 -0
- data/app/components/avo/u_i/panel_header_component.html.erb +37 -0
- data/app/components/avo/u_i/panel_header_component.rb +24 -0
- data/app/components/avo/u_i/search_input_component.html.erb +28 -0
- data/app/components/avo/u_i/search_input_component.rb +12 -0
- data/app/components/avo/u_i/tabs/tab_component.html.erb +26 -0
- data/app/components/avo/u_i/tabs/tab_component.rb +25 -0
- data/app/components/avo/u_i/tabs/tabs_component.html.erb +7 -0
- data/app/components/avo/u_i/tabs/tabs_component.rb +13 -0
- data/app/components/avo/view_types/base_view_type_component.rb +26 -0
- data/app/components/avo/view_types/grid_component.html.erb +18 -0
- data/app/components/avo/view_types/grid_component.rb +4 -0
- data/app/components/avo/view_types/map_component.html.erb +17 -0
- data/app/components/avo/view_types/map_component.rb +110 -0
- data/app/components/avo/view_types/table_component.html.erb +63 -0
- data/app/components/avo/{index/resource_table_component.rb → view_types/table_component.rb} +1 -10
- data/app/components/avo/views/resource_edit_component.html.erb +12 -18
- data/app/components/avo/views/resource_edit_component.rb +1 -27
- data/app/components/avo/views/resource_index_component.html.erb +97 -74
- data/app/components/avo/views/resource_index_component.rb +23 -3
- data/app/components/avo/views/resource_show_component.html.erb +4 -2
- data/app/components/avo/views/resource_show_component.rb +1 -4
- data/app/controllers/avo/associations_controller.rb +1 -1
- data/app/controllers/avo/base_application_controller.rb +7 -5
- data/app/controllers/avo/base_controller.rb +139 -40
- data/app/controllers/avo/debug_controller.rb +0 -29
- data/app/controllers/avo/media_library_controller.rb +17 -1
- data/app/controllers/avo/search_controller.rb +5 -0
- data/app/controllers/concerns/avo/initializes_avo.rb +7 -8
- data/app/helpers/avo/application_helper.rb +60 -46
- data/app/helpers/avo/turbo_stream_actions_helper.rb +10 -1
- data/app/helpers/avo/url_helpers.rb +3 -2
- data/app/javascript/{avo.base.js → application.js} +9 -18
- data/app/javascript/js/application.js +40 -0
- data/app/javascript/js/controllers/action_controller.js +4 -4
- data/app/javascript/js/controllers/actions_overflow_controller.js +21 -6
- data/app/javascript/js/controllers/color_scheme_switcher_controller.js +226 -0
- data/app/javascript/js/controllers/dropdown_menu_controller.js +42 -0
- data/app/javascript/js/controllers/fields/code_field_controller.js +20 -3
- data/app/javascript/js/controllers/fields/easy_mde_controller.js +23 -1
- data/app/javascript/js/controllers/fields/key_value_controller.js +43 -39
- data/app/javascript/js/controllers/fields/panel_refresh_controller.js +4 -0
- data/app/javascript/js/controllers/fields/tags_field_controller.js +2 -2
- data/app/javascript/js/controllers/fields/tags_field_helpers.js +4 -6
- data/app/javascript/js/controllers/grid_cover_empty_state_controller.js +42 -0
- data/app/javascript/js/controllers/item_selector_controller.js +0 -2
- data/app/javascript/js/controllers/loading_button_controller.js +1 -5
- data/app/javascript/js/controllers/map_dark_mode_controller.js +131 -0
- data/app/javascript/js/controllers/menu_controller.js +38 -16
- data/app/javascript/js/controllers/modal_controller.js +16 -0
- data/app/javascript/js/controllers/modal_size_controller.js +83 -0
- data/app/javascript/js/controllers/nested_form_controller.js +2 -2
- data/app/javascript/js/controllers/password_visibility_controller.js +13 -0
- data/app/javascript/js/controllers/preview_controller.js +2 -2
- data/app/javascript/js/controllers/resource_search_controller.js +123 -0
- data/app/javascript/js/controllers/search_controller.js +10 -29
- data/app/javascript/js/controllers/sidebar_controller.js +29 -9
- data/app/javascript/js/controllers/table_row_controller.js +28 -0
- data/app/javascript/js/controllers/tippy_controller.js +1 -1
- data/app/javascript/js/controllers/toggle_controller.js +40 -5
- data/app/javascript/js/controllers.js +14 -2
- data/app/javascript/js/custom-stream-actions.js +10 -8
- data/app/views/avo/actions/show.html.erb +14 -10
- data/app/views/avo/base/_boolean_filter.html.erb +1 -1
- data/app/views/avo/base/_date_time_filter.html.erb +3 -3
- data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
- data/app/views/avo/base/_new_via_belongs_to.html.erb +2 -3
- data/app/views/avo/base/_text_filter.html.erb +1 -1
- data/app/views/avo/base/preview.html.erb +5 -4
- data/app/views/avo/debug/status.html.erb +5 -92
- data/app/views/avo/debug/status.text.erb +0 -2
- data/app/views/avo/home/_actions.html.erb +1 -1
- data/app/views/avo/home/_dashboards.html.erb +1 -1
- data/app/views/avo/home/_filters.html.erb +1 -1
- data/app/views/avo/home/_resources.html.erb +2 -2
- data/app/views/avo/home/failed_to_load.html.erb +2 -2
- data/app/views/avo/home/index.html.erb +25 -25
- data/app/views/avo/media_library/_form.html.erb +43 -28
- data/app/views/avo/media_library/show.html.erb +7 -3
- data/app/views/avo/modal/_size_selector.html.erb +46 -0
- data/app/views/avo/partials/_alerts.html.erb +1 -1
- data/app/views/avo/partials/_color_scheme_switcher.html.erb +106 -0
- data/app/views/avo/partials/_color_theme_override.html.erb +49 -0
- data/app/views/avo/partials/_confirm_dialog.html.erb +19 -17
- data/app/views/avo/partials/_custom_tools_alert.html.erb +6 -6
- data/app/views/avo/partials/_footer.html.erb +1 -1
- data/app/views/avo/partials/_header.html.erb +1 -1
- data/app/views/avo/partials/_javascript.html.erb +0 -2
- data/app/views/avo/partials/_navbar.html.erb +53 -8
- data/app/views/avo/partials/_sortable_component.html.erb +1 -1
- data/app/views/avo/partials/_table_header.html.erb +28 -19
- data/app/views/avo/partials/_view_toggle_button.html.erb +6 -29
- data/app/views/avo/partials/distribution_chart.html.erb +2 -2
- data/app/views/avo/private/_links_and_buttons.html.erb +12 -8
- data/app/views/avo/private/design.html.erb +8 -4
- data/app/views/avo/sidebar/_license_warning.html.erb +3 -3
- data/app/views/layouts/avo/application.html.erb +39 -17
- data/app/views/layouts/avo/modal.html.erb +7 -0
- data/avo.gemspec +3 -4
- data/config/i18n-tasks.yml +1 -1
- data/config/importmap.rb +1 -0
- data/config/initializers/pagy.rb +5 -25
- data/config/routes/dynamic_routes.rb +4 -0
- data/config/routes.rb +6 -7
- data/db/factories.rb +14 -0
- data/lib/avo/asset_manager.rb +2 -0
- data/lib/avo/avatar.rb +7 -0
- data/lib/avo/base_action.rb +16 -4
- data/lib/avo/concerns/breadcrumbs.rb +7 -66
- data/lib/avo/concerns/form_builder.rb +41 -0
- data/lib/avo/concerns/{has_profile_photo.rb → has_avatar.rb} +8 -4
- data/lib/avo/concerns/{has_cover_photo.rb → has_cover.rb} +4 -4
- data/lib/avo/concerns/has_description.rb +9 -0
- data/lib/avo/concerns/has_item_type.rb +6 -2
- data/lib/avo/concerns/has_items.rb +43 -58
- data/lib/avo/concerns/pagination.rb +29 -19
- data/lib/avo/concerns/row_controls_configuration.rb +22 -15
- data/lib/avo/configuration/branding.rb +7 -7
- data/lib/avo/configuration.rb +92 -45
- data/lib/avo/{cover_photo.rb → cover.rb} +2 -2
- data/lib/avo/current.rb +0 -11
- data/lib/avo/discreet_information.rb +52 -29
- data/lib/avo/dsl/field_parser.rb +1 -1
- data/lib/avo/engine.rb +41 -8
- data/lib/avo/error_manager.rb +1 -1
- data/lib/avo/fields/avatar_field.rb +19 -0
- data/lib/avo/fields/badge_field.rb +23 -3
- data/lib/avo/fields/base_field.rb +46 -1
- data/lib/avo/fields/concerns/dom_id.rb +17 -0
- data/lib/avo/fields/concerns/file_authorization.rb +4 -0
- data/lib/avo/fields/concerns/has_html_attributes.rb +1 -1
- data/lib/avo/fields/concerns/is_searchable.rb +2 -5
- data/lib/avo/fields/concerns/nested.rb +1 -1
- data/lib/avo/fields/files_field.rb +2 -2
- data/lib/avo/fields/frame_base_field.rb +2 -2
- data/lib/avo/fields/id_field.rb +5 -1
- data/lib/avo/fields/progress_bar_field.rb +1 -1
- data/lib/avo/fields/text_field.rb +1 -1
- data/lib/avo/photo_object.rb +12 -1
- data/lib/avo/plugin_manager.rb +4 -0
- data/lib/avo/resources/base.rb +33 -21
- data/lib/avo/resources/controls/actions_list.rb +3 -3
- data/lib/avo/resources/controls/base_control.rb +1 -1
- data/lib/avo/resources/items/card.rb +16 -0
- data/lib/avo/resources/items/header.rb +11 -0
- data/lib/avo/resources/items/holder.rb +18 -23
- data/lib/avo/resources/items/item_group.rb +5 -7
- data/lib/avo/resources/items/sidebar.rb +5 -9
- data/lib/avo/resources/items/tab.rb +8 -8
- data/lib/avo/resources/items/tab_group.rb +8 -10
- data/lib/avo/resources/resource_manager.rb +2 -1
- data/lib/avo/services/hq_reporter.rb +102 -0
- data/lib/avo/services/telemetry_service.rb +0 -1
- data/lib/avo/test_helpers.rb +36 -22
- data/lib/avo/u_i_instance.rb +60 -0
- data/lib/avo/version.rb +1 -1
- data/lib/avo/view_inquirer.rb +6 -1
- data/lib/avo/view_types/view_type_manager.rb +70 -0
- data/lib/avo.rb +30 -45
- data/lib/generators/avo/action_generator.rb +1 -1
- data/lib/generators/avo/resource_generator.rb +43 -0
- data/lib/generators/avo/resource_tool_generator.rb +1 -1
- data/lib/generators/avo/tailwindcss/install_generator.rb +0 -6
- data/lib/generators/avo/templates/cards/partial_card_partial.tt +1 -1
- data/lib/generators/avo/templates/initializer/avo.tt +7 -9
- data/lib/generators/avo/templates/locales/avo.ar.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.de.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.en.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.es.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.fr.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.it.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.ja.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.nb.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.nl.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.nn.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.pl.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.pt.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.ru.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.tr.yml +25 -0
- data/lib/generators/avo/templates/locales/{avo.uk.yml → avo.ua.yml} +26 -1
- data/lib/generators/avo/templates/locales/avo.zh-TW.yml +25 -0
- data/lib/generators/avo/templates/locales/avo.zh.yml +25 -0
- data/lib/generators/avo/templates/resource/resource.tt +10 -1
- data/lib/generators/avo/templates/resource_tools/partial.tt +20 -22
- data/lib/generators/avo/templates/tailwindcss/avo.tailwind.css +1 -3
- data/lib/generators/avo/templates/tailwindcss/tailwind.config.js +0 -7
- data/lib/generators/avo/templates/tool/view.tt +14 -16
- data/lib/generators/avo/tool_generator.rb +3 -3
- data/lib/generators/avo/version_generator.rb +1 -1
- data/lib/tasks/avo_tasks.rake +29 -25
- metadata +145 -97
- data/app/assets/stylesheets/avo.base.css +0 -130
- data/app/assets/stylesheets/css/breadcrumbs.css +0 -16
- data/app/assets/stylesheets/css/buttons.css +0 -19
- data/app/assets/stylesheets/css/tailwindcss/base.css +0 -1
- data/app/assets/stylesheets/css/tailwindcss/components.css +0 -1
- data/app/assets/stylesheets/css/tailwindcss/utilities.css +0 -1
- data/app/assets/svgs/avo/arrow-down.svg +0 -3
- data/app/assets/svgs/avo/arrow-up.svg +0 -3
- data/app/assets/svgs/avo/detach.svg +0 -8
- data/app/assets/svgs/avo/download-solid-reversed.svg +0 -3
- data/app/assets/svgs/avo/download-solid.svg +0 -3
- data/app/assets/svgs/avo/edit.svg +0 -5
- data/app/assets/svgs/avo/editor-bold.svg +0 -1
- data/app/assets/svgs/avo/editor-italic.svg +0 -1
- data/app/assets/svgs/avo/editor-link.svg +0 -1
- data/app/assets/svgs/avo/editor-list.svg +0 -1
- data/app/assets/svgs/avo/editor-strike.svg +0 -1
- data/app/assets/svgs/avo/editor-underline.svg +0 -1
- data/app/assets/svgs/avo/eye.svg +0 -1
- data/app/assets/svgs/avo/trash-sm.svg +0 -3
- data/app/assets/svgs/avo/trash.svg +0 -7
- data/app/components/avo/cover_photo_component.html.erb +0 -3
- data/app/components/avo/cover_photo_component.rb +0 -19
- data/app/components/avo/fields/common/badge_viewer_component.html.erb +0 -1
- data/app/components/avo/fields/common/badge_viewer_component.rb +0 -33
- data/app/components/avo/index/resource_grid_component.html.erb +0 -23
- data/app/components/avo/index/resource_grid_component.rb +0 -10
- data/app/components/avo/index/resource_map_component.html.erb +0 -16
- data/app/components/avo/index/resource_map_component.rb +0 -114
- data/app/components/avo/index/resource_table_component.html.erb +0 -52
- data/app/components/avo/panel_component.html.erb +0 -63
- data/app/components/avo/panel_component.rb +0 -43
- data/app/components/avo/panel_header_component.html.erb +0 -42
- data/app/components/avo/panel_header_component.rb +0 -31
- data/app/components/avo/profile_photo_component.html.erb +0 -6
- data/app/components/avo/profile_photo_component.rb +0 -9
- data/app/components/avo/sidebar/heading_component.html.erb +0 -21
- data/app/components/avo/sidebar/heading_component.rb +0 -9
- data/app/components/avo/tab_switcher_component.html.erb +0 -20
- data/app/components/avo/tab_switcher_component.rb +0 -45
- data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +0 -8
- data/app/views/avo/debug/report.html.erb +0 -37
- data/app/views/avo/partials/_panel_breadcrumbs.html.erb +0 -3
- data/app/views/avo/partials/_resource_search.html.erb +0 -16
- data/lib/avo/licensing/community_license.rb +0 -6
- data/lib/avo/licensing/h_q.rb +0 -202
- data/lib/avo/licensing/license.rb +0 -76
- data/lib/avo/licensing/license_manager.rb +0 -24
- data/lib/avo/licensing/nil_license.rb +0 -14
- data/lib/avo/licensing/pro_license.rb +0 -20
- data/lib/avo/licensing/request.rb +0 -20
- data/lib/avo/profile_photo.rb +0 -7
- data/lib/avo/services/debug_service.rb +0 -107
- data/public/avo-assets/placeholder.svg +0 -1
- data/tailwind.preset.js +0 -171
- /data/{public/avo-assets → app/assets/images/avo}/favicon.ico +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-500.eot +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-500.svg +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-500.ttf +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-500.woff +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-500.woff2 +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-600.eot +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-600.svg +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-600.ttf +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-600.woff +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-600.woff2 +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-700.eot +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-700.svg +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-700.ttf +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-700.woff +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-700.woff2 +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-regular.eot +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-regular.svg +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-regular.ttf +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-regular.woff +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/fonts/inter-v7-latin-regular.woff2 +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/logo-on-white.png +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/logo.png +0 -0
- /data/{public/avo-assets → app/assets/images/avo}/logomark.png +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* EDIT STYLES */
|
|
2
2
|
|
|
3
3
|
.tiptap {
|
|
4
|
-
@apply m-0 p-4 outline-
|
|
4
|
+
@apply m-0 p-4 outline-hidden min-h-44;
|
|
5
5
|
|
|
6
6
|
>*+* {
|
|
7
7
|
@apply mt-4;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
ul,
|
|
11
11
|
ol {
|
|
12
|
-
@apply
|
|
12
|
+
@apply ps-6 list-outside;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
ul {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.tiptap__field {
|
|
25
|
-
@apply w-full mb-4 border border-
|
|
25
|
+
@apply w-full mb-4 rounded-lg border border-tertiary;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.tiptap__editor {
|
|
@@ -30,11 +30,12 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.tiptap__toolbar {
|
|
33
|
-
@apply flex items-center justify-between px-3 py-2 border-
|
|
33
|
+
@apply flex items-center justify-between px-3 py-2 rounded-t-lg border border-tertiary bg-secondary;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.tiptap__toolbar-area {
|
|
37
|
-
@apply flex flex-wrap items-center
|
|
37
|
+
@apply flex flex-wrap items-center sm:divide-x sm:rtl:divide-x-reverse divide-tertiary;
|
|
38
|
+
--tw-divide-opacity: 1;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.tiptap__button-group {
|
|
@@ -54,27 +55,28 @@
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
.tiptap__button {
|
|
57
|
-
@apply p-1
|
|
58
|
+
@apply p-1 rounded-sm cursor-pointer;
|
|
58
59
|
|
|
59
60
|
&:hover:enabled {
|
|
60
|
-
|
|
61
|
+
background-color: var(--color-tertiary);
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
&:active:enabled {
|
|
64
|
-
@apply bg-
|
|
65
|
+
@apply bg-tertiary;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
&:disabled {
|
|
68
|
-
@apply text-
|
|
69
|
+
@apply cursor-default text-content-secondary;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
svg {
|
|
72
73
|
@apply block h-6;
|
|
74
|
+
stroke: var(--color-content);
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.tiptap__button--selected {
|
|
77
|
-
@apply bg-
|
|
79
|
+
@apply bg-tertiary;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
/* LINK STYLES */
|
|
@@ -84,8 +86,8 @@
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
.tiptap__link-field {
|
|
87
|
-
|
|
88
|
-
@apply italic text-
|
|
89
|
+
&::placeholder {
|
|
90
|
+
@apply italic text-content-secondary;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
&:focus::placeholder {
|
|
@@ -94,13 +96,13 @@
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
.tiptap__link-field {
|
|
97
|
-
@apply text-sm
|
|
99
|
+
@apply text-sm me-2 py-1 rounded-lg border border-tertiary bg-primary text-content;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
/* SHOW STYLES */
|
|
101
103
|
|
|
102
104
|
.tiptap__content {
|
|
103
|
-
@apply py-2 max-w-4xl;
|
|
105
|
+
@apply py-2 max-w-4xl text-content;
|
|
104
106
|
|
|
105
107
|
>*+* {
|
|
106
108
|
@apply mt-4;
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
|
|
109
111
|
ul,
|
|
110
112
|
ol {
|
|
111
|
-
@apply
|
|
113
|
+
@apply ps-6 list-outside;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
ul {
|
|
@@ -26,19 +26,79 @@
|
|
|
26
26
|
@apply list-decimal;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
trix-editor {
|
|
30
|
+
@apply border border-tertiary rounded-lg bg-primary text-content;
|
|
31
|
+
|
|
32
|
+
&:empty::before {
|
|
33
|
+
@apply !text-content-secondary;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
trix-toolbar {
|
|
30
38
|
.trix-button-row {
|
|
31
39
|
@apply flex-wrap gap-x-5;
|
|
32
40
|
}
|
|
33
41
|
|
|
42
|
+
.trix-button-group {
|
|
43
|
+
@apply border border-tertiary;
|
|
44
|
+
}
|
|
45
|
+
|
|
34
46
|
.trix-button-group:not(:first-child) {
|
|
35
|
-
@apply
|
|
47
|
+
@apply ms-0;
|
|
36
48
|
}
|
|
37
49
|
}
|
|
38
50
|
|
|
39
51
|
/* Hack to remove border from trix when rendered from ActionText */
|
|
40
52
|
.trix-content {
|
|
41
53
|
& .trix-content {
|
|
42
|
-
border
|
|
54
|
+
@apply border-none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Theme-token based Trix styling */
|
|
59
|
+
.trix-content pre {
|
|
60
|
+
@apply bg-tertiary text-content;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
trix-toolbar {
|
|
64
|
+
.trix-button-group {
|
|
65
|
+
@apply bg-secondary border-tertiary;
|
|
43
66
|
}
|
|
67
|
+
|
|
68
|
+
.trix-button {
|
|
69
|
+
@apply text-content border-tertiary;
|
|
70
|
+
|
|
71
|
+
&:not(:disabled):hover {
|
|
72
|
+
@apply bg-tertiary;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.trix-active {
|
|
76
|
+
@apply bg-tertiary;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.trix-dialog {
|
|
81
|
+
@apply bg-secondary border-tertiary shadow-none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.trix-input--dialog {
|
|
85
|
+
@apply bg-primary text-content border-tertiary;
|
|
86
|
+
|
|
87
|
+
&::placeholder {
|
|
88
|
+
@apply text-content-secondary;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.trix-button--dialog {
|
|
93
|
+
@apply text-content border-tertiary;
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
@apply bg-tertiary;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Trix toolbar icons are image-based and need inversion only in dark mode. */
|
|
102
|
+
.dark trix-toolbar .trix-button--icon::before {
|
|
103
|
+
filter: invert(1);
|
|
44
104
|
}
|
|
@@ -3,50 +3,50 @@
|
|
|
3
3
|
font-family: 'Inter';
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: 400;
|
|
6
|
-
src: url('
|
|
6
|
+
src: url('fonts/inter-v7-latin-regular.eot'); /* IE9 Compat Modes */
|
|
7
7
|
src: local(''),
|
|
8
|
-
url('
|
|
9
|
-
url('
|
|
10
|
-
url('
|
|
11
|
-
url('
|
|
12
|
-
url('
|
|
8
|
+
url('fonts/inter-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
9
|
+
url('fonts/inter-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
|
10
|
+
url('fonts/inter-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
|
|
11
|
+
url('fonts/inter-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
12
|
+
url('fonts/inter-v7-latin-regular.svg#Inter') format('svg'); /* Legacy iOS */
|
|
13
13
|
}
|
|
14
14
|
/* inter-500 - latin */
|
|
15
15
|
@font-face {
|
|
16
16
|
font-family: 'Inter';
|
|
17
17
|
font-style: normal;
|
|
18
18
|
font-weight: 500;
|
|
19
|
-
src: url('
|
|
19
|
+
src: url('fonts/inter-v7-latin-500.eot'); /* IE9 Compat Modes */
|
|
20
20
|
src: local(''),
|
|
21
|
-
url('
|
|
22
|
-
url('
|
|
23
|
-
url('
|
|
24
|
-
url('
|
|
25
|
-
url('
|
|
21
|
+
url('fonts/inter-v7-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
22
|
+
url('fonts/inter-v7-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
23
|
+
url('fonts/inter-v7-latin-500.woff') format('woff'), /* Modern Browsers */
|
|
24
|
+
url('fonts/inter-v7-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
25
|
+
url('fonts/inter-v7-latin-500.svg#Inter') format('svg'); /* Legacy iOS */
|
|
26
26
|
}
|
|
27
27
|
/* inter-600 - latin */
|
|
28
28
|
@font-face {
|
|
29
29
|
font-family: 'Inter';
|
|
30
30
|
font-style: normal;
|
|
31
31
|
font-weight: 600;
|
|
32
|
-
src: url('
|
|
32
|
+
src: url('fonts/inter-v7-latin-600.eot'); /* IE9 Compat Modes */
|
|
33
33
|
src: local(''),
|
|
34
|
-
url('
|
|
35
|
-
url('
|
|
36
|
-
url('
|
|
37
|
-
url('
|
|
38
|
-
url('
|
|
34
|
+
url('fonts/inter-v7-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
35
|
+
url('fonts/inter-v7-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
36
|
+
url('fonts/inter-v7-latin-600.woff') format('woff'), /* Modern Browsers */
|
|
37
|
+
url('fonts/inter-v7-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
38
|
+
url('fonts/inter-v7-latin-600.svg#Inter') format('svg'); /* Legacy iOS */
|
|
39
39
|
}
|
|
40
40
|
/* inter-700 - latin */
|
|
41
41
|
@font-face {
|
|
42
42
|
font-family: 'Inter';
|
|
43
43
|
font-style: normal;
|
|
44
44
|
font-weight: 700;
|
|
45
|
-
src: url('
|
|
45
|
+
src: url('fonts/inter-v7-latin-700.eot'); /* IE9 Compat Modes */
|
|
46
46
|
src: local(''),
|
|
47
|
-
url('
|
|
48
|
-
url('
|
|
49
|
-
url('
|
|
50
|
-
url('
|
|
51
|
-
url('
|
|
47
|
+
url('fonts/inter-v7-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
48
|
+
url('fonts/inter-v7-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
49
|
+
url('fonts/inter-v7-latin-700.woff') format('woff'), /* Modern Browsers */
|
|
50
|
+
url('fonts/inter-v7-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
|
|
51
|
+
url('fonts/inter-v7-latin-700.svg#Inter') format('svg'); /* Legacy iOS */
|
|
52
52
|
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--top-navbar-height: 4rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.skip-to-content {
|
|
6
|
+
@apply absolute overflow-hidden whitespace-nowrap border-0 p-0;
|
|
7
|
+
|
|
8
|
+
width: 1px;
|
|
9
|
+
height: 1px;
|
|
10
|
+
margin: -1px;
|
|
11
|
+
clip: rect(0, 0, 0, 0);
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
@apply z-[9999] fixed top-2 start-2 w-auto h-auto overflow-visible px-4 py-2 rounded-lg text-sm font-medium;
|
|
15
|
+
|
|
16
|
+
clip: auto;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background-color: var(--color-foreground);
|
|
19
|
+
color: var(--color-background);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.top-navbar {
|
|
24
|
+
height: var(--top-navbar-height);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* The sidebar width stays the same regardless of the sidebar open state. */
|
|
28
|
+
/* The content width and margin offset changes based on the sidebar open state and the :lg breakpoint. */
|
|
29
|
+
.main {
|
|
30
|
+
--sidebar-width: --spacing(64);
|
|
31
|
+
--sidebar-offset-size: 0rem;
|
|
32
|
+
--content-width: calc(100% - var(--sidebar-offset-size) - var(--spacing) * 2);
|
|
33
|
+
|
|
34
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
35
|
+
&.sidebar-open {
|
|
36
|
+
--sidebar-offset-size: var(--sidebar-width);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@apply mt-(--top-navbar-height);
|
|
41
|
+
|
|
42
|
+
.main-content-area {
|
|
43
|
+
@apply w-(--content-width) ms-1 flex flex-1 flex-col z-50 fixed rounded-2xl bg-primary shadow-content p-4 h-full;
|
|
44
|
+
|
|
45
|
+
transition: margin 0.1s ease-in-out, width 0.1s ease-in-out;
|
|
46
|
+
|
|
47
|
+
height: calc(100dvh - var(--spacing) - var(--top-navbar-height));
|
|
48
|
+
|
|
49
|
+
.scrollable-wrapper {
|
|
50
|
+
@apply overflow-y-auto h-full flex-1 flex flex-col px-2;
|
|
51
|
+
}
|
|
52
|
+
.avo-container {
|
|
53
|
+
@apply flex flex-1 flex-col justify-between;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.sidebar-open {
|
|
58
|
+
/* Add padding to the main area to allow for the sidebar to expand. */
|
|
59
|
+
.main-content-area {
|
|
60
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
61
|
+
margin-inline-start: calc(var(--sidebar-width) + var(--spacing));
|
|
62
|
+
width: var(--content-width);
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.container-large {
|
|
70
|
+
@apply 2xl:container 2xl:mx-auto;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.container-small {
|
|
74
|
+
@apply xl:px-0 xl:w-240 xl:mx-auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.container-full-width {
|
|
78
|
+
@apply w-full;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.top-navbar {
|
|
82
|
+
@apply z-100 fixed w-full flex shrink-0 items-center px-4 lg:px-2 space-x-4 rtl:space-x-reverse lg:space-x-0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Sidebar toggle: choose icon via navbar variables; visibility driven by data attribute */
|
|
86
|
+
.sidebar-toggle-icon {
|
|
87
|
+
@apply inline-flex;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sidebar-toggle-icon--closed {
|
|
91
|
+
@apply hidden;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
button[data-sidebar-state='closed'] .sidebar-toggle-icon--open {
|
|
95
|
+
@apply hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
button[data-sidebar-state='closed'] .sidebar-toggle-icon--closed {
|
|
99
|
+
@apply inline-flex;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Default hidden state - LTR: sidebar slides in from left */
|
|
103
|
+
.avo-sidebar {
|
|
104
|
+
@apply fixed z-60 top-0 flex-1 border-e border-tertiary lg:border-none mt-(--top-navbar-height) h-[calc(100dvh-var(--top-navbar-height))] bg-background lg:bg-transparent w-(--sidebar-width);
|
|
105
|
+
|
|
106
|
+
transform: translateX(-100%);
|
|
107
|
+
transition: transform 0.1s ease;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* RTL: sidebar slides in from right when hidden */
|
|
111
|
+
html[dir="rtl"] .avo-sidebar {
|
|
112
|
+
transform: translateX(100%);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Desktop: show sidebar when sidebar-open class is present (lg+ only) */
|
|
116
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
117
|
+
.sidebar-open .avo-sidebar {
|
|
118
|
+
transform: translateX(0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
html[dir="rtl"] .sidebar-open .avo-sidebar {
|
|
122
|
+
transform: translateX(0);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Mobile: show sidebar only when explicitly toggled open */
|
|
127
|
+
@media (width < theme(--breakpoint-lg)) {
|
|
128
|
+
.sidebar-mobile-open .avo-sidebar {
|
|
129
|
+
transform: translateX(0);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
html[dir="rtl"] .sidebar-mobile-open .avo-sidebar {
|
|
133
|
+
transform: translateX(0);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -1,103 +1,139 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@apply relative z-0 flex;
|
|
6
|
-
}
|
|
1
|
+
/* Pagination Component
|
|
2
|
+
BEM: .pagination (block)
|
|
3
|
+
.pagination__per-page (elements)
|
|
4
|
+
.pagination__controls, .pagination__info, .pagination__nav (elements) */
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@apply space-x-2;
|
|
12
|
-
}
|
|
6
|
+
.pagination {
|
|
7
|
+
@apply flex w-full flex-col items-stretch justify-between gap-2 sm:flex-row sm:items-end sm:gap-0;
|
|
8
|
+
}
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
@apply block;
|
|
16
|
-
}
|
|
10
|
+
/* === Per-page selector (left) === */
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.pagy-nav-js .page a,
|
|
23
|
-
.pagy-combo-nav-js .page a,
|
|
24
|
-
.pagy-combo-nav-js .pagy-combo-input a {
|
|
25
|
-
@apply rounded px-3 py-1 text-sm text-gray-500 font-semibold bg-white shadow-md border border-gray-300;
|
|
26
|
-
|
|
27
|
-
&:hover{
|
|
28
|
-
@apply bg-gray-150;
|
|
29
|
-
}
|
|
12
|
+
.pagination__per-page {
|
|
13
|
+
--pagination-per-page-width: 10rem; /* w-48 equivalent; use 165px for exact Figma match */
|
|
14
|
+
@apply flex items-center;
|
|
15
|
+
}
|
|
30
16
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
.pagination__per-page-input {
|
|
18
|
+
width: var(--pagination-per-page-width);
|
|
19
|
+
min-width: var(--pagination-per-page-width);
|
|
20
|
+
@apply py-1 px-2 bg-primary border border-tertiary rounded-lg overflow-hidden text-ellipsis whitespace-nowrap text-content cursor-pointer text-sm leading-5 font-normal inline-flex items-center gap-1;
|
|
21
|
+
}
|
|
35
22
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.pagy-combo-nav-js .page.next.disabled a {
|
|
42
|
-
@apply text-gray-300 cursor-default;
|
|
23
|
+
/* Dropdown menu matches trigger width */
|
|
24
|
+
.pagination__per-page .dropdown-popover {
|
|
25
|
+
width: var(--pagination-per-page-width);
|
|
26
|
+
min-width: var(--pagination-per-page-width);
|
|
27
|
+
}
|
|
43
28
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
.pagination__per-page-value {
|
|
30
|
+
@apply flex-1 text-start font-normal;
|
|
31
|
+
}
|
|
47
32
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
.pagination__per-page-icon {
|
|
34
|
+
@apply shrink-0 inline-flex items-center justify-center size-4 text-content-secondary;
|
|
35
|
+
|
|
36
|
+
& svg {
|
|
37
|
+
@apply size-4;
|
|
51
38
|
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Per-page option: number bold (700), "per page" normal (400) */
|
|
42
|
+
.pagination__per-page-option-num {
|
|
43
|
+
@apply font-bold;
|
|
44
|
+
}
|
|
52
45
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
.pagination__per-page .dropdown-menu__item {
|
|
47
|
+
@apply font-normal;
|
|
48
|
+
}
|
|
56
49
|
|
|
57
|
-
|
|
58
|
-
@apply text-white bg-gray-500;
|
|
59
|
-
}
|
|
50
|
+
/* === Controls pill (right) === */
|
|
60
51
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
.pagination__controls {
|
|
53
|
+
@apply flex w-fit shrink-0 items-center gap-3 rounded-lg border border-tertiary bg-primary overflow-hidden ps-3 pe-2 overflow-visible;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Info text with right-border divider */
|
|
57
|
+
.pagination__info {
|
|
58
|
+
@apply flex items-center py-1 pe-3 border-e border-tertiary whitespace-nowrap overflow-hidden text-ellipsis text-sm text-content leading-5 font-normal;
|
|
59
|
+
|
|
60
|
+
&:last-child {
|
|
61
|
+
@apply border-e-0 pe-1;
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
.
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
.pagination__info-number {
|
|
66
|
+
@apply font-bold;
|
|
67
|
+
}
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
/* Nav buttons wrapper */
|
|
70
|
+
.pagination__nav {
|
|
71
|
+
@apply flex items-center;
|
|
72
|
+
}
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
/* === Pagy nav === */
|
|
75
|
+
.pagy.series-nav {
|
|
76
|
+
@apply flex items-center gap-0.5;
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
a[role="separator"] {
|
|
79
|
+
@apply px-2 text-sm text-content-secondary;
|
|
80
|
+
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
& a:not([role="separator"]) {
|
|
83
|
+
@apply inline-flex items-center justify-center min-w-8 px-3 py-0.5 rounded-lg border border-transparent
|
|
84
|
+
text-sm font-medium leading-tight text-content no-underline transition-colors;
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
&:hover:not([aria-current="page"]):not([aria-disabled="true"]) {
|
|
87
|
+
@apply bg-secondary;
|
|
88
|
+
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
&:active:not([aria-current="page"]):not([aria-disabled="true"]) {
|
|
91
|
+
@apply bg-tertiary;
|
|
92
|
+
}
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
94
|
+
&[aria-disabled="true"]:not([aria-current="page"]) {
|
|
95
|
+
@apply opacity-40 cursor-not-allowed pointer-events-none;
|
|
96
|
+
}
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
98
|
+
&[aria-current="page"] {
|
|
99
|
+
@apply bg-secondary text-content cursor-default font-medium;
|
|
101
100
|
}
|
|
102
101
|
}
|
|
102
|
+
|
|
103
|
+
/* Compact previous/next controls */
|
|
104
|
+
& a:not([role="separator"]):first-child,
|
|
105
|
+
& a:not([role="separator"]):last-child {
|
|
106
|
+
@apply min-w-0 px-2 py-1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Avo paginator only: hide prev/next text and paint data-uri icons */
|
|
111
|
+
.pagination__nav .pagy.series-nav {
|
|
112
|
+
& a:not([role="separator"]):first-child,
|
|
113
|
+
& a:not([role="separator"]):last-child {
|
|
114
|
+
font-size: 0;
|
|
115
|
+
line-height: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
& a:not([role="separator"]):first-child::before,
|
|
119
|
+
& a:not([role="separator"]):last-child::before {
|
|
120
|
+
content: "";
|
|
121
|
+
@apply block size-3.5 bg-current;
|
|
122
|
+
-webkit-mask-repeat: no-repeat;
|
|
123
|
+
-webkit-mask-position: center;
|
|
124
|
+
-webkit-mask-size: contain;
|
|
125
|
+
mask-repeat: no-repeat;
|
|
126
|
+
mask-position: center;
|
|
127
|
+
mask-size: contain;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
& a:not([role="separator"]):first-child::before {
|
|
131
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E");
|
|
132
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E");
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& a:not([role="separator"]):last-child::before {
|
|
136
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M13 18l6 -6'/%3E%3Cpath d='M13 6l6 6'/%3E%3C/svg%3E");
|
|
137
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M13 18l6 -6'/%3E%3Cpath d='M13 6l6 6'/%3E%3C/svg%3E");
|
|
138
|
+
}
|
|
103
139
|
}
|