@splunk/react-ui 5.0.0-beta.2 → 5.0.0-beta.4
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 +185 -243
- package/Animation.js +2 -2
- package/Button.js +4 -4
- package/ButtonGroup.js +10 -11
- package/ButtonSimple.js +48 -42
- package/CHANGELOG.md +26 -0
- package/CHANGELOG.v5.mdx +81 -0
- package/Calendar.js +352 -469
- package/Card.js +178 -321
- package/Chip.js +154 -296
- package/Clickable.js +30 -30
- package/Code.js +64 -49
- package/Color.js +546 -462
- package/ComboBox.js +575 -767
- package/Date.js +144 -136
- package/Divider.js +29 -26
- package/DualListbox.js +441 -444
- package/File.js +707 -981
- package/FormRows.js +260 -286
- package/Image.js +124 -251
- package/JSONTree.js +129 -129
- package/Layout.d.ts +2 -0
- package/Link.js +12 -12
- package/MIGRATION.mdx +22 -1
- package/MIGRATION.v5.mdx +12 -1
- package/Menu.js +76 -76
- package/Message.js +77 -100
- package/MessageBar.js +141 -251
- package/Modal.js +42 -40
- package/ModalLayer.js +12 -12
- package/Multiselect.js +1989 -2362
- package/NonInteractiveCheckbox.js +30 -118
- package/Number.js +75 -73
- package/Popover.js +348 -350
- package/Progress.js +1 -1
- package/RadioBar.js +136 -136
- package/Resize.js +62 -65
- package/Scroll.js +2 -2
- package/Select.js +281 -283
- package/SidePanel.js +53 -55
- package/Slider.js +370 -364
- package/SlidingPanels.js +100 -102
- package/SplitButton.js +170 -343
- package/StaticContent.js +15 -13
- package/StepBar.js +61 -60
- package/Switch.js +150 -164
- package/TabBar.js +544 -417
- package/Table.js +1711 -1540
- package/Text.js +28 -26
- package/TextArea.js +26 -26
- package/Tooltip.js +416 -562
- package/TransitionOpen.js +179 -158
- package/Tree.d.ts +2 -0
- package/WaitSpinner.js +1 -1
- package/package.json +7 -9
- package/types/src/Accordion/Accordion.d.ts +14 -21
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Animation/Animation.d.ts +2 -3
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/useAnimationToggle.d.ts +1 -1
- package/types/src/Button/Button.d.ts +2 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -3
- package/types/src/ButtonSimple/mixin.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/{DateTable.d.ts → DateGrid.d.ts} +9 -9
- package/types/src/Calendar/Day.d.ts +8 -4
- package/types/src/Card/Card.d.ts +27 -14
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Clickable/Clickable.d.ts +1 -1
- package/types/src/CollapsiblePanel/SingleOpenPanelGroupContext.d.ts +0 -1
- package/types/src/Color/Color.d.ts +3 -3
- package/types/src/Color/ColorInput.d.ts +27 -0
- package/types/src/Color/Palette.d.ts +11 -18
- package/types/src/Color/Swatch.d.ts +3 -1
- package/types/src/ComboBox/ComboBox.d.ts +46 -50
- package/types/src/ComboBox/Option.d.ts +34 -18
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/Date/Date.d.ts +3 -2
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/DefinitionList/DefinitionListContext.d.ts +0 -1
- package/types/src/Divider/Divider.d.ts +14 -6
- package/types/src/Divider/docs/examples/Appearance.d.ts +3 -0
- package/types/src/DualListbox/DualListbox.d.ts +5 -1
- package/types/src/File/File.d.ts +6 -6
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/File/Item.d.ts +11 -3
- package/types/src/File/ItemIcon.d.ts +7 -0
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +8 -8
- package/types/src/FormRows/FormRowsContext.d.ts +1 -2
- package/types/src/FormRows/Row.d.ts +2 -2
- package/types/src/FormRows/RowInternal.d.ts +1 -1
- package/types/src/FormRows/SortableRow.d.ts +3 -3
- package/types/src/FormRows/docs/examples/Basic.d.ts +2 -2
- package/types/src/FormRows/docs/examples/Header.d.ts +2 -2
- package/types/src/FormRows/docs/examples/Menu.d.ts +2 -2
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +2 -2
- package/types/src/Image/Image.d.ts +1 -4
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/Layout/Layout.d.ts +1 -0
- package/types/src/Link/icons/External.d.ts +1 -2
- package/types/src/Menu/Divider.d.ts +1 -1
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/MessageBar/MessageBar.d.ts +5 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/Multiselect/Compact.d.ts +49 -21
- package/types/src/Multiselect/Multiselect.d.ts +73 -30
- package/types/src/Multiselect/Normal.d.ts +46 -57
- package/types/src/Multiselect/Option.d.ts +42 -18
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +9 -8
- package/types/src/Number/Number.d.ts +1 -0
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Popover/Popover.d.ts +1 -1
- package/types/src/Popover/PopoverMenuContext.d.ts +0 -1
- package/types/src/RadioBar/RadioBar.d.ts +1 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Search/Search.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +2 -2
- package/types/src/SidePanel/SidePanel.d.ts +8 -3
- package/types/src/Slider/Slider.d.ts +1 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/getStepMarksBackground.d.ts +8 -0
- package/types/src/SlidingPanels/Panel.d.ts +2 -2
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SplitButton/Item.d.ts +34 -20
- package/types/src/SplitButton/SplitButton.d.ts +4 -1
- package/types/src/StaticContent/StaticContent.d.ts +3 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +1 -1
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/Switch/Switch.d.ts +1 -9
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/TabBar/Tab.d.ts +12 -5
- package/types/src/TabBar/TabBar.d.ts +4 -3
- package/types/src/TabBar/TabBarContext.d.ts +7 -2
- package/types/src/Table/Head.d.ts +4 -15
- package/types/src/Table/HeadCell.d.ts +23 -25
- package/types/src/Table/HeadDropdownCell.d.ts +23 -26
- package/types/src/Table/HeadInner.d.ts +4 -10
- package/types/src/Table/Row.d.ts +6 -6
- package/types/src/Table/Table.d.ts +3 -8
- package/types/src/Table/TableContext.d.ts +0 -1
- package/types/src/Table/Toggle.d.ts +1 -1
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/Tooltip/Tooltip.d.ts +26 -58
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/TransitionOpen/TransitionOpen.d.ts +6 -1
- package/types/src/Tree/TreeContext.d.ts +0 -1
- package/types/src/useForceUpdate/useForceUpdate.d.ts +0 -1
- package/types/src/useResizeObserver/useResizeObserver.d.ts +2 -1
- package/types/src/utils/types.d.ts +2 -3
- package/useResizeObserver.js +26 -19
- package/types/src/File/Icon.d.ts +0 -3
- package/types/src/File/IconCloud.d.ts +0 -3
- package/types/src/File/PaperClip.d.ts +0 -3
- package/types/src/File/Retry.d.ts +0 -2
- package/types/src/File/Trash.d.ts +0 -3
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +0 -3
- package/types/src/Image/icons/Cross.d.ts +0 -3
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +0 -3
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +0 -3
- package/types/src/Tooltip/InfoIcon.d.ts +0 -4
package/ButtonSimple.js
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
// EXPORTS
|
|
63
63
|
r.d(e, {
|
|
64
64
|
buttonMixin: () => /* reexport */ C,
|
|
65
|
-
default: () => /* reexport */
|
|
65
|
+
default: () => /* reexport */ M
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const o = require("react");
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
80
80
|
const d = require("@splunk/themes");
|
|
81
81
|
// CONCATENATED MODULE: external "lodash/merge"
|
|
82
|
-
const
|
|
83
|
-
var
|
|
82
|
+
const b = require("lodash/merge");
|
|
83
|
+
var v = r.n(b);
|
|
84
84
|
// CONCATENATED MODULE: ./src/ButtonSimple/mixin.ts
|
|
85
85
|
function u(r) {
|
|
86
86
|
"@babel/helpers - typeof";
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
91
91
|
}, u(r);
|
|
92
92
|
}
|
|
93
|
-
var p = [ "primary", "secondary", "destructive", "destructiveSecondary", "subtle" ];
|
|
93
|
+
var p = [ "primary", "secondary", "destructive", "destructiveSecondary", "subtle", "standalone" ];
|
|
94
94
|
function y(r) {
|
|
95
95
|
var e = "transparent";
|
|
96
96
|
var o = "transparent";
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
var c;
|
|
102
102
|
var l;
|
|
103
103
|
var s = d.variables.contentColorActive;
|
|
104
|
-
var
|
|
105
|
-
var
|
|
104
|
+
var b;
|
|
105
|
+
var v = d.variables.contentColorDisabled;
|
|
106
106
|
var u;
|
|
107
107
|
switch (r) {
|
|
108
108
|
case "primary":
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
a = d.variables.actionColorBackgroundPrimaryDisabled;
|
|
113
113
|
t = d.variables.actionColorBackgroundPrimaryHover;
|
|
114
114
|
s = d.variables.contentColorInverted;
|
|
115
|
-
|
|
115
|
+
v = d.variables.contentColorInverted;
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
a = d.variables.actionColorBackgroundDestructiveDisabled;
|
|
124
124
|
t = d.variables.actionColorBackgroundDestructiveHover;
|
|
125
125
|
s = d.variables.contentColorInverted;
|
|
126
|
-
|
|
126
|
+
v = d.variables.contentColorInverted;
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
a = d.variables.actionColorBackgroundDestructiveSecondaryDisabled;
|
|
139
139
|
t = d.variables.actionColorBackgroundDestructiveSecondaryHover;
|
|
140
140
|
s = d.variables.contentColorNegative;
|
|
141
|
-
|
|
141
|
+
v = d.variables.contentColorNegativeWeak;
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -153,9 +153,16 @@
|
|
|
153
153
|
break;
|
|
154
154
|
|
|
155
155
|
case "subtle":
|
|
156
|
+
b = d.variables.contentColorAccentStrong;
|
|
157
|
+
u = d.variables.contentColorAccentStrong;
|
|
158
|
+
o = d.variables.actionColorBackgroundSubtleActive;
|
|
159
|
+
t = d.variables.actionColorBackgroundSubtleHover;
|
|
160
|
+
break;
|
|
161
|
+
|
|
162
|
+
case "standalone":
|
|
156
163
|
s = d.variables.contentColorAccent;
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
b = d.variables.contentColorAccentStrong;
|
|
165
|
+
v = d.variables.contentColorAccentWeak;
|
|
159
166
|
u = d.variables.contentColorAccentStrong;
|
|
160
167
|
e = d.variables.actionColorBackgroundSubtle;
|
|
161
168
|
o = d.variables.actionColorBackgroundSubtleActive;
|
|
@@ -174,8 +181,8 @@
|
|
|
174
181
|
borderColorDisabled: c,
|
|
175
182
|
borderColorHover: l,
|
|
176
183
|
color: s,
|
|
177
|
-
colorActive:
|
|
178
|
-
colorDisabled:
|
|
184
|
+
colorActive: b,
|
|
185
|
+
colorDisabled: v,
|
|
179
186
|
colorHover: u
|
|
180
187
|
};
|
|
181
188
|
return p;
|
|
@@ -189,18 +196,18 @@
|
|
|
189
196
|
a = r;
|
|
190
197
|
}
|
|
191
198
|
var t = y(o);
|
|
192
|
-
var n =
|
|
193
|
-
var
|
|
199
|
+
var n = v()(t, a), c = n.background, l = n.backgroundActive, s = n.backgroundDisabled, b = n.backgroundDisabledSelected, f = n.backgroundHover, C = n.borderColor, g = n.borderColorActive, m = n.borderColorDisabled, k = n.borderColorHover, S = n.color, O = n.colorActive, B = n.colorDisabled, A = n.colorHover;
|
|
200
|
+
var D = c != null && c !== "transparent";
|
|
194
201
|
return function() {
|
|
195
|
-
return (0, i.css)([ "border:
|
|
202
|
+
return (0, i.css)([ "border:", " solid ", ";border-radius:", ";", " ", " cursor:pointer;position:relative;font-weight:", ";&:focus,&:hover{z-index:3;}&:focus{box-shadow:", ";}&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";color:", ";}&:active{background-color:", ";border-color:", ";color:", ";transition:none;}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";", "}" ], d.variables.inputBorderWidth, C, d.variables.borderRadius, (function(r) {
|
|
196
203
|
var e = r.$append;
|
|
197
204
|
return e && (0, i.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
|
|
198
205
|
}), (function(r) {
|
|
199
206
|
var e = r.$prepend;
|
|
200
207
|
return e && (0, i.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
|
|
201
|
-
}), d.variables.focusShadow, c, S, f, k,
|
|
208
|
+
}), d.variables.fontWeightSemiBold, d.variables.focusShadow, c, S, f, k, A, l, g, O, m, B, (function(r) {
|
|
202
209
|
var e = r.$selected;
|
|
203
|
-
return
|
|
210
|
+
return D && (0, i.css)([ "background-color:", ";" ], e ? b : s);
|
|
204
211
|
}));
|
|
205
212
|
};
|
|
206
213
|
}
|
|
@@ -257,12 +264,12 @@
|
|
|
257
264
|
}
|
|
258
265
|
return ("string" === e ? String : Number)(r);
|
|
259
266
|
}
|
|
260
|
-
var
|
|
267
|
+
var A = {
|
|
261
268
|
borderColor: d.variables.interactiveColorAccentError,
|
|
262
269
|
borderColorActive: d.variables.interactiveColorAccentError,
|
|
263
270
|
borderColorHover: d.mixins.overlayColors(d.variables.interactiveColorAccentError, d.variables.interactiveColorBorderHover)
|
|
264
271
|
};
|
|
265
|
-
var
|
|
272
|
+
var D = {
|
|
266
273
|
background: d.variables.interactiveColorBackground,
|
|
267
274
|
backgroundActive: d.variables.interactiveColorOverlayActive,
|
|
268
275
|
backgroundHover: d.variables.interactiveColorOverlayHover,
|
|
@@ -290,24 +297,25 @@
|
|
|
290
297
|
})([ "", " align-items:center;justify-content:center;&:not([disabled],[aria-disabled='true']){", "}", "" ], d.mixins.reset("flex"), (function(r) {
|
|
291
298
|
var e = r.$error, o = r.$isMenu;
|
|
292
299
|
return e && (0, i.css)([ "", "" ], (0, d.pickVariant)("$variant", {
|
|
293
|
-
default: o ? C("secondary", k(k({}, h),
|
|
294
|
-
secondary: C("secondary",
|
|
295
|
-
subtle: o ? C("secondary", k(k({},
|
|
300
|
+
default: o ? C("secondary", k(k({}, h), A)) : C("secondary", A),
|
|
301
|
+
secondary: o ? C("secondary", k(k({}, h), A)) : C("secondary", A),
|
|
302
|
+
subtle: o ? C("secondary", k(k({}, D), A)) : C("subtle", A)
|
|
296
303
|
}));
|
|
297
304
|
}), (function(r) {
|
|
298
305
|
var e = r.$isMenu;
|
|
299
306
|
return (0, d.pickVariant)("$variant", {
|
|
300
307
|
default: e ? C("secondary", h) : C("secondary"),
|
|
301
308
|
primary: C("primary"),
|
|
302
|
-
secondary: C("secondary"),
|
|
303
|
-
subtle: e ? C("secondary",
|
|
309
|
+
secondary: e ? C("secondary", h) : C("secondary"),
|
|
310
|
+
subtle: e ? C("secondary", D) : C("subtle"),
|
|
304
311
|
destructive: C("destructive"),
|
|
305
|
-
destructiveSecondary: C("destructiveSecondary")
|
|
312
|
+
destructiveSecondary: C("destructiveSecondary"),
|
|
313
|
+
standalone: C("standalone")
|
|
306
314
|
});
|
|
307
315
|
}));
|
|
308
316
|
// CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
|
|
309
|
-
function
|
|
310
|
-
return
|
|
317
|
+
function H() {
|
|
318
|
+
return H = Object.assign ? Object.assign.bind() : function(r) {
|
|
311
319
|
for (var e = 1; e < arguments.length; e++) {
|
|
312
320
|
var o = arguments[e];
|
|
313
321
|
for (var a in o) {
|
|
@@ -315,9 +323,9 @@
|
|
|
315
323
|
}
|
|
316
324
|
}
|
|
317
325
|
return r;
|
|
318
|
-
},
|
|
326
|
+
}, H.apply(null, arguments);
|
|
319
327
|
}
|
|
320
|
-
function
|
|
328
|
+
function w(r, e) {
|
|
321
329
|
if (null == r) return {};
|
|
322
330
|
var o, a, t = P(r, e);
|
|
323
331
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -339,10 +347,9 @@
|
|
|
339
347
|
}
|
|
340
348
|
return o;
|
|
341
349
|
}
|
|
342
|
-
var x =
|
|
343
|
-
var $ = {
|
|
350
|
+
var x = {
|
|
344
351
|
action: n().string,
|
|
345
|
-
appearance: n().oneOf([ "default", "secondary", "primary", "destructive", "subtle" ]),
|
|
352
|
+
appearance: n().oneOf([ "default", "secondary", "primary", "destructive", "destructiveSecondary", "subtle", "standalone" ]),
|
|
346
353
|
append: n().bool,
|
|
347
354
|
children: n().node,
|
|
348
355
|
disabled: n().oneOfType([ n().bool, n().oneOf([ "dimmed", "disabled" ]) ]),
|
|
@@ -353,25 +360,24 @@
|
|
|
353
360
|
prepend: n().bool,
|
|
354
361
|
to: n().string
|
|
355
362
|
};
|
|
356
|
-
var
|
|
357
|
-
var o = r.appearance, t = o === void 0 ? "default" : o, n = r.append, i = r.children, c = r.disabled, l = r.error, s = r.isMenu, d = r.prepend,
|
|
363
|
+
var $ = a().forwardRef((function(r, e) {
|
|
364
|
+
var o = r.appearance, t = o === void 0 ? "default" : o, n = r.append, i = r.children, c = r.disabled, l = r.error, s = r.isMenu, d = r.prepend, b = w(r, [ "appearance", "append", "children", "disabled", "error", "isMenu", "prepend" ]);
|
|
358
365
|
// @docs-props-type ButtonSimplePropsBase
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
return a().createElement(j, w({
|
|
366
|
+
|
|
367
|
+
return a().createElement(j, H({
|
|
362
368
|
"aria-invalid": l,
|
|
363
369
|
"data-test": "button-simple",
|
|
364
370
|
disabled: c,
|
|
365
|
-
$variant:
|
|
371
|
+
$variant: t,
|
|
366
372
|
$append: n,
|
|
367
373
|
$prepend: d,
|
|
368
374
|
$error: l,
|
|
369
375
|
$isMenu: s,
|
|
370
376
|
ref: e
|
|
371
|
-
},
|
|
377
|
+
}, b), i);
|
|
372
378
|
}));
|
|
373
|
-
|
|
374
|
-
/* harmony default export */ const
|
|
379
|
+
$.propTypes = x;
|
|
380
|
+
/* harmony default export */ const M = $;
|
|
375
381
|
// only for styled-components that wrap ButtonSimple
|
|
376
382
|
// CONCATENATED MODULE: ./src/ButtonSimple/index.ts
|
|
377
383
|
module.exports = e;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
4.45.0 - TBD
|
|
5
|
+
----------
|
|
6
|
+
Bug Fixes:
|
|
7
|
+
* `Table` now displays `cursor: default` when a row is not clickable and is an empty action cell (SUI-7232).
|
|
8
|
+
|
|
9
|
+
4.44.1 - April 10, 2025
|
|
10
|
+
----------
|
|
11
|
+
Bug Fixes:
|
|
12
|
+
* `Combobox` and `Multiselect` no longer call `onOpen` after selecting a value (SUI-7624).
|
|
13
|
+
|
|
14
|
+
4.44.0 - April 1, 2025
|
|
15
|
+
----------
|
|
16
|
+
New Features:
|
|
17
|
+
* `Number`'s `onChange` handler now includes a `reason` property in callback data (SUI-7401).
|
|
18
|
+
* `Date` does not render 'Invalid value' for empty strings when controlled (SUI-5993).
|
|
19
|
+
* `Date` does not revert value for empty strings when uncontrolled (SUI-5993).
|
|
20
|
+
|
|
21
|
+
Bug Fixes:
|
|
22
|
+
* `StaticContent` supports new prop `labelledBy` (SUI-5326).
|
|
23
|
+
* `Clickable` now displays the `not-allowed` cursor when disabled (SUI-7297).
|
|
24
|
+
* `Table` now renders dynamically added expansionRows (SUI-7403).
|
|
25
|
+
* `ButtonGroup`'s `role` has changed from `menubar` to `group`. Child `Button`'s `role`s have changed from `menuitem` to `button`. See the migration guide for details (SUI-6551).
|
|
26
|
+
* `Table`'s resize handler no longer triggers sorting or opening dropdown when `enter` key is pressed (SUI-7320).
|
|
27
|
+
* `Slider`'s disabled state now prevents the appearance of thumb focus when active and displays `not-allowed` cursor on the entire input (SUI-7498).
|
|
28
|
+
* `Table`'s stripe rows now extend all the way across the table for rows without actions (SUI-7232).
|
|
29
|
+
|
|
4
30
|
4.43.0 - March 4, 2025
|
|
5
31
|
----------
|
|
6
32
|
New Features:
|
package/CHANGELOG.v5.mdx
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
5.0.0-beta.4 - April 22, 2025
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* `Table.HeadCell` and `Table.HeadDropdownCell` now support `headCellScreenReaderText` prop to improve screen reader usability for column reordering (SUI-7209).
|
|
8
|
+
* `Tootip`'s icon is now the InformationCircle in all themes (SUI-6151).
|
|
9
|
+
* Input components now make use of the new `inputBorderWidth` design token where applicable (SUI-7348).
|
|
10
|
+
* `DualListbox` now supports the `elementRef` prop (SUI-7541).
|
|
11
|
+
* `MessageBar` now supports the `elementRef` prop (SUI-7661).
|
|
12
|
+
|
|
13
|
+
API Changes:
|
|
14
|
+
* `typescript` version is now `^5.8.3` (SUI-7601).
|
|
15
|
+
* `Image`'s preview is now a set size, `maxHeight` prop has been removed (SUI-7137).
|
|
16
|
+
* `react-spring@9.2.4` has been replaced by `@react-spring/web@9.7.5` (SUI-7585).
|
|
17
|
+
* `SplitButton.Item` now supports `icon` prop (SUI-7556).
|
|
18
|
+
|
|
19
|
+
Bug Fixes:
|
|
20
|
+
* `Select` with `filter` no longer loses focus when placed above the toggle (SUI-6973).
|
|
21
|
+
* `Select` could throw an incorrect "defaultValue prop change" error in some scenarios that were preventable. This has been fixed (SUI-7655).
|
|
22
|
+
* `Popover` will now reposition when the anchor moves or is resized (SUI-7558).
|
|
23
|
+
* `FormRows` will now throw an error when a row is sortable and/or removable and required index is not provided (SUI-5639).
|
|
24
|
+
* `Text` now only renders the `aria-disabled` attribute when `disabled="dimmed"` (SUI-7574).
|
|
25
|
+
* Removed usage of `withComponent` improve compatibility with `styled-components@6` (SUI-7602).
|
|
26
|
+
* `Progress` has correct height and `box-sizing` properties (SUI-7626).
|
|
27
|
+
* TabBar correctly maintains focus if child Tabs position is changed (SUI-6135).
|
|
28
|
+
|
|
29
|
+
TypeScript:
|
|
30
|
+
* `Clickable` now exports `ClickablePropsBase`, `ClickableButtonProps`, and `ClickableLinkProps` (SUI-7563).
|
|
31
|
+
* `TableRequestMoveColumnHandler` type no longer provides the `columnId` property (SUI-7209).
|
|
32
|
+
* `TableRequestMoveRowHandler` type no longer provides the `dataId` property (SUI-7209).
|
|
33
|
+
* `SlidingPanel`'s `activePanelId` and `SlidingPanel.Panel`'s `panelId` are now of type string or number (SUI-7005).
|
|
34
|
+
* `File.Item`'s `itemId` prop and the corresponding fields in `FileRequestRemoveHandler` and `FileRequestRetryHandler` are now `string` (SUI-7603).
|
|
35
|
+
* `StepBar`'s `activeStepId` prop and `StepBar.Step`'s `stepId` prop are now `number` (SUI-7603).
|
|
36
|
+
* `Table.HeadCell` and `Table.HeadDropdownCell`'s `columnId` props and the corresponding fields in `TableRequestResizeColumnHandler`, `HeadCellSortHandler`, `HeadDropdownCellRequestOpenHandler`, and `HeadDropdownCellRequestCloseHandler` are now `string` (SUI-7603).
|
|
37
|
+
* `ComboBox` now exports `ComboBoxScrollBottomHandler`.
|
|
38
|
+
* `Layout` now exports type definitions (SUI-7635).
|
|
39
|
+
* `SplitButton.Item` now has exported type `ItemClickHandler` for the `onClick` prop (SUI-7556).
|
|
40
|
+
|
|
41
|
+
5.0.0-beta.3 - April 2, 2025
|
|
42
|
+
----------
|
|
43
|
+
New Features:
|
|
44
|
+
* `Divider` supports a new `appearance` prop that can change the divider's border color (SUI-7132).
|
|
45
|
+
* `File` now renders document type icon when file name has a matching extension (SUI-7363).
|
|
46
|
+
* `Date`'s input now displays the Calendar icon in all themes when `inputOnly={true}` and hides the icon when `inputOnly={false}` (SUI-7130).
|
|
47
|
+
* `SplitButton` now supports appearance `destructiveSecondary` (SUI-7136).
|
|
48
|
+
|
|
49
|
+
API Changes:
|
|
50
|
+
* `File`'s test hook `[data-test="file-link"]` has been removed (SUI-7122).
|
|
51
|
+
* Use `[data-test="file-label"]` instead.
|
|
52
|
+
* `Color`'s uncontrolled mode should no longer call `onChange` on "enter" when the value did not change (SUI-7392).
|
|
53
|
+
* `Color`'s display string for `null` has been updated from "N/A" to "n/a" to align with the Splunk Style Guide (SUI-7392).
|
|
54
|
+
* `Color`'s popover input and system color picker no longer update the on-page input until the input is submitted (SUI-7392).
|
|
55
|
+
* `SidePanel` and `TransitionOpen` now support `elementRef` (SUI-7434).
|
|
56
|
+
* `Date` supports empty-string for `defaultValue` (SUI-7412).
|
|
57
|
+
* `FormRows` now requires reordering rows using the drag handle. Sorting/dragging the row itself is no longer supported (SUI-7036).
|
|
58
|
+
* `SplitButton`'s `appearance` prop now defaults to `secondary` (SUI-7136).
|
|
59
|
+
|
|
60
|
+
Bug Fixes:
|
|
61
|
+
* `Code` no longer applies syntax highlighting when `language` is one of `'plain', 'plaintext', 'text', 'txt'`. (SUI-7266).
|
|
62
|
+
* `RadioBar.Option` no longer shifts horizontally when the focused or active `Option` changes (SUI-7385).
|
|
63
|
+
* `Table`'s `onRequestToggle` now correctly applies `disabled` focus styles when `disabled` (SUI-7308).
|
|
64
|
+
* `Text` now has correct types for `placeholder` prop (SUI-7339).
|
|
65
|
+
* `Color`'s uncontrolled mode should no longer call `onChange` on "enter" when the value did not change.
|
|
66
|
+
* `Color`'s display string for `null` has been updated from "N/A" to "n/a" to align with the Splunk Style Guide.
|
|
67
|
+
* `Button`'s height in compact mode is now 28px, matching the design.
|
|
68
|
+
* `Table`'s header font size defaults to the correct size now (SUI-7383).
|
|
69
|
+
* `Table`'s stripe rows background color has been updated for improved contrast (SUI-7384).
|
|
70
|
+
* `Table` cell content now vertically aligns to the top of the cell (SUI-7269).
|
|
71
|
+
* `Table`'s expand and select icon cells now span the whole height of the row (SUI-7379).
|
|
72
|
+
* `Button` with `appearance="secondary"` and `isMenu` props now renders the correct border color.
|
|
73
|
+
* `Slider`'s controlled mode now correctly updates passed in value on change (SUI-7536).
|
|
74
|
+
* `Button`'s `propTypes` now support the `destructiveSecondary` appearance.
|
|
75
|
+
* `RadioBar.Option`s now grow to fill the space taken by `RadioBar` (SUI-7571).
|
|
76
|
+
* `Select` and other components using `Layer` will now properly be removed from the DOM (SUI-7469).
|
|
77
|
+
|
|
78
|
+
Deprecations:
|
|
79
|
+
* `Multiselect`'s `"buttongroup"` value of the `selectAllAppearance` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-7293).
|
|
80
|
+
* `SplitButton`'s `default` value of the `appearance` prop has been deprecated and will be removed in the next major version. Use `secondary` instead (SUI-7136).
|
|
81
|
+
|
|
82
|
+
TypeScript:
|
|
83
|
+
* `Button` now exports `ButtonProps` (SUI-7250).
|
|
84
|
+
|
|
4
85
|
5.0.0-beta.2 - March 5, 2025
|
|
5
86
|
----------
|
|
6
87
|
API Changes:
|