@splunk/react-ui 4.21.0 → 4.22.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 (92) hide show
  1. package/Accordion.js +425 -325
  2. package/Anchor.js +147 -117
  3. package/Animation.js +142 -94
  4. package/AnimationToggle.js +197 -193
  5. package/Box.js +145 -118
  6. package/Breadcrumbs.js +288 -206
  7. package/Button.js +488 -465
  8. package/ButtonGroup.js +160 -128
  9. package/ButtonSimple.js +543 -462
  10. package/CHANGELOG.md +24 -3
  11. package/Calendar.js +1111 -1001
  12. package/Card.js +771 -598
  13. package/CardLayout.js +205 -147
  14. package/Chip.js +509 -488
  15. package/Clickable.js +414 -352
  16. package/CloseButton.js +165 -142
  17. package/Code.js +1807 -2084
  18. package/CollapsiblePanel.js +586 -519
  19. package/Color.js +1068 -1068
  20. package/ColumnLayout.js +402 -363
  21. package/ComboBox.js +903 -794
  22. package/Concertina.js +997 -802
  23. package/ControlGroup.js +687 -594
  24. package/Date.js +567 -547
  25. package/DefinitionList.js +308 -234
  26. package/Divider.js +149 -118
  27. package/Dropdown.js +459 -416
  28. package/DualListbox.js +1479 -1541
  29. package/EventListener.js +94 -97
  30. package/File.js +1051 -969
  31. package/FormRows.js +883 -696
  32. package/Heading.js +216 -193
  33. package/Image.js +446 -402
  34. package/JSONTree.js +690 -551
  35. package/Layer.js +437 -410
  36. package/Link.js +336 -255
  37. package/List.js +213 -161
  38. package/Markdown.js +509 -487
  39. package/Menu.js +1104 -1056
  40. package/Message.js +475 -441
  41. package/MessageBar.js +387 -373
  42. package/Modal.js +810 -634
  43. package/ModalLayer.js +326 -243
  44. package/Monogram.js +308 -276
  45. package/Multiselect.js +3564 -3364
  46. package/Number.js +729 -687
  47. package/Paginator.js +510 -449
  48. package/Paragraph.js +145 -112
  49. package/Popover.js +1459 -1432
  50. package/Progress.js +301 -246
  51. package/RadioBar.js +634 -527
  52. package/RadioList.js +483 -444
  53. package/Resize.js +530 -489
  54. package/ResultsMenu.js +479 -455
  55. package/ScreenReaderContent.js +142 -111
  56. package/Scroll.js +595 -456
  57. package/ScrollContainerContext.js +197 -206
  58. package/Search.js +756 -650
  59. package/Select.js +2446 -2345
  60. package/SidePanel.js +390 -284
  61. package/Slider.js +680 -676
  62. package/SlidingPanels.js +639 -503
  63. package/SplitButton.js +464 -367
  64. package/StaticContent.js +161 -133
  65. package/StepBar.js +386 -358
  66. package/Switch.js +710 -640
  67. package/TabBar.js +741 -680
  68. package/TabLayout.js +406 -322
  69. package/Table.js +4974 -4616
  70. package/Text.js +1170 -1138
  71. package/TextArea.js +1102 -1090
  72. package/Tooltip.js +624 -581
  73. package/TransitionOpen.js +489 -422
  74. package/Typography.js +176 -153
  75. package/WaitSpinner.js +230 -206
  76. package/package.json +7 -7
  77. package/types/src/Color/Color.d.ts +0 -1
  78. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  79. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  80. package/types/src/RadioBar/RadioBar.d.ts +1 -0
  81. package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
  82. package/types/src/Select/docs/examples/Icons.d.ts +1 -9
  83. package/types/src/Slider/Slider.d.ts +1 -0
  84. package/types/src/TabBar/Tab.d.ts +10 -1
  85. package/types/src/TabBar/TabBar.d.ts +4 -2
  86. package/types/src/Table/Head.d.ts +7 -3
  87. package/types/src/Table/Table.d.ts +3 -2
  88. package/types/src/Table/TableContext.d.ts +2 -0
  89. package/useForceUpdate.js +112 -82
  90. package/useKeyPress.js +74 -71
  91. package/usePrevious.js +65 -65
  92. package/useRovingFocus.js +122 -138
package/Paginator.js CHANGED
@@ -1,456 +1,517 @@
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 });
44
- /******/ };
45
- /******/ })();
46
- /******/
47
- /************************************************************************/
48
- var __webpack_exports__ = {};
49
- // ESM COMPAT FLAG
50
- __webpack_require__.r(__webpack_exports__);
51
-
52
- // EXPORTS
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({
82
- displayName: "PageSeparatorStyles__StyledEllipsisWrapper",
83
- componentId: "j50fqf-0"
84
- })(["display:flex;align-items:center;margin:", ";color:", ";"], (0,themes_namespaceObject.pick)({
85
- enterprise: '0px 11px',
86
- prisma: '0px 20px'
87
- }), themes_namespaceObject.variables.contentColorActive);
88
-
89
- ;// CONCATENATED MODULE: ./src/Paginator/PageSeparator.tsx
90
-
91
-
92
-
93
-
94
-
95
- function PageSeparator() {
96
- var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
97
- family = _useSplunkTheme.family;
98
-
99
- var content = family === 'enterprise' ? /*#__PURE__*/external_react_default().createElement("span", {
100
- role: "separator"
101
- }, "\u2026") : /*#__PURE__*/external_react_default().createElement((DotsThreeHorizontal_default()), null);
102
- return /*#__PURE__*/external_react_default().createElement(StyledEllipsisWrapper, {
103
- role: "separator"
104
- }, content);
105
- }
106
-
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
118
-
119
-
120
-
121
- var StyledButtonSimple = external_styled_components_default()((ButtonSimple_default())).withConfig({
122
- displayName: "ButtonStyles__StyledButtonSimple",
123
- componentId: "sc-1neztq7-0"
124
- })(["min-width:", ";min-height:", ";text-align:center;flex-shrink:0;", ""], themes_namespaceObject.variables.inputHeight, themes_namespaceObject.variables.inputHeight, (0,themes_namespaceObject.pick)({
125
- enterprise: {
126
- comfortable: (0,external_styled_components_namespaceObject.css)(["padding:", ";"], themes_namespaceObject.variables.spacingQuarter),
127
- compact: (0,external_styled_components_namespaceObject.css)(["padding:3px;"])
128
- },
129
- prisma: (0,external_styled_components_namespaceObject.css)(["padding:", ";", " & + &{margin-left:8px;}"], (0,themes_namespaceObject.pick)({
130
- comfortable: '5px 8px',
131
- compact: '4px'
132
- }), function (_ref) {
133
- var selected = _ref.selected;
134
- return selected && (0,external_styled_components_namespaceObject.css)(["font-weight:", ";"], themes_namespaceObject.variables.fontWeightBold);
135
- })
136
- }));
137
- var StyledPrevNext = external_styled_components_default().div.withConfig({
138
- displayName: "ButtonStyles__StyledPrevNext",
139
- componentId: "sc-1neztq7-1"
140
- })(["padding:", ";white-space:nowrap;"], (0,themes_namespaceObject.pick)({
141
- enterprise: '0 3px',
142
- prisma: '0 8px'
143
- }));
144
-
145
- ;// CONCATENATED MODULE: ./src/Paginator/Button.tsx
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); }
147
-
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); }
149
-
150
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
151
-
152
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
153
-
154
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
155
-
156
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
157
-
158
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
159
-
160
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
161
-
162
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
163
-
164
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
165
-
166
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
167
-
168
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
169
-
170
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
171
-
172
-
173
-
174
-
175
-
176
-
177
- var propTypes = {
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,
182
-
183
- /** @private */
184
- selected: (external_prop_types_default()).bool
185
- };
186
- var defaultProps = {
187
- selected: false
188
- };
189
-
190
- var PaginatorButton = /*#__PURE__*/function (_Component) {
191
- _inherits(PaginatorButton, _Component);
192
-
193
- var _super = _createSuper(PaginatorButton);
194
-
195
- function PaginatorButton() {
196
- var _this;
197
-
198
- _classCallCheck(this, PaginatorButton);
199
-
200
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
201
- args[_key] = arguments[_key];
202
- }
203
-
204
- _this = _super.call.apply(_super, [this].concat(args));
205
-
206
- _defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
207
- var _this$props = _this.props,
208
- onClick = _this$props.onClick,
209
- page = _this$props.page;
210
- onClick === null || onClick === void 0 ? void 0 : onClick(e, {
211
- // @ts-expect-error - guaranteed by onClick on StyleButtonSimple below
212
- page: page
213
- });
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = t => {
12
+ /******/ var r = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
+ /******/;
16
+ e.d(r, {
17
+ a: r
18
+ });
19
+ /******/ return r;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (t, r) => {
27
+ /******/ for (var n in r) {
28
+ /******/ if (e.o(r, n) && !e.o(t, n)) {
29
+ /******/ Object.defineProperty(t, n, {
30
+ enumerable: true,
31
+ get: r[n]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var t = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(t);
62
+ // EXPORTS
63
+ e.d(t, {
64
+ default: () => /* reexport */ se
214
65
  });
215
-
216
- return _this;
217
- }
218
-
219
- _createClass(PaginatorButton, [{
220
- key: "render",
221
- value: function render() {
222
- var _this$props2 = this.props,
223
- children = _this$props2.children,
224
- label = _this$props2.label,
225
- page = _this$props2.page,
226
- selected = _this$props2.selected;
227
- return /*#__PURE__*/external_react_default().createElement(StyledButtonSimple, _extends({
228
- "data-test": "page",
229
- "data-test-page": page,
230
- appearance: "pill",
231
- onClick: page !== undefined ? this.handleClick : undefined,
232
- inline: false,
233
- selected: selected
234
- }, omit_default()(this.props, keys_default()(PaginatorButton.propTypes))), label, children && /*#__PURE__*/external_react_default().createElement(StyledPrevNext, null, children));
66
+ // CONCATENATED MODULE: external "react"
67
+ const r = require("react");
68
+ var n = e.n(r);
69
+ // CONCATENATED MODULE: external "prop-types"
70
+ const a = require("prop-types");
71
+ var o = e.n(a);
72
+ // CONCATENATED MODULE: external "@splunk/react-ui/Box"
73
+ const i = require("@splunk/react-ui/Box");
74
+ var l = e.n(i);
75
+ // CONCATENATED MODULE: external "@splunk/themes"
76
+ const s = require("@splunk/themes");
77
+ // CONCATENATED MODULE: external "@splunk/ui-utils/format"
78
+ const c = require("@splunk/ui-utils/format");
79
+ // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
80
+ const p = require("@splunk/ui-utils/i18n");
81
+ // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeHorizontal"
82
+ const u = require("@splunk/react-icons/DotsThreeHorizontal");
83
+ var f = e.n(u);
84
+ // CONCATENATED MODULE: external "styled-components"
85
+ const d = require("styled-components");
86
+ var v = e.n(d);
87
+ // CONCATENATED MODULE: ./src/Paginator/PageSeparatorStyles.ts
88
+ var y = v().span.withConfig({
89
+ displayName: "PageSeparatorStyles__StyledEllipsisWrapper",
90
+ componentId: "j50fqf-0"
91
+ })([ "display:flex;align-items:center;margin:", ";color:", ";" ], (0, s.pick)({
92
+ enterprise: "0px 11px",
93
+ prisma: "0px 20px"
94
+ }), s.variables.contentColorActive);
95
+ // CONCATENATED MODULE: ./src/Paginator/PageSeparator.tsx
96
+ function m() {
97
+ var e = (0, s.useSplunkTheme)(), t = e.family;
98
+ var r = t === "enterprise" ? n().createElement("span", {
99
+ role: "separator"
100
+ }, "…") : n().createElement(f(), null);
101
+
102
+ return n().createElement(y, {
103
+ role: "separator"
104
+ }, r);
235
105
  }
236
- }]);
237
-
238
- return PaginatorButton;
239
- }(external_react_namespaceObject.Component);
240
-
241
- _defineProperty(PaginatorButton, "propTypes", propTypes);
242
-
243
- _defineProperty(PaginatorButton, "defaultProps", defaultProps);
244
-
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
259
-
260
-
261
-
262
-
263
-
264
-
265
- var StyledEnterpriseChevronLeftIcon = external_styled_components_default()((ChevronLeft_default())).withConfig({
266
- displayName: "PaginatorStyles__StyledEnterpriseChevronLeftIcon",
267
- componentId: "pmabsp-0"
268
- })(["margin:-1px 3px 0 0;"]);
269
- var StyledEnterpriseChevronRightIcon = external_styled_components_default()((ChevronRight_default())).withConfig({
270
- displayName: "PaginatorStyles__StyledEnterpriseChevronRightIcon",
271
- componentId: "pmabsp-1"
272
- })(["margin:-1px 0 0 3px;"]);
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({
276
- displayName: "PaginatorStyles__StyledChevronLeftIcon",
277
- componentId: "pmabsp-2"
278
- })(["margin:-2px 6px 0 0;color:", ";", ""], function (_ref) {
279
- var $disabled = _ref.$disabled;
280
- return $disabled ? themes_namespaceObject.variables.contentColorDisabled : themes_namespaceObject.variables.contentColorMuted;
281
- }, (0,themes_namespaceObject.pick)({
282
- compact: compact,
283
- comfortable: comfortable
284
- }));
285
- var StyledChevronRightIcon = external_styled_components_default()((react_icons_ChevronRight_default())).withConfig({
286
- displayName: "PaginatorStyles__StyledChevronRightIcon",
287
- componentId: "pmabsp-3"
288
- })(["margin:-2px 0 0 6px;color:", ";", ""], function (_ref2) {
289
- var $disabled = _ref2.$disabled;
290
- return $disabled ? themes_namespaceObject.variables.contentColorDisabled : themes_namespaceObject.variables.contentColorMuted;
291
- }, (0,themes_namespaceObject.pick)({
292
- compact: compact,
293
- comfortable: comfortable
294
- }));
295
-
296
- ;// CONCATENATED MODULE: ./src/Paginator/Paginator.tsx
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); }
298
-
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; }
300
-
301
- 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; }
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
- var Paginator_propTypes = {
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
319
- };
320
-
321
- function Paginator(_ref) {
322
- var onChange = _ref.onChange,
323
- _ref$current = _ref.current,
324
- current = _ref$current === void 0 ? 1 : _ref$current,
325
- _ref$alwaysShowLastPa = _ref.alwaysShowLastPageLink,
326
- alwaysShowLastPageLink = _ref$alwaysShowLastPa === void 0 ? false : _ref$alwaysShowLastPa,
327
- _ref$numPageLinks = _ref.numPageLinks,
328
- numPageLinks = _ref$numPageLinks === void 0 ? 5 : _ref$numPageLinks,
329
- totalPages = _ref.totalPages,
330
- otherProps = _objectWithoutProperties(_ref, ["onChange", "current", "alwaysShowLastPageLink", "numPageLinks", "totalPages"]);
331
-
332
- // @docs-props-type PaginatorPropsBase
333
- var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
334
- isEnterprise = _useSplunkTheme.isEnterprise; // Can't show more links than total number of pages.
335
-
336
-
337
- var numLinks = Math.min(numPageLinks, totalPages);
338
- var loMid = Math.ceil(numLinks / 2);
339
- var hiMid = Math.ceil(totalPages - numLinks / 2);
340
- var pages = [];
341
-
342
- if (totalPages <= 1) {
343
- return null;
344
- }
345
-
346
- if ((current > totalPages || current < 1) && process.env.NODE_ENV !== "production") {}
347
-
348
- var firstPage;
349
- var lastPage;
350
-
351
- if (current <= loMid + 1) {
352
- // + 1 to avoid ellipsis between 1 and 2
353
- firstPage = 1;
354
- lastPage = firstPage + Math.min(totalPages, numLinks) - 1;
355
- } else if (current > loMid && current < hiMid) {
356
- lastPage = Math.ceil(current + (numLinks - 2) / 2);
357
- firstPage = lastPage - numLinks + 2;
358
- } else {
359
- // include page #1 to avoid ellipsis between 1 and 2
360
- firstPage = totalPages - numLinks === 1 ? 1 : totalPages - numLinks + 1;
361
- lastPage = totalPages;
362
- } // bump up the last page to avoid ellipsis
363
-
364
-
365
- lastPage = alwaysShowLastPageLink && lastPage + 1 === totalPages ? totalPages : lastPage;
366
- pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
367
- "data-test": "prev",
368
- disabled: current === 1,
369
- onClick: onChange,
370
- page: current - 1,
371
- key: "prev",
372
- "aria-label": (0,i18n_namespaceObject._)('Go to previous page')
373
- }, isEnterprise ? /*#__PURE__*/external_react_default().createElement(StyledEnterpriseChevronLeftIcon, {
374
- hideDefaultTooltip: true,
375
- screenReaderText: null
376
- }) : /*#__PURE__*/external_react_default().createElement(StyledChevronLeftIcon, {
377
- $disabled: current === 1
378
- }), (0,i18n_namespaceObject._)('Prev')));
379
-
380
- if (current > loMid && totalPages > numLinks && firstPage !== 1) {
381
- pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
382
- label: "1",
383
- key: "first",
384
- onClick: onChange,
385
- page: 1,
386
- "aria-label": (0,i18n_namespaceObject._)('Go to first page')
106
+ /* harmony default export */ const g = m;
107
+ // CONCATENATED MODULE: external "lodash/keys"
108
+ const b = require("lodash/keys");
109
+ var h = e.n(b);
110
+ // CONCATENATED MODULE: external "lodash/omit"
111
+ const k = require("lodash/omit");
112
+ var x = e.n(k);
113
+ // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
114
+ const S = require("@splunk/react-ui/ButtonSimple");
115
+ var C = e.n(S);
116
+ // CONCATENATED MODULE: ./src/Paginator/ButtonStyles.ts
117
+ var _ = v()(C()).withConfig({
118
+ displayName: "ButtonStyles__StyledButtonSimple",
119
+ componentId: "sc-1neztq7-0"
120
+ })([ "min-width:", ";min-height:", ";text-align:center;flex-shrink:0;", "" ], s.variables.inputHeight, s.variables.inputHeight, (0,
121
+ s.pick)({
122
+ enterprise: {
123
+ comfortable: (0, d.css)([ "padding:", ";" ], s.variables.spacingQuarter),
124
+ compact: (0, d.css)([ "padding:3px;" ])
125
+ },
126
+ prisma: (0, d.css)([ "padding:", ";", " & + &{margin-left:8px;}" ], (0, s.pick)({
127
+ comfortable: "5px 8px",
128
+ compact: "4px"
129
+ }), (function(e) {
130
+ var t = e.selected;
131
+ return t && (0, d.css)([ "font-weight:", ";" ], s.variables.fontWeightBold);
132
+ }))
387
133
  }));
388
- pages.push( /*#__PURE__*/external_react_default().createElement(Paginator_PageSeparator, {
389
- "data-test": "page",
390
- key: "prevEllipsis"
134
+ var w = v().div.withConfig({
135
+ displayName: "ButtonStyles__StyledPrevNext",
136
+ componentId: "sc-1neztq7-1"
137
+ })([ "padding:", ";white-space:nowrap;" ], (0, s.pick)({
138
+ enterprise: "0 3px",
139
+ prisma: "0 8px"
391
140
  }));
392
- }
393
-
394
- for (var i = firstPage; i <= lastPage; i += 1) {
395
- var isCurrent = i === current;
396
- pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
397
- label: String(i),
398
- selected: isCurrent,
399
- onClick: onChange,
400
- page: i,
401
- key: i,
402
- "aria-label": isCurrent ? (0,i18n_namespaceObject._)('Current page') : (0,format_namespaceObject.sprintf)((0,i18n_namespaceObject._)('Go to page %(pageNumber)d'), {
403
- pageNumber: i
404
- })
141
+ // CONCATENATED MODULE: ./src/Paginator/Button.tsx
142
+ function P(e) {
143
+ "@babel/helpers - typeof";
144
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
145
+ P = function e(t) {
146
+ return typeof t;
147
+ };
148
+ } else {
149
+ P = function e(t) {
150
+ return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
151
+ };
152
+ }
153
+ return P(e);
154
+ }
155
+ function O() {
156
+ O = Object.assign || function(e) {
157
+ for (var t = 1; t < arguments.length; t++) {
158
+ var r = arguments[t];
159
+ for (var n in r) {
160
+ if (Object.prototype.hasOwnProperty.call(r, n)) {
161
+ e[n] = r[n];
162
+ }
163
+ }
164
+ }
165
+ return e;
166
+ };
167
+ return O.apply(this, arguments);
168
+ }
169
+ function E(e, t) {
170
+ if (!(e instanceof t)) {
171
+ throw new TypeError("Cannot call a class as a function");
172
+ }
173
+ }
174
+ function j(e, t) {
175
+ for (var r = 0; r < t.length; r++) {
176
+ var n = t[r];
177
+ n.enumerable = n.enumerable || false;
178
+ n.configurable = true;
179
+ if ("value" in n) n.writable = true;
180
+ Object.defineProperty(e, n.key, n);
181
+ }
182
+ }
183
+ function q(e, t, r) {
184
+ if (t) j(e.prototype, t);
185
+ if (r) j(e, r);
186
+ return e;
187
+ }
188
+ function T(e, t) {
189
+ if (typeof t !== "function" && t !== null) {
190
+ throw new TypeError("Super expression must either be null or a function");
191
+ }
192
+ e.prototype = Object.create(t && t.prototype, {
193
+ constructor: {
194
+ value: e,
195
+ writable: true,
196
+ configurable: true
197
+ }
198
+ });
199
+ if (t) L(e, t);
200
+ }
201
+ function L(e, t) {
202
+ L = Object.setPrototypeOf || function e(t, r) {
203
+ t.__proto__ = r;
204
+ return t;
205
+ };
206
+ return L(e, t);
207
+ }
208
+ function N(e) {
209
+ var t = M();
210
+ return function r() {
211
+ var n = D(e), a;
212
+ if (t) {
213
+ var o = D(this).constructor;
214
+ a = Reflect.construct(n, arguments, o);
215
+ } else {
216
+ a = n.apply(this, arguments);
217
+ }
218
+ return R(this, a);
219
+ };
220
+ }
221
+ function R(e, t) {
222
+ if (t && (P(t) === "object" || typeof t === "function")) {
223
+ return t;
224
+ }
225
+ return I(e);
226
+ }
227
+ function I(e) {
228
+ if (e === void 0) {
229
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
230
+ }
231
+ return e;
232
+ }
233
+ function M() {
234
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
235
+ if (Reflect.construct.sham) return false;
236
+ if (typeof Proxy === "function") return true;
237
+ try {
238
+ Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
239
+ return true;
240
+ } catch (e) {
241
+ return false;
242
+ }
243
+ }
244
+ function D(e) {
245
+ D = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
246
+ return t.__proto__ || Object.getPrototypeOf(t);
247
+ };
248
+ return D(e);
249
+ }
250
+ function B(e, t, r) {
251
+ if (t in e) {
252
+ Object.defineProperty(e, t, {
253
+ value: r,
254
+ enumerable: true,
255
+ configurable: true,
256
+ writable: true
257
+ });
258
+ } else {
259
+ e[t] = r;
260
+ }
261
+ return e;
262
+ }
263
+ var G = {
264
+ children: o().node,
265
+ label: o().node,
266
+ onClick: o().func,
267
+ page: o().number,
268
+ /** @private */
269
+ selected: o().bool
270
+ };
271
+ var $ = {
272
+ selected: false
273
+ };
274
+ var z = function(e) {
275
+ T(r, e);
276
+ var t = N(r);
277
+ function r() {
278
+ var e;
279
+ E(this, r);
280
+ for (var n = arguments.length, a = new Array(n), o = 0; o < n; o++) {
281
+ a[o] = arguments[o];
282
+ }
283
+ e = t.call.apply(t, [ this ].concat(a));
284
+ B(I(e), "handleClick", (function(t) {
285
+ var r = e.props, n = r.onClick, a = r.page;
286
+ n === null || n === void 0 ? void 0 : n(t, {
287
+ // @ts-expect-error - guaranteed by onClick on StyleButtonSimple below
288
+ page: a
289
+ });
290
+ }));
291
+ return e;
292
+ }
293
+ q(r, [ {
294
+ key: "render",
295
+ value: function e() {
296
+ var t = this.props, a = t.children, o = t.label, i = t.page, l = t.selected;
297
+
298
+ return n().createElement(_, O({
299
+ "data-test": "page",
300
+ "data-test-page": i,
301
+ appearance: "pill",
302
+ onClick: i !== undefined ? this.handleClick : undefined,
303
+ inline: false,
304
+ selected: l
305
+ }, x()(this.props, h()(r.propTypes))), o, a && n().createElement(w, null, a));
306
+ }
307
+ } ]);
308
+ return r;
309
+ }(r.Component);
310
+ B(z, "propTypes", G);
311
+ B(z, "defaultProps", $);
312
+ /* harmony default export */ const H = z;
313
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronLeft"
314
+ const A = require("@splunk/react-icons/enterprise/ChevronLeft");
315
+ var W = e.n(A);
316
+ // CONCATENATED MODULE: external "@splunk/react-icons/ChevronLeft"
317
+ const Q = require("@splunk/react-icons/ChevronLeft");
318
+ var V = e.n(Q);
319
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
320
+ const F = require("@splunk/react-icons/enterprise/ChevronRight");
321
+ var J = e.n(F);
322
+ // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
323
+ const K = require("@splunk/react-icons/ChevronRight");
324
+ var U = e.n(K);
325
+ // CONCATENATED MODULE: ./src/Paginator/PaginatorStyles.ts
326
+ var X = v()(W()).withConfig({
327
+ displayName: "PaginatorStyles__StyledEnterpriseChevronLeftIcon",
328
+ componentId: "pmabsp-0"
329
+ })([ "margin:-1px 3px 0 0;" ]);
330
+ var Y = v()(J()).withConfig({
331
+ displayName: "PaginatorStyles__StyledEnterpriseChevronRightIcon",
332
+ componentId: "pmabsp-1"
333
+ })([ "margin:-1px 0 0 3px;" ]);
334
+ var Z = (0, d.css)([ "height:20px;width:20px;" ]);
335
+ var ee = (0, d.css)([ "height:24px;width:24px;" ]);
336
+ var te = v()(V()).withConfig({
337
+ displayName: "PaginatorStyles__StyledChevronLeftIcon",
338
+ componentId: "pmabsp-2"
339
+ })([ "margin:-2px 6px 0 0;color:", ";", "" ], (function(e) {
340
+ var t = e.$disabled;
341
+ return t ? s.variables.contentColorDisabled : s.variables.contentColorMuted;
342
+ }), (0, s.pick)({
343
+ compact: Z,
344
+ comfortable: ee
405
345
  }));
406
- }
407
-
408
- if (current <= hiMid && totalPages > numLinks && lastPage !== totalPages) {
409
- pages.push( /*#__PURE__*/external_react_default().createElement(Paginator_PageSeparator, {
410
- "data-test": "page",
411
- key: "nextEllipsis"
346
+ var re = v()(U()).withConfig({
347
+ displayName: "PaginatorStyles__StyledChevronRightIcon",
348
+ componentId: "pmabsp-3"
349
+ })([ "margin:-2px 0 0 6px;color:", ";", "" ], (function(e) {
350
+ var t = e.$disabled;
351
+ return t ? s.variables.contentColorDisabled : s.variables.contentColorMuted;
352
+ }), (0, s.pick)({
353
+ compact: Z,
354
+ comfortable: ee
412
355
  }));
413
-
414
- if (alwaysShowLastPageLink) {
415
- pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
416
- "data-test": "last",
417
- label: String(totalPages),
418
- key: "last",
419
- onClick: onChange,
420
- page: totalPages,
421
- "aria-label": (0,i18n_namespaceObject._)('Go to last page')
422
- }));
356
+ // CONCATENATED MODULE: ./src/Paginator/Paginator.tsx
357
+ function ne() {
358
+ ne = Object.assign || function(e) {
359
+ for (var t = 1; t < arguments.length; t++) {
360
+ var r = arguments[t];
361
+ for (var n in r) {
362
+ if (Object.prototype.hasOwnProperty.call(r, n)) {
363
+ e[n] = r[n];
364
+ }
365
+ }
366
+ }
367
+ return e;
368
+ };
369
+ return ne.apply(this, arguments);
370
+ }
371
+ function ae(e, t) {
372
+ if (e == null) return {};
373
+ var r = oe(e, t);
374
+ var n, a;
375
+ if (Object.getOwnPropertySymbols) {
376
+ var o = Object.getOwnPropertySymbols(e);
377
+ for (a = 0; a < o.length; a++) {
378
+ n = o[a];
379
+ if (t.indexOf(n) >= 0) continue;
380
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
381
+ r[n] = e[n];
382
+ }
383
+ }
384
+ return r;
385
+ }
386
+ function oe(e, t) {
387
+ if (e == null) return {};
388
+ var r = {};
389
+ var n = Object.keys(e);
390
+ var a, o;
391
+ for (o = 0; o < n.length; o++) {
392
+ a = n[o];
393
+ if (t.indexOf(a) >= 0) continue;
394
+ r[a] = e[a];
395
+ }
396
+ return r;
397
+ }
398
+ var ie = {
399
+ alwaysShowLastPageLink: o().bool,
400
+ current: o().number,
401
+ elementRef: o().oneOfType([ o().func, o().object ]),
402
+ numPageLinks: o().number,
403
+ onChange: o().func,
404
+ totalPages: o().number
405
+ };
406
+ function le(e) {
407
+ var t = e.onChange, r = e.current, a = r === void 0 ? 1 : r, o = e.alwaysShowLastPageLink, i = o === void 0 ? false : o, u = e.numPageLinks, f = u === void 0 ? 5 : u, d = e.totalPages, v = ae(e, [ "onChange", "current", "alwaysShowLastPageLink", "numPageLinks", "totalPages" ]);
408
+ // @docs-props-type PaginatorPropsBase
409
+ var y = (0, s.useSplunkTheme)(), m = y.isEnterprise;
410
+ // Can't show more links than total number of pages.
411
+ var b = Math.min(f, d);
412
+ var h = Math.ceil(b / 2);
413
+ var k = Math.ceil(d - b / 2);
414
+ var x = [];
415
+ if (d <= 1) {
416
+ return null;
417
+ }
418
+ if ((a > d || a < 1) && process.env.NODE_ENV !== "production") {}
419
+ var S;
420
+ var C;
421
+ if (a <= h + 1) {
422
+ // + 1 to avoid ellipsis between 1 and 2
423
+ S = 1;
424
+ C = S + Math.min(d, b) - 1;
425
+ } else if (a > h && a < k) {
426
+ C = Math.ceil(a + (b - 2) / 2);
427
+ S = C - b + 2;
428
+ } else {
429
+ // include page #1 to avoid ellipsis between 1 and 2
430
+ S = d - b === 1 ? 1 : d - b + 1;
431
+ C = d;
432
+ }
433
+ // bump up the last page to avoid ellipsis
434
+ C = i && C + 1 === d ? d : C;
435
+ x.push( n().createElement(H, {
436
+ "data-test": "prev",
437
+ disabled: a === 1,
438
+ onClick: t,
439
+ page: a - 1,
440
+ key: "prev",
441
+ "aria-label": (0, p._)("Go to previous page")
442
+ }, m ? n().createElement(X, {
443
+ hideDefaultTooltip: true,
444
+ screenReaderText: null
445
+ }) : n().createElement(te, {
446
+ $disabled: a === 1
447
+ }), (0, p._)("Prev")));
448
+ if (a > h && d > b && S !== 1) {
449
+ x.push( n().createElement(H, {
450
+ label: "1",
451
+ key: "first",
452
+ onClick: t,
453
+ page: 1,
454
+ "aria-label": (0, p._)("Go to first page")
455
+ }));
456
+ x.push( n().createElement(g, {
457
+ "data-test": "page",
458
+ key: "prevEllipsis"
459
+ }));
460
+ }
461
+ for (var _ = S; _ <= C; _ += 1) {
462
+ var w = _ === a;
463
+ x.push( n().createElement(H, {
464
+ label: String(_),
465
+ selected: w,
466
+ onClick: t,
467
+ page: _,
468
+ key: _,
469
+ "aria-label": w ? (0, p._)("Current page") : (0, c.sprintf)((0, p._)("Go to page %(pageNumber)d"), {
470
+ pageNumber: _
471
+ })
472
+ }));
473
+ }
474
+ if (a <= k && d > b && C !== d) {
475
+ x.push( n().createElement(g, {
476
+ "data-test": "page",
477
+ key: "nextEllipsis"
478
+ }));
479
+ if (i) {
480
+ x.push( n().createElement(H, {
481
+ "data-test": "last",
482
+ label: String(d),
483
+ key: "last",
484
+ onClick: t,
485
+ page: d,
486
+ "aria-label": (0, p._)("Go to last page")
487
+ }));
488
+ }
489
+ }
490
+ x.push( n().createElement(H, {
491
+ "data-test": "next",
492
+ disabled: a === d,
493
+ onClick: t,
494
+ page: a + 1,
495
+ key: "next",
496
+ "aria-label": (0, p._)("Go to next page")
497
+ }, (0, p._)("Next"), m ? n().createElement(Y, {
498
+ hideDefaultTooltip: true,
499
+ screenReaderText: null
500
+ }) : n().createElement(re, {
501
+ $disabled: a === d
502
+ })));
503
+
504
+ return n().createElement(l(), ne({
505
+ "data-test": "paginator",
506
+ "data-test-current": a,
507
+ flex: true,
508
+ inline: true,
509
+ role: "navigation",
510
+ "aria-label": (0, p._)("Pagination navigation")
511
+ }, v), x);
423
512
  }
424
- }
425
-
426
- pages.push( /*#__PURE__*/external_react_default().createElement(Button, {
427
- "data-test": "next",
428
- disabled: current === totalPages,
429
- onClick: onChange,
430
- page: current + 1,
431
- key: "next",
432
- "aria-label": (0,i18n_namespaceObject._)('Go to next page')
433
- }, (0,i18n_namespaceObject._)('Next'), isEnterprise ? /*#__PURE__*/external_react_default().createElement(StyledEnterpriseChevronRightIcon, {
434
- hideDefaultTooltip: true,
435
- screenReaderText: null
436
- }) : /*#__PURE__*/external_react_default().createElement(StyledChevronRightIcon, {
437
- $disabled: current === totalPages
438
- })));
439
- return /*#__PURE__*/external_react_default().createElement((Box_default()), Paginator_extends({
440
- "data-test": "paginator",
441
- "data-test-current": current,
442
- flex: true,
443
- inline: true,
444
- role: "navigation",
445
- "aria-label": (0,i18n_namespaceObject._)('Pagination navigation')
446
- }, otherProps), pages);
447
- }
448
-
449
- Paginator.propTypes = Paginator_propTypes;
450
- /* harmony default export */ const Paginator_Paginator = (Paginator);
451
- ;// CONCATENATED MODULE: ./src/Paginator/index.ts
452
-
453
-
454
- module.exports = __webpack_exports__;
455
- /******/ })()
456
- ;
513
+ le.propTypes = ie;
514
+ /* harmony default export */ const se = le;
515
+ // CONCATENATED MODULE: ./src/Paginator/index.ts
516
+ module.exports = t;
517
+ /******/})();