@splunk/react-ui 4.38.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 +151 -169
- package/ButtonGroup.js +41 -49
- package/ButtonSimple.js +264 -295
- package/CHANGELOG.md +28 -0
- 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 +371 -412
- package/ColumnLayout.js +72 -96
- package/ComboBox.js +266 -303
- 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 +506 -532
- 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 +1589 -1902
- 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 +50 -58
- package/Scroll.js +209 -244
- package/Search.js +379 -391
- package/Select.js +1077 -1345
- package/SidePanel.js +122 -142
- package/Slider.js +132 -145
- package/SlidingPanels.js +238 -270
- package/SplitButton.js +222 -245
- package/StaticContent.js +68 -76
- package/StepBar.js +206 -205
- package/Switch.js +176 -205
- package/TabBar.js +222 -258
- package/TabLayout.js +114 -139
- package/Table.js +2017 -2180
- package/Text.js +379 -493
- 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 +14 -14
- package/types/src/Button/Button.d.ts +5 -1
- 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 +2 -2
- package/types/src/Color/Palette.d.ts +4 -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 -2
- package/types/src/File/File.d.ts +2 -3
- package/types/src/File/Retry.d.ts +1 -2
- package/types/src/Menu/Item.d.ts +18 -5
- 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 +9 -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 +1 -1
- package/types/src/Select/SelectAllOption.d.ts +4 -4
- package/types/src/SidePanel/SidePanel.d.ts +1 -1
- package/types/src/Slider/Slider.d.ts +2 -2
- package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -2
- package/types/src/Switch/Switch.d.ts +0 -1
- 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 +2 -2
- 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/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/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/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
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
/******/ var r = {};
|
|
26
26
|
/******/
|
|
27
27
|
/******/ // The require function
|
|
28
|
-
/******/ function t
|
|
28
|
+
/******/ function n(t) {
|
|
29
29
|
/******/ // Check if module is in cache
|
|
30
|
-
/******/ var o = r[
|
|
30
|
+
/******/ var o = r[t];
|
|
31
31
|
/******/ if (o !== undefined) {
|
|
32
32
|
/******/ return o.exports;
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ // Create a new module (and put it into the cache)
|
|
35
|
-
/******/ var a = r[
|
|
35
|
+
/******/ var a = r[t] = {
|
|
36
36
|
/******/ // no module.id needed
|
|
37
37
|
/******/ // no module.loaded needed
|
|
38
38
|
/******/ exports: {}
|
|
39
39
|
/******/ };
|
|
40
40
|
/******/
|
|
41
41
|
/******/ // Execute the module function
|
|
42
|
-
/******/ e[
|
|
42
|
+
/******/ e[t](a, a.exports, n);
|
|
43
43
|
/******/
|
|
44
44
|
/******/ // Return the exports of the module
|
|
45
45
|
/******/ return a.exports;
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
/******/ /* webpack/runtime/compat get default export */
|
|
50
50
|
/******/ (() => {
|
|
51
51
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
52
|
-
/******/
|
|
52
|
+
/******/ n.n = e => {
|
|
53
53
|
/******/ var r = e && e.__esModule ?
|
|
54
54
|
/******/ () => e["default"]
|
|
55
55
|
/******/ : () => e
|
|
56
56
|
/******/;
|
|
57
|
-
|
|
57
|
+
n.d(r, {
|
|
58
58
|
a: r
|
|
59
59
|
});
|
|
60
60
|
/******/ return r;
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
/******/ /* webpack/runtime/define property getters */
|
|
65
65
|
/******/ (() => {
|
|
66
66
|
/******/ // define getter functions for harmony exports
|
|
67
|
-
/******/
|
|
68
|
-
/******/ for (var
|
|
69
|
-
/******/ if (
|
|
70
|
-
/******/ Object.defineProperty(e,
|
|
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, {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: r[
|
|
72
|
+
get: r[t]
|
|
73
73
|
});
|
|
74
74
|
/******/ }
|
|
75
75
|
/******/ }
|
|
@@ -78,14 +78,14 @@
|
|
|
78
78
|
/******/
|
|
79
79
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
80
80
|
/******/ (() => {
|
|
81
|
-
/******/
|
|
81
|
+
/******/ n.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
82
82
|
/******/;
|
|
83
83
|
})();
|
|
84
84
|
/******/
|
|
85
85
|
/******/ /* webpack/runtime/make namespace object */
|
|
86
86
|
/******/ (() => {
|
|
87
87
|
/******/ // define __esModule on exports
|
|
88
|
-
/******/
|
|
88
|
+
/******/ n.r = e => {
|
|
89
89
|
/******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
|
|
90
90
|
/******/ Object.defineProperty(e, Symbol.toStringTag, {
|
|
91
91
|
value: "Module"
|
|
@@ -97,72 +97,64 @@
|
|
|
97
97
|
/******/ };
|
|
98
98
|
/******/ })();
|
|
99
99
|
/******/
|
|
100
|
-
/************************************************************************/ var
|
|
100
|
+
/************************************************************************/ var t = {};
|
|
101
101
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
102
102
|
(() => {
|
|
103
103
|
// ESM COMPAT FLAG
|
|
104
|
-
|
|
104
|
+
n.r(t);
|
|
105
105
|
// EXPORTS
|
|
106
|
-
|
|
106
|
+
n.d(t, {
|
|
107
107
|
default: () => /* reexport */ y
|
|
108
108
|
});
|
|
109
109
|
// EXTERNAL MODULE: external "react"
|
|
110
|
-
var e =
|
|
111
|
-
var r =
|
|
110
|
+
var e = n(9497);
|
|
111
|
+
var r = n.n(e);
|
|
112
112
|
// EXTERNAL MODULE: external "prop-types"
|
|
113
|
-
var o =
|
|
114
|
-
var a =
|
|
113
|
+
var o = n(23);
|
|
114
|
+
var a = n.n(o);
|
|
115
115
|
// EXTERNAL MODULE: external "styled-components"
|
|
116
|
-
var
|
|
117
|
-
var
|
|
116
|
+
var l = n(232);
|
|
117
|
+
var i = n.n(l);
|
|
118
118
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
119
|
-
var
|
|
119
|
+
var u = n(3563);
|
|
120
120
|
// CONCATENATED MODULE: ./src/ScreenReaderContent/ScreenReaderContentStyles.ts
|
|
121
|
-
var
|
|
121
|
+
var s = i().span.withConfig({
|
|
122
122
|
displayName: "ScreenReaderContentStyles__Styled",
|
|
123
123
|
componentId: "sc-1lnohwp-0"
|
|
124
|
-
})([ "", ";" ],
|
|
124
|
+
})([ "", ";" ], u.mixins.screenReaderContent());
|
|
125
125
|
// CONCATENATED MODULE: ./src/ScreenReaderContent/ScreenReaderContent.tsx
|
|
126
126
|
function c() {
|
|
127
|
-
c = Object.assign
|
|
127
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
128
128
|
for (var r = 1; r < arguments.length; r++) {
|
|
129
|
-
var
|
|
130
|
-
for (var
|
|
131
|
-
|
|
132
|
-
e[n] = t[n];
|
|
133
|
-
}
|
|
129
|
+
var n = arguments[r];
|
|
130
|
+
for (var t in n) {
|
|
131
|
+
({}).hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
134
132
|
}
|
|
135
133
|
}
|
|
136
134
|
return e;
|
|
137
|
-
};
|
|
138
|
-
return c.apply(this, arguments);
|
|
135
|
+
}, c.apply(null, arguments);
|
|
139
136
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
var t =
|
|
143
|
-
var n, o;
|
|
137
|
+
function p(e, r) {
|
|
138
|
+
if (null == e) return {};
|
|
139
|
+
var n, t, o = f(e, r);
|
|
144
140
|
if (Object.getOwnPropertySymbols) {
|
|
145
141
|
var a = Object.getOwnPropertySymbols(e);
|
|
146
|
-
for (
|
|
147
|
-
n = a[o];
|
|
148
|
-
if (r.indexOf(n) >= 0) continue;
|
|
149
|
-
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
150
|
-
t[n] = e[n];
|
|
142
|
+
for (t = 0; t < a.length; t++) {
|
|
143
|
+
n = a[t], r.includes(n) || {}.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
|
|
151
144
|
}
|
|
152
145
|
}
|
|
153
|
-
return
|
|
146
|
+
return o;
|
|
154
147
|
}
|
|
155
|
-
function
|
|
156
|
-
if (
|
|
157
|
-
var
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
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
|
+
}
|
|
164
156
|
}
|
|
165
|
-
return
|
|
157
|
+
return n;
|
|
166
158
|
}
|
|
167
159
|
var d = {
|
|
168
160
|
children: a().node.isRequired,
|
|
@@ -172,17 +164,17 @@
|
|
|
172
164
|
* The screen reader text is used to wrap content that
|
|
173
165
|
* is only accessible through screen readers.
|
|
174
166
|
*/ function v(e) {
|
|
175
|
-
var
|
|
167
|
+
var n = e.children, t = e.elementRef, o = p(e, [ "children", "elementRef" ]);
|
|
176
168
|
// @docs-props-type ScreenReaderContentPropsBase
|
|
177
169
|
|
|
178
|
-
return r().createElement(
|
|
170
|
+
return r().createElement(s, c({
|
|
179
171
|
"data-test": "screen-reader-content",
|
|
180
|
-
ref:
|
|
181
|
-
}, o),
|
|
172
|
+
ref: t
|
|
173
|
+
}, o), n);
|
|
182
174
|
}
|
|
183
175
|
v.propTypes = d;
|
|
184
176
|
/* harmony default export */ const y = v;
|
|
185
177
|
}) // CONCATENATED MODULE: ./src/ScreenReaderContent/index.ts
|
|
186
178
|
();
|
|
187
|
-
module.exports =
|
|
179
|
+
module.exports = t;
|
|
188
180
|
/******/})();
|