diff --git a/Gemfile.lock b/Gemfile.lock index 49af84efe..90fb3d2b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ably-ui (5.2.0) + ably-ui (5.2.0.dev.a4067b7) view_component (~> 2.33.0) GEM diff --git a/lib/ably_ui/version.rb b/lib/ably_ui/version.rb index 5a010a0df..45b4faa44 100644 --- a/lib/ably_ui/version.rb +++ b/lib/ably_ui/version.rb @@ -1,3 +1,3 @@ module AblyUi - VERSION = '5.2.0' + VERSION = '5.2.0.dev.a4067b7' end diff --git a/modules-config.js b/modules-config.js index 474739a0f..9cfd76ff0 100644 --- a/modules-config.js +++ b/modules-config.js @@ -31,6 +31,7 @@ module.exports = [ "CookieMessage", "Icon", "Slider", + "CustomerLogos", ], }, { diff --git a/package.json b/package.json index eb6d9d150..11abbb25e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably/ui", - "version": "5.2.0", + "version": "5.2.0-dev.a4067b7", "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", "repository": { "type": "git", diff --git a/preview/Gemfile b/preview/Gemfile index cc7f00b0d..273d547b6 100644 --- a/preview/Gemfile +++ b/preview/Gemfile @@ -36,4 +36,4 @@ gem 'view_component', '~> 2.33.0', require: 'view_component/engine' gem 'responders' -gem 'ably-ui', '5.2.0', require: 'ably_ui' +gem 'ably-ui', '5.2.0.dev.a4067b7', require: 'ably_ui' diff --git a/preview/Gemfile.lock b/preview/Gemfile.lock index acd7d34d8..a7c08f3f2 100644 --- a/preview/Gemfile.lock +++ b/preview/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - ably-ui (5.2.0) + ably-ui (5.2.0.dev.a4067b7) view_component (~> 2.33.0) actioncable (6.0.3.4) actionpack (= 6.0.3.4) @@ -169,7 +169,7 @@ PLATFORMS ruby DEPENDENCIES - ably-ui (= 5.2.0) + ably-ui (= 5.2.0.dev.a4067b7) bootsnap (>= 1.4.2) byebug listen (~> 3.2) diff --git a/preview/app/javascript/packs/application.js b/preview/app/javascript/packs/application.js index 96799b4a7..abf3fd86b 100644 --- a/preview/app/javascript/packs/application.js +++ b/preview/app/javascript/packs/application.js @@ -9,6 +9,7 @@ import CookieMessage from "@ably/ui/core/CookieMessage"; import Flash, { reducerFlashes } from "@ably/ui/core/Flash"; import Icon from "@ably/ui/core/Icon"; import FeaturedLink from "@ably/ui/core/FeaturedLink"; +import CustomerLogos from "@ably/ui/core/CustomerLogos"; import { reactRenderer, @@ -48,6 +49,7 @@ document.addEventListener("DOMContentLoaded", () => { CookieMessage, Icon, FeaturedLink, + CustomerLogos, }); // Fetch additional data, trigger a re-render for components subscribed to store diff --git a/preview/app/views/components/customer_logos_react.html.erb b/preview/app/views/components/customer_logos_react.html.erb new file mode 100644 index 000000000..43fb9e88f --- /dev/null +++ b/preview/app/views/components/customer_logos_react.html.erb @@ -0,0 +1,44 @@ +<%= render(TitleComponent.new(react: true, vw: true)) do %> + Customer logos +<% end %> + +<% + companies = [ + { + label: 'Hubspot', + logo: + asset_path('ably_ui/core/images/cust-logo-hubspot-mono-pos.svg') + }, + { + label: 'Hopin', + logo: asset_path('ably_ui/core/images/cust-logo-hopin-mono-pos.svg') + }, + { + label: 'Bloomberg', + logo: + asset_path('ably_ui/core/images/cust-logo-bloomberg-mono-pos.svg') + }, + { + label: 'Toyota', + logo: + asset_path('ably_ui/core/images/cust-logo-toyota-mono-pos.svg') + }, + { + label: 'Split', + logo: asset_path('ably_ui/core/images/cust-logo-split-mono-pos.svg') + }, + { + label: 'Australian Open', + logo: + asset_path('ably_ui/core/images/cust-logo-ausopen-mono-pos.svg') + } + ] +%> + +<%= react_component('customerLogos', companies: companies) %> + +<% content_for :component do %> + +<% end %> diff --git a/preview/app/views/components/customer_logos_vw.html.erb b/preview/app/views/components/customer_logos_vw.html.erb new file mode 100644 index 000000000..f8451933f --- /dev/null +++ b/preview/app/views/components/customer_logos_vw.html.erb @@ -0,0 +1,45 @@ +<%= render(TitleComponent.new(react: true, vw: true)) do %> + Customer logos +<% end %> + +<% + companies = [ + { + label: 'Hubspot', + logo: + asset_path('ably_ui/core/images/cust-logo-hubspot-mono-pos.svg') + }, + { + label: 'Hopin', + logo: asset_path('ably_ui/core/images/cust-logo-hopin-mono-pos.svg') + }, + { + label: 'Bloomberg', + logo: + asset_path('ably_ui/core/images/cust-logo-bloomberg-mono-pos.svg') + }, + { + label: 'Toyota', + logo: + asset_path('ably_ui/core/images/cust-logo-toyota-mono-pos.svg') + }, + { + label: 'Split', + logo: asset_path('ably_ui/core/images/cust-logo-split-mono-pos.svg') + }, + { + label: 'Australian Open', + logo: + asset_path('ably_ui/core/images/cust-logo-ausopen-mono-pos.svg') + } + ] +%> + + +<%= render(AblyUi::Core::CustomerLogos.new(companies: companies)) %> + +<% content_for :component do %> + +<% end %> diff --git a/preview/app/views/pages/index.html.erb b/preview/app/views/pages/index.html.erb index 55401a7e0..bdeb05481 100644 --- a/preview/app/views/pages/index.html.erb +++ b/preview/app/views/pages/index.html.erb @@ -43,6 +43,9 @@