@splunk/react-ui 4.1.0 → 4.4.1
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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +26 -35
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +22 -22
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +12 -6
- package/CHANGELOG.md +69 -2
- package/Calendar.js +23 -23
- package/Card.js +15 -15
- package/CardLayout.js +2 -2
- package/Chip.js +13 -13
- package/Clickable.js +4 -4
- package/CloseButton.js +8 -8
- package/Code.js +1279 -1120
- package/CollapsiblePanel.js +11 -11
- package/Color.js +111 -172
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +63 -30
- package/Concertina.js +2 -2
- package/ControlGroup.js +61 -20
- package/Date.js +66 -29
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/FetchOptions.js +8 -8
- package/File.js +87 -72
- package/FormRows.js +219 -331
- package/Heading.js +2 -2
- package/Image.js +15 -15
- package/JSONTree.js +63 -20
- package/Layer.js +8 -8
- package/Link.js +13 -13
- package/List.js +2 -2
- package/Markdown.js +19 -19
- package/Menu.js +315 -230
- package/Message.js +19 -19
- package/Modal.js +22 -11
- package/ModalLayer.js +25 -11
- package/Monogram.js +7 -7
- package/Multiselect.js +1931 -1057
- package/Number.js +40 -27
- package/Paginator.js +67 -49
- package/Paragraph.js +2 -2
- package/Popover.js +62 -35
- package/Progress.js +9 -21
- package/RadioBar.js +6 -6
- package/RadioList.js +2 -2
- package/ResultsMenu.js +18 -10
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +37 -19
- package/ScrollContainerContext.js +2 -2
- package/Select.js +1309 -562
- package/SidePanel.js +22 -17
- package/Slider.js +8 -8
- package/SlidingPanels.js +63 -47
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +20 -11
- package/TabBar.js +54 -40
- package/TabLayout.js +4 -4
- package/Table.js +148 -85
- package/Text.js +474 -356
- package/Tooltip.js +6 -6
- package/TransitionOpen.js +26 -24
- package/WaitSpinner.js +4 -4
- package/package.json +8 -7
- package/stubs-splunkui.d.ts +1 -0
- package/types/src/Accordion/Accordion.d.ts +2 -2
- package/types/src/Animation/Animation.d.ts +6 -5
- package/types/src/Button/Button.d.ts +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Calendar/DateTable.d.ts +1 -0
- package/types/src/Calendar/MonthHeader.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -2
- package/types/src/Color/Color.d.ts +5 -4
- package/types/src/Color/Swatch.d.ts +4 -15
- package/types/src/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/ControlGroup/ControlGroup.d.ts +7 -2
- package/types/src/ControlGroup/ControlGroupContext.d.ts +15 -0
- package/types/src/Date/Date.d.ts +7 -5
- package/types/src/Date/Icon.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +1 -1
- package/types/src/File/File.d.ts +2 -2
- package/types/src/File/FileContext.d.ts +9 -0
- package/types/src/File/Icon.d.ts +1 -0
- package/types/src/File/IconCloud.d.ts +1 -0
- package/types/src/File/Item.d.ts +5 -10
- package/types/src/File/PaperClip.d.ts +1 -0
- package/types/src/File/Retry.d.ts +1 -0
- package/types/src/File/Trash.d.ts +1 -0
- package/types/src/FormRows/FormRows.d.ts +11 -69
- package/types/src/FormRows/FormRowsContext.d.ts +9 -0
- package/types/src/FormRows/Row.d.ts +7 -20
- package/types/src/JSONTree/JSONTree.d.ts +14 -2
- package/types/src/JSONTree/TreeNode.d.ts +4 -1
- package/types/src/Menu/Divider.d.ts +1 -0
- package/types/src/Menu/Heading.d.ts +3 -1
- package/types/src/Menu/Item.d.ts +22 -6
- package/types/src/Menu/Menu.d.ts +17 -18
- package/types/src/Menu/MenuContext.d.ts +6 -0
- package/types/src/Menu/index.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +7 -26
- package/types/src/Multiselect/Multiselect.d.ts +7 -2
- package/types/src/Multiselect/Normal.d.ts +8 -2
- package/types/src/Multiselect/Option.d.ts +4 -1
- package/types/src/Number/IncrementIcon.d.ts +1 -0
- package/types/src/Number/Number.d.ts +4 -4
- package/types/src/Paginator/PageSeparator.d.ts +3 -0
- package/types/src/Popover/Popover.d.ts +5 -5
- package/types/src/Popover/PopoverContext.d.ts +6 -0
- package/types/src/Popover/index.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -5
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +4 -0
- package/types/src/Scroll/Inner.d.ts +4 -3
- package/types/src/Scroll/Scroll.d.ts +1 -1
- package/types/src/Select/Option.d.ts +2 -5
- package/types/src/Select/OptionBase.d.ts +94 -0
- package/types/src/Select/Select.d.ts +12 -37
- package/types/src/Select/SelectBase.d.ts +221 -0
- package/types/src/SidePanel/SidePanel.d.ts +4 -0
- package/types/src/Slider/Slider.d.ts +4 -4
- package/types/src/SlidingPanels/SlidingPanels.d.ts +0 -1
- package/types/src/Switch/CheckIcon.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +3 -7
- package/types/src/TabBar/Tab.d.ts +4 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -2
- package/types/src/Table/DragHandle.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +2 -2
- package/types/src/Table/HeadDropdownCell.d.ts +1 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +1 -0
- package/types/src/Table/HeadInner.d.ts +3 -3
- package/types/src/Table/Table.d.ts +7 -3
- package/types/src/Table/Toggle.d.ts +1 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -0
- package/types/src/Text/IconOutlinedView.d.ts +1 -0
- package/types/src/Text/Text.d.ts +28 -12
- package/types/src/Tooltip/InfoIcon.d.ts +1 -0
- package/types/src/Tooltip/Tooltip.d.ts +3 -3
- package/types/src/icons/Alert.d.ts +1 -0
- package/types/src/icons/AlertFilled.d.ts +1 -0
- package/types/src/icons/CaretDown.d.ts +1 -0
- package/types/src/icons/CaretRight.d.ts +1 -0
- package/types/src/icons/Check.d.ts +1 -0
- package/types/src/icons/ChevronDown.d.ts +1 -0
- package/types/src/icons/ChevronLeft.d.ts +1 -0
- package/types/src/icons/ChevronRight.d.ts +1 -0
- package/types/src/icons/CrossMark.d.ts +1 -0
- package/types/src/icons/External.d.ts +1 -0
- package/types/src/icons/InfoFilled.d.ts +1 -0
- package/types/src/icons/More.d.ts +1 -0
- package/types/src/icons/MoreVertical.d.ts +1 -0
- package/types/src/icons/Plus.d.ts +1 -0
- package/types/src/icons/SVG.d.ts +1 -0
- package/types/src/icons/Search.d.ts +1 -0
- package/types/src/icons/SortedDown.d.ts +1 -0
- package/types/src/icons/SortedUp.d.ts +1 -0
- package/types/src/icons/Success.d.ts +1 -0
- package/types/src/icons/SuccessFilled.d.ts +1 -0
- package/types/src/icons/WarningFilled.d.ts +1 -0
- package/types/src/utils/types.d.ts +1 -0
package/Number.js
CHANGED
|
@@ -139,7 +139,7 @@ var keyboard_ = __webpack_require__(9);
|
|
|
139
139
|
var i18n_ = __webpack_require__(5);
|
|
140
140
|
|
|
141
141
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
142
|
-
var SVG_ = __webpack_require__(
|
|
142
|
+
var SVG_ = __webpack_require__(22);
|
|
143
143
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
144
144
|
|
|
145
145
|
// CONCATENATED MODULE: ./src/Number/IncrementIcon.tsx
|
|
@@ -162,7 +162,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
162
162
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
163
163
|
|
|
164
164
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
165
|
-
var Button_ = __webpack_require__(
|
|
165
|
+
var Button_ = __webpack_require__(16);
|
|
166
166
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
167
167
|
|
|
168
168
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
@@ -170,7 +170,7 @@ var Clickable_ = __webpack_require__(11);
|
|
|
170
170
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
173
|
-
var Text_ = __webpack_require__(
|
|
173
|
+
var Text_ = __webpack_require__(26);
|
|
174
174
|
var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
175
175
|
|
|
176
176
|
// CONCATENATED MODULE: ./src/Number/NumberStyles.ts
|
|
@@ -192,7 +192,7 @@ var StyledText = external_styled_components_default()(Text_default.a).withConfig
|
|
|
192
192
|
var StyledControls = external_styled_components_default.a.div.withConfig({
|
|
193
193
|
displayName: "NumberStyles__StyledControls",
|
|
194
194
|
componentId: "sc-2ekj9s-1"
|
|
195
|
-
})(["
|
|
195
|
+
})(["width:", ";height:100%;", " ", ""], Object(themes_["pick"])({
|
|
196
196
|
enterprise: {
|
|
197
197
|
comfortable: '20px',
|
|
198
198
|
compact: '16px'
|
|
@@ -201,18 +201,29 @@ var StyledControls = external_styled_components_default.a.div.withConfig({
|
|
|
201
201
|
comfortable: '24px',
|
|
202
202
|
compact: '24px'
|
|
203
203
|
}
|
|
204
|
+
}), Object(themes_["pick"])({
|
|
205
|
+
enterprise: Object(external_styled_components_["css"])(["transform:translateY(-1px);"]),
|
|
206
|
+
prisma: Object(external_styled_components_["css"])(["transform:translateX(1px);"])
|
|
204
207
|
}), function (_ref) {
|
|
205
208
|
var $isAppend = _ref.$isAppend;
|
|
206
|
-
return $isAppend ? Object(external_styled_components_["css"])(["
|
|
209
|
+
return $isAppend ? Object(external_styled_components_["css"])(["margin-right:8px;", ""], Object(themes_["pick"])({
|
|
210
|
+
prisma: Object(external_styled_components_["css"])(["transform:translateX(-1px);"])
|
|
211
|
+
})) : Object(external_styled_components_["css"])(["margin-left:8px;"]);
|
|
207
212
|
});
|
|
208
|
-
var incrementor = Object(external_styled_components_["css"])(["position:
|
|
213
|
+
var incrementor = Object(external_styled_components_["css"])(["position:relative;padding:3px;font-size:inherit;min-width:0;min-height:0;height:", ";width:100%;"], Object(themes_["pick"])({
|
|
214
|
+
enterprise: 'calc(50% + 1.5px)',
|
|
215
|
+
prisma: '50%'
|
|
216
|
+
}));
|
|
209
217
|
var StyledPlusButton = external_styled_components_default()(Button_default.a).withConfig({
|
|
210
218
|
displayName: "NumberStyles__StyledPlusButton",
|
|
211
219
|
componentId: "sc-2ekj9s-2"
|
|
212
220
|
})(["", ";top:0;border-bottom-left-radius:0;border-bottom-right-radius:0;", " &:not([disabled]){&,&:hover{", ";}}"], incrementor, function (_ref2) {
|
|
213
221
|
var append = _ref2.append;
|
|
214
222
|
return append && Object(themes_["pick"])({
|
|
215
|
-
enterprise:
|
|
223
|
+
enterprise: {
|
|
224
|
+
light: Object(external_styled_components_["css"])(["border-right:1px solid ", ";"], themes_["variables"].gray60),
|
|
225
|
+
dark: Object(external_styled_components_["css"])(["border-right:", ";"], themes_["variables"].border)
|
|
226
|
+
}
|
|
216
227
|
});
|
|
217
228
|
}, Object(themes_["pick"])({
|
|
218
229
|
enterprise: {
|
|
@@ -222,10 +233,13 @@ var StyledPlusButton = external_styled_components_default()(Button_default.a).wi
|
|
|
222
233
|
var StyledMinusButton = external_styled_components_default()(Button_default.a).withConfig({
|
|
223
234
|
displayName: "NumberStyles__StyledMinusButton",
|
|
224
235
|
componentId: "sc-2ekj9s-3"
|
|
225
|
-
})(["", ";bottom:
|
|
236
|
+
})(["", ";bottom:1px;border-top-left-radius:0;border-top-right-radius:0;", " &:not([disabled]){&,&:hover{", ";}}"], incrementor, function (_ref3) {
|
|
226
237
|
var append = _ref3.append;
|
|
227
238
|
return append && Object(themes_["pick"])({
|
|
228
|
-
enterprise:
|
|
239
|
+
enterprise: {
|
|
240
|
+
light: Object(external_styled_components_["css"])(["border-right:1px solid ", ";"], themes_["variables"].gray60),
|
|
241
|
+
dark: Object(external_styled_components_["css"])(["border-right:", ";"], themes_["variables"].border)
|
|
242
|
+
}
|
|
229
243
|
});
|
|
230
244
|
}, Object(themes_["pick"])({
|
|
231
245
|
enterprise: {
|
|
@@ -245,11 +259,11 @@ var prismaButton = external_styled_components_default()(Clickable_default.a).wit
|
|
|
245
259
|
var StyledPrismaPlusButton = external_styled_components_default()(prismaButton).withConfig({
|
|
246
260
|
displayName: "NumberStyles__StyledPrismaPlusButton",
|
|
247
261
|
componentId: "sc-2ekj9s-5"
|
|
248
|
-
})(["
|
|
262
|
+
})(["border-top-right-radius:4px;"]);
|
|
249
263
|
var StyledPrismaMinusButton = external_styled_components_default()(prismaButton).withConfig({
|
|
250
264
|
displayName: "NumberStyles__StyledPrismaMinusButton",
|
|
251
265
|
componentId: "sc-2ekj9s-6"
|
|
252
|
-
})(["
|
|
266
|
+
})(["border-bottom-right-radius:4px;padding-bottom:5px;"]);
|
|
253
267
|
|
|
254
268
|
// CONCATENATED MODULE: ./src/Number/Number.tsx
|
|
255
269
|
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); }
|
|
@@ -644,16 +658,9 @@ var Number_Number = /*#__PURE__*/function (_Component) {
|
|
|
644
658
|
min = _this$props4.min,
|
|
645
659
|
prepend = _this$props4.prepend,
|
|
646
660
|
splunkTheme = _this$props4.splunkTheme;
|
|
647
|
-
var family = splunkTheme.family
|
|
648
|
-
density = splunkTheme.density;
|
|
661
|
+
var family = splunkTheme.family;
|
|
649
662
|
var textProps = Object(external_lodash_["omit"])(this.props, ['defaultValue', 'hideStepButtons', 'max', 'min', 'roundTo', 'spellCheck', 'step']);
|
|
650
663
|
var isPrisma = family === 'prisma';
|
|
651
|
-
var padding = density === 'compact' ? '16px' : '20px';
|
|
652
|
-
var inputStyle = append && !prepend ? {
|
|
653
|
-
paddingLeft: padding
|
|
654
|
-
} : {
|
|
655
|
-
paddingRight: padding
|
|
656
|
-
};
|
|
657
664
|
var buttonProps = isPrisma ? {} : {
|
|
658
665
|
append: append,
|
|
659
666
|
prepend: !append,
|
|
@@ -693,6 +700,13 @@ var Number_Number = /*#__PURE__*/function (_Component) {
|
|
|
693
700
|
}, buttonProps);
|
|
694
701
|
|
|
695
702
|
var styledMinus = isPrisma ? /*#__PURE__*/external_react_default.a.createElement(StyledPrismaMinusButton, minusProps, minusIcon) : /*#__PURE__*/external_react_default.a.createElement(StyledMinusButton, minusProps, minusIcon);
|
|
703
|
+
var isAppend = append && !prepend;
|
|
704
|
+
var startAdornment = (!disabled || isPrisma) && isAppend && !hideStepButtons && /*#__PURE__*/external_react_default.a.createElement(StyledControls, {
|
|
705
|
+
$isAppend: isAppend
|
|
706
|
+
}, styledPlus, styledMinus);
|
|
707
|
+
var endAdornment = (!disabled || isPrisma) && !isAppend && !hideStepButtons && /*#__PURE__*/external_react_default.a.createElement(StyledControls, {
|
|
708
|
+
$isAppend: isAppend
|
|
709
|
+
}, styledPlus, styledMinus);
|
|
696
710
|
return /*#__PURE__*/external_react_default.a.createElement(StyledText, Number_extends({
|
|
697
711
|
autoCapitalize: "off",
|
|
698
712
|
autoComplete: "off",
|
|
@@ -704,7 +718,6 @@ var Number_Number = /*#__PURE__*/function (_Component) {
|
|
|
704
718
|
}
|
|
705
719
|
}, textProps, {
|
|
706
720
|
inline: inline,
|
|
707
|
-
inputStyle: !hideStepButtons ? inputStyle : undefined,
|
|
708
721
|
onChange: this.handleInputChange,
|
|
709
722
|
onBlur: this.handleInputBlur,
|
|
710
723
|
onKeyDown: this.handleKeyDown,
|
|
@@ -712,10 +725,10 @@ var Number_Number = /*#__PURE__*/function (_Component) {
|
|
|
712
725
|
value: this.state.stringValue,
|
|
713
726
|
"aria-describedby": describedBy,
|
|
714
727
|
error: error,
|
|
715
|
-
"data-test-value": value
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
728
|
+
"data-test-value": value,
|
|
729
|
+
startAdornment: startAdornment,
|
|
730
|
+
endAdornment: endAdornment
|
|
731
|
+
}));
|
|
719
732
|
}
|
|
720
733
|
}]);
|
|
721
734
|
|
|
@@ -749,7 +762,7 @@ NumberWithTheme.propTypes = Number_Number.propTypes;
|
|
|
749
762
|
|
|
750
763
|
/***/ }),
|
|
751
764
|
|
|
752
|
-
/***/
|
|
765
|
+
/***/ 16:
|
|
753
766
|
/***/ (function(module, exports) {
|
|
754
767
|
|
|
755
768
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -763,14 +776,14 @@ module.exports = require("react");
|
|
|
763
776
|
|
|
764
777
|
/***/ }),
|
|
765
778
|
|
|
766
|
-
/***/
|
|
779
|
+
/***/ 22:
|
|
767
780
|
/***/ (function(module, exports) {
|
|
768
781
|
|
|
769
782
|
module.exports = require("@splunk/react-icons/SVG");
|
|
770
783
|
|
|
771
784
|
/***/ }),
|
|
772
785
|
|
|
773
|
-
/***/
|
|
786
|
+
/***/ 26:
|
|
774
787
|
/***/ (function(module, exports) {
|
|
775
788
|
|
|
776
789
|
module.exports = require("@splunk/react-ui/Text");
|
package/Paginator.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 111);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 111:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -120,7 +120,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
120
120
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
121
121
|
|
|
122
122
|
// EXTERNAL MODULE: external "@splunk/ui-utils/format"
|
|
123
|
-
var format_ = __webpack_require__(
|
|
123
|
+
var format_ = __webpack_require__(41);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
126
126
|
var i18n_ = __webpack_require__(5);
|
|
@@ -133,7 +133,7 @@ var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
|
133
133
|
var themes_ = __webpack_require__(0);
|
|
134
134
|
|
|
135
135
|
// EXTERNAL MODULE: external "@splunk/react-icons/More"
|
|
136
|
-
var More_ = __webpack_require__(
|
|
136
|
+
var More_ = __webpack_require__(90);
|
|
137
137
|
var More_default = /*#__PURE__*/__webpack_require__.n(More_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -167,15 +167,49 @@ function More(props) {
|
|
|
167
167
|
Prisma24: Prisma24
|
|
168
168
|
}, props));
|
|
169
169
|
}
|
|
170
|
-
// EXTERNAL MODULE: external "lodash"
|
|
171
|
-
var external_lodash_ = __webpack_require__(4);
|
|
172
|
-
|
|
173
170
|
// EXTERNAL MODULE: external "styled-components"
|
|
174
171
|
var external_styled_components_ = __webpack_require__(3);
|
|
175
172
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
176
173
|
|
|
174
|
+
// CONCATENATED MODULE: ./src/Paginator/PageSeparatorStyles.ts
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
var StyledEllipsisWrapper = external_styled_components_default.a.span.withConfig({
|
|
178
|
+
displayName: "PageSeparatorStyles__StyledEllipsisWrapper",
|
|
179
|
+
componentId: "j50fqf-0"
|
|
180
|
+
})(["display:flex;align-items:center;margin:", ";color:", ";"], Object(themes_["pick"])({
|
|
181
|
+
enterprise: '0px 11px',
|
|
182
|
+
prisma: '0px 20px'
|
|
183
|
+
}), Object(themes_["pick"])({
|
|
184
|
+
enterprise: themes_["variables"].contentColorDisabled,
|
|
185
|
+
prisma: themes_["variables"].contentColorActive
|
|
186
|
+
}));
|
|
187
|
+
|
|
188
|
+
// CONCATENATED MODULE: ./src/Paginator/PageSeparator.tsx
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
function PageSeparator() {
|
|
195
|
+
var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
|
|
196
|
+
family = _useSplunkTheme.family;
|
|
197
|
+
|
|
198
|
+
var content = family === 'enterprise' ? /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
199
|
+
role: "separator"
|
|
200
|
+
}, "...") : /*#__PURE__*/external_react_default.a.createElement(More, {
|
|
201
|
+
prismaSize: "small",
|
|
202
|
+
role: "separator"
|
|
203
|
+
});
|
|
204
|
+
return /*#__PURE__*/external_react_default.a.createElement(StyledEllipsisWrapper, null, content);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* harmony default export */ var Paginator_PageSeparator = (PageSeparator);
|
|
208
|
+
// EXTERNAL MODULE: external "lodash"
|
|
209
|
+
var external_lodash_ = __webpack_require__(4);
|
|
210
|
+
|
|
177
211
|
// EXTERNAL MODULE: external "@splunk/react-ui/ButtonSimple"
|
|
178
|
-
var ButtonSimple_ = __webpack_require__(
|
|
212
|
+
var ButtonSimple_ = __webpack_require__(43);
|
|
179
213
|
var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
|
|
180
214
|
|
|
181
215
|
// CONCATENATED MODULE: ./src/Paginator/ButtonStyles.ts
|
|
@@ -185,7 +219,7 @@ var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
|
|
|
185
219
|
var StyledButtonSimple = external_styled_components_default()(ButtonSimple_default.a).withConfig({
|
|
186
220
|
displayName: "ButtonStyles__StyledButtonSimple",
|
|
187
221
|
componentId: "sc-1neztq7-0"
|
|
188
|
-
})(["min-width:", ";min-height:", ";text-align:center;", ""], themes_["variables"].inputHeight, themes_["variables"].inputHeight, Object(themes_["pick"])({
|
|
222
|
+
})(["min-width:", ";min-height:", ";text-align:center;flex-shrink:0;", ""], themes_["variables"].inputHeight, themes_["variables"].inputHeight, Object(themes_["pick"])({
|
|
189
223
|
enterprise: {
|
|
190
224
|
comfortable: Object(external_styled_components_["css"])(["padding:", ";"], themes_["variables"].spacingQuarter),
|
|
191
225
|
compact: Object(external_styled_components_["css"])(["padding:3px;"])
|
|
@@ -307,10 +341,10 @@ _defineProperty(Button_PaginatorButton, "defaultProps", defaultProps);
|
|
|
307
341
|
|
|
308
342
|
/* harmony default export */ var Button = (Button_PaginatorButton);
|
|
309
343
|
// EXTERNAL MODULE: ./src/icons/ChevronLeft.tsx
|
|
310
|
-
var ChevronLeft = __webpack_require__(
|
|
344
|
+
var ChevronLeft = __webpack_require__(52);
|
|
311
345
|
|
|
312
346
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
313
|
-
var ChevronRight = __webpack_require__(
|
|
347
|
+
var ChevronRight = __webpack_require__(27);
|
|
314
348
|
|
|
315
349
|
// CONCATENATED MODULE: ./src/Paginator/PaginatorStyles.ts
|
|
316
350
|
|
|
@@ -337,10 +371,6 @@ var StyledChevronRight = external_styled_components_default()(ChevronRight["a" /
|
|
|
337
371
|
return $disabled ? themes_["variables"].contentColorDisabled : themes_["variables"].contentColorMuted;
|
|
338
372
|
})
|
|
339
373
|
}));
|
|
340
|
-
var StyledEllipsisWrapper = external_styled_components_default.a.span.withConfig({
|
|
341
|
-
displayName: "PaginatorStyles__StyledEllipsisWrapper",
|
|
342
|
-
componentId: "pmabsp-2"
|
|
343
|
-
})(["position:relative;top:-1px;color:", ";"], themes_["variables"].contentColorActive);
|
|
344
374
|
|
|
345
375
|
// CONCATENATED MODULE: ./src/Paginator/Paginator.tsx
|
|
346
376
|
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); }
|
|
@@ -357,7 +387,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
357
387
|
|
|
358
388
|
|
|
359
389
|
|
|
360
|
-
|
|
361
390
|
var Paginator_propTypes = {
|
|
362
391
|
alwaysShowLastPageLink: external_prop_types_default.a.bool,
|
|
363
392
|
current: external_prop_types_default.a.number,
|
|
@@ -379,10 +408,7 @@ function Paginator(_ref) {
|
|
|
379
408
|
otherProps = _objectWithoutProperties(_ref, ["onChange", "current", "alwaysShowLastPageLink", "numPageLinks", "totalPages"]);
|
|
380
409
|
|
|
381
410
|
// @docs-props-type PaginatorPropsBase
|
|
382
|
-
|
|
383
|
-
family = _useSplunkTheme.family; // Can't show more links than total number of pages.
|
|
384
|
-
|
|
385
|
-
|
|
411
|
+
// Can't show more links than total number of pages.
|
|
386
412
|
var numLinks = Math.min(numPageLinks, totalPages);
|
|
387
413
|
var loMid = Math.ceil(numLinks / 2);
|
|
388
414
|
var hiMid = Math.ceil(totalPages - numLinks / 2);
|
|
@@ -414,9 +440,6 @@ function Paginator(_ref) {
|
|
|
414
440
|
|
|
415
441
|
|
|
416
442
|
lastPage = alwaysShowLastPageLink && lastPage + 1 === totalPages ? totalPages : lastPage;
|
|
417
|
-
var ellipsis = family === 'enterprise' ? '...' : /*#__PURE__*/external_react_default.a.createElement(StyledEllipsisWrapper, null, /*#__PURE__*/external_react_default.a.createElement(More, {
|
|
418
|
-
prismaSize: "small"
|
|
419
|
-
}));
|
|
420
443
|
pages.push( /*#__PURE__*/external_react_default.a.createElement(Button, {
|
|
421
444
|
"data-test": "prev",
|
|
422
445
|
disabled: current === 1,
|
|
@@ -436,12 +459,9 @@ function Paginator(_ref) {
|
|
|
436
459
|
page: 1,
|
|
437
460
|
"aria-label": Object(i18n_["_"])('Go to first page')
|
|
438
461
|
}));
|
|
439
|
-
pages.push( /*#__PURE__*/external_react_default.a.createElement(
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
key: "prevEllipsis",
|
|
443
|
-
"aria-hidden": "true",
|
|
444
|
-
selected: false
|
|
462
|
+
pages.push( /*#__PURE__*/external_react_default.a.createElement(Paginator_PageSeparator, {
|
|
463
|
+
"data-test": "page",
|
|
464
|
+
key: "prevEllipsis"
|
|
445
465
|
}));
|
|
446
466
|
}
|
|
447
467
|
|
|
@@ -460,11 +480,9 @@ function Paginator(_ref) {
|
|
|
460
480
|
}
|
|
461
481
|
|
|
462
482
|
if (current <= hiMid && totalPages > numLinks && lastPage !== totalPages) {
|
|
463
|
-
pages.push( /*#__PURE__*/external_react_default.a.createElement(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
key: "nextEllipsis",
|
|
467
|
-
"aria-hidden": "true"
|
|
483
|
+
pages.push( /*#__PURE__*/external_react_default.a.createElement(Paginator_PageSeparator, {
|
|
484
|
+
"data-test": "page",
|
|
485
|
+
key: "nextEllipsis"
|
|
468
486
|
}));
|
|
469
487
|
|
|
470
488
|
if (alwaysShowLastPageLink) {
|
|
@@ -514,14 +532,14 @@ module.exports = require("react");
|
|
|
514
532
|
|
|
515
533
|
/***/ }),
|
|
516
534
|
|
|
517
|
-
/***/
|
|
535
|
+
/***/ 27:
|
|
518
536
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
519
537
|
|
|
520
538
|
"use strict";
|
|
521
539
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
|
|
522
540
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
523
541
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
524
|
-
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
542
|
+
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31);
|
|
525
543
|
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__);
|
|
526
544
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
527
545
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -564,13 +582,6 @@ function ChevronRight(props) {
|
|
|
564
582
|
|
|
565
583
|
/***/ }),
|
|
566
584
|
|
|
567
|
-
/***/ 28:
|
|
568
|
-
/***/ (function(module, exports) {
|
|
569
|
-
|
|
570
|
-
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
571
|
-
|
|
572
|
-
/***/ }),
|
|
573
|
-
|
|
574
585
|
/***/ 3:
|
|
575
586
|
/***/ (function(module, exports) {
|
|
576
587
|
|
|
@@ -578,10 +589,10 @@ module.exports = require("styled-components");
|
|
|
578
589
|
|
|
579
590
|
/***/ }),
|
|
580
591
|
|
|
581
|
-
/***/
|
|
592
|
+
/***/ 31:
|
|
582
593
|
/***/ (function(module, exports) {
|
|
583
594
|
|
|
584
|
-
module.exports = require("@splunk/
|
|
595
|
+
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
585
596
|
|
|
586
597
|
/***/ }),
|
|
587
598
|
|
|
@@ -595,6 +606,13 @@ module.exports = require("lodash");
|
|
|
595
606
|
/***/ 41:
|
|
596
607
|
/***/ (function(module, exports) {
|
|
597
608
|
|
|
609
|
+
module.exports = require("@splunk/ui-utils/format");
|
|
610
|
+
|
|
611
|
+
/***/ }),
|
|
612
|
+
|
|
613
|
+
/***/ 43:
|
|
614
|
+
/***/ (function(module, exports) {
|
|
615
|
+
|
|
598
616
|
module.exports = require("@splunk/react-ui/ButtonSimple");
|
|
599
617
|
|
|
600
618
|
/***/ }),
|
|
@@ -606,14 +624,14 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
606
624
|
|
|
607
625
|
/***/ }),
|
|
608
626
|
|
|
609
|
-
/***/
|
|
627
|
+
/***/ 52:
|
|
610
628
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
611
629
|
|
|
612
630
|
"use strict";
|
|
613
631
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronLeft; });
|
|
614
632
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
615
633
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
616
|
-
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
634
|
+
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
617
635
|
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__);
|
|
618
636
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
619
637
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -656,7 +674,7 @@ function ChevronLeft(props) {
|
|
|
656
674
|
|
|
657
675
|
/***/ }),
|
|
658
676
|
|
|
659
|
-
/***/
|
|
677
|
+
/***/ 53:
|
|
660
678
|
/***/ (function(module, exports) {
|
|
661
679
|
|
|
662
680
|
module.exports = require("@splunk/react-icons/ChevronLeft");
|
|
@@ -813,7 +831,7 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
813
831
|
|
|
814
832
|
/***/ }),
|
|
815
833
|
|
|
816
|
-
/***/
|
|
834
|
+
/***/ 90:
|
|
817
835
|
/***/ (function(module, exports) {
|
|
818
836
|
|
|
819
837
|
module.exports = require("@splunk/react-icons/More");
|
package/Paragraph.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 147);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 147:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|