@splunk/react-ui 5.2.0 → 5.3.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/Avatar.js +57 -52
- package/Box.js +2 -1
- package/CHANGELOG.md +31 -0
- package/Calendar.js +8 -4
- package/Checkbox.d.ts +2 -0
- package/Checkbox.js +350 -0
- package/Code.js +151 -132
- package/CollapsiblePanel.js +184 -210
- package/Color.js +4 -2
- package/ControlGroup.js +2 -1
- package/Date.js +123 -119
- package/DefinitionList.js +100 -77
- package/Dropdown.js +2 -2
- package/DualListbox.js +409 -353
- package/File.js +102 -99
- package/JSONTree.js +317 -303
- package/Link.js +11 -11
- package/MIGRATION.md +27 -0
- package/Markdown.js +162 -151
- package/Menu.js +44 -42
- package/Modal.js +3 -3
- package/Multiselect.js +454 -435
- package/Paginator.js +2 -1
- package/ResultsMenu.js +2 -1
- package/Scroll.js +2 -1
- package/Search.js +131 -127
- package/Select.js +3 -2
- package/Switch.js +197 -229
- package/Table.js +24 -16
- package/Text.js +180 -206
- package/TextArea.js +233 -224
- package/Tooltip.js +144 -139
- package/package.json +9 -10
- package/tsconfig.check-docs.json +8 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +1 -1
- package/types/src/Checkbox/Checkbox.d.ts +90 -0
- package/types/src/Checkbox/docs/examples/Basic.d.ts +7 -0
- package/types/src/Checkbox/docs/examples/Disabled.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Error.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Uncontrolled.d.ts +7 -0
- package/types/src/Checkbox/index.d.ts +2 -0
- package/types/src/Code/Code.d.ts +4 -1
- package/types/src/Code/LineHighlights.d.ts +1 -0
- package/types/src/Code/LineNumbers.d.ts +2 -1
- package/types/src/Code/docs/examples/CustomizeContainer.d.ts +7 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +3 -3
- package/types/src/Date/Date.d.ts +7 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +7 -2
- package/types/src/DefinitionList/DefinitionListContext.d.ts +1 -1
- package/types/src/DefinitionList/docs/examples/StackedLayout.d.ts +6 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +7 -7
- package/types/src/DualListbox/Listbox.d.ts +2 -2
- package/types/src/DualListbox/ListboxContext.d.ts +1 -1
- package/types/src/File/File.d.ts +7 -1
- package/types/src/JSONTree/JSONTreeItem.d.ts +4 -2
- package/types/src/JSONTree/renderTreeItems.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +1 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +7 -1
- package/types/src/Multiselect/Multiselect.d.ts +7 -1
- package/types/src/Multiselect/Normal.d.ts +7 -1
- package/types/src/Search/Search.d.ts +5 -1
- package/types/src/Switch/Switch.d.ts +7 -1
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -10
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -9
- package/types/src/Table/ExpandButton.d.ts +1 -1
- package/types/src/Tooltip/Tooltip.d.ts +14 -1
- package/NonInteractiveCheckbox.js +0 -101
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +0 -12
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +0 -22
- package/types/src/NonInteractiveCheckbox/index.d.ts +0 -1
- package/types/src/Switch/docs/examples/Error.d.ts +0 -6
- package/types/src/Text/IconOutlinedHide.d.ts +0 -3
- package/types/src/Text/IconOutlinedView.d.ts +0 -3
- /package/cypress/{tsconfig.cypress.json → tsconfig.check-cypress.json} +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
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 o in t) {
|
|
28
|
-
/******/ if (e.o(t, o) && !e.o(r, o)) {
|
|
29
|
-
/******/ Object.defineProperty(r, o, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: t[o]
|
|
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 */ i
|
|
65
|
-
});
|
|
66
|
-
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const t = require("react");
|
|
68
|
-
var o = e.n(t);
|
|
69
|
-
// CONCATENATED MODULE: external "prop-types"
|
|
70
|
-
const a = require("prop-types");
|
|
71
|
-
var n = e.n(a);
|
|
72
|
-
// CONCATENATED MODULE: external "@splunk/react-ui/Switch"
|
|
73
|
-
const l = require("@splunk/react-ui/Switch");
|
|
74
|
-
var c = e.n(l);
|
|
75
|
-
// CONCATENATED MODULE: ./src/NonInteractiveCheckbox/NonInteractiveCheckbox.tsx
|
|
76
|
-
var s = {
|
|
77
|
-
disabled: n().bool,
|
|
78
|
-
selected: n().oneOfType([ n().bool, n().oneOf([ "some" ]) ])
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* NonInteractiveCheckbox is a private component that replaced our internal usage of Switch's interactive={false}
|
|
82
|
-
* for components like Menu.Item, Table.Toggle, etc. (SUI-6757)
|
|
83
|
-
*
|
|
84
|
-
*/ var d = function e(r) {
|
|
85
|
-
var t = r.className, a = r.disabled, n = r.selected;
|
|
86
|
-
|
|
87
|
-
return o().createElement(c(), {
|
|
88
|
-
appearance: "checkbox",
|
|
89
|
-
className: t,
|
|
90
|
-
"data-test": "non-interactive-checkbox",
|
|
91
|
-
disabled: a,
|
|
92
|
-
role: "presentation",
|
|
93
|
-
selected: n,
|
|
94
|
-
tabIndex: -1
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
d.propTypes = s;
|
|
98
|
-
/* harmony default export */ const i = d;
|
|
99
|
-
// CONCATENATED MODULE: ./src/NonInteractiveCheckbox/index.ts
|
|
100
|
-
module.exports = r;
|
|
101
|
-
/******/})();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
type ExpandPanelIconProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const ExpandPanelIcon: {
|
|
7
|
-
({ className }: ExpandPanelIconProps): React.JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
className: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default ExpandPanelIcon;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { ComponentProps } from '../utils/types';
|
|
4
|
-
interface NonInteractiveCheckboxPropsBase {
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
selected?: boolean | 'some';
|
|
7
|
-
}
|
|
8
|
-
type NonInteractiveCheckboxProps = ComponentProps<NonInteractiveCheckboxPropsBase, 'div'>;
|
|
9
|
-
/**
|
|
10
|
-
* NonInteractiveCheckbox is a private component that replaced our internal usage of Switch's interactive={false}
|
|
11
|
-
* for components like Menu.Item, Table.Toggle, etc. (SUI-6757)
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
declare const NonInteractiveCheckbox: {
|
|
15
|
-
({ className, disabled, selected }: NonInteractiveCheckboxProps): React.JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
18
|
-
selected: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default NonInteractiveCheckbox;
|
|
22
|
-
export { NonInteractiveCheckboxPropsBase };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NonInteractiveCheckbox';
|
|
File without changes
|