@ably/ui 8.8.0 → 8.9.0

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.
@@ -214,11 +214,13 @@ __webpack_require__.r(__webpack_exports__);
214
214
 
215
215
 
216
216
  var CustomerLogos = function CustomerLogos(_ref) {
217
- var companies = _ref.companies;
217
+ var companies = _ref.companies,
218
+ _ref$additionalCss = _ref.additionalCss,
219
+ additionalCss = _ref$additionalCss === void 0 ? "" : _ref$additionalCss;
218
220
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", {
219
221
  className: "w-full bg-white"
220
222
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
221
- className: "py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center"
223
+ className: "py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center ".concat(additionalCss)
222
224
  }, companies.map(function (company) {
223
225
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
224
226
  key: company.label,
@@ -235,7 +237,8 @@ CustomerLogos.propTypes = {
235
237
  companies: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
236
238
  label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
237
239
  logo: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
238
- }))
240
+ })),
241
+ additionalCss: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
239
242
  };
240
243
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomerLogos);
241
244
  })();
package/core/styles.css CHANGED
@@ -467,16 +467,15 @@
467
467
  }
468
468
 
469
469
  .ui-link {
470
- @apply visited:text-gui-visited;
470
+ @apply text-gui-default;
471
471
  @apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
472
- @apply focus:text-gui-focus focus:outline-gui-focus;
473
- @apply underline;
472
+ @apply focus:text-gui-default focus:outline-gui-focus;
473
+ @apply no-underline;
474
474
  }
475
475
 
476
476
  .ui-link-neutral {
477
- @apply visited:text-dark-grey;
478
477
  @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
479
- @apply focus:text-gui-focus focus:outline-gui-focus-neutral;
478
+ @apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
480
479
  @apply underline;
481
480
  }
482
481
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "8.8.0",
3
+ "version": "8.9.0",
4
4
  "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.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,9 +1,9 @@
1
1
  <section class="w-full bg-white">
2
- <ul class="py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center">
2
+ <%= tag.ul class: "py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center #{@additional_css}" do %>
3
3
  <% companies.each do |company| %>
4
4
  <li class="flex-auto text-center sm:w-1/3 w-1/2">
5
5
  <%= image_tag company[:logo], alt: "#{company[:label]} logo", class: 'mx-auto' %>
6
6
  </li>
7
7
  <% end %>
8
- </ul>
8
+ <% end %>
9
9
  </section>
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  import T from "prop-types";
3
3
 
4
- const CustomerLogos = ({ companies }) => {
4
+ const CustomerLogos = ({ companies, additionalCss = "" }) => {
5
5
  return (
6
6
  <section className="w-full bg-white">
7
- <ul className="py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center">
7
+ <ul className={`py-64 flex flex-row flex-wrap md:flex-nowrap content-between m-auto items-center ${additionalCss}`}>
8
8
  {companies.map((company) => (
9
9
  <li key={company.label} className="flex-auto text-center sm:w-1/3 w-1/2">
10
10
  <img alt={company.label} src={company.logo} className="mx-auto" />
@@ -22,6 +22,7 @@ CustomerLogos.propTypes = {
22
22
  logo: T.string,
23
23
  })
24
24
  ),
25
+ additionalCss: T.string,
25
26
  };
26
27
 
27
28
  export default CustomerLogos;
@@ -5,8 +5,9 @@ module AblyUi
5
5
  class CustomerLogos < ViewComponent::Base
6
6
  attr_reader :companies
7
7
 
8
- def initialize(companies:)
8
+ def initialize(companies:, additional_css: '')
9
9
  @companies = companies
10
+ @additional_css = additional_css
10
11
  end
11
12
  end
12
13
  end
@@ -147,16 +147,15 @@
147
147
  }
148
148
 
149
149
  .ui-link {
150
- @apply visited:text-gui-visited;
150
+ @apply text-gui-default;
151
151
  @apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
152
- @apply focus:text-gui-focus focus:outline-gui-focus;
153
- @apply underline;
152
+ @apply focus:text-gui-default focus:outline-gui-focus;
153
+ @apply no-underline;
154
154
  }
155
155
 
156
156
  .ui-link-neutral {
157
- @apply visited:text-dark-grey;
158
157
  @apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
159
- @apply focus:text-gui-focus focus:outline-gui-focus-neutral;
158
+ @apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
160
159
  @apply underline;
161
160
  }
162
161
  }