@splunk/react-ui 4.42.0 → 4.44.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/ButtonGroup.js +10 -11
- package/ButtonSimple.js +209 -209
- package/CHANGELOG.md +41 -0
- package/Clickable.js +1 -1
- package/Code.js +611 -426
- package/ComboBox.js +25 -32
- package/Date.js +42 -27
- package/Dropdown.js +1 -1
- package/DualListbox.js +1 -1
- package/JSONTree.js +30 -24
- package/MIGRATION.mdx +70 -54
- package/Menu.js +13 -9
- package/Multiselect.js +1 -1
- package/Number.js +345 -317
- package/Paginator.js +269 -251
- package/Popover.js +412 -345
- package/RadioList.js +44 -43
- package/ResultsMenu.d.ts +2 -0
- package/Search.js +56 -65
- package/Select.js +1 -1
- package/Slider.js +17 -13
- package/StaticContent.js +15 -13
- package/TabBar.js +4 -0
- package/Table.js +162 -153
- package/TransitionOpen.js +16 -14
- package/Tree.d.ts +2 -0
- package/Tree.js +20 -14
- package/package.json +6 -6
- package/types/src/Button/Button.d.ts +1 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/ComboBox.d.ts +6 -3
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
- package/types/src/Multiselect/Multiselect.d.ts +2 -0
- package/types/src/Number/Number.d.ts +4 -10
- package/types/src/Number/utils.d.ts +29 -0
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +17 -8
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/RadioList/RadioList.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +1 -11
- package/types/src/Select/docs/examples/Basic.d.ts +1 -9
- package/types/src/Select/docs/examples/Children.d.ts +1 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +1 -9
- package/types/src/Select/docs/examples/Fetching.d.ts +1 -22
- package/types/src/Select/docs/examples/Filter.d.ts +1 -9
- package/types/src/Select/docs/examples/Headings.d.ts +1 -9
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +1 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +1 -9
- package/types/src/Slider/Slider.d.ts +1 -1
- package/types/src/StaticContent/StaticContent.d.ts +3 -1
- package/types/src/Table/docs/examples/Click.d.ts +2 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -16
- package/types/src/Table/docs/examples/Complex.d.ts +2 -50
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -13
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +1 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +1 -11
- package/useResizeObserver.js +122 -90
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Popover/PopoverContext.d.ts +0 -6
package/ButtonGroup.js
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
default: () => /* reexport */
|
|
64
|
+
default: () => /* reexport */ m
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
67
|
const n = require("react");
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
var i = e.n(a);
|
|
75
75
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
76
76
|
const u = require("@splunk/react-ui/Box");
|
|
77
|
-
var
|
|
77
|
+
var c = e.n(u);
|
|
78
78
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
79
|
-
const
|
|
79
|
+
const s = require("@splunk/themes");
|
|
80
80
|
// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroupStyles.ts
|
|
81
|
-
var p = i()(
|
|
81
|
+
var p = i()(c()).withConfig({
|
|
82
82
|
displayName: "ButtonGroupStyles__StyledBox",
|
|
83
83
|
componentId: "sc-14fs2xs-0"
|
|
84
|
-
})([ "position:relative;[data-inline] + &{margin-left:", ";}" ],
|
|
84
|
+
})([ "position:relative;[data-inline] + &{margin-left:", ";}" ], s.variables.spacingSmall);
|
|
85
85
|
// CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroup.tsx
|
|
86
86
|
function f() {
|
|
87
87
|
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
children: l().node,
|
|
121
121
|
elementRef: l().oneOfType([ l().func, l().object ])
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function b(e) {
|
|
124
124
|
var r = e.children, o = d(e, [ "children" ]);
|
|
125
125
|
// @docs-props-type ButtonGroupPropsBase
|
|
126
126
|
var l = n.Children.toArray(r).filter(n.isValidElement).map((function(e, r, t) {
|
|
@@ -129,8 +129,7 @@
|
|
|
129
129
|
return (0, n.cloneElement)(e, {
|
|
130
130
|
prepend: r > 0,
|
|
131
131
|
append: r < o - 1,
|
|
132
|
-
inline: false
|
|
133
|
-
role: e.props && e.props.role || "menuitem"
|
|
132
|
+
inline: false
|
|
134
133
|
});
|
|
135
134
|
}));
|
|
136
135
|
|
|
@@ -138,11 +137,11 @@
|
|
|
138
137
|
inline: true,
|
|
139
138
|
flex: true,
|
|
140
139
|
"data-test": "button-group",
|
|
141
|
-
role: "
|
|
140
|
+
role: "group"
|
|
142
141
|
}, o), l);
|
|
143
142
|
}
|
|
144
|
-
|
|
145
|
-
/* harmony default export */ const
|
|
143
|
+
b.propTypes = v;
|
|
144
|
+
/* harmony default export */ const m = b;
|
|
146
145
|
// CONCATENATED MODULE: ./src/ButtonGroup/index.ts
|
|
147
146
|
module.exports = r;
|
|
148
147
|
/******/})();
|