@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.
Files changed (114) hide show
  1. package/Accordion.js +114 -230
  2. package/Anchor.js +74 -150
  3. package/Animation.js +52 -124
  4. package/AnimationToggle.js +86 -146
  5. package/Box.js +77 -153
  6. package/Breadcrumbs.d.ts +2 -0
  7. package/Breadcrumbs.js +207 -0
  8. package/Button.js +168 -316
  9. package/ButtonGroup.js +84 -168
  10. package/ButtonSimple.js +224 -324
  11. package/CHANGELOG.md +35 -0
  12. package/Calendar.js +264 -462
  13. package/Card.js +223 -371
  14. package/CardLayout.js +87 -163
  15. package/Chip.js +199 -323
  16. package/Clickable.js +132 -248
  17. package/CloseButton.js +92 -200
  18. package/Code.js +188 -251
  19. package/CollapsiblePanel.js +214 -370
  20. package/Color.js +267 -495
  21. package/ColumnLayout.js +152 -254
  22. package/ComboBox.js +197 -371
  23. package/Concertina.js +214 -374
  24. package/ControlGroup.js +164 -288
  25. package/Date.js +154 -304
  26. package/DefinitionList.js +104 -180
  27. package/Divider.js +80 -156
  28. package/Dropdown.js +121 -263
  29. package/DualListbox.js +408 -601
  30. package/EventListener.js +70 -138
  31. package/File.js +343 -547
  32. package/FormRows.js +232 -414
  33. package/Heading.js +94 -164
  34. package/Image.js +167 -323
  35. package/JSONTree.js +166 -314
  36. package/Layer.js +221 -388
  37. package/Link.js +133 -239
  38. package/List.js +85 -161
  39. package/Markdown.js +230 -355
  40. package/Menu.js +396 -647
  41. package/Message.js +248 -437
  42. package/MessageBar.js +220 -408
  43. package/Modal.js +201 -365
  44. package/ModalLayer.js +96 -196
  45. package/Monogram.js +112 -204
  46. package/Multiselect.js +2675 -2807
  47. package/Number.js +178 -334
  48. package/Paginator.js +170 -336
  49. package/Paragraph.js +77 -153
  50. package/Popover.js +436 -623
  51. package/Progress.js +139 -255
  52. package/RadioBar.js +156 -280
  53. package/RadioList.js +182 -282
  54. package/Resize.js +173 -307
  55. package/ResultsMenu.js +183 -304
  56. package/ScreenReaderContent.js +75 -151
  57. package/Scroll.js +125 -267
  58. package/ScrollContainerContext.js +129 -201
  59. package/Search.js +188 -354
  60. package/Select.js +1243 -1248
  61. package/SidePanel.js +106 -214
  62. package/Slider.js +198 -348
  63. package/SlidingPanels.js +138 -280
  64. package/SplitButton.js +141 -273
  65. package/StaticContent.js +84 -168
  66. package/StepBar.js +138 -246
  67. package/Switch.js +261 -385
  68. package/TabBar.js +261 -398
  69. package/TabLayout.js +122 -238
  70. package/Table.js +975 -1447
  71. package/Text.js +335 -549
  72. package/TextArea.js +315 -537
  73. package/Tooltip.js +152 -292
  74. package/TransitionOpen.js +118 -242
  75. package/Typography.js +81 -157
  76. package/WaitSpinner.js +117 -209
  77. package/package.json +20 -21
  78. package/stubs-splunkui.d.ts +4 -1
  79. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
  80. package/types/src/Breadcrumbs/Item.d.ts +42 -0
  81. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
  82. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
  83. package/types/src/Breadcrumbs/index.d.ts +2 -0
  84. package/types/src/Code/Code.d.ts +1 -1
  85. package/types/src/ComboBox/Option.d.ts +1 -1
  86. package/types/src/Concertina/Concertina.d.ts +4 -0
  87. package/types/src/Link/Link.d.ts +12 -3
  88. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
  89. package/types/src/Markdown/Markdown.d.ts +1 -1
  90. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  91. package/types/src/Menu/Item.d.ts +1 -1
  92. package/types/src/Menu/Menu.d.ts +1 -0
  93. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
  94. package/types/src/Multiselect/Compact.d.ts +4 -0
  95. package/types/src/Multiselect/Multiselect.d.ts +5 -0
  96. package/types/src/Multiselect/Option.d.ts +1 -1
  97. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
  98. package/types/src/Search/Option.d.ts +1 -1
  99. package/types/src/Select/Option.d.ts +1 -1
  100. package/types/src/Select/OptionBase.d.ts +1 -1
  101. package/types/src/Select/SelectAllOption.d.ts +14 -0
  102. package/types/src/Select/SelectBase.d.ts +11 -3
  103. package/types/src/Table/Table.d.ts +4 -0
  104. package/types/src/Text/Text.d.ts +3 -3
  105. package/types/src/TextArea/TextArea.d.ts +3 -3
  106. package/types/src/fixtures/FetchOptions.d.ts +2 -8
  107. package/useForceUpdate.js +46 -110
  108. package/useKeyPress.js +50 -107
  109. package/usePrevious.js +47 -111
  110. package/useRovingFocus.js +53 -133
  111. package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
  112. package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
  113. /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
  114. /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Paginator.js CHANGED
@@ -1,223 +1,148 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
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
+ /******/ }
28
+ /******/ };
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 });
18
44
  /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
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 = 183);
86
- /******/ })
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
- /***/ 147:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("@splunk/react-icons/DotsThreeHorizontal");
108
-
109
- /***/ }),
110
-
111
- /***/ 183:
112
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
-
114
- "use strict";
48
+ var __webpack_exports__ = {};
115
49
  // ESM COMPAT FLAG
116
50
  __webpack_require__.r(__webpack_exports__);
117
51
 
118
52
  // EXPORTS
119
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ Paginator_Paginator; });
120
-
121
- // EXTERNAL MODULE: external "react"
122
- var external_react_ = __webpack_require__(2);
123
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
124
-
125
- // EXTERNAL MODULE: external "prop-types"
126
- var external_prop_types_ = __webpack_require__(1);
127
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
128
-
129
- // EXTERNAL MODULE: external "@splunk/react-ui/Box"
130
- var Box_ = __webpack_require__(6);
131
- var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
132
-
133
- // EXTERNAL MODULE: external "@splunk/themes"
134
- var themes_ = __webpack_require__(0);
135
-
136
- // EXTERNAL MODULE: external "@splunk/ui-utils/format"
137
- var format_ = __webpack_require__(28);
138
-
139
- // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
140
- var i18n_ = __webpack_require__(4);
141
-
142
- // EXTERNAL MODULE: external "@splunk/react-icons/DotsThreeHorizontal"
143
- var DotsThreeHorizontal_ = __webpack_require__(147);
144
- var DotsThreeHorizontal_default = /*#__PURE__*/__webpack_require__.n(DotsThreeHorizontal_);
145
-
146
- // EXTERNAL MODULE: external "styled-components"
147
- var external_styled_components_ = __webpack_require__(3);
148
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
149
-
150
- // CONCATENATED MODULE: ./src/Paginator/PageSeparatorStyles.ts
151
-
152
-
153
- var StyledEllipsisWrapper = external_styled_components_default.a.span.withConfig({
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* reexport */ Paginator_Paginator)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: external "prop-types"
61
+ const external_prop_types_namespaceObject = require("prop-types");
62
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
63
+ ;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
64
+ const Box_namespaceObject = require("@splunk/react-ui/Box");
65
+ var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
66
+ ;// CONCATENATED MODULE: external "@splunk/themes"
67
+ const themes_namespaceObject = require("@splunk/themes");
68
+ ;// CONCATENATED MODULE: external "@splunk/ui-utils/format"
69
+ const format_namespaceObject = require("@splunk/ui-utils/format");
70
+ ;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
71
+ const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
72
+ ;// CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeHorizontal"
73
+ const DotsThreeHorizontal_namespaceObject = require("@splunk/react-icons/DotsThreeHorizontal");
74
+ var DotsThreeHorizontal_default = /*#__PURE__*/__webpack_require__.n(DotsThreeHorizontal_namespaceObject);
75
+ ;// CONCATENATED MODULE: external "styled-components"
76
+ const external_styled_components_namespaceObject = require("styled-components");
77
+ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
78
+ ;// CONCATENATED MODULE: ./src/Paginator/PageSeparatorStyles.ts
79
+
80
+
81
+ var StyledEllipsisWrapper = external_styled_components_default().span.withConfig({
154
82
  displayName: "PageSeparatorStyles__StyledEllipsisWrapper",
155
83
  componentId: "j50fqf-0"
156
- })(["display:flex;align-items:center;margin:", ";color:", ";"], Object(themes_["pick"])({
84
+ })(["display:flex;align-items:center;margin:", ";color:", ";"], (0,themes_namespaceObject.pick)({
157
85
  enterprise: '0px 11px',
158
86
  prisma: '0px 20px'
159
- }), themes_["variables"].contentColorActive);
87
+ }), themes_namespaceObject.variables.contentColorActive);
160
88
 
161
- // CONCATENATED MODULE: ./src/Paginator/PageSeparator.tsx
89
+ ;// CONCATENATED MODULE: ./src/Paginator/PageSeparator.tsx
162
90
 
163
91
 
164
92
 
165
93
 
166
94
 
167
95
  function PageSeparator() {
168
- var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
96
+ var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
169
97
  family = _useSplunkTheme.family;
170
98
 
171
- var content = family === 'enterprise' ? /*#__PURE__*/external_react_default.a.createElement("span", {
99
+ var content = family === 'enterprise' ? /*#__PURE__*/external_react_default().createElement("span", {
172
100
  role: "separator"
173
- }, "\u2026") : /*#__PURE__*/external_react_default.a.createElement(DotsThreeHorizontal_default.a, null);
174
- return /*#__PURE__*/external_react_default.a.createElement(StyledEllipsisWrapper, {
101
+ }, "\u2026") : /*#__PURE__*/external_react_default().createElement((DotsThreeHorizontal_default()), null);
102
+ return /*#__PURE__*/external_react_default().createElement(StyledEllipsisWrapper, {
175
103
  role: "separator"
176
104
  }, content);
177
105
  }
178
106
 
179
- /* harmony default export */ var Paginator_PageSeparator = (PageSeparator);
180
- // EXTERNAL MODULE: external "lodash/keys"
181
- var keys_ = __webpack_require__(9);
182
- var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
183
-
184
- // EXTERNAL MODULE: external "lodash/omit"
185
- var omit_ = __webpack_require__(5);
186
- var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
187
-
188
- // EXTERNAL MODULE: external "@splunk/react-ui/ButtonSimple"
189
- var ButtonSimple_ = __webpack_require__(62);
190
- var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
107
+ /* harmony default export */ const Paginator_PageSeparator = (PageSeparator);
108
+ ;// CONCATENATED MODULE: external "lodash/keys"
109
+ const keys_namespaceObject = require("lodash/keys");
110
+ var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
111
+ ;// CONCATENATED MODULE: external "lodash/omit"
112
+ const omit_namespaceObject = require("lodash/omit");
113
+ var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
114
+ ;// CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
115
+ const ButtonSimple_namespaceObject = require("@splunk/react-ui/ButtonSimple");
116
+ var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_namespaceObject);
117
+ ;// CONCATENATED MODULE: ./src/Paginator/ButtonStyles.ts
191
118
 
192
- // CONCATENATED MODULE: ./src/Paginator/ButtonStyles.ts
193
119
 
194
120
 
195
-
196
- var StyledButtonSimple = external_styled_components_default()(ButtonSimple_default.a).withConfig({
121
+ var StyledButtonSimple = external_styled_components_default()((ButtonSimple_default())).withConfig({
197
122
  displayName: "ButtonStyles__StyledButtonSimple",
198
123
  componentId: "sc-1neztq7-0"
199
- })(["min-width:", ";min-height:", ";text-align:center;flex-shrink:0;", ""], themes_["variables"].inputHeight, themes_["variables"].inputHeight, Object(themes_["pick"])({
124
+ })(["min-width:", ";min-height:", ";text-align:center;flex-shrink:0;", ""], themes_namespaceObject.variables.inputHeight, themes_namespaceObject.variables.inputHeight, (0,themes_namespaceObject.pick)({
200
125
  enterprise: {
201
- comfortable: Object(external_styled_components_["css"])(["padding:", ";"], themes_["variables"].spacingQuarter),
202
- compact: Object(external_styled_components_["css"])(["padding:3px;"])
126
+ comfortable: (0,external_styled_components_namespaceObject.css)(["padding:", ";"], themes_namespaceObject.variables.spacingQuarter),
127
+ compact: (0,external_styled_components_namespaceObject.css)(["padding:3px;"])
203
128
  },
204
- prisma: Object(external_styled_components_["css"])(["padding:", ";", " & + &{margin-left:8px;}"], Object(themes_["pick"])({
129
+ prisma: (0,external_styled_components_namespaceObject.css)(["padding:", ";", " & + &{margin-left:8px;}"], (0,themes_namespaceObject.pick)({
205
130
  comfortable: '5px 8px',
206
131
  compact: '4px'
207
132
  }), function (_ref) {
208
133
  var selected = _ref.selected;
209
- return selected && Object(external_styled_components_["css"])(["font-weight:", ";"], themes_["variables"].fontWeightBold);
134
+ return selected && (0,external_styled_components_namespaceObject.css)(["font-weight:", ";"], themes_namespaceObject.variables.fontWeightBold);
210
135
  })
211
136
  }));
212
- var StyledPrevNext = external_styled_components_default.a.div.withConfig({
137
+ var StyledPrevNext = external_styled_components_default().div.withConfig({
213
138
  displayName: "ButtonStyles__StyledPrevNext",
214
139
  componentId: "sc-1neztq7-1"
215
- })(["padding:", ";white-space:nowrap;"], Object(themes_["pick"])({
140
+ })(["padding:", ";white-space:nowrap;"], (0,themes_namespaceObject.pick)({
216
141
  enterprise: '0 3px',
217
142
  prisma: '0 8px'
218
143
  }));
219
144
 
220
- // CONCATENATED MODULE: ./src/Paginator/Button.tsx
145
+ ;// CONCATENATED MODULE: ./src/Paginator/Button.tsx
221
146
  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); }
222
147
 
223
148
  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); }
@@ -250,19 +175,19 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
250
175
 
251
176
 
252
177
  var propTypes = {
253
- children: external_prop_types_default.a.node,
254
- label: external_prop_types_default.a.node,
255
- onClick: external_prop_types_default.a.func,
256
- page: external_prop_types_default.a.number,
178
+ children: (external_prop_types_default()).node,
179
+ label: (external_prop_types_default()).node,
180
+ onClick: (external_prop_types_default()).func,
181
+ page: (external_prop_types_default()).number,
257
182
 
258
183
  /** @private */
259
- selected: external_prop_types_default.a.bool
184
+ selected: (external_prop_types_default()).bool
260
185
  };
261
186
  var defaultProps = {
262
187
  selected: false
263
188
  };
264
189
 
265
- var Button_PaginatorButton = /*#__PURE__*/function (_Component) {
190
+ var PaginatorButton = /*#__PURE__*/function (_Component) {
266
191
  _inherits(PaginatorButton, _Component);
267
192
 
268
193
  var _super = _createSuper(PaginatorButton);
@@ -299,80 +224,76 @@ var Button_PaginatorButton = /*#__PURE__*/function (_Component) {
299
224
  label = _this$props2.label,
300
225
  page = _this$props2.page,
301
226
  selected = _this$props2.selected;
302
- return /*#__PURE__*/external_react_default.a.createElement(StyledButtonSimple, _extends({
227
+ return /*#__PURE__*/external_react_default().createElement(StyledButtonSimple, _extends({
303
228
  "data-test": "page",
304
229
  "data-test-page": page,
305
230
  appearance: "pill",
306
231
  onClick: page !== undefined ? this.handleClick : undefined,
307
232
  inline: false,
308
233
  selected: selected
309
- }, omit_default()(this.props, keys_default()(PaginatorButton.propTypes))), label, children && /*#__PURE__*/external_react_default.a.createElement(StyledPrevNext, null, children));
234
+ }, omit_default()(this.props, keys_default()(PaginatorButton.propTypes))), label, children && /*#__PURE__*/external_react_default().createElement(StyledPrevNext, null, children));
310
235
  }
311
236
  }]);
312
237
 
313
238
  return PaginatorButton;
314
- }(external_react_["Component"]);
315
-
316
- _defineProperty(Button_PaginatorButton, "propTypes", propTypes);
317
-
318
- _defineProperty(Button_PaginatorButton, "defaultProps", defaultProps);
319
-
320
- /* harmony default export */ var Button = (Button_PaginatorButton);
321
- // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ChevronLeft"
322
- var ChevronLeft_ = __webpack_require__(64);
323
- var ChevronLeft_default = /*#__PURE__*/__webpack_require__.n(ChevronLeft_);
324
-
325
- // EXTERNAL MODULE: external "@splunk/react-icons/ChevronLeft"
326
- var react_icons_ChevronLeft_ = __webpack_require__(84);
327
- var react_icons_ChevronLeft_default = /*#__PURE__*/__webpack_require__.n(react_icons_ChevronLeft_);
239
+ }(external_react_namespaceObject.Component);
328
240
 
329
- // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
330
- var ChevronRight_ = __webpack_require__(35);
331
- var ChevronRight_default = /*#__PURE__*/__webpack_require__.n(ChevronRight_);
241
+ _defineProperty(PaginatorButton, "propTypes", propTypes);
332
242
 
333
- // EXTERNAL MODULE: external "@splunk/react-icons/ChevronRight"
334
- var react_icons_ChevronRight_ = __webpack_require__(43);
335
- var react_icons_ChevronRight_default = /*#__PURE__*/__webpack_require__.n(react_icons_ChevronRight_);
243
+ _defineProperty(PaginatorButton, "defaultProps", defaultProps);
336
244
 
337
- // CONCATENATED MODULE: ./src/Paginator/PaginatorStyles.ts
245
+ /* harmony default export */ const Button = (PaginatorButton);
246
+ ;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronLeft"
247
+ const ChevronLeft_namespaceObject = require("@splunk/react-icons/enterprise/ChevronLeft");
248
+ var ChevronLeft_default = /*#__PURE__*/__webpack_require__.n(ChevronLeft_namespaceObject);
249
+ ;// CONCATENATED MODULE: external "@splunk/react-icons/ChevronLeft"
250
+ const react_icons_ChevronLeft_namespaceObject = require("@splunk/react-icons/ChevronLeft");
251
+ var react_icons_ChevronLeft_default = /*#__PURE__*/__webpack_require__.n(react_icons_ChevronLeft_namespaceObject);
252
+ ;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
253
+ const ChevronRight_namespaceObject = require("@splunk/react-icons/enterprise/ChevronRight");
254
+ var ChevronRight_default = /*#__PURE__*/__webpack_require__.n(ChevronRight_namespaceObject);
255
+ ;// CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
256
+ const react_icons_ChevronRight_namespaceObject = require("@splunk/react-icons/ChevronRight");
257
+ var react_icons_ChevronRight_default = /*#__PURE__*/__webpack_require__.n(react_icons_ChevronRight_namespaceObject);
258
+ ;// CONCATENATED MODULE: ./src/Paginator/PaginatorStyles.ts
338
259
 
339
260
 
340
261
 
341
262
 
342
263
 
343
264
 
344
- var StyledEnterpriseChevronLeftIcon = external_styled_components_default()(ChevronLeft_default.a).withConfig({
265
+ var StyledEnterpriseChevronLeftIcon = external_styled_components_default()((ChevronLeft_default())).withConfig({
345
266
  displayName: "PaginatorStyles__StyledEnterpriseChevronLeftIcon",
346
267
  componentId: "pmabsp-0"
347
268
  })(["margin:-1px 3px 0 0;"]);
348
- var StyledEnterpriseChevronRightIcon = external_styled_components_default()(ChevronRight_default.a).withConfig({
269
+ var StyledEnterpriseChevronRightIcon = external_styled_components_default()((ChevronRight_default())).withConfig({
349
270
  displayName: "PaginatorStyles__StyledEnterpriseChevronRightIcon",
350
271
  componentId: "pmabsp-1"
351
272
  })(["margin:-1px 0 0 3px;"]);
352
- var compact = Object(external_styled_components_["css"])(["height:20px;width:20px;"]);
353
- var comfortable = Object(external_styled_components_["css"])(["height:24px;width:24px;"]);
354
- var StyledChevronLeftIcon = external_styled_components_default()(react_icons_ChevronLeft_default.a).withConfig({
273
+ var compact = (0,external_styled_components_namespaceObject.css)(["height:20px;width:20px;"]);
274
+ var comfortable = (0,external_styled_components_namespaceObject.css)(["height:24px;width:24px;"]);
275
+ var StyledChevronLeftIcon = external_styled_components_default()((react_icons_ChevronLeft_default())).withConfig({
355
276
  displayName: "PaginatorStyles__StyledChevronLeftIcon",
356
277
  componentId: "pmabsp-2"
357
278
  })(["margin:-2px 6px 0 0;color:", ";", ""], function (_ref) {
358
279
  var $disabled = _ref.$disabled;
359
- return $disabled ? themes_["variables"].contentColorDisabled : themes_["variables"].contentColorMuted;
360
- }, Object(themes_["pick"])({
280
+ return $disabled ? themes_namespaceObject.variables.contentColorDisabled : themes_namespaceObject.variables.contentColorMuted;
281
+ }, (0,themes_namespaceObject.pick)({
361
282
  compact: compact,
362
283
  comfortable: comfortable
363
284
  }));
364
- var StyledChevronRightIcon = external_styled_components_default()(react_icons_ChevronRight_default.a).withConfig({
285
+ var StyledChevronRightIcon = external_styled_components_default()((react_icons_ChevronRight_default())).withConfig({
365
286
  displayName: "PaginatorStyles__StyledChevronRightIcon",
366
287
  componentId: "pmabsp-3"
367
288
  })(["margin:-2px 0 0 6px;color:", ";", ""], function (_ref2) {
368
289
  var $disabled = _ref2.$disabled;
369
- return $disabled ? themes_["variables"].contentColorDisabled : themes_["variables"].contentColorMuted;
370
- }, Object(themes_["pick"])({
290
+ return $disabled ? themes_namespaceObject.variables.contentColorDisabled : themes_namespaceObject.variables.contentColorMuted;
291
+ }, (0,themes_namespaceObject.pick)({
371
292
  compact: compact,
372
293
  comfortable: comfortable
373
294
  }));
374
295
 
375
- // CONCATENATED MODULE: ./src/Paginator/Paginator.tsx
296
+ ;// CONCATENATED MODULE: ./src/Paginator/Paginator.tsx
376
297
  function Paginator_extends() { Paginator_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 Paginator_extends.apply(this, arguments); }
377
298
 
378
299
  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; }
@@ -389,12 +310,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
389
310
 
390
311
 
391
312
  var Paginator_propTypes = {
392
- alwaysShowLastPageLink: external_prop_types_default.a.bool,
393
- current: external_prop_types_default.a.number,
394
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
395
- numPageLinks: external_prop_types_default.a.number,
396
- onChange: external_prop_types_default.a.func,
397
- totalPages: external_prop_types_default.a.number
313
+ alwaysShowLastPageLink: (external_prop_types_default()).bool,
314
+ current: (external_prop_types_default()).number,
315
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
316
+ numPageLinks: (external_prop_types_default()).number,
317
+ onChange: (external_prop_types_default()).func,
318
+ totalPages: (external_prop_types_default()).number
398
319
  };
399
320
 
400
321
  function Paginator(_ref) {
@@ -409,7 +330,7 @@ function Paginator(_ref) {
409
330
  otherProps = _objectWithoutProperties(_ref, ["onChange", "current", "alwaysShowLastPageLink", "numPageLinks", "totalPages"]);
410
331
 
411
332
  // @docs-props-type PaginatorPropsBase
412
- var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
333
+ var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
413
334
  isEnterprise = _useSplunkTheme.isEnterprise; // Can't show more links than total number of pages.
414
335
 
415
336
 
@@ -422,9 +343,7 @@ function Paginator(_ref) {
422
343
  return null;
423
344
  }
424
345
 
425
- if ((current > totalPages || current < 1) && process.env.NODE_ENV !== "production") {
426
- throw new Error('Error in Paginator: Current page is out of bounds');
427
- }
346
+ if ((current > totalPages || current < 1) && process.env.NODE_ENV !== "production") {}
428
347
 
429
348
  var firstPage;
430
349
  var lastPage;
@@ -444,29 +363,29 @@ function Paginator(_ref) {
444
363
 
445
364
 
446
365
  lastPage = alwaysShowLastPageLink && lastPage + 1 === totalPages ? totalPages : lastPage;
447
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
366
+ pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
448
367
  "data-test": "prev",
449
368
  disabled: current === 1,
450
369
  onClick: onChange,
451
370
  page: current - 1,
452
371
  key: "prev",
453
- "aria-label": Object(i18n_["_"])('Go to previous page')
454
- }, isEnterprise ? /*#__PURE__*/external_react_default.a.createElement(StyledEnterpriseChevronLeftIcon, {
372
+ "aria-label": (0,i18n_namespaceObject._)('Go to previous page')
373
+ }, isEnterprise ? /*#__PURE__*/external_react_default().createElement(StyledEnterpriseChevronLeftIcon, {
455
374
  hideDefaultTooltip: true,
456
375
  screenReaderText: null
457
- }) : /*#__PURE__*/external_react_default.a.createElement(StyledChevronLeftIcon, {
376
+ }) : /*#__PURE__*/external_react_default().createElement(StyledChevronLeftIcon, {
458
377
  $disabled: current === 1
459
- }), Object(i18n_["_"])('Prev')));
378
+ }), (0,i18n_namespaceObject._)('Prev')));
460
379
 
461
380
  if (current > loMid && totalPages > numLinks && firstPage !== 1) {
462
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
381
+ pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
463
382
  label: "1",
464
383
  key: "first",
465
384
  onClick: onChange,
466
385
  page: 1,
467
- "aria-label": Object(i18n_["_"])('Go to first page')
386
+ "aria-label": (0,i18n_namespaceObject._)('Go to first page')
468
387
  }));
469
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Paginator_PageSeparator, {
388
+ pages.push( /*#__PURE__*/external_react_default().createElement(Paginator_PageSeparator, {
470
389
  "data-test": "page",
471
390
  key: "prevEllipsis"
472
391
  }));
@@ -474,149 +393,64 @@ function Paginator(_ref) {
474
393
 
475
394
  for (var i = firstPage; i <= lastPage; i += 1) {
476
395
  var isCurrent = i === current;
477
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
396
+ pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
478
397
  label: String(i),
479
398
  selected: isCurrent,
480
399
  onClick: onChange,
481
400
  page: i,
482
401
  key: i,
483
- "aria-label": isCurrent ? Object(i18n_["_"])('Current page') : Object(format_["sprintf"])(Object(i18n_["_"])('Go to page %(pageNumber)d'), {
402
+ "aria-label": isCurrent ? (0,i18n_namespaceObject._)('Current page') : (0,format_namespaceObject.sprintf)((0,i18n_namespaceObject._)('Go to page %(pageNumber)d'), {
484
403
  pageNumber: i
485
404
  })
486
405
  }));
487
406
  }
488
407
 
489
408
  if (current <= hiMid && totalPages > numLinks && lastPage !== totalPages) {
490
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Paginator_PageSeparator, {
409
+ pages.push( /*#__PURE__*/external_react_default().createElement(Paginator_PageSeparator, {
491
410
  "data-test": "page",
492
411
  key: "nextEllipsis"
493
412
  }));
494
413
 
495
414
  if (alwaysShowLastPageLink) {
496
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
415
+ pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
497
416
  "data-test": "last",
498
417
  label: String(totalPages),
499
418
  key: "last",
500
419
  onClick: onChange,
501
420
  page: totalPages,
502
- "aria-label": Object(i18n_["_"])('Go to last page')
421
+ "aria-label": (0,i18n_namespaceObject._)('Go to last page')
503
422
  }));
504
423
  }
505
424
  }
506
425
 
507
- pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
426
+ pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
508
427
  "data-test": "next",
509
428
  disabled: current === totalPages,
510
429
  onClick: onChange,
511
430
  page: current + 1,
512
431
  key: "next",
513
- "aria-label": Object(i18n_["_"])('Go to next page')
514
- }, Object(i18n_["_"])('Next'), isEnterprise ? /*#__PURE__*/external_react_default.a.createElement(StyledEnterpriseChevronRightIcon, {
432
+ "aria-label": (0,i18n_namespaceObject._)('Go to next page')
433
+ }, (0,i18n_namespaceObject._)('Next'), isEnterprise ? /*#__PURE__*/external_react_default().createElement(StyledEnterpriseChevronRightIcon, {
515
434
  hideDefaultTooltip: true,
516
435
  screenReaderText: null
517
- }) : /*#__PURE__*/external_react_default.a.createElement(StyledChevronRightIcon, {
436
+ }) : /*#__PURE__*/external_react_default().createElement(StyledChevronRightIcon, {
518
437
  $disabled: current === totalPages
519
438
  })));
520
- return /*#__PURE__*/external_react_default.a.createElement(Box_default.a, Paginator_extends({
439
+ return /*#__PURE__*/external_react_default().createElement((Box_default()), Paginator_extends({
521
440
  "data-test": "paginator",
522
441
  "data-test-current": current,
523
442
  flex: true,
524
443
  inline: true,
525
444
  role: "navigation",
526
- "aria-label": Object(i18n_["_"])('Pagination navigation')
445
+ "aria-label": (0,i18n_namespaceObject._)('Pagination navigation')
527
446
  }, otherProps), pages);
528
447
  }
529
448
 
530
449
  Paginator.propTypes = Paginator_propTypes;
531
- /* harmony default export */ var Paginator_Paginator = (Paginator);
532
- // CONCATENATED MODULE: ./src/Paginator/index.ts
533
-
534
-
535
-
536
- /***/ }),
537
-
538
- /***/ 2:
539
- /***/ (function(module, exports) {
540
-
541
- module.exports = require("react");
542
-
543
- /***/ }),
544
-
545
- /***/ 28:
546
- /***/ (function(module, exports) {
547
-
548
- module.exports = require("@splunk/ui-utils/format");
549
-
550
- /***/ }),
551
-
552
- /***/ 3:
553
- /***/ (function(module, exports) {
554
-
555
- module.exports = require("styled-components");
556
-
557
- /***/ }),
558
-
559
- /***/ 35:
560
- /***/ (function(module, exports) {
561
-
562
- module.exports = require("@splunk/react-icons/enterprise/ChevronRight");
563
-
564
- /***/ }),
565
-
566
- /***/ 4:
567
- /***/ (function(module, exports) {
568
-
569
- module.exports = require("@splunk/ui-utils/i18n");
570
-
571
- /***/ }),
572
-
573
- /***/ 43:
574
- /***/ (function(module, exports) {
575
-
576
- module.exports = require("@splunk/react-icons/ChevronRight");
577
-
578
- /***/ }),
579
-
580
- /***/ 5:
581
- /***/ (function(module, exports) {
582
-
583
- module.exports = require("lodash/omit");
584
-
585
- /***/ }),
586
-
587
- /***/ 6:
588
- /***/ (function(module, exports) {
589
-
590
- module.exports = require("@splunk/react-ui/Box");
591
-
592
- /***/ }),
593
-
594
- /***/ 62:
595
- /***/ (function(module, exports) {
596
-
597
- module.exports = require("@splunk/react-ui/ButtonSimple");
598
-
599
- /***/ }),
600
-
601
- /***/ 64:
602
- /***/ (function(module, exports) {
603
-
604
- module.exports = require("@splunk/react-icons/enterprise/ChevronLeft");
605
-
606
- /***/ }),
607
-
608
- /***/ 84:
609
- /***/ (function(module, exports) {
610
-
611
- module.exports = require("@splunk/react-icons/ChevronLeft");
612
-
613
- /***/ }),
614
-
615
- /***/ 9:
616
- /***/ (function(module, exports) {
617
-
618
- module.exports = require("lodash/keys");
450
+ /* harmony default export */ const Paginator_Paginator = (Paginator);
451
+ ;// CONCATENATED MODULE: ./src/Paginator/index.ts
619
452
 
620
- /***/ })
621
453
 
622
- /******/ });
454
+ module.exports = __webpack_exports__;
455
+ /******/ })()
456
+ ;