@splunk/react-ui 4.23.0 → 4.25.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/Breadcrumbs.js +99 -124
- package/Button.js +8 -7
- package/ButtonSimple.js +40 -39
- package/CHANGELOG.md +22 -0
- package/Code.js +193 -100
- package/Color.js +18 -15
- package/ComboBox.js +49 -37
- package/JSONTree.js +210 -177
- package/Menu.js +643 -472
- package/Modal.js +265 -226
- package/Multiselect.js +634 -620
- package/RadioList.js +12 -11
- package/ResultsMenu.js +863 -148
- package/Search.js +3 -1
- package/Select.js +427 -416
- package/TabBar.js +2 -2
- package/Table.js +2 -2
- package/Tree.js +617 -0
- package/cypress/README.md +11 -0
- package/cypress/support/commands.ts +1 -0
- package/cypress/support/component.ts +0 -1
- package/cypress/tsconfig.cypress.json +14 -0
- package/package.json +12 -12
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +7 -1
- package/types/src/Breadcrumbs/Item.d.ts +8 -2
- package/types/src/Button/Button.d.ts +4 -2
- package/types/src/Button/docs/examples/Block.d.ts +2 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Button/docs/examples/Icons.d.ts +2 -2
- package/types/src/Button/docs/examples/Menus.d.ts +2 -2
- package/types/src/Button/docs/examples/To.d.ts +2 -2
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/Basic.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/Block.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/Dimmed.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Disabled.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/Menus.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/To.d.ts +2 -2
- package/types/src/Button/docs/examples/prisma/Truncated.d.ts +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +4 -2
- package/types/src/Color/Color.d.ts +5 -3
- package/types/src/ComboBox/ComboBox.d.ts +6 -0
- package/types/src/JSONTree/JSONTree.d.ts +3 -2
- package/types/src/Menu/Menu.d.ts +14 -1
- package/types/src/Modal/Header.d.ts +0 -2
- package/types/src/Modal/Modal.d.ts +7 -0
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +6 -0
- package/types/src/Multiselect/Multiselect.d.ts +7 -0
- package/types/src/RadioList/RadioList.d.ts +27 -27
- package/types/src/RadioList/RadioListContext.d.ts +5 -4
- package/types/src/ResultsMenu/ResultsMenu.d.ts +53 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +9 -0
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +33 -0
- package/types/src/ResultsMenu/VirtualizedResultsMenu/groupChildren.d.ts +16 -0
- package/types/src/ResultsMenu/VirtualizedResultsMenu/index.d.ts +3 -0
- package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +21 -0
- package/types/src/ResultsMenu/index.d.ts +2 -1
- package/types/src/Select/Select.d.ts +2 -0
- package/types/src/Select/SelectBase.d.ts +6 -0
- package/types/src/Tree/Tree.d.ts +24 -0
- package/types/src/Tree/TreeContext.d.ts +13 -0
- package/types/src/Tree/TreeItem.d.ts +31 -0
- package/types/src/Tree/index.d.ts +3 -0
- package/types/src/Tree/treeUtils.d.ts +29 -0
- package/types/unit-test-setup-testing-library.d.ts +1 -0
- package/types/src/Modal/docs/examples/prisma/TypicalUsage.d.ts +0 -2
package/RadioList.js
CHANGED
|
@@ -303,7 +303,8 @@
|
|
|
303
303
|
value: b.toString(),
|
|
304
304
|
checked: O,
|
|
305
305
|
onChange: C,
|
|
306
|
-
"data-test": "input"
|
|
306
|
+
"data-test": "input",
|
|
307
|
+
required: x.required
|
|
307
308
|
}), o().createElement(f, {
|
|
308
309
|
htmlFor: k,
|
|
309
310
|
"data-test": "label"
|
|
@@ -413,19 +414,19 @@
|
|
|
413
414
|
return a;
|
|
414
415
|
}
|
|
415
416
|
var N = {
|
|
416
|
-
direction: t().oneOf([ "row", "column" ]),
|
|
417
417
|
children: t().node,
|
|
418
418
|
defaultValue: t().any,
|
|
419
|
+
describedBy: t().string,
|
|
420
|
+
direction: t().oneOf([ "row", "column" ]),
|
|
419
421
|
disabled: t().bool,
|
|
420
422
|
elementRef: t().oneOfType([ t().func, t().object ]),
|
|
421
423
|
error: t().bool,
|
|
424
|
+
labelledBy: t().string,
|
|
422
425
|
name: t().string,
|
|
423
426
|
onChange: t().func,
|
|
424
427
|
/** @private. */
|
|
425
428
|
required: t().bool,
|
|
426
|
-
value: t().any
|
|
427
|
-
labelledBy: t().string,
|
|
428
|
-
describedBy: t().string
|
|
429
|
+
value: t().any
|
|
429
430
|
};
|
|
430
431
|
function R(e) {
|
|
431
432
|
var r = e.children, i = e.defaultValue, t = e.describedBy, n = e.direction, c = n === void 0 ? "column" : n, u = e.disabled, b = u === void 0 ? false : u, p = e.error, v = p === void 0 ? false : p, f = e.labelledBy, y = e.name, g = e.onChange, m = e.required, h = e.value, k = B(e, [ "children", "defaultValue", "describedBy", "direction", "disabled", "error", "labelledBy", "name", "onChange", "required", "value" ]);
|
|
@@ -459,11 +460,12 @@
|
|
|
459
460
|
|
|
460
461
|
return o().createElement(d.Provider, {
|
|
461
462
|
value: {
|
|
462
|
-
|
|
463
|
-
name: E,
|
|
464
|
-
onChange: D,
|
|
463
|
+
disabled: b,
|
|
465
464
|
error: v,
|
|
466
|
-
|
|
465
|
+
onChange: D,
|
|
466
|
+
name: E,
|
|
467
|
+
required: m,
|
|
468
|
+
value: _
|
|
467
469
|
}
|
|
468
470
|
}, o().createElement(S, j({
|
|
469
471
|
flex: true,
|
|
@@ -473,8 +475,7 @@
|
|
|
473
475
|
"data-test-value": _
|
|
474
476
|
}, l()(k, [ "aria-labelledby", "aria-describedby" ]), {
|
|
475
477
|
"aria-labelledby": M ? "".concat(M, " ").concat(f) : f,
|
|
476
|
-
"aria-describedby": T ? "".concat(T, " ").concat(t) : t
|
|
477
|
-
"aria-required": m
|
|
478
|
+
"aria-describedby": T ? "".concat(T, " ").concat(t) : t
|
|
478
479
|
}), r));
|
|
479
480
|
}
|
|
480
481
|
R.propTypes = N;
|