@splunk/react-ui 4.21.0 → 4.21.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 +425 -325
- package/Anchor.js +147 -117
- package/Animation.js +142 -94
- package/AnimationToggle.js +197 -193
- package/Box.js +145 -118
- package/Breadcrumbs.js +288 -206
- package/Button.js +488 -465
- package/ButtonGroup.js +160 -128
- package/ButtonSimple.js +543 -462
- package/CHANGELOG.md +7 -2
- package/Calendar.js +1111 -1001
- package/Card.js +771 -598
- package/CardLayout.js +205 -147
- package/Chip.js +509 -488
- package/Clickable.js +414 -352
- package/CloseButton.js +165 -142
- package/Code.js +1808 -2084
- package/Code.js.LICENSE.txt +8 -0
- package/CollapsiblePanel.js +586 -519
- package/Color.js +1066 -1069
- package/ColumnLayout.js +402 -363
- package/ComboBox.js +891 -794
- package/Concertina.js +997 -802
- package/ControlGroup.js +687 -594
- package/Date.js +567 -547
- package/DefinitionList.js +308 -234
- package/Divider.js +149 -118
- package/Dropdown.js +459 -416
- package/DualListbox.js +1479 -1541
- package/EventListener.js +94 -97
- package/File.js +1051 -969
- package/FormRows.js +883 -696
- package/Heading.js +216 -193
- package/Image.js +446 -402
- package/JSONTree.js +690 -551
- package/Layer.js +437 -410
- package/Link.js +336 -255
- package/List.js +213 -161
- package/Markdown.js +509 -487
- package/Menu.js +1105 -1056
- package/Message.js +475 -441
- package/MessageBar.js +387 -373
- package/Modal.js +810 -634
- package/ModalLayer.js +326 -243
- package/Monogram.js +308 -276
- package/Multiselect.js +3550 -3364
- package/Number.js +729 -687
- package/Paginator.js +510 -449
- package/Paragraph.js +145 -112
- package/Popover.js +1459 -1432
- package/Progress.js +301 -246
- package/RadioBar.js +610 -527
- package/RadioList.js +483 -444
- package/Resize.js +530 -489
- package/ResultsMenu.js +494 -455
- package/ScreenReaderContent.js +142 -111
- package/Scroll.js +595 -456
- package/ScrollContainerContext.js +197 -206
- package/Search.js +744 -650
- package/Select.js +2442 -2345
- package/SidePanel.js +390 -284
- package/Slider.js +669 -676
- package/SlidingPanels.js +639 -503
- package/SplitButton.js +464 -367
- package/StaticContent.js +161 -133
- package/StepBar.js +386 -358
- package/Switch.js +710 -640
- package/TabBar.js +726 -680
- package/TabLayout.js +406 -322
- package/Table.js +4842 -4616
- package/Text.js +1170 -1138
- package/TextArea.js +1102 -1090
- package/Tooltip.js +624 -581
- package/TransitionOpen.js +489 -422
- package/Typography.js +176 -153
- package/WaitSpinner.js +230 -206
- package/package.json +5 -5
- package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
- package/types/src/JSONTree/TreeNode.d.ts +5 -0
- package/useForceUpdate.js +112 -82
- package/useKeyPress.js +74 -71
- package/usePrevious.js +65 -65
- package/useRovingFocus.js +122 -138
package/ButtonGroup.js
CHANGED
|
@@ -1,129 +1,161 @@
|
|
|
1
|
-
/******/ (() => {
|
|
2
|
-
|
|
3
|
-
/******/
|
|
4
|
-
/******/
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/******/
|
|
9
|
-
/******/
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/******/
|
|
44
|
-
/******/
|
|
45
|
-
/******/
|
|
46
|
-
/******/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
66
|
-
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
67
|
-
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
68
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
69
|
-
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
70
|
-
const themes_namespaceObject = require("@splunk/themes");
|
|
71
|
-
;// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroupStyles.ts
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var StyledBox = external_styled_components_default()((Box_default())).withConfig({
|
|
76
|
-
displayName: "ButtonGroupStyles__StyledBox",
|
|
77
|
-
componentId: "sc-14fs2xs-0"
|
|
78
|
-
})(["position:relative;[data-inline] + &{margin-left:", ";}"], (0,themes_namespaceObject.pick)({
|
|
79
|
-
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
80
|
-
prisma: themes_namespaceObject.variables.spacingSmall
|
|
81
|
-
}));
|
|
82
|
-
|
|
83
|
-
;// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroup.tsx
|
|
84
|
-
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); }
|
|
85
|
-
|
|
86
|
-
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; }
|
|
87
|
-
|
|
88
|
-
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; }
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var propTypes = {
|
|
94
|
-
children: (external_prop_types_default()).node,
|
|
95
|
-
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
96
|
-
|
|
97
|
-
/** @private */
|
|
98
|
-
flex: (external_prop_types_default()).bool
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
function ButtonGroup(_ref) {
|
|
102
|
-
var children = _ref.children,
|
|
103
|
-
otherProps = _objectWithoutProperties(_ref, ["children"]);
|
|
104
|
-
|
|
105
|
-
// @docs-props-type ButtonGroupPropsBase
|
|
106
|
-
var childrenCleaned = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(function (item, i, _ref2) {
|
|
107
|
-
var length = _ref2.length;
|
|
108
|
-
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(item, {
|
|
109
|
-
prepend: i > 0,
|
|
110
|
-
append: i < length - 1,
|
|
111
|
-
inline: false,
|
|
112
|
-
role: item.props && item.props.role || 'menuitem'
|
|
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 = r => {
|
|
12
|
+
/******/ var t = r && r.__esModule ?
|
|
13
|
+
/******/ () => r["default"]
|
|
14
|
+
/******/ : () => r
|
|
15
|
+
/******/;
|
|
16
|
+
e.d(t, {
|
|
17
|
+
a: t
|
|
18
|
+
});
|
|
19
|
+
/******/ return t;
|
|
20
|
+
/******/ };
|
|
21
|
+
/******/ })();
|
|
22
|
+
/******/
|
|
23
|
+
/******/ /* webpack/runtime/define property getters */
|
|
24
|
+
/******/ (() => {
|
|
25
|
+
/******/ // define getter functions for harmony exports
|
|
26
|
+
/******/ e.d = (r, t) => {
|
|
27
|
+
/******/ for (var n in t) {
|
|
28
|
+
/******/ if (e.o(t, n) && !e.o(r, n)) {
|
|
29
|
+
/******/ Object.defineProperty(r, n, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: t[n]
|
|
32
|
+
});
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ }
|
|
35
|
+
/******/ };
|
|
36
|
+
/******/ })();
|
|
37
|
+
/******/
|
|
38
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
|
+
/******/ (() => {
|
|
40
|
+
/******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
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 r = {};
|
|
60
|
+
// ESM COMPAT FLAG
|
|
61
|
+
e.r(r);
|
|
62
|
+
// EXPORTS
|
|
63
|
+
e.d(r, {
|
|
64
|
+
default: () => /* reexport */ m
|
|
113
65
|
});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
66
|
+
// CONCATENATED MODULE: external "react"
|
|
67
|
+
const t = require("react");
|
|
68
|
+
var n = e.n(t);
|
|
69
|
+
// CONCATENATED MODULE: external "prop-types"
|
|
70
|
+
const o = require("prop-types");
|
|
71
|
+
var i = e.n(o);
|
|
72
|
+
// CONCATENATED MODULE: external "styled-components"
|
|
73
|
+
const a = require("styled-components");
|
|
74
|
+
var l = e.n(a);
|
|
75
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
76
|
+
const u = require("@splunk/react-ui/Box");
|
|
77
|
+
var p = e.n(u);
|
|
78
|
+
// CONCATENATED MODULE: external "@splunk/themes"
|
|
79
|
+
const c = require("@splunk/themes");
|
|
80
|
+
// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroupStyles.ts
|
|
81
|
+
var s = l()(p()).withConfig({
|
|
82
|
+
displayName: "ButtonGroupStyles__StyledBox",
|
|
83
|
+
componentId: "sc-14fs2xs-0"
|
|
84
|
+
})([ "position:relative;[data-inline] + &{margin-left:", ";}" ], (0, c.pick)({
|
|
85
|
+
enterprise: c.variables.spacingHalf,
|
|
86
|
+
prisma: c.variables.spacingSmall
|
|
87
|
+
}));
|
|
88
|
+
// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroup.tsx
|
|
89
|
+
function f() {
|
|
90
|
+
f = Object.assign || function(e) {
|
|
91
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
92
|
+
var t = arguments[r];
|
|
93
|
+
for (var n in t) {
|
|
94
|
+
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
95
|
+
e[n] = t[n];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return e;
|
|
100
|
+
};
|
|
101
|
+
return f.apply(this, arguments);
|
|
102
|
+
}
|
|
103
|
+
function d(e, r) {
|
|
104
|
+
if (e == null) return {};
|
|
105
|
+
var t = v(e, r);
|
|
106
|
+
var n, o;
|
|
107
|
+
if (Object.getOwnPropertySymbols) {
|
|
108
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
109
|
+
for (o = 0; o < i.length; o++) {
|
|
110
|
+
n = i[o];
|
|
111
|
+
if (r.indexOf(n) >= 0) continue;
|
|
112
|
+
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
113
|
+
t[n] = e[n];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return t;
|
|
117
|
+
}
|
|
118
|
+
function v(e, r) {
|
|
119
|
+
if (e == null) return {};
|
|
120
|
+
var t = {};
|
|
121
|
+
var n = Object.keys(e);
|
|
122
|
+
var o, i;
|
|
123
|
+
for (i = 0; i < n.length; i++) {
|
|
124
|
+
o = n[i];
|
|
125
|
+
if (r.indexOf(o) >= 0) continue;
|
|
126
|
+
t[o] = e[o];
|
|
127
|
+
}
|
|
128
|
+
return t;
|
|
129
|
+
}
|
|
130
|
+
var y = {
|
|
131
|
+
children: i().node,
|
|
132
|
+
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
133
|
+
/** @private */
|
|
134
|
+
flex: i().bool
|
|
135
|
+
};
|
|
136
|
+
function b(e) {
|
|
137
|
+
var r = e.children, o = d(e, [ "children" ]);
|
|
138
|
+
// @docs-props-type ButtonGroupPropsBase
|
|
139
|
+
var i = t.Children.toArray(r).filter(t.isValidElement).map((function(e, r, n) {
|
|
140
|
+
var o = n.length;
|
|
141
|
+
|
|
142
|
+
return (0, t.cloneElement)(e, {
|
|
143
|
+
prepend: r > 0,
|
|
144
|
+
append: r < o - 1,
|
|
145
|
+
inline: false,
|
|
146
|
+
role: e.props && e.props.role || "menuitem"
|
|
147
|
+
});
|
|
148
|
+
}));
|
|
149
|
+
|
|
150
|
+
return n().createElement(s, f({
|
|
151
|
+
inline: true,
|
|
152
|
+
flex: true,
|
|
153
|
+
"data-test": "button-group",
|
|
154
|
+
role: "menubar"
|
|
155
|
+
}, o), i);
|
|
156
|
+
}
|
|
157
|
+
b.propTypes = y;
|
|
158
|
+
/* harmony default export */ const m = b;
|
|
159
|
+
// CONCATENATED MODULE: ./src/ButtonGroup/index.ts
|
|
160
|
+
module.exports = r;
|
|
161
|
+
/******/})();
|