@splunk/react-ui 4.35.0 → 4.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -3
- package/Calendar.js +2 -2
- package/CollapsiblePanel.js +1 -1
- package/ComboBox.js +2 -2
- package/ControlGroup.js +48 -49
- package/Date.js +21 -24
- package/FormRows.js +2 -2
- package/JSONTree.js +260 -227
- package/MIGRATION.mdx +17 -0
- package/Modal.js +1 -1
- package/Multiselect.js +28 -10
- package/Paginator.js +1 -1
- package/Progress.js +202 -149
- package/RadioBar.js +164 -194
- package/Resize.js +133 -113
- package/Slider.js +9 -3
- package/StaticContent.js +48 -46
- package/Switch.js +1 -1
- package/TabBar.js +125 -110
- package/TextArea.js +21 -19
- package/package.json +3 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -0
- package/types/src/ComboBox/ComboBox.d.ts +8 -4
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -5
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -2
- package/types/src/Date/docs/examples/Error.d.ts +2 -0
- package/types/src/JSONTree/JSONTreeItem.d.ts +2 -2
- package/types/src/JSONTree/renderTreeItems.d.ts +2 -2
- package/types/src/Multiselect/Normal.d.ts +1 -0
- package/types/src/Progress/Progress.d.ts +1 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +1 -1
- package/types/src/Resize/Resize.d.ts +4 -2
- package/types/src/StaticContent/StaticContent.d.ts +4 -1
- /package/types/src/Progress/docs/examples/{prisma/Type.d.ts → Type.d.ts} +0 -0
package/StaticContent.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/ e.n =
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
11
|
+
/******/ e.n = t => {
|
|
12
|
+
/******/ var r = t && t.__esModule ?
|
|
13
|
+
/******/ () => t["default"]
|
|
14
|
+
/******/ : () => t
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(r, {
|
|
17
|
+
a: r
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return r;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (
|
|
27
|
-
/******/ for (var n in
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
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
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: r[n]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/******/
|
|
38
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
39
|
/******/ (() => {
|
|
40
|
-
/******/ e.o = (e,
|
|
40
|
+
/******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var t = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(t);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
63
|
+
e.d(t, {
|
|
64
64
|
default: () => /* reexport */ b
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var n = e.n(
|
|
67
|
+
const r = require("react");
|
|
68
|
+
var n = e.n(r);
|
|
69
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
70
|
const i = require("prop-types");
|
|
71
71
|
var o = e.n(i);
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
const a = require("styled-components");
|
|
74
74
|
var l = e.n(a);
|
|
75
75
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
76
|
-
const
|
|
77
|
-
var
|
|
76
|
+
const c = require("@splunk/react-ui/Box");
|
|
77
|
+
var p = e.n(c);
|
|
78
78
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
79
79
|
const s = require("@splunk/themes");
|
|
80
80
|
// CONCATENATED MODULE: ./src/StaticContent/StaticContentStyles.ts
|
|
81
|
-
var
|
|
81
|
+
var f = l()(p()).withConfig({
|
|
82
82
|
displayName: "StaticContentStyles__StyledBox",
|
|
83
83
|
componentId: "sxqyrp-0"
|
|
84
84
|
})([ "", ";position:relative;margin:0;font-weight:", ";word-wrap:break-word;min-height:", ";padding:", ";[data-inline] + &[data-inline]{margin-left:", ";}" ], s.mixins.reset("flex"), s.variables.fontWeightSemiBold, s.variables.inputHeight, (0,
|
|
@@ -96,46 +96,46 @@
|
|
|
96
96
|
prisma: s.variables.spacingLarge
|
|
97
97
|
}));
|
|
98
98
|
// CONCATENATED MODULE: ./src/StaticContent/StaticContent.tsx
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
for (var
|
|
102
|
-
var
|
|
103
|
-
for (var n in
|
|
104
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
105
|
-
e[n] =
|
|
99
|
+
function u() {
|
|
100
|
+
u = Object.assign || function(e) {
|
|
101
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
102
|
+
var r = arguments[t];
|
|
103
|
+
for (var n in r) {
|
|
104
|
+
if (Object.prototype.hasOwnProperty.call(r, n)) {
|
|
105
|
+
e[n] = r[n];
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
return e;
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return u.apply(this, arguments);
|
|
112
112
|
}
|
|
113
|
-
function d(e,
|
|
113
|
+
function d(e, t) {
|
|
114
114
|
if (e == null) return {};
|
|
115
|
-
var
|
|
115
|
+
var r = m(e, t);
|
|
116
116
|
var n, i;
|
|
117
117
|
if (Object.getOwnPropertySymbols) {
|
|
118
118
|
var o = Object.getOwnPropertySymbols(e);
|
|
119
119
|
for (i = 0; i < o.length; i++) {
|
|
120
120
|
n = o[i];
|
|
121
|
-
if (
|
|
121
|
+
if (t.indexOf(n) >= 0) continue;
|
|
122
122
|
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
123
|
-
|
|
123
|
+
r[n] = e[n];
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return r;
|
|
127
127
|
}
|
|
128
|
-
function m(e,
|
|
128
|
+
function m(e, t) {
|
|
129
129
|
if (e == null) return {};
|
|
130
|
-
var
|
|
130
|
+
var r = {};
|
|
131
131
|
var n = Object.keys(e);
|
|
132
132
|
var i, o;
|
|
133
133
|
for (o = 0; o < n.length; o++) {
|
|
134
134
|
i = n[o];
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (t.indexOf(i) >= 0) continue;
|
|
136
|
+
r[i] = e[i];
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return r;
|
|
139
139
|
}
|
|
140
140
|
var v = {
|
|
141
141
|
children: o().node,
|
|
@@ -147,17 +147,19 @@
|
|
|
147
147
|
* This component is intended for use in a control group, either to display a static value or
|
|
148
148
|
* between two controls.
|
|
149
149
|
*/ function y(e) {
|
|
150
|
-
var
|
|
150
|
+
var t = e.children, i = e.inline, o = i === void 0 ? false : i, a = e.size, l = d(e, [ "children", "inline", "size" ]);
|
|
151
151
|
// @docs-props-type StaticContentPropsBase
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
(0, r.useEffect)((function() {
|
|
153
|
+
if (false) {}
|
|
154
|
+
}), [ a ]);
|
|
155
|
+
|
|
156
|
+
return n().createElement(f, u({
|
|
154
157
|
"data-test": "static-content",
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}, l), r);
|
|
158
|
+
inline: o
|
|
159
|
+
}, l), t);
|
|
158
160
|
}
|
|
159
161
|
y.propTypes = v;
|
|
160
162
|
/* harmony default export */ const b = y;
|
|
161
163
|
// CONCATENATED MODULE: ./src/StaticContent/index.ts
|
|
162
|
-
module.exports =
|
|
164
|
+
module.exports = t;
|
|
163
165
|
/******/})();
|
package/Switch.js
CHANGED
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
prisma: b.variables.transparent
|
|
289
289
|
}));
|
|
290
290
|
}));
|
|
291
|
-
var L = (0, f.css)([ "position:relative;", " border-radius:", ";transition:background-color ", ";flex:0 0 auto;border:1px solid ", ";", " &:not([disabled]){&:focus{outline:0;", ";", "}&:hover ", "{background-color:", ";}&:hover ", "{background-color:", ";}}&[disabled]{border:1px solid ", ";background-color:", ";", " ", "}", ";", "" ], (0,
|
|
291
|
+
var L = (0, f.css)([ "position:relative;", " border-radius:", ";transition:background-color ", ";flex:0 0 auto;border:1px solid ", ";", " &:not([disabled]){&:focus{outline:0;", ";", "}&:hover ", "{background-color:", ";}&:hover ", "{background-color:", ";}}&[disabled]{cursor:not-allowed;border:1px solid ", ";background-color:", ";", " ", "}", ";", "" ], (0,
|
|
292
292
|
b.pick)({
|
|
293
293
|
enterprise: (0, b.pick)({
|
|
294
294
|
light: (0, f.css)([ "width:calc(", " * 2);background-color:", ";height:", ";" ], x, b.variables.gray98, x),
|