@ably/ui 11.7.1-dev.13caf30 → 11.7.1-dev.2e09628
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/ContactFooter.jsx +8 -8
- package/core/DropdownMenu.jsx +1 -1
- package/core/FeaturedLink.jsx +1 -1
- package/core/Flash/component.css +0 -4
- package/core/Flash.jsx +1 -1
- package/core/Footer.jsx +2 -2
- package/core/Meganav/component.css +1 -1
- package/core/Meganav.jsx +5 -5
- package/core/MeganavBlogPostsList.jsx +1 -1
- package/core/MeganavContentCompany.jsx +1 -1
- package/core/MeganavContentProducts.jsx +2 -2
- package/core/MeganavItemsMobile.jsx +1 -1
- package/core/MeganavItemsSignedIn.jsx +1 -1
- package/core/MeganavSearch.jsx +1 -1
- package/core/MeganavSearchPanel.jsx +1 -1
- package/core/MeganavSearchSuggestions.jsx +1 -1
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +3 -3
- package/core/Uptime/component.css +1 -1
- package/core/Uptime.jsx +2 -2
- package/core/styles.css +16 -37
- package/package.json +1 -1
- package/src/core/ContactFooter/component.html.erb +8 -8
- package/src/core/ContactFooter/component.jsx +8 -8
- package/src/core/DropdownMenu/component.jsx +1 -1
- package/src/core/FeatureFooter/component.html.erb +6 -6
- package/src/core/FeaturedLink/component.html.erb +1 -1
- package/src/core/FeaturedLink/component.jsx +1 -1
- package/src/core/Flash/component.css +0 -4
- package/src/core/Flash/component.jsx +1 -1
- package/src/core/Footer/component.html.erb +2 -2
- package/src/core/Footer/component.jsx +2 -2
- package/src/core/Meganav/component.css +1 -1
- package/src/core/MeganavContentProducts/component.html.erb +1 -1
- package/src/core/MeganavContentProducts/component.jsx +1 -1
- package/src/core/Notice/component.html.erb +2 -2
- package/src/core/Notice/component.jsx +2 -2
- package/src/core/Showcase/component.html.erb +7 -7
- package/src/core/Uptime/component.css +1 -1
- package/src/core/Uptime/component.jsx +1 -4
- package/src/core/styles/text.css +15 -36
- package/src/core/styles.components.css +1 -1
package/core/ContactFooter.jsx
CHANGED
|
@@ -286,9 +286,9 @@ function ContactFooter(_ref) {
|
|
|
286
286
|
size: "3rem",
|
|
287
287
|
additionalCSS: "block mb-16"
|
|
288
288
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
289
|
-
className: "text-h3 mb-24"
|
|
289
|
+
className: "ui-text-h3 mb-24"
|
|
290
290
|
}, "Live Chat"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
291
|
-
className: "text-p1
|
|
291
|
+
className: "ui-text-p1"
|
|
292
292
|
}, "Reach out team of experts over chat powered by Ably.")), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("button", {
|
|
293
293
|
type: "button",
|
|
294
294
|
className: "ui-btn-secondary self-start mt-16",
|
|
@@ -305,17 +305,17 @@ function ContactFooter(_ref) {
|
|
|
305
305
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
306
306
|
className: "flex-grow"
|
|
307
307
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
308
|
-
className: "text-h3 mb-24"
|
|
308
|
+
className: "ui-text-h3 mb-24"
|
|
309
309
|
}, "Call us"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
310
|
-
className: "text-p1
|
|
310
|
+
className: "ui-text-p1"
|
|
311
311
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("span", {
|
|
312
312
|
className: "block"
|
|
313
313
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("strong", {
|
|
314
|
-
className: "
|
|
314
|
+
className: "font-bold"
|
|
315
315
|
}, "+1 877 434 5287"), " (USA, toll free)"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("span", {
|
|
316
316
|
className: "block"
|
|
317
317
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("strong", {
|
|
318
|
-
className: "
|
|
318
|
+
className: "font-bold"
|
|
319
319
|
}, "+44 20 3318 4689"), " (UK)")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
320
320
|
className: "ui-contact-footer-box"
|
|
321
321
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
@@ -323,9 +323,9 @@ function ContactFooter(_ref) {
|
|
|
323
323
|
size: "3rem",
|
|
324
324
|
additionalCSS: "block mb-16"
|
|
325
325
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
326
|
-
className: "text-h3 mb-24"
|
|
326
|
+
className: "ui-text-h3 mb-24"
|
|
327
327
|
}, "Technical and account support"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
328
|
-
className: "text-p1
|
|
328
|
+
className: "ui-text-p1"
|
|
329
329
|
}, "We're standing by to help with any questions or code.")), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
330
330
|
className: "ui-btn-secondary self-start p-btn mt-16",
|
|
331
331
|
href: absUrl("/support")
|
package/core/DropdownMenu.jsx
CHANGED
|
@@ -290,7 +290,7 @@ var Link = function Link(_ref4) {
|
|
|
290
290
|
color: "text-cool-black",
|
|
291
291
|
additionalCSS: "align-middle ml-8 relative -top-1 -left-4"
|
|
292
292
|
}) : null), subtitle ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
293
|
-
className: "text-p3 mb-16
|
|
293
|
+
className: "ui-text-p3 mb-16"
|
|
294
294
|
}, subtitle) : null, children);
|
|
295
295
|
};
|
|
296
296
|
|
package/core/FeaturedLink.jsx
CHANGED
|
@@ -177,7 +177,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
177
177
|
children = _ref.children;
|
|
178
178
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
179
179
|
href: url,
|
|
180
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
180
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
181
181
|
style: {
|
|
182
182
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
183
183
|
}
|
package/core/Flash/component.css
CHANGED
package/core/Flash.jsx
CHANGED
|
@@ -518,7 +518,7 @@ var Flash = function Flash(_ref) {
|
|
|
518
518
|
size: "1.5rem",
|
|
519
519
|
additionalCSS: "mr-16 self-baseline"
|
|
520
520
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
521
|
-
className: "ui-
|
|
521
|
+
className: "ui-text-p1 mr-16 ".concat(FLASH_TEXT_COLOR[type]),
|
|
522
522
|
dangerouslySetInnerHTML: {
|
|
523
523
|
__html: safeContent
|
|
524
524
|
}
|
package/core/Footer.jsx
CHANGED
|
@@ -201,11 +201,11 @@ function Footer(_ref) {
|
|
|
201
201
|
src: paths.ablyStack,
|
|
202
202
|
alt: "Ably homepage"
|
|
203
203
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("h2", {
|
|
204
|
-
className: "text-overline2
|
|
204
|
+
className: "ui-text-overline2 col-span-full"
|
|
205
205
|
}, "The Ably Platform")), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
206
206
|
className: "md:col-span-4 md:w-3/4 xs:w-3/5 w-full"
|
|
207
207
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
208
|
-
className: "
|
|
208
|
+
className: "ui-text-p3 font-bold py-16 p-menu-row-snug"
|
|
209
209
|
}, "Easily power any realtime experience in your application via a simple API that handles everything realtime.")), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("ul", {
|
|
210
210
|
className: "grid grid-cols-1"
|
|
211
211
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ui-meganav-overline {
|
|
108
|
-
@apply text-overline2 text-cool-black uppercase font-
|
|
108
|
+
@apply text-overline2 text-cool-black uppercase font-medium font-mono tracking-widen-0.16 p-overline;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.ui-meganav-hr {
|
package/core/Meganav.jsx
CHANGED
|
@@ -123,7 +123,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
123
123
|
children = _ref.children;
|
|
124
124
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
125
125
|
href: url,
|
|
126
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
126
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
127
127
|
style: {
|
|
128
128
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
129
129
|
}
|
|
@@ -387,7 +387,7 @@ var Flash = function Flash(_ref) {
|
|
|
387
387
|
size: "1.5rem",
|
|
388
388
|
additionalCSS: "mr-16 self-baseline"
|
|
389
389
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
390
|
-
className: "ui-
|
|
390
|
+
className: "ui-text-p1 mr-16 ".concat(FLASH_TEXT_COLOR[type]),
|
|
391
391
|
dangerouslySetInnerHTML: {
|
|
392
392
|
__html: safeContent
|
|
393
393
|
}
|
|
@@ -1138,7 +1138,7 @@ var MeganavContentProducts = function MeganavContentProducts(_ref) {
|
|
|
1138
1138
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
|
|
1139
1139
|
className: "ui-meganav-overline ml-24"
|
|
1140
1140
|
}, "The Ably Platform")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1141
|
-
className: "text-p2 font-bold
|
|
1141
|
+
className: "ui-text-p2 font-bold mb-24",
|
|
1142
1142
|
style: {
|
|
1143
1143
|
maxWidth: "330px"
|
|
1144
1144
|
}
|
|
@@ -2332,7 +2332,7 @@ var Icon_component = __webpack_require__(9008);
|
|
|
2332
2332
|
;// CONCATENATED MODULE: ./src/core/Notice/component.jsx
|
|
2333
2333
|
|
|
2334
2334
|
|
|
2335
|
-
var contentWrapperClasses = "
|
|
2335
|
+
var contentWrapperClasses = "w-full pr-8 ui-text-p3 self-center";
|
|
2336
2336
|
|
|
2337
2337
|
|
|
2338
2338
|
|
|
@@ -2397,7 +2397,7 @@ var component_Notice = function Notice(_ref2) {
|
|
|
2397
2397
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(Icon_component["default"], {
|
|
2398
2398
|
name: "icon-gui-close",
|
|
2399
2399
|
size: "1.25rem",
|
|
2400
|
-
color: "text-
|
|
2400
|
+
color: "text-cool-black"
|
|
2401
2401
|
}))));
|
|
2402
2402
|
};
|
|
2403
2403
|
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -123,7 +123,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
123
123
|
children = _ref.children;
|
|
124
124
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
125
125
|
href: url,
|
|
126
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
126
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
127
127
|
style: {
|
|
128
128
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
129
129
|
}
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -241,7 +241,7 @@ var MeganavContentProducts = function MeganavContentProducts(_ref) {
|
|
|
241
241
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
|
|
242
242
|
className: "ui-meganav-overline ml-24"
|
|
243
243
|
}, "The Ably Platform")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
244
|
-
className: "text-p2 font-bold
|
|
244
|
+
className: "ui-text-p2 font-bold mb-24",
|
|
245
245
|
style: {
|
|
246
246
|
maxWidth: "330px"
|
|
247
247
|
}
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
package/core/MeganavSearch.jsx
CHANGED
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
package/core/Notice/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):"function"==typeof define&&define.amd?define([,,,,,],t):"object"==typeof exports?exports.AblyUi=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Notice=t(e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0]))}(this,((e,t,r,n,o,i)=>(()=>{"use strict";var c={710:t=>{t.exports=e},4360:e=>{e.exports=t},7326:e=>{e.exports=r},6073:e=>{e.exports=n},5225:e=>{e.exports=o},5293:e=>{e.exports=i}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return c[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};return(()=>{u.d(l,{default:()=>R});var e=u(4360),t=u.n(e),r=u(7326),n=u.n(r),o=u(5225),i=u.n(o),c=u(710),a=u.n(c),s=u(6073),f=u.n(s);let p=(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};u(5293);var d=["name","size","color","additionalCSS"];function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}var m=function(e){var t=e.name,r=e.size,n=void 0===r?"0.75rem":r,o=e.color,c=void 0===o?"":o,a=e.additionalCSS,u=void 0===a?"":a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,d);return i().createElement("svg",y({className:"".concat(c," ").concat(u),style:{width:n,height:n}},l),i().createElement("use",{xlinkHref:"#sprite-".concat(t)}))};m.propTypes={name:f().string.isRequired,size:f().string,color:f().string,additionalCSS:f().string};const b=m;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="flashes",P="ui-flashes",A={items:[]},k=(w({},E,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0;if("flash/push"===t.type){var r=Array.isArray(t.payload)?t.payload:[t.payload];return{items:[].concat(j(e.items),j(r))}}return e})),{type:f().oneOf(["error","success","notice","info","alert"]),content:f().string}),q={error:"bg-gui-error",success:"bg-zingy-green",notice:"bg-electric-cyan",info:"bg-electric-cyan",alert:"bg-active-orange"},T={error:"text-white",success:"text-cool-black",notice:"text-cool-black",info:"text-cool-black",alert:"text-white"},C=["success","info","notice"],L=function(e){var t=e.id,r=e.type,n=e.content,c=e.removeFlash,u=(0,o.useRef)(null),l=O((0,o.useState)(!1),2),s=l[0],f=l[1],p=O((0,o.useState)(0),2),d=p[0],y=p[1],m=O((0,o.useState)(!1),2),v=m[0],h=m[1],g=function(){u.current&&y(u.current.getBoundingClientRect().height),f(!0),setTimeout((function(){c(t)}),100)};(0,o.useEffect)((function(){return h(!0)}),[]),function(e,t){var r=(0,o.useRef)(null);(0,o.useEffect)((function(){return C.includes(e)&&(r.current=setTimeout((function(){t()}),8e3)),function(){r.current&&clearTimeout(r.current)}}),[])}(r,g);var w,j=v&&!s;w=d&&!s?{height:"".concat(d,"px")}:s?{height:0,marginTop:0,zIndex:-1}:{};var x=a().sanitize(n,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","data-method","rel"]}),S={notice:"icon-gui-ably-badge",success:"icon-gui-tick",error:"icon-gui-warning",alert:"icon-gui-warning"},E={notice:"text-cool-black",success:"text-cool-black",error:"text-white",alert:"text-white"};return i().createElement("div",{className:"ui-flash-message ui-grid-px ".concat(j?"ui-flash-message-enter":""),style:w,ref:u,"data-id":"ui-flash"},i().createElement("div",{className:"".concat(q[r]," p-32 flex align-center rounded shadow-container-subtle")},S[r]&&i().createElement(b,{name:S[r],color:E[r],size:"1.5rem",additionalCSS:"mr-16 self-baseline"}),i().createElement("p",{className:"ui-
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):"function"==typeof define&&define.amd?define([,,,,,],t):"object"==typeof exports?exports.AblyUi=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Notice=t(e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0]))}(this,((e,t,r,n,o,i)=>(()=>{"use strict";var c={710:t=>{t.exports=e},4360:e=>{e.exports=t},7326:e=>{e.exports=r},6073:e=>{e.exports=n},5225:e=>{e.exports=o},5293:e=>{e.exports=i}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return c[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};return(()=>{u.d(l,{default:()=>R});var e=u(4360),t=u.n(e),r=u(7326),n=u.n(r),o=u(5225),i=u.n(o),c=u(710),a=u.n(c),s=u(6073),f=u.n(s);let p=(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};u(5293);var d=["name","size","color","additionalCSS"];function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}var m=function(e){var t=e.name,r=e.size,n=void 0===r?"0.75rem":r,o=e.color,c=void 0===o?"":o,a=e.additionalCSS,u=void 0===a?"":a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,d);return i().createElement("svg",y({className:"".concat(c," ").concat(u),style:{width:n,height:n}},l),i().createElement("use",{xlinkHref:"#sprite-".concat(t)}))};m.propTypes={name:f().string.isRequired,size:f().string,color:f().string,additionalCSS:f().string};const b=m;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="flashes",P="ui-flashes",A={items:[]},k=(w({},E,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0;if("flash/push"===t.type){var r=Array.isArray(t.payload)?t.payload:[t.payload];return{items:[].concat(j(e.items),j(r))}}return e})),{type:f().oneOf(["error","success","notice","info","alert"]),content:f().string}),q={error:"bg-gui-error",success:"bg-zingy-green",notice:"bg-electric-cyan",info:"bg-electric-cyan",alert:"bg-active-orange"},T={error:"text-white",success:"text-cool-black",notice:"text-cool-black",info:"text-cool-black",alert:"text-white"},C=["success","info","notice"],L=function(e){var t=e.id,r=e.type,n=e.content,c=e.removeFlash,u=(0,o.useRef)(null),l=O((0,o.useState)(!1),2),s=l[0],f=l[1],p=O((0,o.useState)(0),2),d=p[0],y=p[1],m=O((0,o.useState)(!1),2),v=m[0],h=m[1],g=function(){u.current&&y(u.current.getBoundingClientRect().height),f(!0),setTimeout((function(){c(t)}),100)};(0,o.useEffect)((function(){return h(!0)}),[]),function(e,t){var r=(0,o.useRef)(null);(0,o.useEffect)((function(){return C.includes(e)&&(r.current=setTimeout((function(){t()}),8e3)),function(){r.current&&clearTimeout(r.current)}}),[])}(r,g);var w,j=v&&!s;w=d&&!s?{height:"".concat(d,"px")}:s?{height:0,marginTop:0,zIndex:-1}:{};var x=a().sanitize(n,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","data-method","rel"]}),S={notice:"icon-gui-ably-badge",success:"icon-gui-tick",error:"icon-gui-warning",alert:"icon-gui-warning"},E={notice:"text-cool-black",success:"text-cool-black",error:"text-white",alert:"text-white"};return i().createElement("div",{className:"ui-flash-message ui-grid-px ".concat(j?"ui-flash-message-enter":""),style:w,ref:u,"data-id":"ui-flash"},i().createElement("div",{className:"".concat(q[r]," p-32 flex align-center rounded shadow-container-subtle")},S[r]&&i().createElement(b,{name:S[r],color:E[r],size:"1.5rem",additionalCSS:"mr-16 self-baseline"}),i().createElement("p",{className:"ui-text-p1 mr-16 ".concat(T[r]),dangerouslySetInnerHTML:{__html:x}}),i().createElement("button",{type:"button",className:"p-0 ml-auto self-start focus:outline-none",onClick:g},i().createElement(b,{name:"icon-gui-close",color:E[r],size:"1.5rem",additionalCSS:"transition-colors"}))))};L.propTypes=g({},k);var z=function(e){var t=e.flashes,r=O((0,o.useState)([]),2),n=r[0],c=r[1],a=function(e){return c((function(t){return t.filter((function(t){return t.id!==e}))}))};return(0,o.useEffect)((function(){c((function(e){return[].concat(j(e),j(((null==t?void 0:t.items)||[]).map((function(e){return g(g({},e),{},{id:p(),removed:!1})}))))}))}),[t]),i().createElement("div",{className:"ui-flash","data-id":P},n.filter((function(e){return!e.removed})).map((function(e){return i().createElement(L,v({removeFlash:a,key:e.id},e))})))};z.propTypes={flashes:f().shape({items:f().arrayOf(f().shape(k))})};function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}f().arrayOf(f().arrayOf(f().string));var N=function(e){var t=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("[data-id=".concat(e,"]"))}(P);t&&(t.style.marginTop=e?"4rem":null)},U=function(e){window.matchMedia("(min-width: 65rem)").matches?e.style.display=null:e.style.display="none"},_=function(e){e.style.maxHeight=0,e.style.overflow="hidden",N(!1)},M=function(e){e.style.maxHeight=null,e.style.overflow=null,N(!0)};const R=function(e){var r=e.bannerContainer,o=e.cookieId,i=e.noticeId,c=e.options;if("undefined"==typeof window)return function(){};if(!r)return console.warn("A Notice component was initited but no notice container was found."),function(){};if(function(e,r){return(t().get(e)||"").includes(r)}(o,i))return function(){};U(r),M(r);var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({collapse:!0},c),u=a.collapse?function(e){window.scrollY>5&&_(e);var t=n()((function(){window.scrollY>5?_(e):e.style.overflow&&M(e)}),100);return document.addEventListener("scroll",t),function(){return document.removeEventListener("scroll",t)}}(r):function(){},l=function(e,r,n,o){var i=e.querySelector("button");if(!i)return function(){};var c=function(){r&&n&&function(e,r){var n=t().get(e)||"";t().set(e,"".concat(n.replace("".concat(r,","),"")+r,","),{expires:90})}(r,n),_(e),o()};return i.addEventListener("click",c),function(){return document.removeEventListener("click",c)}}(r,o,i,u),s=function(e){var t=n()((function(){U(e)}),100);return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}(r);return function(){[l,u,s].forEach((function(e){return e()}))}}})(),l.default})()));
|
package/core/Notice.jsx
CHANGED
|
@@ -325,7 +325,7 @@ var Flash = function Flash(_ref) {
|
|
|
325
325
|
size: "1.5rem",
|
|
326
326
|
additionalCSS: "mr-16 self-baseline"
|
|
327
327
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
328
|
-
className: "ui-
|
|
328
|
+
className: "ui-text-p1 mr-16 ".concat(FLASH_TEXT_COLOR[type]),
|
|
329
329
|
dangerouslySetInnerHTML: {
|
|
330
330
|
__html: safeContent
|
|
331
331
|
}
|
|
@@ -822,7 +822,7 @@ var Icon_component = __webpack_require__(9008);
|
|
|
822
822
|
;// CONCATENATED MODULE: ./src/core/Notice/component.jsx
|
|
823
823
|
|
|
824
824
|
|
|
825
|
-
var contentWrapperClasses = "
|
|
825
|
+
var contentWrapperClasses = "w-full pr-8 ui-text-p3 self-center";
|
|
826
826
|
|
|
827
827
|
|
|
828
828
|
|
|
@@ -887,7 +887,7 @@ var component_Notice = function Notice(_ref2) {
|
|
|
887
887
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(Icon_component["default"], {
|
|
888
888
|
name: "icon-gui-close",
|
|
889
889
|
size: "1.25rem",
|
|
890
|
-
color: "text-
|
|
890
|
+
color: "text-cool-black"
|
|
891
891
|
}))));
|
|
892
892
|
};
|
|
893
893
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.ui-uptime-key {
|
|
87
87
|
@apply block mt-16 mr-20 bg-transparent;
|
|
88
88
|
@apply sm:inline-block sm:mt-0;
|
|
89
|
-
@apply font-
|
|
89
|
+
@apply font-medium text-p2 text-white block sm:inline-flex items-center;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ui-uptime-key:first-child {
|
package/core/Uptime.jsx
CHANGED
|
@@ -42,7 +42,7 @@ var FeaturedLink = function FeaturedLink(_ref) {
|
|
|
42
42
|
children = _ref.children;
|
|
43
43
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
44
44
|
href: url,
|
|
45
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
45
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
46
46
|
style: {
|
|
47
47
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
48
48
|
}
|
|
@@ -821,7 +821,7 @@ function Uptime(_ref8) {
|
|
|
821
821
|
|
|
822
822
|
if (data && data.error) {
|
|
823
823
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
824
|
-
className: "flex sm:flex-row justify-center items-center p-24 border rounded
|
|
824
|
+
className: "flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ".concat(themes[theme].text),
|
|
825
825
|
"data-id": "uptime-error"
|
|
826
826
|
}, "Sorry, we can\u2019t retrieve uptime data right now.");
|
|
827
827
|
}
|
package/core/styles.css
CHANGED
|
@@ -525,25 +525,32 @@
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
.ui-text-code {
|
|
528
|
-
@apply font-mono font-
|
|
528
|
+
@apply font-mono font-normal text-code;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ui-text-code2 {
|
|
532
|
-
@apply font-mono font-
|
|
532
|
+
@apply font-mono font-normal text-code2;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ui-text-code-inline {
|
|
536
|
-
@apply font-mono font-
|
|
536
|
+
@apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ui-unordered-list {
|
|
540
|
-
@apply text-p1 font-medium text-
|
|
541
|
-
@apply
|
|
540
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
541
|
+
@apply ml-32 my-16;
|
|
542
|
+
@apply list-disc;
|
|
542
543
|
}
|
|
543
544
|
|
|
544
545
|
.ui-ordered-list {
|
|
545
546
|
@apply text-p1 font-medium text-charcoal-grey;
|
|
546
|
-
@apply ml-32 my-16
|
|
547
|
+
@apply ml-32 my-16;
|
|
548
|
+
@apply list-decimal;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.ui-ordered-list li,
|
|
552
|
+
.ui-unordered-list li {
|
|
553
|
+
@apply mb-8;
|
|
547
554
|
}
|
|
548
555
|
|
|
549
556
|
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
@@ -552,11 +559,11 @@
|
|
|
552
559
|
}
|
|
553
560
|
|
|
554
561
|
.ui-unordered-list ul {
|
|
555
|
-
@apply ml-24
|
|
562
|
+
@apply ml-24 my-8 list-circle;
|
|
556
563
|
}
|
|
557
564
|
|
|
558
565
|
.ui-ordered-list ol {
|
|
559
|
-
@apply ml-24
|
|
566
|
+
@apply ml-24 my-16 list-decimal;
|
|
560
567
|
}
|
|
561
568
|
|
|
562
569
|
.ui-unordered-list ul ul {
|
|
@@ -567,34 +574,6 @@
|
|
|
567
574
|
@apply my-8;
|
|
568
575
|
}
|
|
569
576
|
|
|
570
|
-
.ui-ordered-list li,
|
|
571
|
-
.ui-unordered-list li {
|
|
572
|
-
@apply font-medium font-sans tracking-widen-0;
|
|
573
|
-
line-height: var(--lh-extra-relaxed);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.ui-unordered-list-with-emphasis {
|
|
577
|
-
@apply text-p1 font-medium text-cool-black;
|
|
578
|
-
@apply list-disc ml-32 mt-32 -mb-12;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.ui-unordered-list-with-emphasis li div {
|
|
582
|
-
@apply relative -top-12;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.ui-unordered-list-with-emphasis li div > strong {
|
|
586
|
-
@apply block;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.ui-unordered-list-with-emphasis ul {
|
|
590
|
-
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
591
|
-
@apply ml-24 list-circle;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.ui-unordered-list-with-emphasis ul ul {
|
|
595
|
-
@apply list-square;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
577
|
.ui-link {
|
|
599
578
|
@apply text-gui-default;
|
|
600
579
|
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
|
@@ -684,7 +663,7 @@
|
|
|
684
663
|
}
|
|
685
664
|
@layer components {
|
|
686
665
|
.ui-input {
|
|
687
|
-
@apply text-p2 font-
|
|
666
|
+
@apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
|
688
667
|
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
689
668
|
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
|
690
669
|
@apply max-w-screen-sm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "11.7.1-dev.
|
|
3
|
+
"version": "11.7.1-dev.2e09628",
|
|
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",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<div class="ui-contact-footer-box">
|
|
4
4
|
<%= render(AblyUi::Core::Icon.new(name: "icon-display-live-chat", size: "3rem", additional_css: "block mb-16")) %>
|
|
5
5
|
<div>
|
|
6
|
-
<div class="text-h3 mb-24">Live Chat</div>
|
|
7
|
-
<p class="text-p1
|
|
6
|
+
<div class="ui-text-h3 mb-24">Live Chat</div>
|
|
7
|
+
<p class="ui-text-p1">Reach out team of experts over chat powered by Ably.</p>
|
|
8
8
|
</div>
|
|
9
9
|
<%= tag.button type: "button", class: "ui-btn-secondary self-start mt-16", data: { id: "open-chat-widget", enabled_label: "Start a live chat", disabled_label: "Live chat unavailable" }, disabled: true do %>
|
|
10
10
|
Live chat unavailable
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
<div class="ui-contact-footer-box">
|
|
14
14
|
<%= render(AblyUi::Core::Icon.new(name: "icon-display-call-mobile", size: "3rem", additional_css: "block mb-16")) %>
|
|
15
15
|
<div class="flex-grow">
|
|
16
|
-
<div class="text-h3 mb-24">Call us</div>
|
|
17
|
-
<p class="text-p1
|
|
18
|
-
<span class="block"><strong class="
|
|
19
|
-
<span class="block"><strong class="
|
|
16
|
+
<div class="ui-text-h3 mb-24">Call us</div>
|
|
17
|
+
<p class="ui-text-p1">
|
|
18
|
+
<span class="block"><strong class="font-bold">+1 877 434 5287</strong> (USA, toll free) </span>
|
|
19
|
+
<span class="block"><strong class="font-bold">+44 20 3318 4689</strong> (UK) </span>
|
|
20
20
|
</p>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="ui-contact-footer-box">
|
|
24
24
|
<%= render(AblyUi::Core::Icon.new(name: "icon-display-tech-account-comms", size: "3rem", additional_css: "block mb-16")) %>
|
|
25
25
|
<div>
|
|
26
|
-
<div class="text-h3 mb-24">Technical and account support</div>
|
|
27
|
-
<p class="text-p1
|
|
26
|
+
<div class="ui-text-h3 mb-24">Technical and account support</div>
|
|
27
|
+
<p class="ui-text-p1">We're standing by to help with any questions or code.</p>
|
|
28
28
|
</div>
|
|
29
29
|
<%= link_to 'Get support now', abs_url("/support"), class: "ui-btn-secondary self-start p-btn mt-16" %>
|
|
30
30
|
</div>
|
|
@@ -16,8 +16,8 @@ export default function ContactFooter({ urlBase }) {
|
|
|
16
16
|
<div className="ui-contact-footer-box">
|
|
17
17
|
<Icon name="icon-display-live-chat" size="3rem" additionalCSS="block mb-16" />
|
|
18
18
|
<div>
|
|
19
|
-
<div className="text-h3 mb-24">Live Chat</div>
|
|
20
|
-
<p className="text-p1
|
|
19
|
+
<div className="ui-text-h3 mb-24">Live Chat</div>
|
|
20
|
+
<p className="ui-text-p1">Reach out team of experts over chat powered by Ably.</p>
|
|
21
21
|
</div>
|
|
22
22
|
<button
|
|
23
23
|
type="button"
|
|
@@ -34,13 +34,13 @@ export default function ContactFooter({ urlBase }) {
|
|
|
34
34
|
<div className="ui-contact-footer-box">
|
|
35
35
|
<Icon name="icon-display-call-mobile" size="3rem" additionalCSS="block mb-16" />
|
|
36
36
|
<div className="flex-grow">
|
|
37
|
-
<div className="text-h3 mb-24">Call us</div>
|
|
38
|
-
<p className="text-p1
|
|
37
|
+
<div className="ui-text-h3 mb-24">Call us</div>
|
|
38
|
+
<p className="ui-text-p1">
|
|
39
39
|
<span className="block">
|
|
40
|
-
<strong className="
|
|
40
|
+
<strong className="font-bold">+1 877 434 5287</strong> (USA, toll free)
|
|
41
41
|
</span>
|
|
42
42
|
<span className="block">
|
|
43
|
-
<strong className="
|
|
43
|
+
<strong className="font-bold">+44 20 3318 4689</strong> (UK)
|
|
44
44
|
</span>
|
|
45
45
|
</p>
|
|
46
46
|
</div>
|
|
@@ -49,8 +49,8 @@ export default function ContactFooter({ urlBase }) {
|
|
|
49
49
|
<div className="ui-contact-footer-box">
|
|
50
50
|
<Icon name="icon-display-tech-account-comms" size="3rem" additionalCSS="block mb-16" />
|
|
51
51
|
<div>
|
|
52
|
-
<div className="text-h3 mb-24">Technical and account support</div>
|
|
53
|
-
<p className="text-p1
|
|
52
|
+
<div className="ui-text-h3 mb-24">Technical and account support</div>
|
|
53
|
+
<p className="ui-text-p1">We're standing by to help with any questions or code.</p>
|
|
54
54
|
</div>
|
|
55
55
|
<a className="ui-btn-secondary self-start p-btn mt-16" href={absUrl("/support")}>
|
|
56
56
|
Get support now
|
|
@@ -92,7 +92,7 @@ const Link = ({ url, title, subtitle, iconName, children }) => {
|
|
|
92
92
|
{title}
|
|
93
93
|
{iconName ? <Icon name={iconName} size="1rem" color="text-cool-black" additionalCSS="align-middle ml-8 relative -top-1 -left-4" /> : null}
|
|
94
94
|
</p>
|
|
95
|
-
{subtitle ? <p className="text-p3 mb-16
|
|
95
|
+
{subtitle ? <p className="ui-text-p3 mb-16">{subtitle}</p> : null}
|
|
96
96
|
{children}
|
|
97
97
|
</a>
|
|
98
98
|
);
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
<div class="p-24 sm:p-32 flex-1 h-full">
|
|
7
7
|
<div class="flex flex-col h-full space-between">
|
|
8
8
|
<span class="flex-1">
|
|
9
|
-
<div class="text-h3 mb-24 flex-1"><%= @title %> </div>
|
|
10
|
-
<p class="text-p1
|
|
9
|
+
<div class="ui-text-h3 text-white mb-24 flex-1"><%= @title %> </div>
|
|
10
|
+
<p class="ui-text-p1 text-white"><%= @subtitle %></p>
|
|
11
11
|
<%= tag.button type: "button", class: "ui-btn-secondary-invert self-start mt-24", data: { id: "open-chat-widget", enabled_label: live_chat_label, disabled_label: live_chat_disabled_label }, disabled: true do %>
|
|
12
12
|
<%= live_chat_disabled_label %>
|
|
13
13
|
<% end %>
|
|
14
14
|
</span>
|
|
15
15
|
<span class="flex-0 mt-24 md:mt-0">
|
|
16
|
-
<p class="text-p1
|
|
16
|
+
<p class="ui-text-p1 text-white">
|
|
17
17
|
Don’t want to chat?
|
|
18
18
|
<%= link_to 'Get in touch via our contact page', abs_url("/contact"), class: "text-white underline font-medium hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus" %>
|
|
19
19
|
</p>
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
<div class="bg-white rounded-lg p-24 sm:p-32 w-auto">
|
|
25
25
|
<div class="flex flex-col h-full space-between">
|
|
26
26
|
<span class="flex-1">
|
|
27
|
-
<div class="text-h3 mb-24">Try our APIs for free</div>
|
|
28
|
-
<p class="text-p1
|
|
29
|
-
<ul class="relative ml-24 text-p1
|
|
27
|
+
<div class="ui-text-h3 mb-24">Try our APIs for free</div>
|
|
28
|
+
<p class="ui-text-p1 mb-16">Our free plan includes</p>
|
|
29
|
+
<ul class="relative ml-24 ui-text-p1">
|
|
30
30
|
<li>
|
|
31
31
|
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-tick", size: "1.5rem", additional_css: "align-text-bottom")) %>
|
|
32
32
|
6m messages per month
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= link_to(@url, class: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group
|
|
1
|
+
<%= link_to(@url, class: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-#{@text_size} #{@flush ? '' : 'py-8'} #{@additional_css}", style: "--featured-link-icon-size: var(#{@text_size.gsub("text", "--fs")})") do %>
|
|
2
2
|
<% if @reverse %>
|
|
3
3
|
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-link-arrow",
|
|
4
4
|
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
@@ -6,7 +6,7 @@ import Icon from "../Icon/component.jsx";
|
|
|
6
6
|
const FeaturedLink = ({ url, textSize = "text-p2", iconColor = "text-cool-black", flush = false, reverse = false, additionalCSS = "", children }) => (
|
|
7
7
|
<a
|
|
8
8
|
href={url}
|
|
9
|
-
className={`font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group
|
|
9
|
+
className={`font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-${textSize} ${
|
|
10
10
|
flush ? "" : "py-8"
|
|
11
11
|
} ${additionalCSS}`}
|
|
12
12
|
style={{ "--featured-link-icon-size": `var(${textSize.replace("text", "--fs")})` }}
|
|
@@ -125,7 +125,7 @@ const Flash = ({ id, type, content, removeFlash }) => {
|
|
|
125
125
|
<div className={`ui-flash-message ui-grid-px ${animateEntry ? "ui-flash-message-enter" : ""}`} style={style} ref={ref} data-id="ui-flash">
|
|
126
126
|
<div className={`${FLASH_BG_COLOR[type]} p-32 flex align-center rounded shadow-container-subtle`}>
|
|
127
127
|
{withIcons[type] && <Icon name={withIcons[type]} color={iconColor[type]} size="1.5rem" additionalCSS="mr-16 self-baseline" />}
|
|
128
|
-
<p className={`ui-
|
|
128
|
+
<p className={`ui-text-p1 mr-16 ${FLASH_TEXT_COLOR[type]}`} dangerouslySetInnerHTML={{ __html: safeContent }} />
|
|
129
129
|
<button type="button" className="p-0 ml-auto self-start focus:outline-none" onClick={closeFlash}>
|
|
130
130
|
<Icon name="icon-gui-close" color={iconColor[type]} size="1.5rem" additionalCSS="transition-colors" />
|
|
131
131
|
</button>
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<div class="col-span-full md:col-span-2">
|
|
4
4
|
<div class="flex flex-row p-menu-row-snug">
|
|
5
5
|
<%= image_tag(ably_stack_path, alt: "Ably homepage", class: "mr-24 -mt-16") %>
|
|
6
|
-
<h2 class="text-overline2 col-span-full font-mono
|
|
6
|
+
<h2 class="ui-text-overline2 col-span-full font-mono uppercase tracking-widen-0.16">The Ably Platform</h2>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="md:col-span-4 md:w-3/4 xs:w-3/5 w-full">
|
|
9
|
-
<p class="
|
|
9
|
+
<p class="ui-text-p3 font-bold py-16 p-menu-row-snug">
|
|
10
10
|
Easily power any realtime experience in your application via a simple API that handles everything realtime.
|
|
11
11
|
</p>
|
|
12
12
|
</div>
|
|
@@ -13,10 +13,10 @@ export default function Footer({ paths, urlBase }) {
|
|
|
13
13
|
<div className="col-span-full md:col-span-2">
|
|
14
14
|
<div className="flex flex-row p-menu-row-snug">
|
|
15
15
|
<img className="mr-24 -mt-16" src={paths.ablyStack} alt="Ably homepage" />
|
|
16
|
-
<h2 className="text-overline2
|
|
16
|
+
<h2 className="ui-text-overline2 col-span-full">The Ably Platform</h2>
|
|
17
17
|
</div>
|
|
18
18
|
<div className="md:col-span-4 md:w-3/4 xs:w-3/5 w-full">
|
|
19
|
-
<p className="
|
|
19
|
+
<p className="ui-text-p3 font-bold py-16 p-menu-row-snug">
|
|
20
20
|
Easily power any realtime experience in your application via a simple API that handles everything realtime.
|
|
21
21
|
</p>
|
|
22
22
|
</div>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ui-meganav-overline {
|
|
108
|
-
@apply text-overline2 text-cool-black uppercase font-
|
|
108
|
+
@apply text-overline2 text-cool-black uppercase font-medium font-mono tracking-widen-0.16 p-overline;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.ui-meganav-hr {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<h3 class="ui-meganav-overline ml-24">The Ably Platform</h3>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
<p class="text-p2 font-bold
|
|
10
|
+
<p class="ui-text-p2 font-bold mb-24" style="max-width: 330px">
|
|
11
11
|
Easily power any realtime experience in your application. No complex infrastructure to manage or provision. Just a simple API that handles everything
|
|
12
12
|
realtime, and lets you focus on your code.
|
|
13
13
|
</p>
|
|
@@ -12,7 +12,7 @@ const MeganavContentProducts = ({ paths, absUrl }) => (
|
|
|
12
12
|
<img src={paths.ablyStack} alt="Ably homepage" />
|
|
13
13
|
<h3 className="ui-meganav-overline ml-24">The Ably Platform</h3>
|
|
14
14
|
</div>
|
|
15
|
-
<p className="text-p2 font-bold
|
|
15
|
+
<p className="ui-text-p2 font-bold mb-24" style={{ maxWidth: "330px" }}>
|
|
16
16
|
Easily power any realtime experience in your application. No complex infrastructure to manage or provision. Just a simple API that handles everything
|
|
17
17
|
realtime, and lets you focus on your code.
|
|
18
18
|
</p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%# Note the style attribute is used for entry animation %>
|
|
2
2
|
<%= tag.div class: "ui-announcement #{bg_color} #{text_color}", data: { id: "ui-notice" }, style: "max-height: 0; overflow: hidden" do %>
|
|
3
3
|
<div class="ui-grid-px py-16 max-w-screen-xl mx-auto flex items-start">
|
|
4
|
-
<%= content_wrapper class: "
|
|
4
|
+
<%= content_wrapper class: "w-full pr-8 ui-text-p3 self-center" do %>
|
|
5
5
|
<strong class="font-bold whitespace-nowrap pr-4"><%= @contents[:title] %></strong>
|
|
6
6
|
<span class="pr-4"><%= @contents[:body_text] %></span>
|
|
7
7
|
<span class="underline cursor-pointer whitespace-nowrap"><%= @contents[:button_label] %></span>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<% if close_btn? %>
|
|
11
11
|
<%= button_tag type: 'button', class: 'h-20 w-20 mt-4 ml-auto border-none bg-none self-baseline' do %>
|
|
12
|
-
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-close", size: "1.25rem", color: "text-
|
|
12
|
+
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-close", size: "1.25rem", color: "text-cool-black")) %>
|
|
13
13
|
<% end %>
|
|
14
14
|
<% end %>
|
|
15
15
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
2
|
import T from "prop-types";
|
|
3
3
|
|
|
4
|
-
const contentWrapperClasses = "
|
|
4
|
+
const contentWrapperClasses = "w-full pr-8 ui-text-p3 self-center";
|
|
5
5
|
|
|
6
6
|
import NoticeScripts from "./component.js";
|
|
7
7
|
import Icon from "../Icon/component.jsx";
|
|
@@ -45,7 +45,7 @@ const Notice = ({ buttonLink, buttonLabel, bodyText, title, config, closeBtn, bg
|
|
|
45
45
|
|
|
46
46
|
{closeBtn && (
|
|
47
47
|
<button type="button" className="ml-auto h-20 w-20 border-none bg-none self-baseline">
|
|
48
|
-
<Icon name="icon-gui-close" size="1.25rem" color="text-
|
|
48
|
+
<Icon name="icon-gui-close" size="1.25rem" color="text-cool-black" />
|
|
49
49
|
</button>
|
|
50
50
|
)}
|
|
51
51
|
</div>
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
<% if company[:layout] == "quotes" %>
|
|
37
37
|
<%= render(AblyUi::Core::Icon.new(name: "quote", size: "1.25rem", color: "text-cool-black")) %>
|
|
38
38
|
|
|
39
|
-
<p class="text-quote
|
|
39
|
+
<p class="ui-text-quote mb-24"><%= company[:quote] %></p>
|
|
40
40
|
|
|
41
41
|
<div class="flex items-center">
|
|
42
42
|
<div class="flex-shrink-0 flex-grow-0 mr-16 overflow-hidden rounded-full flex align-center justify-center w-48 h-48">
|
|
43
43
|
<%= image_tag company[:author][:thumbnail], alt: "Picture of #{company[:author][:name]}, #{company[:author][:title]}", class: "w-48 h-48 filter-grayscale" %>
|
|
44
44
|
</div>
|
|
45
45
|
<div>
|
|
46
|
-
<p class="text-p2
|
|
47
|
-
<p class="text-p3
|
|
46
|
+
<p class="ui-text-p2"><%= company[:author][:name] %></p>
|
|
47
|
+
<p class="ui-text-p3"><%= company[:author][:title] %></p>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
<% end %>
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
<% company[:columns].each_with_index do |col, n| %>
|
|
55
55
|
<% if company[:columns].last == col %>
|
|
56
56
|
<div class="flex-1 mt-40 sm:mt-0 <%= col[:classname] %>" data-id="casestudy-column">
|
|
57
|
-
<p class="text-h4 pb-24"><%= col[:heading] %></p>
|
|
58
|
-
<p class="text-p1
|
|
57
|
+
<p class="ui-text-h4 pb-24"><%= col[:heading] %></p>
|
|
58
|
+
<p class="ui-text-p1"><%= col[:text] %></p>
|
|
59
59
|
<%- if col[:button] %>
|
|
60
60
|
<a class="ui-btn self-start p-btn mt-24" href="<%= col[:button][:href] %>"><%= col[:button][:label] %></a>
|
|
61
61
|
<% end %>
|
|
62
62
|
</div>
|
|
63
63
|
<% else %>
|
|
64
64
|
<div class="flex-1 mt-40 sm:mt-0 mr-24 sm:mr-32 xl:mr-64 <%= col[:classname] %>" data-id="casestudy-column">
|
|
65
|
-
<p class="text-title-xl
|
|
66
|
-
<p class="text-p1
|
|
65
|
+
<p class="ui-text-title-xl"><%= col[:heading] %></p>
|
|
66
|
+
<p class="ui-text-p1 mb-0 sm:mb-32"><%= col[:text] %></p>
|
|
67
67
|
</div>
|
|
68
68
|
<% end %>
|
|
69
69
|
<% end %>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.ui-uptime-key {
|
|
87
87
|
@apply block mt-16 mr-20 bg-transparent;
|
|
88
88
|
@apply sm:inline-block sm:mt-0;
|
|
89
|
-
@apply font-
|
|
89
|
+
@apply font-medium text-p2 text-white block sm:inline-flex items-center;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ui-uptime-key:first-child {
|
|
@@ -139,10 +139,7 @@ export default function Uptime({ serverUrl, linkTo = null, theme = "light" }) {
|
|
|
139
139
|
|
|
140
140
|
if (data && data.error) {
|
|
141
141
|
return (
|
|
142
|
-
<div
|
|
143
|
-
className={`flex sm:flex-row justify-center items-center p-24 border rounded font-sans font-light text-p2 ${themes[theme].text}`}
|
|
144
|
-
data-id="uptime-error"
|
|
145
|
-
>
|
|
142
|
+
<div className={`flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ${themes[theme].text}`} data-id="uptime-error">
|
|
146
143
|
Sorry, we can’t retrieve uptime data right now.
|
|
147
144
|
</div>
|
|
148
145
|
);
|
package/src/core/styles/text.css
CHANGED
|
@@ -95,25 +95,32 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ui-text-code {
|
|
98
|
-
@apply font-mono font-
|
|
98
|
+
@apply font-mono font-normal text-code;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.ui-text-code2 {
|
|
102
|
-
@apply font-mono font-
|
|
102
|
+
@apply font-mono font-normal text-code2;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.ui-text-code-inline {
|
|
106
|
-
@apply font-mono font-
|
|
106
|
+
@apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ui-unordered-list {
|
|
110
|
-
@apply text-p1 font-medium text-
|
|
111
|
-
@apply
|
|
110
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
111
|
+
@apply ml-32 my-16;
|
|
112
|
+
@apply list-disc;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.ui-ordered-list {
|
|
115
116
|
@apply text-p1 font-medium text-charcoal-grey;
|
|
116
|
-
@apply ml-32 my-16
|
|
117
|
+
@apply ml-32 my-16;
|
|
118
|
+
@apply list-decimal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui-ordered-list li,
|
|
122
|
+
.ui-unordered-list li {
|
|
123
|
+
@apply mb-8;
|
|
117
124
|
}
|
|
118
125
|
|
|
119
126
|
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
@@ -122,11 +129,11 @@
|
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
.ui-unordered-list ul {
|
|
125
|
-
@apply ml-24
|
|
132
|
+
@apply ml-24 my-8 list-circle;
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
.ui-ordered-list ol {
|
|
129
|
-
@apply ml-24
|
|
136
|
+
@apply ml-24 my-16 list-decimal;
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
.ui-unordered-list ul ul {
|
|
@@ -137,34 +144,6 @@
|
|
|
137
144
|
@apply my-8;
|
|
138
145
|
}
|
|
139
146
|
|
|
140
|
-
.ui-ordered-list li,
|
|
141
|
-
.ui-unordered-list li {
|
|
142
|
-
@apply font-medium font-sans tracking-widen-0;
|
|
143
|
-
line-height: var(--lh-extra-relaxed);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ui-unordered-list-with-emphasis {
|
|
147
|
-
@apply text-p1 font-medium text-cool-black;
|
|
148
|
-
@apply list-disc ml-32 mt-32 -mb-12;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.ui-unordered-list-with-emphasis li div {
|
|
152
|
-
@apply relative -top-12;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.ui-unordered-list-with-emphasis li div > strong {
|
|
156
|
-
@apply block;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ui-unordered-list-with-emphasis ul {
|
|
160
|
-
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
161
|
-
@apply ml-24 list-circle;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ui-unordered-list-with-emphasis ul ul {
|
|
165
|
-
@apply list-square;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
147
|
.ui-link {
|
|
169
148
|
@apply text-gui-default;
|
|
170
149
|
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@layer components {
|
|
7
7
|
.ui-input {
|
|
8
|
-
@apply text-p2 font-
|
|
8
|
+
@apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
|
9
9
|
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
10
10
|
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
|
11
11
|
@apply max-w-screen-sm;
|