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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* File Upload Item Component - Based on Figma Design System */
|
|
2
|
+
/* BEM Methodology: .file-upload-item (block), .file-upload-item__* (elements), .file-upload-item--* (modifiers) */
|
|
3
|
+
|
|
4
|
+
.file-upload-item {
|
|
5
|
+
@apply relative flex h-14 items-center justify-between overflow-clip rounded-lg border border-tertiary bg-primary px-4 w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* ==========================================================================
|
|
9
|
+
Progress Bar (hidden by default, shown via --uploading state)
|
|
10
|
+
========================================================================== */
|
|
11
|
+
|
|
12
|
+
.file-upload-item__progress {
|
|
13
|
+
@apply absolute inset-y-0 start-0 bg-secondary h-full hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.file-upload-item--uploading .file-upload-item__progress {
|
|
17
|
+
@apply block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ==========================================================================
|
|
21
|
+
Body
|
|
22
|
+
========================================================================== */
|
|
23
|
+
|
|
24
|
+
.file-upload-item__body {
|
|
25
|
+
@apply relative z-10 flex min-w-0 flex-1 flex-col gap-0.5 items-stretch overflow-hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.file-upload-item__title {
|
|
29
|
+
@apply min-w-0 truncate text-xs font-medium leading-4 text-content;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.file-upload-item__meta {
|
|
33
|
+
@apply flex items-center gap-1 text-xs font-normal leading-4 text-content-secondary;
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ==========================================================================
|
|
38
|
+
Status Indicators (all rendered, controlled by state classes)
|
|
39
|
+
========================================================================== */
|
|
40
|
+
|
|
41
|
+
.file-upload-item__status {
|
|
42
|
+
@apply flex items-center gap-0.5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.file-upload-item__status-icon {
|
|
46
|
+
@apply size-3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* State: Complete */
|
|
50
|
+
.file-upload-item__status--complete {
|
|
51
|
+
@apply text-success-content;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* State: Error */
|
|
55
|
+
.file-upload-item__status--error {
|
|
56
|
+
@apply text-danger-content;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* State: Uploading */
|
|
60
|
+
.file-upload-item__status--uploading {
|
|
61
|
+
@apply text-content-secondary;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* ==========================================================================
|
|
65
|
+
Actions
|
|
66
|
+
========================================================================== */
|
|
67
|
+
|
|
68
|
+
.file-upload-item__actions {
|
|
69
|
+
@apply relative z-10 flex shrink-0 items-center gap-1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.file-upload-item__action {
|
|
73
|
+
@apply size-6 flex items-center justify-center rounded-lg text-content-secondary transition;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.file-upload-item__action svg {
|
|
77
|
+
@apply size-3.5;
|
|
78
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.panel {
|
|
2
|
+
@apply flex flex-col gap-y-4 w-full;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.panel__header {
|
|
6
|
+
@apply w-full;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.panel__footer {
|
|
10
|
+
@apply w-full;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.panel__content {
|
|
14
|
+
--panel-sidebar-width: calc(var(--spacing) * 84);
|
|
15
|
+
@apply relative grid gap-4 w-full;
|
|
16
|
+
grid-template-columns: minmax(0, 1fr);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.panel__card,
|
|
20
|
+
.panel__body {
|
|
21
|
+
@apply w-full;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.panel__sidebar {
|
|
25
|
+
@apply w-full top-0 end-0 flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.panel--has-sidebar .panel__content {
|
|
29
|
+
grid-template-areas:
|
|
30
|
+
"body"
|
|
31
|
+
"sidebar";
|
|
32
|
+
|
|
33
|
+
@media (width >= 48rem) {
|
|
34
|
+
grid-template-areas: "body sidebar";
|
|
35
|
+
grid-template-columns: minmax(0, 1fr) var(--panel-sidebar-width);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.panel__card,
|
|
39
|
+
.panel__body {
|
|
40
|
+
grid-area: body;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.panel__sidebar {
|
|
44
|
+
grid-area: sidebar;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.panel__cover-photo {
|
|
49
|
+
@apply w-full;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.panel--floating-sidebar {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.panel--full-width {
|
|
56
|
+
.panel__body {
|
|
57
|
+
@apply w-full;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
@apply flex flex-col gap-2 items-start justify-center pe-0 py-0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.header__main {
|
|
6
|
+
@apply flex flex-col sm:flex-row gap-4 items-center w-full;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.header__content {
|
|
10
|
+
@apply flex gap-3 items-center grow shrink basis-0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.header__avatar {
|
|
14
|
+
@apply shrink-0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.header__text {
|
|
18
|
+
@apply flex flex-col gap-0.5 items-start grow shrink basis-0 min-h-px min-w-px not-italic;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.header__title {
|
|
22
|
+
@apply flex gap-2 font-medium leading-6 overflow-ellipsis w-full text-xl text-content;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.header__description {
|
|
26
|
+
@apply font-normal leading-5 overflow-ellipsis w-full text-content-secondary;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-box-orient: vertical;
|
|
30
|
+
-webkit-line-clamp: 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.header__controls {
|
|
34
|
+
@apply flex gap-3 items-center cursor-pointer shrink-0 flex-wrap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.header__discreet-information {
|
|
38
|
+
@apply flex justify-center sm:justify-start gap-2 items-start w-full flex-wrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Size variants */
|
|
42
|
+
.header--size-medium {
|
|
43
|
+
/* Default styles already applied */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.header--size-small {
|
|
47
|
+
/* Small variant uses same structure but can have different spacing if needed */
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Radio Button - Native input styling (matches checkbox approach) */
|
|
2
|
+
@layer base {
|
|
3
|
+
input[type="radio"] {
|
|
4
|
+
@apply relative accent-accent-content;
|
|
5
|
+
|
|
6
|
+
&:after {
|
|
7
|
+
@apply absolute rounded-full size-3 top-1/2 start-1/2 -translate-x-1/2 -translate-y-1/2 content-[''];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
input[type=radio]:hover{
|
|
12
|
+
@apply outline-none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
input[type=radio]:focus-visible {
|
|
16
|
+
@apply outline-none;
|
|
17
|
+
&:after {
|
|
18
|
+
@apply ring ring-offset-2 ring-accent-content rounded-full !outline-none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* Tabs Component - All Styles */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* ============================================
|
|
4
|
+
BASE STYLES (Common to both variants)
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
/* Container */
|
|
8
|
+
.tabs {
|
|
9
|
+
@apply flex flex-wrap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Base Item */
|
|
13
|
+
.tabs__item {
|
|
14
|
+
@apply inline-flex items-center mx-1 px-3 py-1 cursor-pointer text-sm font-medium leading-4 bg-transparent gap-2 rounded-md text-content;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Item Sub-elements */
|
|
18
|
+
.tabs__item-icon {
|
|
19
|
+
@apply size-4 text-content;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tabs__item-label {
|
|
23
|
+
@apply whitespace-nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Item States - Shared */
|
|
27
|
+
.tabs__item--disabled {
|
|
28
|
+
@apply opacity-50 cursor-not-allowed;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tabs__item:hover:not(.tabs__item--disabled) {
|
|
32
|
+
@apply bg-secondary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tabs__item:focus-visible {
|
|
36
|
+
@apply bg-primary outline-none ring-offset-2 ring-offset-primary ring-2 ring-content;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Wrapper */
|
|
40
|
+
.tabs__item-wrapper {
|
|
41
|
+
@apply inline-block py-2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ============================================
|
|
45
|
+
GROUP VARIANT
|
|
46
|
+
============================================ */
|
|
47
|
+
.tabs__item--group.tabs__item--active:hover,
|
|
48
|
+
.tabs__item--group.tabs__item--active {
|
|
49
|
+
background: color-mix(in oklab, var(--color-secondary), var(--color-content) 5%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tabs__item-wrapper--group {
|
|
53
|
+
@apply flex items-center justify-center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ============================================
|
|
57
|
+
SCOPE VARIANT
|
|
58
|
+
============================================ */
|
|
59
|
+
/* Full-width border on tabs container */
|
|
60
|
+
.tabs:has(.tabs__item-wrapper--scope) {
|
|
61
|
+
@apply border-b border-tertiary;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Remove default border from scope wrappers */
|
|
65
|
+
.tabs__item-wrapper--scope {
|
|
66
|
+
@apply border-b-0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Active border only on active tab wrapper - positioned to overlay container border */
|
|
70
|
+
.tabs__item-wrapper--scope.tabs__item--active {
|
|
71
|
+
@apply border-b-2 border-accent;
|
|
72
|
+
margin-bottom: -1px; /* Overlap with container border */
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* Actions Dropdown Animations */
|
|
2
|
+
|
|
3
|
+
.css-animate-dialog-slide-down[open],
|
|
4
|
+
.css-animate-slide-down {
|
|
5
|
+
opacity: 1;
|
|
6
|
+
transform: translateY(0);
|
|
7
|
+
|
|
8
|
+
transition:
|
|
9
|
+
opacity 75ms ease-out,
|
|
10
|
+
transform 75ms ease-out,
|
|
11
|
+
display 75ms allow-discrete;
|
|
12
|
+
|
|
13
|
+
/* Starting state when transitioning FROM [hidden] */
|
|
14
|
+
@starting-style {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
transform: translateY(-0.25rem);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Hidden state - CSS handles the leave animation */
|
|
21
|
+
.css-animate-dialog-slide-down,
|
|
22
|
+
.css-animate-slide-down[hidden] {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transform: translateY(-0.25rem);
|
|
25
|
+
transition:
|
|
26
|
+
opacity 75ms ease-out,
|
|
27
|
+
transform 75ms ease-out,
|
|
28
|
+
display 75ms allow-discrete;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Sidebar Profile Dropdown Animation (slides up from bottom) */
|
|
32
|
+
.css-animate-slide-up {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
transform: translateY(0);
|
|
35
|
+
|
|
36
|
+
transition:
|
|
37
|
+
opacity 100ms ease-in-out,
|
|
38
|
+
transform 100ms ease-in-out,
|
|
39
|
+
display 100ms allow-discrete;
|
|
40
|
+
|
|
41
|
+
@starting-style {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translateY(0.75rem);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.css-animate-slide-up[hidden] {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transform: translateY(0.75rem);
|
|
50
|
+
transition:
|
|
51
|
+
opacity 75ms ease-in,
|
|
52
|
+
transform 75ms ease-in,
|
|
53
|
+
display 75ms allow-discrete;
|
|
54
|
+
}
|
|
@@ -1,17 +1,83 @@
|
|
|
1
1
|
@import 'codemirror/lib/codemirror.css';
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
@import 'codemirror/theme/dracula.css';
|
|
5
|
-
@import 'codemirror/theme/eclipse.css';
|
|
6
|
-
@import 'codemirror/theme/material-darker.css';
|
|
7
|
-
|
|
3
|
+
/* Base CodeMirror surface */
|
|
8
4
|
.CodeMirror {
|
|
5
|
+
@apply border border-tertiary rounded-b-lg bg-primary text-content p-0 min-h-auto;
|
|
9
6
|
height: var(--height) !important;
|
|
10
|
-
min-height: auto;
|
|
11
|
-
padding: 0;
|
|
12
7
|
}
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
.CodeMirror-gutters {
|
|
10
|
+
@apply bg-secondary border-e border-tertiary;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.CodeMirror-linenumber {
|
|
14
|
+
@apply text-content-secondary;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.CodeMirror-cursor {
|
|
18
|
+
@apply border-s-content;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.CodeMirror-selected {
|
|
22
|
+
@apply !bg-tertiary;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.CodeMirror-scrollbar-filler,
|
|
26
|
+
.CodeMirror-gutter-filler {
|
|
27
|
+
@apply bg-primary;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Shared placeholder styling (standalone and EasyMDE) */
|
|
31
|
+
.EasyMDEContainer .CodeMirror .CodeMirror-placeholder,
|
|
32
|
+
[data-controller="code-field"] .CodeMirror .CodeMirror-placeholder {
|
|
33
|
+
@apply text-content-secondary opacity-100;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Standalone code field (CodeMirror without EasyMDE) */
|
|
37
|
+
[data-controller="code-field"] .CodeMirror {
|
|
38
|
+
@apply border border-tertiary rounded-lg;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Overlay CodeMirror fullscreen and side preview */
|
|
42
|
+
.CodeMirror-fullscreen,
|
|
43
|
+
.editor-preview-active-side {
|
|
16
44
|
z-index: 50;
|
|
17
45
|
}
|
|
46
|
+
|
|
47
|
+
/* EasyMDE shell */
|
|
48
|
+
.editor-toolbar {
|
|
49
|
+
@apply border border-tertiary rounded-t-lg;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Dark mode EasyMDE overrides (tiny_description field) */
|
|
53
|
+
.dark .editor-toolbar {
|
|
54
|
+
@apply bg-secondary border-tertiary;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dark .editor-toolbar a,
|
|
58
|
+
.dark .editor-toolbar button {
|
|
59
|
+
@apply !text-content bg-transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dark .editor-toolbar a:hover,
|
|
63
|
+
.dark .editor-toolbar a.active,
|
|
64
|
+
.dark .editor-toolbar button:hover,
|
|
65
|
+
.dark .editor-toolbar button.active {
|
|
66
|
+
@apply !bg-tertiary !border-tertiary;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dark .editor-toolbar i.separator {
|
|
70
|
+
@apply border-tertiary;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dark .editor-statusbar {
|
|
74
|
+
@apply text-content-secondary;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dark .editor-preview {
|
|
78
|
+
@apply bg-primary text-content;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dark .editor-preview-side {
|
|
82
|
+
@apply bg-primary text-content border-tertiary;
|
|
83
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Key Value Field
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
.key-value {
|
|
6
|
+
@apply w-full;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.key-value__table {
|
|
10
|
+
@apply w-full rounded-lg border border-tertiary overflow-hidden bg-primary;
|
|
11
|
+
--key-value-actions-width: 3rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.key-value__header,
|
|
15
|
+
.key-value__row {
|
|
16
|
+
@apply grid items-center min-h-10;
|
|
17
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--key-value-actions-width);
|
|
18
|
+
column-gap: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.key-value[data-editable="false"] .key-value__header,
|
|
22
|
+
.key-value[data-editable="false"] .key-value__row {
|
|
23
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.key-value__header {
|
|
27
|
+
@apply bg-secondary border-b border-tertiary text-content text-xs font-semibold uppercase;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.key-value__header-cell {
|
|
31
|
+
@apply px-3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.key-value__header-cell--key {
|
|
35
|
+
@apply border-e border-tertiary;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.key-value__header-cell--value {
|
|
39
|
+
@apply border-e border-tertiary;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.key-value__header-cell--actions {
|
|
43
|
+
@apply flex items-center justify-center px-2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.key-value__body {
|
|
47
|
+
@apply bg-primary;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.key-value__row {
|
|
51
|
+
@apply py-2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.key-value__row + .key-value__row {
|
|
55
|
+
@apply border-t border-tertiary;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.key-value__cell {
|
|
59
|
+
@apply w-full;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.key-value__cell--key {
|
|
63
|
+
@apply px-3 border-e border-tertiary;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.key-value__cell--value {
|
|
67
|
+
@apply px-3 border-e border-tertiary;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.key-value__cell--actions {
|
|
71
|
+
@apply flex items-center justify-center gap-1 px-2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.key-value__input {
|
|
75
|
+
@apply w-full;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.key-value__action-button {
|
|
79
|
+
@apply flex items-center justify-center size-8 text-content-secondary hover:text-content;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.key-value__action-button.cursor-not-allowed,
|
|
83
|
+
.key-value__action-button[disabled] {
|
|
84
|
+
@apply opacity-50 pointer-events-none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.key-value__action-button--drag {
|
|
88
|
+
@apply cursor-grab;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.key-value__action-icon {
|
|
92
|
+
@apply size-5;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.key-value__action-icon--small {
|
|
96
|
+
@apply size-4;
|
|
97
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
[data-component="avo/fields/common/progress_bar_component"] {
|
|
2
2
|
& progress {
|
|
3
|
-
@apply h-2 bg-white border border-slate-400 rounded shadow-inner;
|
|
3
|
+
@apply h-2 bg-white border border-slate-400 rounded-sm shadow-inner;
|
|
4
4
|
}
|
|
5
5
|
& progress[value]::-webkit-progress-bar {
|
|
6
|
-
@apply bg-white border border-gray-500 rounded shadow-inner;
|
|
6
|
+
@apply bg-white border border-gray-500 rounded-sm shadow-inner;
|
|
7
7
|
}
|
|
8
8
|
& progress[value]::-webkit-progress-value{
|
|
9
|
-
@apply bg-primary-500 rounded;
|
|
9
|
+
@apply bg-primary-500 rounded-sm;
|
|
10
10
|
|
|
11
11
|
}
|
|
12
12
|
& progress[value]::-moz-progress-bar {
|
|
13
|
-
@apply bg-primary-500 rounded appearance-none;
|
|
13
|
+
@apply bg-primary-500 rounded-sm appearance-none;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -5,12 +5,18 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.spinner .double-bounce1 {
|
|
9
|
+
background-color: var(--color-content-secondary);
|
|
10
|
+
}
|
|
11
|
+
.spinner .double-bounce2 {
|
|
12
|
+
background-color: var(--color-content-secondary);
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
.spinner .double-bounce1,
|
|
9
16
|
.spinner .double-bounce2 {
|
|
10
17
|
width: 100%;
|
|
11
18
|
height: 100%;
|
|
12
19
|
border-radius: 50%;
|
|
13
|
-
background-color: #333;
|
|
14
20
|
opacity: 0.6;
|
|
15
21
|
position: absolute;
|
|
16
22
|
top: 0;
|
|
@@ -1,26 +1,43 @@
|
|
|
1
|
+
/* Tags Field - Tagify design token overrides.
|
|
2
|
+
Base styles: input/base.css. Dropdown: dropdown.css (classes via JS).
|
|
3
|
+
Tagify uses CSS vars for borders/colors; override them for design system. */
|
|
4
|
+
|
|
1
5
|
tags.tagify {
|
|
2
|
-
--
|
|
3
|
-
--tags-border-color:
|
|
4
|
-
--tags-
|
|
5
|
-
--
|
|
6
|
+
--tags-border-color: var(--color-tertiary);
|
|
7
|
+
--tags-hover-border-color: var(--color-tertiary);
|
|
8
|
+
--tags-focus-border-color: var(--color-primary);
|
|
9
|
+
--placeholder-color: var(--color-content-secondary);
|
|
10
|
+
--placeholder-color-focus: var(--color-content-secondary);
|
|
11
|
+
|
|
12
|
+
padding-block: var(--input-py);
|
|
13
|
+
align-items: center;
|
|
6
14
|
}
|
|
7
15
|
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
/* Align the inner editable area with the design system size tokens */
|
|
17
|
+
tags.tagify .tagify__input {
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding-block: 0;
|
|
20
|
+
line-height: var(--input-leading);
|
|
10
21
|
}
|
|
11
22
|
|
|
12
|
-
tags.tagify {
|
|
13
|
-
|
|
23
|
+
tags.tagify.tagify--focus {
|
|
24
|
+
box-shadow: var(--box-shadow-focus);
|
|
25
|
+
}
|
|
14
26
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
.tagify__dropdown {
|
|
28
|
+
--tagify-dd-color-primary: var(--color-tertiary);
|
|
29
|
+
--tagify-dd-text-color: var(--color-content);
|
|
30
|
+
--tagify-dd-bg-color: var(--color-primary);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tagify__dropdown__item {
|
|
34
|
+
width: calc(100% - 2px) !important;
|
|
35
|
+
}
|
|
18
36
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
37
|
+
.tagify__dropdown__item.tagify__dropdown__item--active {
|
|
38
|
+
@apply bg-secondary text-content;
|
|
22
39
|
}
|
|
23
40
|
|
|
24
|
-
|
|
25
|
-
@apply
|
|
41
|
+
.tagify__tag > div {
|
|
42
|
+
@apply !py-1;
|
|
26
43
|
}
|