@splunk/react-ui 4.22.0 → 4.23.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 +22 -0
- package/Color.js +289 -293
- package/ComboBox.js +3 -3
- package/Date.js +3 -3
- package/DualListbox.js +2 -2
- package/File.js +15 -15
- package/JSONTree.js +204 -219
- package/List.js +17 -12
- package/MIGRATION.mdx +14 -0
- package/Message.js +1 -1
- package/Multiselect.js +168 -168
- package/Number.js +3 -3
- package/Search.js +2 -2
- package/Select.js +390 -390
- package/Text.js +25 -15
- package/TextArea.js +27 -17
- package/package.json +5 -4
- package/types/src/ComboBox/ComboBox.d.ts +13 -3
- package/types/src/Date/Date.d.ts +13 -3
- package/types/src/Dropdown/Dropdown.d.ts +2 -2
- package/types/src/JSONTree/JSONTree.d.ts +22 -13
- package/types/src/JSONTree/TreeNode.d.ts +4 -3
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +1 -0
- package/types/src/List/List.d.ts +11 -4
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Number/Number.d.ts +13 -3
- package/types/src/Search/Search.d.ts +13 -3
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Text/Text.d.ts +13 -3
- package/types/src/TextArea/TextArea.d.ts +13 -3
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +0 -1
- /package/types/src/Card/docs/examples/{prisma/Actions.d.ts → Actions.d.ts} +0 -0
package/List.js
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(t, {
|
|
64
64
|
Item: () => /* reexport */ v,
|
|
65
|
-
default: () => /* reexport */
|
|
65
|
+
default: () => /* reexport */ P
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const r = require("react");
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
77
77
|
const c = require("@splunk/themes");
|
|
78
78
|
// CONCATENATED MODULE: ./src/List/ListStyles.ts
|
|
79
|
-
var f = a().
|
|
80
|
-
displayName: "
|
|
79
|
+
var f = a().ul.withConfig({
|
|
80
|
+
displayName: "ListStyles__StyledUl",
|
|
81
81
|
componentId: "sc-1yyh8l9-0"
|
|
82
82
|
})([ "", ";", ";list-style-type:", ";padding-left:40px;margin-bottom:1.3em;margin-top:1em;" ], c.mixins.reset("block"), c.mixins.typography("body"), (function(e) {
|
|
83
|
-
var t = e.$
|
|
83
|
+
var t = e.$listStyleType;
|
|
84
84
|
return t;
|
|
85
85
|
}));
|
|
86
86
|
var p = a().li.withConfig({
|
|
@@ -194,21 +194,26 @@
|
|
|
194
194
|
ordered: i().bool,
|
|
195
195
|
type: i().oneOf([ "disc", "decimal", "lower-alpha", "upper-alpha" ])
|
|
196
196
|
};
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
var j = {
|
|
198
|
+
type: "disc"
|
|
199
|
+
};
|
|
200
|
+
function S(e) {
|
|
201
|
+
var t = e.children, r = e.elementRef, o = e.type, i = e.ordered, l = O(e, [ "children", "elementRef", "type", "ordered" ]);
|
|
199
202
|
// @docs-props-type ListPropsBase
|
|
203
|
+
// Default prop value is "disc", we cannot determine if user or defaultProps is setting the value
|
|
200
204
|
if (false) {}
|
|
201
205
|
|
|
202
206
|
return n().createElement(f, b({
|
|
203
|
-
as:
|
|
207
|
+
as: i || o !== "disc" ? "ol" : "ul",
|
|
204
208
|
"data-test": "list",
|
|
205
209
|
ref: r,
|
|
206
|
-
$
|
|
207
|
-
},
|
|
210
|
+
$listStyleType: i ? "decimal" : o
|
|
211
|
+
}, l), t);
|
|
208
212
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
S.propTypes = g;
|
|
214
|
+
S.defaultProps = j;
|
|
215
|
+
S.Item = v;
|
|
216
|
+
/* harmony default export */ const P = S;
|
|
212
217
|
// CONCATENATED MODULE: ./src/List/index.ts
|
|
213
218
|
module.exports = t;
|
|
214
219
|
/******/})();
|
package/MIGRATION.mdx
CHANGED
|
@@ -5,6 +5,20 @@ import Table from '@splunk/react-ui/Table';
|
|
|
5
5
|
|
|
6
6
|
This document lists migration guidance for new features and breaking changes.
|
|
7
7
|
|
|
8
|
+
## 4.23.0
|
|
9
|
+
|
|
10
|
+
### Deprecated `JSONTree`'s `expandChildren="withShiftModifier"` value
|
|
11
|
+
|
|
12
|
+
#### Change
|
|
13
|
+
`JSONTree`'s `expandChildren="withShiftModifier"` value has been deprecated and will be removed in a future major version. A new prop `expandChildrenOnShiftKey` has been added to `JSONTree` to expand all descendant nodes when using `shift + click` or `shift + enter`.
|
|
14
|
+
|
|
15
|
+
#### Context
|
|
16
|
+
Separating the `shift + click` capability from `expandChildren` allows users to decide if they want to enable `shift + click` to expand all descendant nodes independently of
|
|
17
|
+
choosing to initially render the tree expanded.
|
|
18
|
+
|
|
19
|
+
#### Migration steps
|
|
20
|
+
Replace all usage of `JSONTree`'s `expandChildren="withShiftModifier"` value with the `expandChildrenOnShiftKey` prop.
|
|
21
|
+
|
|
8
22
|
## 4.18.0
|
|
9
23
|
|
|
10
24
|
### Deprecated `level="s"` and `level="ss"` and added new `variant` prop for `Heading`
|
package/Message.js
CHANGED
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
var D = I().div.withConfig({
|
|
181
181
|
displayName: "MessageStyles__StyledContent",
|
|
182
182
|
componentId: "eg66af-0"
|
|
183
|
-
})([ "display:flex;align-items:baseline;", ";", " ", ";" ], (0, E.pick)({
|
|
183
|
+
})([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0, E.pick)({
|
|
184
184
|
prisma: (0, P.css)([ "padding:", " 0;color:", ";" ], E.variables.spacingMedium, E.variables.contentColorActive),
|
|
185
185
|
enterprise: (0, P.css)([ "padding:12px 0;" ])
|
|
186
186
|
}), (0, E.pick)({
|