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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.aa-DetachedSearchButton:focus,
|
|
9
9
|
.aa-DetachedSearchButton {
|
|
10
10
|
border: none !important;
|
|
11
|
-
@apply text-
|
|
11
|
+
@apply text-content-secondary cursor-pointer;
|
|
12
12
|
|
|
13
13
|
.aa-DetachedSearchButtonPlaceholder {
|
|
14
14
|
@apply max-sm:hidden;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.aa-DetachedSearchButton {
|
|
25
|
-
@apply rounded border-
|
|
25
|
+
@apply rounded-sm border-[var(--color-avo-neutral-300)] h-[34px];
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
|
|
33
33
|
.aa-DetachedFormContainer,
|
|
34
34
|
.aa-DetachedContainer .aa-Panel {
|
|
35
|
-
@apply bg-
|
|
35
|
+
@apply bg-secondary border-b-0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.aa-Form {
|
|
39
39
|
&:focus-within {
|
|
40
|
-
@apply ring-0
|
|
40
|
+
@apply ring-0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
input {
|
|
44
|
-
@apply focus:ring-0
|
|
44
|
+
@apply focus:ring-0;
|
|
45
45
|
}
|
|
46
46
|
&:focus-within {
|
|
47
47
|
.aa-InputWrapperPrefix{
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
button.aa-DetachedCancelButton {
|
|
56
|
-
border: 1px solid
|
|
57
|
-
@apply bg-
|
|
56
|
+
border: 1px solid var(--color-avo-neutral-400) !important;
|
|
57
|
+
@apply bg-primary;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.aa-Input {
|
|
61
|
-
@apply focus:ring-
|
|
61
|
+
@apply focus:ring-accent;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.aa-DetachedContainer {
|
|
@@ -71,20 +71,30 @@ button.aa-DetachedCancelButton {
|
|
|
71
71
|
@apply space-y-2;
|
|
72
72
|
|
|
73
73
|
.aa-Item {
|
|
74
|
-
@apply bg-
|
|
74
|
+
@apply bg-primary rounded-sm px-3 py-4 shadow font-medium;
|
|
75
75
|
|
|
76
76
|
.aa-ItemDescription {
|
|
77
|
-
@apply text-
|
|
77
|
+
@apply text-content-secondary text-sm font-normal mt-1;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&[aria-selected=true]{
|
|
81
|
-
@apply bg-
|
|
81
|
+
@apply bg-accent text-accent-foreground;
|
|
82
82
|
|
|
83
83
|
.aa-ItemDescription {
|
|
84
|
-
@apply text-
|
|
84
|
+
@apply text-accent-foreground;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
/* Overlay used during resource search */
|
|
93
|
+
.avo-search-overlay {
|
|
94
|
+
/* Very subtle blur + dim layer; hidden by default */
|
|
95
|
+
@apply hidden absolute inset-0 z-10 bg-secondary/30 backdrop-blur-[1px] items-center justify-center pointer-events-none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.avo-search-overlay.is-active {
|
|
99
|
+
@apply flex;
|
|
100
|
+
}
|
|
@@ -1,31 +1,317 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* ================================================ */
|
|
2
|
+
/* Sidebar Shared Utilities */
|
|
3
|
+
/* ================================================ */
|
|
4
|
+
|
|
5
|
+
.avo-sidebar {
|
|
6
|
+
--color-active: color-mix(in oklab, var(--color-secondary), var(--color-content) 5%);
|
|
4
7
|
}
|
|
5
8
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@apply lg:pl-0;
|
|
10
|
-
transition: padding 0.1s ease;
|
|
11
|
-
}
|
|
9
|
+
.sidebar-icon {
|
|
10
|
+
@apply size-4;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.main-content-area {
|
|
16
|
-
@apply lg:pl-64;
|
|
17
|
-
transition: padding 0.1s ease;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
13
|
+
.sidebar-icon--collapsed {
|
|
14
|
+
@apply rotate-90;
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
.sidebar-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
.sidebar-group__header:focus-visible,
|
|
18
|
+
.sidebar-link:focus-visible,
|
|
19
|
+
.sidebar-link.active:focus-visible,
|
|
20
|
+
.sidebar-subitem:focus-visible {
|
|
21
|
+
@apply outline-none relative z-10;
|
|
22
|
+
box-shadow: var(--box-shadow-focus);
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
|
|
25
|
+
.sidebar-link[disabled],
|
|
26
|
+
.sidebar-link[aria-disabled='true'],
|
|
27
|
+
.sidebar-subitem[disabled],
|
|
28
|
+
.sidebar-subitem[aria-disabled='true'] {
|
|
29
|
+
@apply opacity-60 pointer-events-none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ================================================ */
|
|
33
|
+
/* Sidebar Layout — SidebarComponent */
|
|
34
|
+
/* BEM: .sidebar (block) */
|
|
35
|
+
/* ================================================ */
|
|
36
|
+
|
|
37
|
+
.sidebar__inner {
|
|
38
|
+
@apply flex flex-col w-full h-full;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sidebar__body {
|
|
42
|
+
@apply flex-1 min-h-0 overflow-y-auto flex flex-col gap-y-4 items-start;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar__body-content {
|
|
46
|
+
@apply flex flex-col px-3 w-full;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sidebar__nav-list {
|
|
50
|
+
@apply w-full space-y-1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sidebar__footer {
|
|
54
|
+
@apply shrink-0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ================================================ */
|
|
58
|
+
/* Sidebar Section — Sidebar::SectionComponent */
|
|
59
|
+
/* BEM: .sidebar-section (block) */
|
|
60
|
+
/* ================================================ */
|
|
61
|
+
|
|
62
|
+
.sidebar-section {
|
|
63
|
+
@apply pt-4;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sidebar-section__header {
|
|
67
|
+
@apply flex items-center w-full text-start p-2 pb-1 gap-2 rounded-lg text-content-secondary text-base font-medium leading-6 cursor-pointer border-none bg-transparent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sidebar-section__header-inner {
|
|
71
|
+
@apply flex items-center gap-2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sidebar-section__header:focus-visible {
|
|
75
|
+
@apply bg-primary relative z-10;
|
|
76
|
+
box-shadow: var(--box-shadow-focus);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sidebar-section__items {
|
|
80
|
+
@apply w-full flex flex-col;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Remove link gap when no items in the section have icons */
|
|
84
|
+
.sidebar-section__items:not(:has(.sidebar-link__icon-wrapper)) .sidebar-link {
|
|
85
|
+
@apply gap-0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* ================================================ */
|
|
89
|
+
/* Sidebar Group — Sidebar::GroupComponent */
|
|
90
|
+
/* BEM: .sidebar-group (block) */
|
|
91
|
+
/* ================================================ */
|
|
92
|
+
|
|
93
|
+
.sidebar-group:not(:last-of-type) {
|
|
94
|
+
@apply pb-4;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sidebar-group__header {
|
|
98
|
+
@apply flex w-full text-start px-2 py-1 gap-2 rounded-lg text-content-secondary text-xs font-medium leading-4 cursor-pointer border-none bg-transparent;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sidebar-group__header:focus-visible {
|
|
102
|
+
@apply bg-primary relative z-10;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sidebar-group__items {
|
|
106
|
+
@apply w-full flex flex-col;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Remove link gap when no items in the group have icons */
|
|
110
|
+
.sidebar-group__items:not(:has(.sidebar-link__icon-wrapper)) .sidebar-link {
|
|
111
|
+
@apply gap-0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ================================================ */
|
|
115
|
+
/* Sidebar Link — Sidebar::LinkComponent */
|
|
116
|
+
/* BEM: .sidebar-link (block) */
|
|
117
|
+
/* ================================================ */
|
|
118
|
+
|
|
119
|
+
.sidebar-link,
|
|
120
|
+
.sidebar-subitem {
|
|
121
|
+
@apply flex items-center px-2 rounded-lg gap-2 text-content-secondary text-sm font-medium leading-5;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sidebar-link {
|
|
125
|
+
@apply py-1.5 my-px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sidebar-link:hover {
|
|
129
|
+
@apply text-content;
|
|
130
|
+
background-color: color-mix(in oklab, var(--color-secondary), var(--color-content) 2%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sidebar-link:focus-visible,
|
|
134
|
+
.sidebar-link.active:focus-visible {
|
|
135
|
+
@apply bg-primary relative z-10;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sidebar-link.active {
|
|
139
|
+
@apply text-content;
|
|
140
|
+
background: var(--color-active);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.sidebar-link__icon-wrapper {
|
|
144
|
+
@apply shrink-0 flex items-center justify-center;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Reserve same width when group has icons but this link has none (alignment) */
|
|
148
|
+
.sidebar-link__icon-wrapper--placeholder {
|
|
149
|
+
@apply w-4 min-w-4;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.sidebar-link__external-icon {
|
|
153
|
+
@apply self-center ms-auto me-2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* ================================================ */
|
|
157
|
+
/* Sidebar Subitem — Sidebar::SubitemComponent */
|
|
158
|
+
/* BEM: .sidebar-subitem (block) */
|
|
159
|
+
/* ================================================ */
|
|
160
|
+
|
|
161
|
+
.sidebar-subitem {
|
|
162
|
+
@apply py-1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.sidebar-subitem__items {
|
|
166
|
+
@apply w-full flex flex-col ps-6;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.sidebar-subitem:hover {
|
|
170
|
+
@apply text-content;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.sidebar-subitem:focus-visible {
|
|
174
|
+
@apply text-content-secondary relative z-10;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.sidebar-subitem.active:hover,
|
|
178
|
+
.sidebar-subitem.active {
|
|
179
|
+
@apply text-content bg-transparent;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Bar indicators for submenu items */
|
|
183
|
+
.sidebar-subitem--bar-pass,
|
|
184
|
+
.sidebar-subitem--bar-active {
|
|
185
|
+
@apply relative;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* I-shape: vertical line passing through items above active */
|
|
189
|
+
.sidebar-subitem--bar-pass::before {
|
|
190
|
+
content: '';
|
|
191
|
+
@apply absolute top-0 bottom-0;
|
|
192
|
+
inset-inline-start: -10px;
|
|
193
|
+
border-inline-start: 2px solid var(--color-active);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* L-shape: vertical line curving right at active item */
|
|
197
|
+
.sidebar-subitem--bar-active::before {
|
|
198
|
+
content: '';
|
|
199
|
+
@apply absolute top-0;
|
|
200
|
+
inset-inline-start: -10px;
|
|
201
|
+
height: 50%;
|
|
202
|
+
width: 10px;
|
|
203
|
+
border-inline-start: 2px solid var(--color-active);
|
|
204
|
+
border-block-end: 2px solid var(--color-active);
|
|
205
|
+
border-end-start-radius: 2px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ================================================ */
|
|
209
|
+
/* Sidebar Profile — SidebarProfileComponent */
|
|
210
|
+
/* BEM: .sidebar-profile (block) */
|
|
211
|
+
/* ================================================ */
|
|
212
|
+
|
|
213
|
+
.sidebar-profile {
|
|
214
|
+
@apply flex items-center rtl:flex-row-reverse px-4 py-2 gap-4 text-content;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.sidebar-profile__body {
|
|
218
|
+
@apply flex flex-1 items-center gap-2 w-full min-w-0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.sidebar-profile__avatar-wrapper {
|
|
222
|
+
@apply flex items-center justify-center shrink-0 overflow-hidden rounded-lg border border-tertiary;
|
|
223
|
+
background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%), var(--color-tertiary);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.sidebar-profile__avatar {
|
|
227
|
+
@apply size-8 flex items-center justify-center;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.sidebar-profile__avatar-img {
|
|
231
|
+
@apply size-full min-w-full min-h-full object-cover;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.sidebar-profile__avatar-initials {
|
|
235
|
+
@apply w-6 font-semibold text-sm leading-5 text-center text-ellipsis overflow-hidden text-foreground tracking-tighter;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.sidebar-profile__info {
|
|
239
|
+
@apply flex flex-col min-w-0 rtl:text-end;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.sidebar-profile__title {
|
|
243
|
+
@apply font-medium text-ellipsis overflow-hidden text-sm leading-5 text-content;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.sidebar-profile__subtitle {
|
|
247
|
+
@apply text-xs text-ellipsis overflow-hidden leading-4 text-content-secondary;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.sidebar-profile__actions {
|
|
251
|
+
@apply flex items-center justify-center gap-1 shrink-0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.sidebar-profile__action-trigger {
|
|
255
|
+
@apply flex items-center cursor-pointer text-content-secondary;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sidebar-profile__action-trigger:hover {
|
|
259
|
+
@apply text-content;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.sidebar-profile__panel {
|
|
263
|
+
@apply absolute flex flex-col items-center inset-auto end-0 bottom-0 mb-8 bg-primary rounded-sm min-w-[200px] shadow-2xl z-40;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sidebar-profile__form {
|
|
267
|
+
@apply flex-1;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.sidebar-profile__sign-out {
|
|
271
|
+
@apply flex items-center justify-start gap-1 w-full px-4 py-3 rounded-sm cursor-pointer text-danger font-semibold bg-primary hover:bg-danger/10;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.sidebar-profile__sign-out-icon {
|
|
275
|
+
@apply me-1 shrink-0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.sidebar-profile__menu-item {
|
|
279
|
+
@apply flex-1 flex items-center justify-center text-start cursor-pointer font-semibold px-4 py-3 w-full rounded-sm bg-primary text-content hover:bg-tertiary;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.sidebar-profile__menu-item .sidebar-icon {
|
|
283
|
+
@apply me-1;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* ================================================ */
|
|
287
|
+
/* Sidebar Status (development only) */
|
|
288
|
+
/* BEM: .sidebar-status (block) */
|
|
289
|
+
/* ================================================ */
|
|
290
|
+
|
|
291
|
+
.sidebar-status {
|
|
292
|
+
@apply p-4 border-t border-tertiary;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.sidebar-status__link {
|
|
296
|
+
@apply px-4 py-2 border border-tertiary rounded-sm flex justify-between items-center w-full text-content text-sm;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.sidebar-status__indicator {
|
|
300
|
+
@apply rounded-full size-4;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.sidebar-status__indicator--ok {
|
|
304
|
+
@apply bg-green-400;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.sidebar-status__indicator--error {
|
|
308
|
+
@apply bg-orange-400;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.sidebar-status__hint {
|
|
312
|
+
@apply absolute text-xs text-content-secondary hidden text-center w-full -ms-4;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.sidebar-status:hover .sidebar-status__hint {
|
|
316
|
+
@apply block;
|
|
31
317
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* The dance we need to do to be able to have rounded corners on an HTML table */
|
|
2
|
+
.table-row {
|
|
3
|
+
@apply rounded-ss-lg;
|
|
4
|
+
|
|
5
|
+
&:first-child {
|
|
6
|
+
& > td:first-child {
|
|
7
|
+
@apply rounded-ss-lg border-s;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
&:first-child {
|
|
11
|
+
& > td:last-child {
|
|
12
|
+
@apply rounded-se-lg border-e;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:last-child {
|
|
17
|
+
& > td {
|
|
18
|
+
@apply border-b;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& > td:first-child {
|
|
22
|
+
@apply rounded-es-lg border-s;
|
|
23
|
+
}
|
|
24
|
+
& > td:last-child {
|
|
25
|
+
@apply rounded-ee-lg border-e;
|
|
26
|
+
}
|
|
27
|
+
@apply border-t border-tertiary;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& > td {
|
|
31
|
+
@apply border-t border-tertiary;
|
|
32
|
+
|
|
33
|
+
&:first-child {
|
|
34
|
+
@apply border-s;
|
|
35
|
+
}
|
|
36
|
+
&:last-child {
|
|
37
|
+
@apply border-e border-t;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
background: var(--color-table-row-hover);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@theme {
|
|
47
|
+
--color-table-row-selected: var(--color-secondary);
|
|
48
|
+
--color-table-row-hover: color-mix(in oklab, var(--color-secondary), var(--color-content) 2%)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.shift-pressed {
|
|
52
|
+
& .highlighted-row {
|
|
53
|
+
background: var(--color-table-row-selected);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.table-row:hover.selected-row,
|
|
58
|
+
.selected-row {
|
|
59
|
+
background: var(--color-table-row-hover);
|
|
60
|
+
}
|
|
@@ -20,6 +20,15 @@ h5 {
|
|
|
20
20
|
|
|
21
21
|
@layer base {
|
|
22
22
|
a {
|
|
23
|
-
|
|
23
|
+
color: var(--color-info-content);
|
|
24
|
+
|
|
25
|
+
&:active,
|
|
26
|
+
&:hover {
|
|
27
|
+
color: color-mix(in oklab, var(--color-info-content), var(--color-content) 30%);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
@apply outline-2 outline-offset-2 rounded-xs outline-content;
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
}
|