@splunk/react-ui 4.37.0 → 4.39.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/Accordion.js +131 -153
- package/Anchor.js +50 -58
- package/Animation.js +64 -59
- package/AnimationToggle.js +59 -61
- package/Box.js +59 -67
- package/Breadcrumbs.js +113 -127
- package/Button.js +208 -219
- package/ButtonGroup.js +41 -49
- package/ButtonSimple.js +264 -295
- package/CHANGELOG.md +50 -1
- package/Calendar.js +353 -414
- package/Card.js +183 -243
- package/CardLayout.js +86 -83
- package/Chip.js +104 -122
- package/Clickable.js +180 -198
- package/CloseButton.js +52 -60
- package/Code.js +24 -31
- package/CollapsiblePanel.js +172 -202
- package/Color.js +1107 -980
- package/ColumnLayout.js +72 -96
- package/ComboBox.js +267 -305
- package/Concertina.js +406 -454
- package/ControlGroup.js +165 -194
- package/Date.js +116 -131
- package/DefinitionList.js +125 -149
- package/Divider.js +81 -79
- package/Dropdown.js +226 -237
- package/DualListbox.js +150 -186
- package/EventListener.js +4 -1
- package/File.js +1032 -955
- package/FormRows.js +281 -334
- package/Heading.js +27 -35
- package/Image.js +101 -116
- package/JSONTree.js +301 -344
- package/Layer.js +118 -126
- package/Link.js +141 -159
- package/List.js +61 -77
- package/MIGRATION.mdx +92 -38
- package/Markdown.js +288 -347
- package/Menu.js +512 -530
- package/Message.js +173 -196
- package/MessageBar.js +58 -66
- package/Modal.js +241 -290
- package/ModalLayer.js +130 -148
- package/Monogram.js +138 -138
- package/Multiselect.js +1600 -1923
- package/Number.js +159 -178
- package/Paginator.js +296 -335
- package/Paragraph.js +24 -32
- package/Popover.js +448 -441
- package/Progress.js +65 -75
- package/RadioBar.js +301 -303
- package/RadioList.js +77 -119
- package/Resize.js +105 -127
- package/ResultsMenu.js +373 -385
- package/ScreenReaderContent.js +130 -94
- package/Scroll.js +209 -244
- package/Search.js +375 -384
- package/Select.js +1076 -1354
- package/SidePanel.js +122 -142
- package/Slider.js +192 -222
- package/SlidingPanels.js +238 -270
- package/SplitButton.js +222 -245
- package/StaticContent.js +68 -76
- package/StepBar.js +206 -205
- package/Switch.js +211 -236
- package/TabBar.js +222 -258
- package/TabLayout.js +114 -139
- package/Table.js +2017 -2180
- package/Text.js +401 -512
- package/TextArea.js +411 -441
- package/Tooltip.js +116 -132
- package/TransitionOpen.js +160 -178
- package/Tree.js +268 -287
- package/Typography.js +48 -52
- package/WaitSpinner.js +60 -68
- package/cypress/support/commands.ts +9 -0
- package/cypress/support/index.d.ts +6 -0
- package/cypress/tsconfig.cypress.json +1 -0
- package/docker-compose.yml +0 -1
- package/package.json +17 -17
- package/types/src/Button/Button.d.ts +20 -6
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
- package/types/src/Color/Color.d.ts +5 -2
- package/types/src/Color/Palette.d.ts +6 -2
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
- package/types/src/Date/Date.d.ts +2 -3
- package/types/src/File/File.d.ts +2 -3
- package/types/src/File/Retry.d.ts +1 -2
- package/types/src/Link/Link.d.ts +3 -4
- package/types/src/Menu/Item.d.ts +24 -8
- package/types/src/Menu/Menu.d.ts +3 -3
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +2 -0
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +3 -4
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
- package/types/src/Search/Option.d.ts +16 -3
- package/types/src/Select/Option.d.ts +3 -1
- package/types/src/Select/OptionBase.d.ts +7 -5
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectAllOption.d.ts +4 -4
- package/types/src/Select/SelectBase.d.ts +0 -1
- package/types/src/SidePanel/SidePanel.d.ts +1 -1
- package/types/src/Slider/Slider.d.ts +2 -3
- package/types/src/Slider/docs/examples/Error.d.ts +2 -0
- package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -2
- package/types/src/TabBar/Tab.d.ts +1 -1
- package/types/src/TabBar/TabBar.d.ts +3 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/Table.d.ts +0 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -2
- package/types/src/Text/IconOutlinedView.d.ts +1 -2
- package/types/src/Text/Text.d.ts +6 -4
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Tooltip/Tooltip.d.ts +4 -4
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
- package/useForceUpdate.js +30 -32
- package/useKeyPress.js +1 -1
- package/types/src/Button/docs/examples/Selected.d.ts +0 -2
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
- package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
- package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
- /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
- /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
- /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/ScreenReaderContent.js
CHANGED
|
@@ -1,34 +1,75 @@
|
|
|
1
1
|
/******/ (() => {
|
|
2
2
|
// webpackBootstrap
|
|
3
3
|
/******/ "use strict";
|
|
4
|
-
/******/
|
|
5
|
-
|
|
4
|
+
/******/ var e = {
|
|
5
|
+
/***/ 3563:
|
|
6
|
+
/***/ e => {
|
|
7
|
+
e.exports = require("@splunk/themes");
|
|
8
|
+
/***/ },
|
|
9
|
+
/***/ 23:
|
|
10
|
+
/***/ e => {
|
|
11
|
+
e.exports = require("prop-types");
|
|
12
|
+
/***/ },
|
|
13
|
+
/***/ 9497:
|
|
14
|
+
/***/ e => {
|
|
15
|
+
e.exports = require("react");
|
|
16
|
+
/***/ },
|
|
17
|
+
/***/ 232:
|
|
18
|
+
/***/ e => {
|
|
19
|
+
e.exports = require("styled-components");
|
|
20
|
+
/***/
|
|
21
|
+
/******/ }
|
|
22
|
+
};
|
|
23
|
+
/************************************************************************/
|
|
24
|
+
/******/ // The module cache
|
|
25
|
+
/******/ var r = {};
|
|
26
|
+
/******/
|
|
27
|
+
/******/ // The require function
|
|
28
|
+
/******/ function n(t) {
|
|
29
|
+
/******/ // Check if module is in cache
|
|
30
|
+
/******/ var o = r[t];
|
|
31
|
+
/******/ if (o !== undefined) {
|
|
32
|
+
/******/ return o.exports;
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ // Create a new module (and put it into the cache)
|
|
35
|
+
/******/ var a = r[t] = {
|
|
36
|
+
/******/ // no module.id needed
|
|
37
|
+
/******/ // no module.loaded needed
|
|
38
|
+
/******/ exports: {}
|
|
39
|
+
/******/ };
|
|
40
|
+
/******/
|
|
41
|
+
/******/ // Execute the module function
|
|
42
|
+
/******/ e[t](a, a.exports, n);
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // Return the exports of the module
|
|
45
|
+
/******/ return a.exports;
|
|
46
|
+
/******/ }
|
|
6
47
|
/******/
|
|
7
48
|
/************************************************************************/
|
|
8
49
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
50
|
/******/ (() => {
|
|
10
51
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
52
|
+
/******/ n.n = e => {
|
|
53
|
+
/******/ var r = e && e.__esModule ?
|
|
54
|
+
/******/ () => e["default"]
|
|
55
|
+
/******/ : () => e
|
|
15
56
|
/******/;
|
|
16
|
-
|
|
17
|
-
a:
|
|
57
|
+
n.d(r, {
|
|
58
|
+
a: r
|
|
18
59
|
});
|
|
19
|
-
/******/ return
|
|
60
|
+
/******/ return r;
|
|
20
61
|
/******/ };
|
|
21
62
|
/******/ })();
|
|
22
63
|
/******/
|
|
23
64
|
/******/ /* webpack/runtime/define property getters */
|
|
24
65
|
/******/ (() => {
|
|
25
66
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/
|
|
27
|
-
/******/ for (var
|
|
28
|
-
/******/ if (
|
|
29
|
-
/******/ Object.defineProperty(
|
|
67
|
+
/******/ n.d = (e, r) => {
|
|
68
|
+
/******/ for (var t in r) {
|
|
69
|
+
/******/ if (n.o(r, t) && !n.o(e, t)) {
|
|
70
|
+
/******/ Object.defineProperty(e, t, {
|
|
30
71
|
enumerable: true,
|
|
31
|
-
get: t
|
|
72
|
+
get: r[t]
|
|
32
73
|
});
|
|
33
74
|
/******/ }
|
|
34
75
|
/******/ }
|
|
@@ -37,14 +78,14 @@
|
|
|
37
78
|
/******/
|
|
38
79
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
80
|
/******/ (() => {
|
|
40
|
-
/******/
|
|
81
|
+
/******/ n.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
41
82
|
/******/;
|
|
42
83
|
})();
|
|
43
84
|
/******/
|
|
44
85
|
/******/ /* webpack/runtime/make namespace object */
|
|
45
86
|
/******/ (() => {
|
|
46
87
|
/******/ // define __esModule on exports
|
|
47
|
-
/******/
|
|
88
|
+
/******/ n.r = e => {
|
|
48
89
|
/******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
|
|
49
90
|
/******/ Object.defineProperty(e, Symbol.toStringTag, {
|
|
50
91
|
value: "Module"
|
|
@@ -56,89 +97,84 @@
|
|
|
56
97
|
/******/ };
|
|
57
98
|
/******/ })();
|
|
58
99
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
60
|
-
//
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
for (var
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
/************************************************************************/ var t = {};
|
|
101
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
102
|
+
(() => {
|
|
103
|
+
// ESM COMPAT FLAG
|
|
104
|
+
n.r(t);
|
|
105
|
+
// EXPORTS
|
|
106
|
+
n.d(t, {
|
|
107
|
+
default: () => /* reexport */ y
|
|
108
|
+
});
|
|
109
|
+
// EXTERNAL MODULE: external "react"
|
|
110
|
+
var e = n(9497);
|
|
111
|
+
var r = n.n(e);
|
|
112
|
+
// EXTERNAL MODULE: external "prop-types"
|
|
113
|
+
var o = n(23);
|
|
114
|
+
var a = n.n(o);
|
|
115
|
+
// EXTERNAL MODULE: external "styled-components"
|
|
116
|
+
var l = n(232);
|
|
117
|
+
var i = n.n(l);
|
|
118
|
+
// EXTERNAL MODULE: external "@splunk/themes"
|
|
119
|
+
var u = n(3563);
|
|
120
|
+
// CONCATENATED MODULE: ./src/ScreenReaderContent/ScreenReaderContentStyles.ts
|
|
121
|
+
var s = i().span.withConfig({
|
|
122
|
+
displayName: "ScreenReaderContentStyles__Styled",
|
|
123
|
+
componentId: "sc-1lnohwp-0"
|
|
124
|
+
})([ "", ";" ], u.mixins.screenReaderContent());
|
|
125
|
+
// CONCATENATED MODULE: ./src/ScreenReaderContent/ScreenReaderContent.tsx
|
|
126
|
+
function c() {
|
|
127
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
128
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
129
|
+
var n = arguments[r];
|
|
130
|
+
for (var t in n) {
|
|
131
|
+
({}).hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
90
132
|
}
|
|
91
133
|
}
|
|
134
|
+
return e;
|
|
135
|
+
}, c.apply(null, arguments);
|
|
136
|
+
}
|
|
137
|
+
function p(e, r) {
|
|
138
|
+
if (null == e) return {};
|
|
139
|
+
var n, t, o = f(e, r);
|
|
140
|
+
if (Object.getOwnPropertySymbols) {
|
|
141
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
142
|
+
for (t = 0; t < a.length; t++) {
|
|
143
|
+
n = a[t], r.includes(n) || {}.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
|
|
144
|
+
}
|
|
92
145
|
}
|
|
93
|
-
return
|
|
94
|
-
};
|
|
95
|
-
return f.apply(this, arguments);
|
|
96
|
-
}
|
|
97
|
-
function s(e, r) {
|
|
98
|
-
if (e == null) return {};
|
|
99
|
-
var t = p(e, r);
|
|
100
|
-
var n, o;
|
|
101
|
-
if (Object.getOwnPropertySymbols) {
|
|
102
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
103
|
-
for (o = 0; o < a.length; o++) {
|
|
104
|
-
n = a[o];
|
|
105
|
-
if (r.indexOf(n) >= 0) continue;
|
|
106
|
-
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
107
|
-
t[n] = e[n];
|
|
108
|
-
}
|
|
146
|
+
return o;
|
|
109
147
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
t[o] = e[o];
|
|
148
|
+
function f(e, r) {
|
|
149
|
+
if (null == e) return {};
|
|
150
|
+
var n = {};
|
|
151
|
+
for (var t in e) {
|
|
152
|
+
if ({}.hasOwnProperty.call(e, t)) {
|
|
153
|
+
if (r.includes(t)) continue;
|
|
154
|
+
n[t] = e[t];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return n;
|
|
121
158
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
159
|
+
var d = {
|
|
160
|
+
children: a().node.isRequired,
|
|
161
|
+
elementRef: a().oneOfType([ a().func, a().object ])
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
129
164
|
* The screen reader text is used to wrap content that
|
|
130
165
|
* is only accessible through screen readers.
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
// CONCATENATED MODULE: ./src/ScreenReaderContent/index.ts
|
|
143
|
-
|
|
166
|
+
*/ function v(e) {
|
|
167
|
+
var n = e.children, t = e.elementRef, o = p(e, [ "children", "elementRef" ]);
|
|
168
|
+
// @docs-props-type ScreenReaderContentPropsBase
|
|
169
|
+
|
|
170
|
+
return r().createElement(s, c({
|
|
171
|
+
"data-test": "screen-reader-content",
|
|
172
|
+
ref: t
|
|
173
|
+
}, o), n);
|
|
174
|
+
}
|
|
175
|
+
v.propTypes = d;
|
|
176
|
+
/* harmony default export */ const y = v;
|
|
177
|
+
}) // CONCATENATED MODULE: ./src/ScreenReaderContent/index.ts
|
|
178
|
+
();
|
|
179
|
+
module.exports = t;
|
|
144
180
|
/******/})();
|