@ably/ui 7.9.4 → 7.10.0-dev.e980a00
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/Meganav/component.css +5 -1
- package/core/Meganav/component.js +2 -1
- package/core/Meganav/component.js.LICENSE.txt +7 -0
- package/core/Meganav.jsx +7334 -4100
- package/core/MeganavContentWhyAbly.jsx +2 -2
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.jsx +5 -3
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavItemsDesktop.jsx +5 -3
- package/core/MeganavItemsMobile.jsx +187 -11
- package/core/MeganavItemsSignedIn.jsx +258 -7
- package/core/MeganavSearch/component.js +1 -0
- package/core/MeganavSearch.jsx +503 -0
- package/core/MeganavSearchAutocomplete/component.js +2 -0
- package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +7 -0
- package/core/MeganavSearchAutocomplete.jsx +117 -0
- package/core/MeganavSearchPanel/component.js +1 -0
- package/core/MeganavSearchPanel.jsx +454 -0
- package/core/MeganavSearchSuggestions/component.js +1 -0
- package/core/MeganavSearchSuggestions.jsx +366 -0
- package/core/fonts/.DS_Store +0 -0
- package/core/images/.DS_Store +0 -0
- package/core/scripts.js +1 -1
- package/core/styles.css +2 -15
- package/package.json +2 -1
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/log/.keep +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/.keep +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/pids/.keep +0 -0
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Meganav/component.css +5 -1
- package/src/core/Meganav/component.html.erb +10 -5
- package/src/core/Meganav/component.js +4 -0
- package/src/core/Meganav/component.jsx +12 -5
- package/src/core/MeganavContentWhyAbly/component.html.erb +1 -1
- package/src/core/MeganavContentWhyAbly/component.jsx +1 -1
- package/src/core/MeganavControl/component.html.erb +2 -2
- package/src/core/MeganavControl/component.js +37 -12
- package/src/core/MeganavControl/component.jsx +3 -2
- package/src/core/MeganavControl/component.rb +3 -1
- package/src/core/MeganavControlMobileDropdown/component.js +31 -0
- package/src/core/MeganavItemsMobile/component.html.erb +29 -2
- package/src/core/MeganavItemsMobile/component.jsx +32 -2
- package/src/core/MeganavItemsSignedIn/component.html.erb +5 -1
- package/src/core/MeganavItemsSignedIn/component.jsx +7 -2
- package/src/core/MeganavSearch/component.html.erb +15 -0
- package/src/core/MeganavSearch/component.js +0 -0
- package/src/core/MeganavSearch/component.jsx +33 -0
- package/src/core/MeganavSearch/component.rb +13 -0
- package/src/core/MeganavSearchAutocomplete/component.html.erb +6 -0
- package/src/core/MeganavSearchAutocomplete/component.js +169 -0
- package/src/core/MeganavSearchAutocomplete/component.jsx +14 -0
- package/src/core/MeganavSearchAutocomplete/component.rb +6 -0
- package/src/core/MeganavSearchPanel/component.html.erb +22 -0
- package/src/core/MeganavSearchPanel/component.js +0 -0
- package/src/core/MeganavSearchPanel/component.jsx +39 -0
- package/src/core/MeganavSearchPanel/component.rb +13 -0
- package/src/core/MeganavSearchSuggestions/component.html.erb +22 -0
- package/src/core/MeganavSearchSuggestions/component.js +0 -0
- package/src/core/MeganavSearchSuggestions/component.jsx +49 -0
- package/src/core/MeganavSearchSuggestions/component.rb +18 -0
- package/src/core/fonts/.DS_Store +0 -0
- package/src/core/images/.DS_Store +0 -0
- package/src/core/remote-blogs-posts.js +1 -1
- package/src/core/remote-session-data.js +1 -1
- package/src/core/styles/properties.css +2 -0
- package/src/core/styles.components.css +0 -15
- package/src/reset/.DS_Store +0 -0
- package/tailwind.config.js +2 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 9281:
|
|
16
|
+
/***/ ((module) => {
|
|
17
|
+
|
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
19
|
+
|
|
20
|
+
/***/ })
|
|
21
|
+
|
|
22
|
+
/******/ });
|
|
23
|
+
/************************************************************************/
|
|
24
|
+
/******/ // The module cache
|
|
25
|
+
/******/ var __webpack_module_cache__ = {};
|
|
26
|
+
/******/
|
|
27
|
+
/******/ // The require function
|
|
28
|
+
/******/ function __webpack_require__(moduleId) {
|
|
29
|
+
/******/ // Check if module is in cache
|
|
30
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
31
|
+
/******/ if (cachedModule !== undefined) {
|
|
32
|
+
/******/ return cachedModule.exports;
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ // Create a new module (and put it into the cache)
|
|
35
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
36
|
+
/******/ // no module.id needed
|
|
37
|
+
/******/ // no module.loaded needed
|
|
38
|
+
/******/ exports: {}
|
|
39
|
+
/******/ };
|
|
40
|
+
/******/
|
|
41
|
+
/******/ // Execute the module function
|
|
42
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // Return the exports of the module
|
|
45
|
+
/******/ return module.exports;
|
|
46
|
+
/******/ }
|
|
47
|
+
/******/
|
|
48
|
+
/************************************************************************/
|
|
49
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
50
|
+
/******/ (() => {
|
|
51
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
52
|
+
/******/ __webpack_require__.n = (module) => {
|
|
53
|
+
/******/ var getter = module && module.__esModule ?
|
|
54
|
+
/******/ () => (module['default']) :
|
|
55
|
+
/******/ () => (module);
|
|
56
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
57
|
+
/******/ return getter;
|
|
58
|
+
/******/ };
|
|
59
|
+
/******/ })();
|
|
60
|
+
/******/
|
|
61
|
+
/******/ /* webpack/runtime/define property getters */
|
|
62
|
+
/******/ (() => {
|
|
63
|
+
/******/ // define getter functions for harmony exports
|
|
64
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
65
|
+
/******/ for(var key in definition) {
|
|
66
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
67
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
68
|
+
/******/ }
|
|
69
|
+
/******/ }
|
|
70
|
+
/******/ };
|
|
71
|
+
/******/ })();
|
|
72
|
+
/******/
|
|
73
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
74
|
+
/******/ (() => {
|
|
75
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
76
|
+
/******/ })();
|
|
77
|
+
/******/
|
|
78
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
79
|
+
/******/ (() => {
|
|
80
|
+
/******/ // define __esModule on exports
|
|
81
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
82
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
83
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
84
|
+
/******/ }
|
|
85
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
86
|
+
/******/ };
|
|
87
|
+
/******/ })();
|
|
88
|
+
/******/
|
|
89
|
+
/************************************************************************/
|
|
90
|
+
var __webpack_exports__ = {};
|
|
91
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
92
|
+
(() => {
|
|
93
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
96
|
+
/* harmony export */ });
|
|
97
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
98
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
var MeganavSearchAutocomplete = function MeganavSearchAutocomplete() {
|
|
102
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
103
|
+
className: "absolute w-full mt-8 z-10 hidden shadow-container rounded-lg bg-white border border-mid-grey",
|
|
104
|
+
"data-id": "meganav-search-autocomplete-container"
|
|
105
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ol", {
|
|
106
|
+
className: "m-16",
|
|
107
|
+
"data-id": "meganav-search-autocomplete-list"
|
|
108
|
+
}));
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavSearchAutocomplete);
|
|
112
|
+
})();
|
|
113
|
+
|
|
114
|
+
/******/ return __webpack_exports__;
|
|
115
|
+
/******/ })()
|
|
116
|
+
;
|
|
117
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavSearchPanel=o())}(this,(function(){return{}.default}));
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 5751:
|
|
15
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
22
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
|
|
24
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
|
+
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var FeaturedLink = function FeaturedLink(_ref) {
|
|
31
|
+
var url = _ref.url,
|
|
32
|
+
_ref$textSize = _ref.textSize,
|
|
33
|
+
textSize = _ref$textSize === void 0 ? "text-menu3" : _ref$textSize,
|
|
34
|
+
_ref$iconColor = _ref.iconColor,
|
|
35
|
+
iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
|
|
36
|
+
_ref$flush = _ref.flush,
|
|
37
|
+
flush = _ref$flush === void 0 ? false : _ref$flush,
|
|
38
|
+
children = _ref.children;
|
|
39
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
40
|
+
href: url,
|
|
41
|
+
className: "ui-featured-link ".concat(textSize, " ").concat(flush ? "" : "py-8", " "),
|
|
42
|
+
style: {
|
|
43
|
+
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
44
|
+
}
|
|
45
|
+
}, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
46
|
+
name: "icon-gui-link-arrow",
|
|
47
|
+
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
48
|
+
color: iconColor,
|
|
49
|
+
additionalCSS: "ui-featured-link-icon"
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
FeaturedLink.propTypes = {
|
|
54
|
+
url: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
55
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
56
|
+
textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
57
|
+
iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
58
|
+
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
59
|
+
};
|
|
60
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 9008:
|
|
65
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
66
|
+
|
|
67
|
+
"use strict";
|
|
68
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
69
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
70
|
+
/* harmony export */ });
|
|
71
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
72
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
73
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
|
|
74
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
75
|
+
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
76
|
+
|
|
77
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
78
|
+
|
|
79
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
80
|
+
|
|
81
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
var Icon = function Icon(_ref) {
|
|
87
|
+
var name = _ref.name,
|
|
88
|
+
_ref$size = _ref.size,
|
|
89
|
+
size = _ref$size === void 0 ? "0.75rem" : _ref$size,
|
|
90
|
+
_ref$color = _ref.color,
|
|
91
|
+
color = _ref$color === void 0 ? "" : _ref$color,
|
|
92
|
+
_ref$additionalCSS = _ref.additionalCSS,
|
|
93
|
+
additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
|
|
94
|
+
additionalAttributes = _objectWithoutProperties(_ref, _excluded);
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
|
|
97
|
+
className: "".concat(color, " ").concat(additionalCSS),
|
|
98
|
+
style: {
|
|
99
|
+
width: size,
|
|
100
|
+
height: size
|
|
101
|
+
}
|
|
102
|
+
}, additionalAttributes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
|
|
103
|
+
xlinkHref: "#sprite-".concat(name)
|
|
104
|
+
}));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
Icon.propTypes = {
|
|
108
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
|
|
109
|
+
size: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
110
|
+
color: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
111
|
+
additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
112
|
+
};
|
|
113
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
|
|
114
|
+
|
|
115
|
+
/***/ }),
|
|
116
|
+
|
|
117
|
+
/***/ 3833:
|
|
118
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
119
|
+
|
|
120
|
+
"use strict";
|
|
121
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
123
|
+
/* harmony export */ });
|
|
124
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
125
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
var MeganavSearchAutocomplete = function MeganavSearchAutocomplete() {
|
|
129
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
130
|
+
className: "absolute w-full mt-8 z-10 hidden shadow-container rounded-lg bg-white border border-mid-grey",
|
|
131
|
+
"data-id": "meganav-search-autocomplete-container"
|
|
132
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ol", {
|
|
133
|
+
className: "m-16",
|
|
134
|
+
"data-id": "meganav-search-autocomplete-list"
|
|
135
|
+
}));
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavSearchAutocomplete);
|
|
139
|
+
|
|
140
|
+
/***/ }),
|
|
141
|
+
|
|
142
|
+
/***/ 8926:
|
|
143
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
144
|
+
|
|
145
|
+
"use strict";
|
|
146
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
147
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
148
|
+
/* harmony export */ });
|
|
149
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
150
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
151
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
|
|
152
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
153
|
+
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5751);
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
var MeganavSearchSuggestions = function MeganavSearchSuggestions(_ref) {
|
|
159
|
+
var absUrl = _ref.absUrl,
|
|
160
|
+
displaySupportLink = _ref.displaySupportLink;
|
|
161
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
162
|
+
className: "ui-text-overline2 text-cool-black py-12"
|
|
163
|
+
}, "Popular pages"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
164
|
+
className: "flex justify-between items-center overflow-x-scroll md:overflow-auto"
|
|
165
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
|
|
166
|
+
className: "flex"
|
|
167
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
168
|
+
className: "py-12 pr-8 flex-shrink-0"
|
|
169
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
170
|
+
href: absUrl("/docs/how-ably-works"),
|
|
171
|
+
className: "ui-text-p2"
|
|
172
|
+
}, "How does Ably work?")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
173
|
+
className: "py-12 px-8 flex-shrink-0"
|
|
174
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
175
|
+
href: absUrl("/docs/quick-start-guide"),
|
|
176
|
+
className: "ui-text-p2"
|
|
177
|
+
}, "Quickstart guide")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
178
|
+
className: "py-12 px-8 flex-shrink-0"
|
|
179
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
180
|
+
href: absUrl("/docs/core-features/pubsub"),
|
|
181
|
+
className: "ui-text-p2"
|
|
182
|
+
}, "Publish/Subscribe Messaging")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
183
|
+
className: "py-12 pl-8 flex-shrink-0"
|
|
184
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
185
|
+
href: absUrl("/platform"),
|
|
186
|
+
className: "ui-text-p2"
|
|
187
|
+
}, "Platform"))), displaySupportLink ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
188
|
+
url: absUrl("/support"),
|
|
189
|
+
textSize: "text-p2"
|
|
190
|
+
}, "Support") : null));
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
MeganavSearchSuggestions.propTypes = {
|
|
194
|
+
absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
|
195
|
+
displaySupportLink: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
196
|
+
};
|
|
197
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavSearchSuggestions);
|
|
198
|
+
|
|
199
|
+
/***/ }),
|
|
200
|
+
|
|
201
|
+
/***/ 2703:
|
|
202
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
203
|
+
|
|
204
|
+
"use strict";
|
|
205
|
+
/**
|
|
206
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the MIT license found in the
|
|
209
|
+
* LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
var ReactPropTypesSecret = __webpack_require__(414);
|
|
215
|
+
|
|
216
|
+
function emptyFunction() {}
|
|
217
|
+
function emptyFunctionWithReset() {}
|
|
218
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
219
|
+
|
|
220
|
+
module.exports = function() {
|
|
221
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
222
|
+
if (secret === ReactPropTypesSecret) {
|
|
223
|
+
// It is still safe when called from React.
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
var err = new Error(
|
|
227
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
228
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
229
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
230
|
+
);
|
|
231
|
+
err.name = 'Invariant Violation';
|
|
232
|
+
throw err;
|
|
233
|
+
};
|
|
234
|
+
shim.isRequired = shim;
|
|
235
|
+
function getShim() {
|
|
236
|
+
return shim;
|
|
237
|
+
};
|
|
238
|
+
// Important!
|
|
239
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
240
|
+
var ReactPropTypes = {
|
|
241
|
+
array: shim,
|
|
242
|
+
bool: shim,
|
|
243
|
+
func: shim,
|
|
244
|
+
number: shim,
|
|
245
|
+
object: shim,
|
|
246
|
+
string: shim,
|
|
247
|
+
symbol: shim,
|
|
248
|
+
|
|
249
|
+
any: shim,
|
|
250
|
+
arrayOf: getShim,
|
|
251
|
+
element: shim,
|
|
252
|
+
elementType: shim,
|
|
253
|
+
instanceOf: getShim,
|
|
254
|
+
node: shim,
|
|
255
|
+
objectOf: getShim,
|
|
256
|
+
oneOf: getShim,
|
|
257
|
+
oneOfType: getShim,
|
|
258
|
+
shape: getShim,
|
|
259
|
+
exact: getShim,
|
|
260
|
+
|
|
261
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
262
|
+
resetWarningCache: emptyFunction
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
266
|
+
|
|
267
|
+
return ReactPropTypes;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
/***/ }),
|
|
272
|
+
|
|
273
|
+
/***/ 5697:
|
|
274
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the MIT license found in the
|
|
280
|
+
* LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
284
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
285
|
+
// http://fb.me/prop-types-in-prod
|
|
286
|
+
module.exports = __webpack_require__(2703)();
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/***/ }),
|
|
291
|
+
|
|
292
|
+
/***/ 414:
|
|
293
|
+
/***/ ((module) => {
|
|
294
|
+
|
|
295
|
+
"use strict";
|
|
296
|
+
/**
|
|
297
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the MIT license found in the
|
|
300
|
+
* LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
306
|
+
|
|
307
|
+
module.exports = ReactPropTypesSecret;
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/***/ }),
|
|
311
|
+
|
|
312
|
+
/***/ 9281:
|
|
313
|
+
/***/ ((module) => {
|
|
314
|
+
|
|
315
|
+
"use strict";
|
|
316
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
317
|
+
|
|
318
|
+
/***/ })
|
|
319
|
+
|
|
320
|
+
/******/ });
|
|
321
|
+
/************************************************************************/
|
|
322
|
+
/******/ // The module cache
|
|
323
|
+
/******/ var __webpack_module_cache__ = {};
|
|
324
|
+
/******/
|
|
325
|
+
/******/ // The require function
|
|
326
|
+
/******/ function __webpack_require__(moduleId) {
|
|
327
|
+
/******/ // Check if module is in cache
|
|
328
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
329
|
+
/******/ if (cachedModule !== undefined) {
|
|
330
|
+
/******/ return cachedModule.exports;
|
|
331
|
+
/******/ }
|
|
332
|
+
/******/ // Create a new module (and put it into the cache)
|
|
333
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
334
|
+
/******/ // no module.id needed
|
|
335
|
+
/******/ // no module.loaded needed
|
|
336
|
+
/******/ exports: {}
|
|
337
|
+
/******/ };
|
|
338
|
+
/******/
|
|
339
|
+
/******/ // Execute the module function
|
|
340
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
341
|
+
/******/
|
|
342
|
+
/******/ // Return the exports of the module
|
|
343
|
+
/******/ return module.exports;
|
|
344
|
+
/******/ }
|
|
345
|
+
/******/
|
|
346
|
+
/************************************************************************/
|
|
347
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
348
|
+
/******/ (() => {
|
|
349
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
350
|
+
/******/ __webpack_require__.n = (module) => {
|
|
351
|
+
/******/ var getter = module && module.__esModule ?
|
|
352
|
+
/******/ () => (module['default']) :
|
|
353
|
+
/******/ () => (module);
|
|
354
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
355
|
+
/******/ return getter;
|
|
356
|
+
/******/ };
|
|
357
|
+
/******/ })();
|
|
358
|
+
/******/
|
|
359
|
+
/******/ /* webpack/runtime/define property getters */
|
|
360
|
+
/******/ (() => {
|
|
361
|
+
/******/ // define getter functions for harmony exports
|
|
362
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
363
|
+
/******/ for(var key in definition) {
|
|
364
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
365
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
366
|
+
/******/ }
|
|
367
|
+
/******/ }
|
|
368
|
+
/******/ };
|
|
369
|
+
/******/ })();
|
|
370
|
+
/******/
|
|
371
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
372
|
+
/******/ (() => {
|
|
373
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
374
|
+
/******/ })();
|
|
375
|
+
/******/
|
|
376
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
377
|
+
/******/ (() => {
|
|
378
|
+
/******/ // define __esModule on exports
|
|
379
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
380
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
381
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
382
|
+
/******/ }
|
|
383
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
384
|
+
/******/ };
|
|
385
|
+
/******/ })();
|
|
386
|
+
/******/
|
|
387
|
+
/************************************************************************/
|
|
388
|
+
var __webpack_exports__ = {};
|
|
389
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
390
|
+
(() => {
|
|
391
|
+
"use strict";
|
|
392
|
+
__webpack_require__.r(__webpack_exports__);
|
|
393
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
394
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
395
|
+
/* harmony export */ });
|
|
396
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
397
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
398
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
|
|
399
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
400
|
+
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
401
|
+
/* harmony import */ var _MeganavSearchSuggestions_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8926);
|
|
402
|
+
/* harmony import */ var _MeganavSearchAutocomplete_component_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3833);
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
var MeganavSearchPanel = function MeganavSearchPanel(_ref) {
|
|
410
|
+
var absUrl = _ref.absUrl;
|
|
411
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", {
|
|
412
|
+
className: "ui-meganav-content grid-cols-12"
|
|
413
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
414
|
+
className: "col-span-8"
|
|
415
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
416
|
+
className: "mb-32"
|
|
417
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", {
|
|
418
|
+
className: "flex items-start",
|
|
419
|
+
action: absUrl("/search"),
|
|
420
|
+
method: "get"
|
|
421
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
422
|
+
className: "relative w-full"
|
|
423
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
424
|
+
name: "icon-gui-search",
|
|
425
|
+
color: "text-cool-black",
|
|
426
|
+
size: "1.5rem",
|
|
427
|
+
additionalCSS: "absolute top-12 left-16"
|
|
428
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", {
|
|
429
|
+
type: "search",
|
|
430
|
+
name: "q",
|
|
431
|
+
className: "ui-input pl-48 h-48",
|
|
432
|
+
placeholder: "Search",
|
|
433
|
+
"data-id": "meganav-search-input"
|
|
434
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MeganavSearchAutocomplete_component_jsx__WEBPACK_IMPORTED_MODULE_4__.default, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
|
|
435
|
+
type: "submit",
|
|
436
|
+
className: "ui-btn-secondary ml-8 sm:ml-16 md:ml-24 xl:ml-32"
|
|
437
|
+
}, "Search")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
438
|
+
className: "col-span-12"
|
|
439
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MeganavSearchSuggestions_component_jsx__WEBPACK_IMPORTED_MODULE_3__.default, {
|
|
440
|
+
displaySupportLink: true,
|
|
441
|
+
absUrl: absUrl
|
|
442
|
+
})));
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
MeganavSearchPanel.propTypes = {
|
|
446
|
+
absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
|
447
|
+
};
|
|
448
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavSearchPanel);
|
|
449
|
+
})();
|
|
450
|
+
|
|
451
|
+
/******/ return __webpack_exports__;
|
|
452
|
+
/******/ })()
|
|
453
|
+
;
|
|
454
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavSearchSuggestions=o())}(this,(function(){return{}.default}));
|