@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.
package/core/CustomerLogos.jsx
CHANGED
|
@@ -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
|
|
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-
|
|
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-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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=
|
|
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;
|
package/src/core/styles/text.css
CHANGED
|
@@ -147,16 +147,15 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.ui-link {
|
|
150
|
-
@apply
|
|
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-
|
|
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-
|
|
158
|
+
@apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
|
|
160
159
|
@apply underline;
|
|
161
160
|
}
|
|
162
161
|
}
|