@splunk/react-ui 4.19.0 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.d.ts +2 -0
- package/Breadcrumbs.js +207 -0
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +35 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +132 -248
- package/CloseButton.js +92 -200
- package/Code.js +188 -251
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -355
- package/Menu.js +396 -647
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +2675 -2807
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +436 -623
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +183 -304
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1243 -1248
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +975 -1447
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +20 -21
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/types/src/Breadcrumbs/Item.d.ts +42 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
- package/types/src/Breadcrumbs/index.d.ts +2 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +12 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +5 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/Select/SelectAllOption.d.ts +14 -0
- package/types/src/Select/SelectBase.d.ts +11 -3
- package/types/src/Table/Table.d.ts +4 -0
- package/types/src/Text/Text.d.ts +3 -3
- package/types/src/TextArea/TextArea.d.ts +3 -3
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Concertina.js
CHANGED
|
@@ -1,250 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
18
28
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/
|
|
32
|
-
/******/
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 180);
|
|
86
|
-
/******/ })
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 10:
|
|
105
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
|
-
|
|
107
|
-
"use strict";
|
|
108
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
109
|
-
/**
|
|
110
|
-
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
111
|
-
*
|
|
112
|
-
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
113
|
-
* @param current - The new value of the ref.
|
|
114
|
-
*/
|
|
115
|
-
function updateReactRef(ref, current) {
|
|
116
|
-
if (ref) {
|
|
117
|
-
if (typeof ref === 'function') {
|
|
118
|
-
ref(current);
|
|
119
|
-
} else {
|
|
120
|
-
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
121
|
-
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
122
|
-
ref.current = current; // eslint-disable-line no-param-reassign
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/***/ }),
|
|
130
|
-
|
|
131
|
-
/***/ 117:
|
|
132
|
-
/***/ (function(module, exports) {
|
|
133
|
-
|
|
134
|
-
module.exports = require("lodash/take");
|
|
135
|
-
|
|
136
|
-
/***/ }),
|
|
137
|
-
|
|
138
|
-
/***/ 118:
|
|
139
|
-
/***/ (function(module, exports) {
|
|
140
|
-
|
|
141
|
-
module.exports = require("lodash/takeRight");
|
|
142
|
-
|
|
143
|
-
/***/ }),
|
|
144
|
-
|
|
145
|
-
/***/ 12:
|
|
146
|
-
/***/ (function(module, exports) {
|
|
147
|
-
|
|
148
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
149
|
-
|
|
150
|
-
/***/ }),
|
|
151
|
-
|
|
152
|
-
/***/ 16:
|
|
153
|
-
/***/ (function(module, exports) {
|
|
154
|
-
|
|
155
|
-
module.exports = require("@splunk/react-ui/EventListener");
|
|
156
|
-
|
|
157
|
-
/***/ }),
|
|
158
|
-
|
|
159
|
-
/***/ 180:
|
|
160
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
161
|
-
|
|
162
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
163
49
|
// ESM COMPAT FLAG
|
|
164
50
|
__webpack_require__.r(__webpack_exports__);
|
|
165
51
|
|
|
166
52
|
// EXPORTS
|
|
167
|
-
__webpack_require__.d(__webpack_exports__,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
211
|
-
var themes_ = __webpack_require__(0);
|
|
212
|
-
|
|
213
|
-
// CONCATENATED MODULE: ./src/Concertina/HeadingStyles.ts
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
var StyledClickable = external_styled_components_default()(Clickable_default.a).withConfig({
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
Panel: () => (/* reexport */ Concertina_Panel),
|
|
55
|
+
"default": () => (/* reexport */ Concertina_Concertina)
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
;// CONCATENATED MODULE: external "react"
|
|
59
|
+
const external_react_namespaceObject = require("react");
|
|
60
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
61
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
62
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
63
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
64
|
+
;// CONCATENATED MODULE: external "lodash/debounce"
|
|
65
|
+
const debounce_namespaceObject = require("lodash/debounce");
|
|
66
|
+
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_namespaceObject);
|
|
67
|
+
;// CONCATENATED MODULE: external "lodash/take"
|
|
68
|
+
const take_namespaceObject = require("lodash/take");
|
|
69
|
+
var take_default = /*#__PURE__*/__webpack_require__.n(take_namespaceObject);
|
|
70
|
+
;// CONCATENATED MODULE: external "lodash/takeRight"
|
|
71
|
+
const takeRight_namespaceObject = require("lodash/takeRight");
|
|
72
|
+
var takeRight_default = /*#__PURE__*/__webpack_require__.n(takeRight_namespaceObject);
|
|
73
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
74
|
+
const EventListener_namespaceObject = require("@splunk/react-ui/EventListener");
|
|
75
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_namespaceObject);
|
|
76
|
+
;// CONCATENATED MODULE: external "lodash/keys"
|
|
77
|
+
const keys_namespaceObject = require("lodash/keys");
|
|
78
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
|
|
79
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
80
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
81
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
82
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
83
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
84
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
85
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
86
|
+
const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
|
|
87
|
+
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
|
|
88
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
89
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
90
|
+
;// CONCATENATED MODULE: ./src/Concertina/HeadingStyles.ts
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
var StyledClickable = external_styled_components_default()((Clickable_default())).withConfig({
|
|
218
95
|
displayName: "HeadingStyles__StyledClickable",
|
|
219
96
|
componentId: "sc-1h92oaj-0"
|
|
220
|
-
})(["display:block;width:100%;cursor:pointer;position:relative;padding:6px ", ";line-height:", ";border-radius:0;color:", ";", " &:focus:not([disabled]){box-shadow:", ";}", ""],
|
|
221
|
-
"true":
|
|
222
|
-
"false":
|
|
223
|
-
}),
|
|
224
|
-
normal:
|
|
225
|
-
dark:
|
|
226
|
-
light:
|
|
227
|
-
}),
|
|
228
|
-
dark:
|
|
229
|
-
light:
|
|
97
|
+
})(["display:block;width:100%;cursor:pointer;position:relative;padding:6px ", ";line-height:", ";border-radius:0;color:", ";", " &:focus:not([disabled]){box-shadow:", ";}", ""], themes_namespaceObject.variables.spacing, themes_namespaceObject.variables.lineHeight, themes_namespaceObject.variables.textColor, (0,themes_namespaceObject.pickVariant)('$inner', {
|
|
98
|
+
"true": (0,external_styled_components_namespaceObject.css)(["*:not(:first-child) > &&{border-top:2px solid ", ";}*:not(:last-child) > &&{border-bottom:2px solid ", ";}"], themes_namespaceObject.variables.backgroundColor, themes_namespaceObject.variables.backgroundColor),
|
|
99
|
+
"false": (0,external_styled_components_namespaceObject.css)(["& + &&{border-top:2px solid ", ";}"], themes_namespaceObject.variables.backgroundColor)
|
|
100
|
+
}), themes_namespaceObject.variables.focusShadowInset, (0,themes_namespaceObject.pickVariant)('$status', {
|
|
101
|
+
normal: (0,external_styled_components_namespaceObject.css)(["background-color:", ";&:hover:not([disabled]){background-color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
102
|
+
dark: themes_namespaceObject.variables.gray45,
|
|
103
|
+
light: themes_namespaceObject.variables.gray96
|
|
104
|
+
}), (0,themes_namespaceObject.pick)({
|
|
105
|
+
dark: themes_namespaceObject.variables.gray30,
|
|
106
|
+
light: themes_namespaceObject.variables.gray92
|
|
230
107
|
})),
|
|
231
|
-
disabled:
|
|
232
|
-
dark:
|
|
233
|
-
light:
|
|
108
|
+
disabled: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
109
|
+
dark: themes_namespaceObject.variables.gray80,
|
|
110
|
+
light: themes_namespaceObject.variables.gray96
|
|
234
111
|
})),
|
|
235
|
-
error:
|
|
236
|
-
warning:
|
|
112
|
+
error: (0,external_styled_components_namespaceObject.css)(["background-color:", ";color:", ";&:hover:not([disabled]){background-color:", ";}"], themes_namespaceObject.variables.errorColor, themes_namespaceObject.variables.white, themes_namespaceObject.variables.errorColorD10),
|
|
113
|
+
warning: (0,external_styled_components_namespaceObject.css)(["background-color:", ";color:", ";&:hover:not([disabled]){background-color:", ";box-shadow:none;}"], themes_namespaceObject.variables.warningColor, themes_namespaceObject.variables.white, themes_namespaceObject.variables.warningColorD10)
|
|
237
114
|
}));
|
|
238
|
-
var StyledHeadingContent = external_styled_components_default.
|
|
115
|
+
var StyledHeadingContent = external_styled_components_default().span.withConfig({
|
|
239
116
|
displayName: "HeadingStyles__StyledHeadingContent",
|
|
240
117
|
componentId: "sc-1h92oaj-1"
|
|
241
118
|
})(["display:flex;justify-content:space-between;"]);
|
|
242
|
-
var StyledDescription = external_styled_components_default.
|
|
119
|
+
var StyledDescription = external_styled_components_default().span.withConfig({
|
|
243
120
|
displayName: "HeadingStyles__StyledDescription",
|
|
244
121
|
componentId: "sc-1h92oaj-2"
|
|
245
|
-
})(["font-size:", ";"],
|
|
122
|
+
})(["font-size:", ";"], themes_namespaceObject.variables.fontSizeSmall);
|
|
246
123
|
|
|
247
|
-
|
|
124
|
+
;// CONCATENATED MODULE: ./src/Concertina/Heading.tsx
|
|
248
125
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
249
126
|
|
|
250
127
|
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); }
|
|
@@ -277,27 +154,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
277
154
|
|
|
278
155
|
|
|
279
156
|
var propTypes = {
|
|
280
|
-
children: external_prop_types_default.
|
|
281
|
-
description: external_prop_types_default.
|
|
157
|
+
children: (external_prop_types_default()).node.isRequired,
|
|
158
|
+
description: (external_prop_types_default()).node,
|
|
282
159
|
|
|
283
160
|
/** @private */
|
|
284
|
-
index: external_prop_types_default.
|
|
161
|
+
index: (external_prop_types_default()).number.isRequired,
|
|
285
162
|
|
|
286
163
|
/** @private */
|
|
287
|
-
onClick: external_prop_types_default.
|
|
164
|
+
onClick: (external_prop_types_default()).func,
|
|
288
165
|
|
|
289
166
|
/** @private */
|
|
290
|
-
panelId: external_prop_types_default.
|
|
167
|
+
panelId: (external_prop_types_default()).string,
|
|
291
168
|
|
|
292
169
|
/** @private */
|
|
293
|
-
position: external_prop_types_default.
|
|
294
|
-
status: external_prop_types_default.
|
|
170
|
+
position: external_prop_types_default().oneOf(['top', 'inner', 'bottom']),
|
|
171
|
+
status: external_prop_types_default().oneOf(['normal', 'warning', 'error', 'disabled'])
|
|
295
172
|
};
|
|
296
173
|
var defaultProps = {
|
|
297
174
|
position: 'inner'
|
|
298
175
|
};
|
|
299
176
|
|
|
300
|
-
var
|
|
177
|
+
var Heading = /*#__PURE__*/function (_Component) {
|
|
301
178
|
_inherits(Heading, _Component);
|
|
302
179
|
|
|
303
180
|
var _super = _createSuper(Heading);
|
|
@@ -348,7 +225,7 @@ var Heading_Heading = /*#__PURE__*/function (_Component) {
|
|
|
348
225
|
panelId = _this$props2.panelId,
|
|
349
226
|
position = _this$props2.position,
|
|
350
227
|
status = _this$props2.status;
|
|
351
|
-
return /*#__PURE__*/external_react_default.
|
|
228
|
+
return /*#__PURE__*/external_react_default().createElement(StyledClickable, _extends({
|
|
352
229
|
disabled: status === 'disabled',
|
|
353
230
|
$inner: position === 'inner',
|
|
354
231
|
$status: status,
|
|
@@ -356,79 +233,93 @@ var Heading_Heading = /*#__PURE__*/function (_Component) {
|
|
|
356
233
|
ref: this.handleMount,
|
|
357
234
|
"data-test": "heading",
|
|
358
235
|
"data-test-panel-id": panelId
|
|
359
|
-
}, omit_default()(this.props, keys_default()(Heading.propTypes))), /*#__PURE__*/external_react_default.
|
|
236
|
+
}, omit_default()(this.props, keys_default()(Heading.propTypes))), /*#__PURE__*/external_react_default().createElement(StyledHeadingContent, null, /*#__PURE__*/external_react_default().createElement("span", {
|
|
360
237
|
"data-concertina-role": "title"
|
|
361
|
-
}, children), description && /*#__PURE__*/external_react_default.
|
|
238
|
+
}, children), description && /*#__PURE__*/external_react_default().createElement(StyledDescription, {
|
|
362
239
|
"data-concertina-role": "description"
|
|
363
240
|
}, description)));
|
|
364
241
|
}
|
|
365
242
|
}]);
|
|
366
243
|
|
|
367
244
|
return Heading;
|
|
368
|
-
}(
|
|
369
|
-
|
|
370
|
-
_defineProperty(Heading_Heading, "propTypes", propTypes);
|
|
371
|
-
|
|
372
|
-
_defineProperty(Heading_Heading, "defaultProps", defaultProps);
|
|
245
|
+
}(external_react_namespaceObject.Component);
|
|
373
246
|
|
|
374
|
-
|
|
375
|
-
// EXTERNAL MODULE: external "lodash/throttle"
|
|
376
|
-
var throttle_ = __webpack_require__(31);
|
|
377
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
247
|
+
_defineProperty(Heading, "propTypes", propTypes);
|
|
378
248
|
|
|
379
|
-
|
|
380
|
-
var Box_ = __webpack_require__(6);
|
|
381
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
249
|
+
_defineProperty(Heading, "defaultProps", defaultProps);
|
|
382
250
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
251
|
+
/* harmony default export */ const Concertina_Heading = (Heading);
|
|
252
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
|
253
|
+
const throttle_namespaceObject = require("lodash/throttle");
|
|
254
|
+
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_namespaceObject);
|
|
255
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
256
|
+
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
257
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
258
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Scroll"
|
|
259
|
+
const Scroll_namespaceObject = require("@splunk/react-ui/Scroll");
|
|
260
|
+
var Scroll_default = /*#__PURE__*/__webpack_require__.n(Scroll_namespaceObject);
|
|
261
|
+
;// CONCATENATED MODULE: ./src/Concertina/ConcertinaStyles.ts
|
|
386
262
|
|
|
387
|
-
// CONCATENATED MODULE: ./src/Concertina/ConcertinaStyles.ts
|
|
388
263
|
|
|
389
264
|
|
|
390
265
|
|
|
391
|
-
|
|
392
|
-
var StyledScroll = external_styled_components_default()(Scroll_default.a).withConfig({
|
|
266
|
+
var StyledScroll = external_styled_components_default()((Scroll_default())).withConfig({
|
|
393
267
|
displayName: "ConcertinaStyles__StyledScroll",
|
|
394
268
|
componentId: "sc-1fzuh39-0"
|
|
395
269
|
})(["position:absolute;left:0;top:0;right:0;bottom:0;"]);
|
|
396
|
-
var StyledBox = external_styled_components_default()(StyledScroll.withComponent(Box_default
|
|
270
|
+
var StyledBox = external_styled_components_default()(StyledScroll.withComponent((Box_default()))).withConfig({
|
|
397
271
|
displayName: "ConcertinaStyles__StyledBox",
|
|
398
272
|
componentId: "sc-1fzuh39-1"
|
|
399
273
|
})(["overflow:hidden;"]);
|
|
400
|
-
var StyledTop = external_styled_components_default.
|
|
274
|
+
var StyledTop = external_styled_components_default().div.withConfig({
|
|
401
275
|
displayName: "ConcertinaStyles__StyledTop",
|
|
402
276
|
componentId: "sc-1fzuh39-2"
|
|
403
|
-
})(["position:absolute;left:0;top:0;right:0;z-index:1;background-color:", ";&::after{content:'';position:absolute;bottom:-10px;height:10px;left:0;right:0;background-image:linear-gradient(180deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}"],
|
|
404
|
-
var StyledBottom = external_styled_components_default.
|
|
277
|
+
})(["position:absolute;left:0;top:0;right:0;z-index:1;background-color:", ";&::after{content:'';position:absolute;bottom:-10px;height:10px;left:0;right:0;background-image:linear-gradient(180deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}"], themes_namespaceObject.variables.backgroundColor);
|
|
278
|
+
var StyledBottom = external_styled_components_default().div.withConfig({
|
|
405
279
|
displayName: "ConcertinaStyles__StyledBottom",
|
|
406
280
|
componentId: "sc-1fzuh39-3"
|
|
407
|
-
})(["position:absolute;left:0;bottom:0;right:0;background-color:", ";&::before{content:'';position:absolute;top:-5px;height:5px;left:0;right:0;background-image:linear-gradient(0deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}"],
|
|
408
|
-
var StyledPanelBody = external_styled_components_default.
|
|
281
|
+
})(["position:absolute;left:0;bottom:0;right:0;background-color:", ";&::before{content:'';position:absolute;top:-5px;height:5px;left:0;right:0;background-image:linear-gradient(0deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}"], themes_namespaceObject.variables.backgroundColor);
|
|
282
|
+
var StyledPanelBody = external_styled_components_default().div.withConfig({
|
|
409
283
|
displayName: "ConcertinaStyles__StyledPanelBody",
|
|
410
284
|
componentId: "sc-1fzuh39-4"
|
|
411
|
-
})(["", ""],
|
|
285
|
+
})(["", ""], (0,themes_namespaceObject.pickVariant)('$status', {
|
|
412
286
|
error: {
|
|
413
|
-
dark:
|
|
414
|
-
light:
|
|
287
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.errorColor, 0.5)),
|
|
288
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.variables.errorColorL50)
|
|
415
289
|
},
|
|
416
290
|
warning: {
|
|
417
|
-
dark:
|
|
418
|
-
light:
|
|
291
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.warningColor, 0.5)),
|
|
292
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.variables.warningColorL50)
|
|
419
293
|
},
|
|
420
|
-
disabled:
|
|
294
|
+
disabled: (0,external_styled_components_namespaceObject.css)(["display:none;"])
|
|
421
295
|
}));
|
|
422
296
|
|
|
423
|
-
|
|
424
|
-
|
|
297
|
+
;// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
298
|
+
/**
|
|
299
|
+
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
300
|
+
*
|
|
301
|
+
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
302
|
+
* @param current - The new value of the ref.
|
|
303
|
+
*/
|
|
304
|
+
function updateReactRef(ref, current) {
|
|
305
|
+
if (ref) {
|
|
306
|
+
if (typeof ref === 'function') {
|
|
307
|
+
ref(current);
|
|
308
|
+
} else {
|
|
309
|
+
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
310
|
+
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
311
|
+
ref.current = current; // eslint-disable-line no-param-reassign
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
425
316
|
|
|
426
|
-
|
|
317
|
+
;// CONCATENATED MODULE: ./src/Concertina/ConcertinaContext.tsx
|
|
427
318
|
|
|
428
|
-
var ConcertinaContext = /*#__PURE__*/
|
|
319
|
+
var ConcertinaContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({});
|
|
429
320
|
ConcertinaContext.displayName = 'Concertina';
|
|
430
|
-
/* harmony default export */
|
|
431
|
-
|
|
321
|
+
/* harmony default export */ const Concertina_ConcertinaContext = (ConcertinaContext);
|
|
322
|
+
;// CONCATENATED MODULE: ./src/Concertina/Panel.tsx
|
|
432
323
|
function Panel_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Panel_typeof = function _typeof(obj) { return typeof obj; }; } else { Panel_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Panel_typeof(obj); }
|
|
433
324
|
|
|
434
325
|
function Panel_extends() { Panel_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 Panel_extends.apply(this, arguments); }
|
|
@@ -478,21 +369,21 @@ function Panel_defineProperty(obj, key, value) { if (key in obj) { Object.define
|
|
|
478
369
|
|
|
479
370
|
|
|
480
371
|
var Panel_propTypes = {
|
|
481
|
-
children: external_prop_types_default.
|
|
482
|
-
description: external_prop_types_default.
|
|
483
|
-
elementRef: external_prop_types_default.
|
|
372
|
+
children: (external_prop_types_default()).node,
|
|
373
|
+
description: (external_prop_types_default()).node,
|
|
374
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
484
375
|
|
|
485
376
|
/** @private */
|
|
486
|
-
index: external_prop_types_default.
|
|
487
|
-
panelId: external_prop_types_default.
|
|
488
|
-
status: external_prop_types_default.
|
|
489
|
-
title: external_prop_types_default.
|
|
377
|
+
index: (external_prop_types_default()).number,
|
|
378
|
+
panelId: (external_prop_types_default()).string,
|
|
379
|
+
status: external_prop_types_default().oneOf(['normal', 'warning', 'error', 'disabled']),
|
|
380
|
+
title: (external_prop_types_default()).node.isRequired
|
|
490
381
|
};
|
|
491
382
|
var Panel_defaultProps = {
|
|
492
383
|
status: 'normal'
|
|
493
384
|
};
|
|
494
385
|
|
|
495
|
-
var
|
|
386
|
+
var Panel = /*#__PURE__*/function (_Component) {
|
|
496
387
|
Panel_inherits(Panel, _Component);
|
|
497
388
|
|
|
498
389
|
var _super = Panel_createSuper(Panel);
|
|
@@ -537,7 +428,7 @@ var Panel_Panel = /*#__PURE__*/function (_Component) {
|
|
|
537
428
|
containerEl: el
|
|
538
429
|
});
|
|
539
430
|
|
|
540
|
-
|
|
431
|
+
updateReactRef(_this.props.elementRef, el);
|
|
541
432
|
});
|
|
542
433
|
|
|
543
434
|
Panel_defineProperty(Panel_assertThisInitialized(_this), "handleHeadingMount", function (heading) {
|
|
@@ -591,11 +482,11 @@ var Panel_Panel = /*#__PURE__*/function (_Component) {
|
|
|
591
482
|
style = _this$props.style,
|
|
592
483
|
title = _this$props.title;
|
|
593
484
|
var onHeadingClickContext = this.context.onHeadingClick;
|
|
594
|
-
return /*#__PURE__*/external_react_default.
|
|
485
|
+
return /*#__PURE__*/external_react_default().createElement("div", Panel_extends({
|
|
595
486
|
ref: this.handleMount,
|
|
596
487
|
"data-test": "panel",
|
|
597
488
|
"data-test-panel-id": panelId || "".concat(index)
|
|
598
|
-
}, omit_default()(this.props, [].concat(_toConsumableArray(keys_default()(Panel.propTypes)), ['style']))), /*#__PURE__*/external_react_default.
|
|
489
|
+
}, omit_default()(this.props, [].concat(_toConsumableArray(keys_default()(Panel.propTypes)), ['style']))), /*#__PURE__*/external_react_default().createElement(Concertina_Heading, {
|
|
599
490
|
onClick: onHeadingClickContext,
|
|
600
491
|
ref: this.handleHeadingMount,
|
|
601
492
|
description: description,
|
|
@@ -603,11 +494,11 @@ var Panel_Panel = /*#__PURE__*/function (_Component) {
|
|
|
603
494
|
panelId: panelId || "".concat(index),
|
|
604
495
|
position: "inner",
|
|
605
496
|
status: status
|
|
606
|
-
}, title), /*#__PURE__*/external_react_default.
|
|
497
|
+
}, title), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
607
498
|
target: window,
|
|
608
499
|
eventType: "resize",
|
|
609
500
|
listener: this.handleResize
|
|
610
|
-
}), /*#__PURE__*/external_react_default.
|
|
501
|
+
}), /*#__PURE__*/external_react_default().createElement(StyledPanelBody, {
|
|
611
502
|
$status: status,
|
|
612
503
|
"data-test": "body",
|
|
613
504
|
style: style,
|
|
@@ -617,16 +508,16 @@ var Panel_Panel = /*#__PURE__*/function (_Component) {
|
|
|
617
508
|
}]);
|
|
618
509
|
|
|
619
510
|
return Panel;
|
|
620
|
-
}(
|
|
511
|
+
}(external_react_namespaceObject.Component);
|
|
621
512
|
|
|
622
|
-
Panel_defineProperty(
|
|
513
|
+
Panel_defineProperty(Panel, "propTypes", Panel_propTypes);
|
|
623
514
|
|
|
624
|
-
Panel_defineProperty(
|
|
515
|
+
Panel_defineProperty(Panel, "defaultProps", Panel_defaultProps);
|
|
625
516
|
|
|
626
|
-
Panel_defineProperty(
|
|
517
|
+
Panel_defineProperty(Panel, "contextType", Concertina_ConcertinaContext);
|
|
627
518
|
|
|
628
|
-
/* harmony default export */
|
|
629
|
-
|
|
519
|
+
/* harmony default export */ const Concertina_Panel = (Panel);
|
|
520
|
+
;// CONCATENATED MODULE: ./src/Concertina/Concertina.tsx
|
|
630
521
|
function Concertina_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Concertina_typeof = function _typeof(obj) { return typeof obj; }; } else { Concertina_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Concertina_typeof(obj); }
|
|
631
522
|
|
|
632
523
|
function Concertina_extends() { Concertina_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 Concertina_extends.apply(this, arguments); }
|
|
@@ -668,12 +559,16 @@ function Concertina_defineProperty(obj, key, value) { if (key in obj) { Object.d
|
|
|
668
559
|
|
|
669
560
|
|
|
670
561
|
var Concertina_propTypes = {
|
|
671
|
-
children: external_prop_types_default.
|
|
672
|
-
elementRef: external_prop_types_default.
|
|
562
|
+
children: (external_prop_types_default()).node,
|
|
563
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object])
|
|
673
564
|
};
|
|
674
565
|
var Concertina_defaultProps = {};
|
|
675
566
|
|
|
676
|
-
|
|
567
|
+
/**
|
|
568
|
+
* @deprecated
|
|
569
|
+
* Concertina has been deprecated and will be removed in a future major version.
|
|
570
|
+
*/
|
|
571
|
+
var Concertina = /*#__PURE__*/function (_Component) {
|
|
677
572
|
Concertina_inherits(Concertina, _Component);
|
|
678
573
|
|
|
679
574
|
var _super = Concertina_createSuper(Concertina);
|
|
@@ -839,7 +734,7 @@ var Concertina_Concertina = /*#__PURE__*/function (_Component) {
|
|
|
839
734
|
var headings = items.map(function (item) {
|
|
840
735
|
var _item$props$index;
|
|
841
736
|
|
|
842
|
-
return /*#__PURE__*/external_react_default.
|
|
737
|
+
return /*#__PURE__*/external_react_default().createElement(Concertina_Heading, {
|
|
843
738
|
onClick: _this2.handleClick,
|
|
844
739
|
description: item.props.description,
|
|
845
740
|
panelId: item.props.panelId,
|
|
@@ -855,29 +750,31 @@ var Concertina_Concertina = /*#__PURE__*/function (_Component) {
|
|
|
855
750
|
}, {
|
|
856
751
|
key: "render",
|
|
857
752
|
value: function render() {
|
|
753
|
+
if (false) {}
|
|
754
|
+
|
|
858
755
|
var _this$props = this.props,
|
|
859
756
|
children = _this$props.children,
|
|
860
757
|
otherProps = _objectWithoutProperties(_this$props, ["children"]);
|
|
861
758
|
|
|
862
|
-
var childrenCleaned =
|
|
863
|
-
return /*#__PURE__*/
|
|
759
|
+
var childrenCleaned = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(function (item, index) {
|
|
760
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(item, {
|
|
864
761
|
index: index
|
|
865
762
|
});
|
|
866
763
|
});
|
|
867
764
|
var topPanels = take_default()(childrenCleaned, this.state.panelsTopCount);
|
|
868
765
|
var bottomPanels = takeRight_default()(childrenCleaned, this.state.panelsBottomCount);
|
|
869
|
-
return /*#__PURE__*/external_react_default.
|
|
766
|
+
return /*#__PURE__*/external_react_default().createElement(StyledBox, Concertina_extends({
|
|
870
767
|
"data-test": "concertina"
|
|
871
|
-
}, otherProps), /*#__PURE__*/external_react_default.
|
|
768
|
+
}, otherProps), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
872
769
|
target: window,
|
|
873
770
|
eventType: "resize",
|
|
874
771
|
listener: this.handleResize
|
|
875
|
-
}), this.state.panelsTopCount > 0 && /*#__PURE__*/external_react_default.
|
|
772
|
+
}), this.state.panelsTopCount > 0 && /*#__PURE__*/external_react_default().createElement(StyledTop, {
|
|
876
773
|
style: {
|
|
877
774
|
width: this.state.innerWidth
|
|
878
775
|
},
|
|
879
776
|
"data-test": "dock-top"
|
|
880
|
-
}, this.renderHeadings(topPanels, 'top')), /*#__PURE__*/external_react_default.
|
|
777
|
+
}, this.renderHeadings(topPanels, 'top')), /*#__PURE__*/external_react_default().createElement(StyledScroll, {
|
|
881
778
|
onScroll: this.handleScroll,
|
|
882
779
|
stopScrollPropagation: true,
|
|
883
780
|
key: "scroll-container",
|
|
@@ -885,12 +782,12 @@ var Concertina_Concertina = /*#__PURE__*/function (_Component) {
|
|
|
885
782
|
"data-test": "scroll",
|
|
886
783
|
top: this.state.targetTop,
|
|
887
784
|
onScrollComplete: this.handleScrollComplete
|
|
888
|
-
}, /*#__PURE__*/external_react_default.
|
|
785
|
+
}, /*#__PURE__*/external_react_default().createElement(Concertina_ConcertinaContext.Provider, {
|
|
889
786
|
value: {
|
|
890
787
|
onHeadingClick: this.handleClick,
|
|
891
788
|
onChange: this.handleUpdate
|
|
892
789
|
}
|
|
893
|
-
}, childrenCleaned)), this.state.panelsBottomCount > 0 && /*#__PURE__*/external_react_default.
|
|
790
|
+
}, childrenCleaned)), this.state.panelsBottomCount > 0 && /*#__PURE__*/external_react_default().createElement(StyledBottom, {
|
|
894
791
|
style: {
|
|
895
792
|
width: this.state.innerWidth
|
|
896
793
|
},
|
|
@@ -900,76 +797,19 @@ var Concertina_Concertina = /*#__PURE__*/function (_Component) {
|
|
|
900
797
|
}]);
|
|
901
798
|
|
|
902
799
|
return Concertina;
|
|
903
|
-
}(
|
|
904
|
-
|
|
905
|
-
Concertina_defineProperty(Concertina_Concertina, "propTypes", Concertina_propTypes);
|
|
906
|
-
|
|
907
|
-
Concertina_defineProperty(Concertina_Concertina, "defaultProps", Concertina_defaultProps);
|
|
908
|
-
|
|
909
|
-
Concertina_defineProperty(Concertina_Concertina, "Panel", Concertina_Panel);
|
|
910
|
-
|
|
911
|
-
/* harmony default export */ var src_Concertina_Concertina = (Concertina_Concertina);
|
|
912
|
-
|
|
913
|
-
// CONCATENATED MODULE: ./src/Concertina/index.ts
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
/***/ }),
|
|
918
|
-
|
|
919
|
-
/***/ 2:
|
|
920
|
-
/***/ (function(module, exports) {
|
|
921
|
-
|
|
922
|
-
module.exports = require("react");
|
|
923
|
-
|
|
924
|
-
/***/ }),
|
|
925
|
-
|
|
926
|
-
/***/ 3:
|
|
927
|
-
/***/ (function(module, exports) {
|
|
928
|
-
|
|
929
|
-
module.exports = require("styled-components");
|
|
930
|
-
|
|
931
|
-
/***/ }),
|
|
932
|
-
|
|
933
|
-
/***/ 31:
|
|
934
|
-
/***/ (function(module, exports) {
|
|
935
|
-
|
|
936
|
-
module.exports = require("lodash/throttle");
|
|
937
|
-
|
|
938
|
-
/***/ }),
|
|
939
|
-
|
|
940
|
-
/***/ 5:
|
|
941
|
-
/***/ (function(module, exports) {
|
|
942
|
-
|
|
943
|
-
module.exports = require("lodash/omit");
|
|
944
|
-
|
|
945
|
-
/***/ }),
|
|
946
|
-
|
|
947
|
-
/***/ 6:
|
|
948
|
-
/***/ (function(module, exports) {
|
|
949
|
-
|
|
950
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
951
|
-
|
|
952
|
-
/***/ }),
|
|
953
|
-
|
|
954
|
-
/***/ 66:
|
|
955
|
-
/***/ (function(module, exports) {
|
|
956
|
-
|
|
957
|
-
module.exports = require("lodash/debounce");
|
|
958
|
-
|
|
959
|
-
/***/ }),
|
|
800
|
+
}(external_react_namespaceObject.Component);
|
|
960
801
|
|
|
961
|
-
|
|
962
|
-
/***/ (function(module, exports) {
|
|
802
|
+
Concertina_defineProperty(Concertina, "propTypes", Concertina_propTypes);
|
|
963
803
|
|
|
964
|
-
|
|
804
|
+
Concertina_defineProperty(Concertina, "defaultProps", Concertina_defaultProps);
|
|
965
805
|
|
|
966
|
-
|
|
806
|
+
Concertina_defineProperty(Concertina, "Panel", Concertina_Panel);
|
|
967
807
|
|
|
968
|
-
|
|
969
|
-
/***/ (function(module, exports) {
|
|
808
|
+
/* harmony default export */ const Concertina_Concertina = (Concertina);
|
|
970
809
|
|
|
971
|
-
|
|
810
|
+
;// CONCATENATED MODULE: ./src/Concertina/index.ts
|
|
972
811
|
|
|
973
|
-
/***/ })
|
|
974
812
|
|
|
975
|
-
|
|
813
|
+
module.exports = __webpack_exports__;
|
|
814
|
+
/******/ })()
|
|
815
|
+
;
|