@splunk/react-ui 5.8.0 → 5.9.1
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/Anchor.js +2 -1
- package/ButtonSimple.js +1 -1
- package/CHANGELOG.md +38 -0
- package/Calendar.js +134 -134
- package/Clickable.js +131 -94
- package/Code.js +177 -170
- package/CollapsiblePanel.js +173 -135
- package/ColumnLayout.js +69 -45
- package/ComboBox.js +1 -0
- package/Dropdown.js +87 -72
- package/File.js +35 -35
- package/LICENSE +1 -1
- package/MIGRATION.md +40 -0
- package/Markdown.js +331 -306
- package/Menu.js +259 -215
- package/Modal.js +174 -181
- package/Monogram.js +2 -2
- package/Multiselect.js +414 -334
- package/Number.js +237 -242
- package/Search.js +15 -14
- package/SelectBase.js +777 -719
- package/SimpleTable.d.ts +2 -0
- package/SimpleTable.js +433 -0
- package/SlidingPanels.js +224 -153
- package/SpotLight.d.ts +2 -0
- package/SpotLight.js +687 -0
- package/Table.js +1232 -1238
- package/Text.js +26 -26
- package/docker-compose.yml +12 -18
- package/docs-llm/Avatar.md +2 -8
- package/docs-llm/Collapsible Panel.md +11 -57
- package/docs-llm/Column Layout.md +2 -2
- package/docs-llm/Divider.md +33 -0
- package/docs-llm/Message Bar.md +4 -1
- package/docs-llm/Multiselect.md +185 -162
- package/docs-llm/Notifications.md +46 -0
- package/docs-llm/Table.md +7 -7
- package/docs-llm/Tree.md +7 -2
- package/docs-llm/Typography.md +1 -1
- package/docs-llm/llms.txt +7 -3
- package/package.json +9 -11
- package/test-runner-jest.config.js +4 -53
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +1 -1
- package/types/src/ColumnLayout/ColumnLayout.d.ts +2 -2
- package/types/src/Divider/docs/examples/VerticalWithAlignItems.d.ts +8 -0
- package/types/src/Markdown/Markdown.d.ts +14 -2
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +2 -22
- package/types/src/Markdown/renderers/MarkdownWrapper.d.ts +11 -0
- package/types/src/Markdown/renderers/index.d.ts +3 -1
- package/types/src/Multiselect/Compact.d.ts +12 -3
- package/types/src/Multiselect/Multiselect.d.ts +12 -3
- package/types/src/Multiselect/Normal.d.ts +8 -3
- package/types/src/Multiselect/Option.d.ts +6 -3
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +1 -0
- package/types/src/Multiselect/docs/examples/LoadMoreWithSelectAll.d.ts +9 -0
- package/types/src/SelectBase/SelectBase.d.ts +5 -1
- package/types/src/SimpleTable/Body.d.ts +25 -0
- package/types/src/SimpleTable/Cell.d.ts +20 -0
- package/types/src/SimpleTable/Head.d.ts +20 -0
- package/types/src/SimpleTable/HeadCell.d.ts +20 -0
- package/types/src/SimpleTable/Row.d.ts +20 -0
- package/types/src/SimpleTable/SimpleTable.d.ts +37 -0
- package/types/src/SimpleTable/index.d.ts +3 -0
- package/types/src/SpotLight/SpotLight.d.ts +88 -0
- package/types/src/SpotLight/index.d.ts +2 -0
- package/types/src/Table/Row.d.ts +1 -1
- package/types/src/Table/Table.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +0 -7
package/File.js
CHANGED
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
return !n && (0, h.css)([ "&:hover{background-color:", ";", "{color:", ";}", "{fill:", ";}}" ], w.variables.actionColorBackgroundSubtleHover, /* sc-sel */ _, w.variables.contentColorAccentStrong, /* sc-sel */ E, w.variables.contentColorAccentStrong);
|
|
137
137
|
}), (function(e) {
|
|
138
138
|
var n = e.$screenMode;
|
|
139
|
-
return n === "normal" && (0, h.css)([ "border:", " dashed ", ";" ], w.variables.inputBorderWidth, w.variables.
|
|
139
|
+
return n === "normal" && (0, h.css)([ "border:", " dashed ", ";" ], w.variables.inputBorderWidth, w.variables.interactiveColorBorder);
|
|
140
140
|
}), (function(e) {
|
|
141
141
|
var n = e.$dragOver, r = e.$focused, t = e.$error;
|
|
142
142
|
return (n || r && !t) && (0, h.css)([ "", "{color:", ";}", "{fill:", ";}" ], /* sc-sel */ _, w.variables.contentColorAccentStrong, /* sc-sel */ E, w.variables.contentColorAccentStrong);
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
return n && (0, h.css)([ "box-shadow:", ";" ], w.variables.focusShadow);
|
|
149
149
|
}), (function(e) {
|
|
150
150
|
var n = e.$disabled;
|
|
151
|
-
return n && (0, h.css)([ "border-color:", ";cursor:not-allowed;", ",", "{color:", ";}", "{fill:", ";}" ], w.variables.
|
|
151
|
+
return n && (0, h.css)([ "border-color:", ";cursor:not-allowed;", ",", "{color:", ";}", "{fill:", ";}" ], w.variables.interactiveColorBorderDisabled, /* sc-sel */ _, /* sc-sel */ R, w.variables.contentColorDisabled, /* sc-sel */ E, w.variables.contentColorDisabled);
|
|
152
152
|
}), (function(e) {
|
|
153
153
|
var n = e.$error, r = e.$dragOver;
|
|
154
154
|
return n && !r && (0, h.css)([ "border-color:", ";" ], w.variables.interactiveColorAccentError);
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
})([ "display:flex;flex-direction:column;gap:", ";" ], w.variables.spacingXSmall);
|
|
168
168
|
// CONCATENATED MODULE: external "@splunk/react-icons/ArrowsCircularDouble"
|
|
169
169
|
const j = require("@splunk/react-icons/ArrowsCircularDouble");
|
|
170
|
-
var
|
|
170
|
+
var D = e.n(j);
|
|
171
171
|
// CONCATENATED MODULE: external "@splunk/react-icons/Cross"
|
|
172
|
-
const
|
|
173
|
-
var M = e.n(
|
|
172
|
+
const N = require("@splunk/react-icons/Cross");
|
|
173
|
+
var M = e.n(N);
|
|
174
174
|
// CONCATENATED MODULE: external "@splunk/react-icons/TrashCanCross"
|
|
175
175
|
const $ = require("@splunk/react-icons/TrashCanCross");
|
|
176
176
|
var B = e.n($);
|
|
@@ -179,10 +179,10 @@
|
|
|
179
179
|
var X = e.n(L);
|
|
180
180
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileCss"
|
|
181
181
|
const U = require("@splunk/react-icons/FileCss");
|
|
182
|
-
var
|
|
182
|
+
var z = e.n(U);
|
|
183
183
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileCsv"
|
|
184
|
-
const
|
|
185
|
-
var
|
|
184
|
+
const H = require("@splunk/react-icons/FileCsv");
|
|
185
|
+
var W = e.n(H);
|
|
186
186
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileDat"
|
|
187
187
|
const J = require("@splunk/react-icons/FileDat");
|
|
188
188
|
var G = e.n(J);
|
|
@@ -248,10 +248,10 @@
|
|
|
248
248
|
var Pe = e.n(Te);
|
|
249
249
|
// CONCATENATED MODULE: external "@splunk/react-icons/FilePng"
|
|
250
250
|
const je = require("@splunk/react-icons/FilePng");
|
|
251
|
-
var
|
|
251
|
+
var De = e.n(je);
|
|
252
252
|
// CONCATENATED MODULE: external "@splunk/react-icons/FilePpt"
|
|
253
|
-
const
|
|
254
|
-
var Me = e.n(
|
|
253
|
+
const Ne = require("@splunk/react-icons/FilePpt");
|
|
254
|
+
var Me = e.n(Ne);
|
|
255
255
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileRar"
|
|
256
256
|
const $e = require("@splunk/react-icons/FileRar");
|
|
257
257
|
var Be = e.n($e);
|
|
@@ -260,10 +260,10 @@
|
|
|
260
260
|
var Xe = e.n(Le);
|
|
261
261
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileSql"
|
|
262
262
|
const Ue = require("@splunk/react-icons/FileSql");
|
|
263
|
-
var
|
|
263
|
+
var ze = e.n(Ue);
|
|
264
264
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileSvg"
|
|
265
|
-
const
|
|
266
|
-
var
|
|
265
|
+
const He = require("@splunk/react-icons/FileSvg");
|
|
266
|
+
var We = e.n(He);
|
|
267
267
|
// CONCATENATED MODULE: external "@splunk/react-icons/FileText"
|
|
268
268
|
const Je = require("@splunk/react-icons/FileText");
|
|
269
269
|
var Ge = e.n(Je);
|
|
@@ -341,8 +341,8 @@
|
|
|
341
341
|
var xn = {
|
|
342
342
|
aif: X(),
|
|
343
343
|
aiff: X(),
|
|
344
|
-
css:
|
|
345
|
-
csv:
|
|
344
|
+
css: z(),
|
|
345
|
+
csv: W(),
|
|
346
346
|
dat: G(),
|
|
347
347
|
db: Z(),
|
|
348
348
|
dbf: Q(),
|
|
@@ -364,12 +364,12 @@
|
|
|
364
364
|
mpg: Re(),
|
|
365
365
|
pdf: Ae(),
|
|
366
366
|
php: Pe(),
|
|
367
|
-
png:
|
|
367
|
+
png: De(),
|
|
368
368
|
ppt: Me(),
|
|
369
369
|
rar: Be(),
|
|
370
370
|
rtf: Xe(),
|
|
371
|
-
sql:
|
|
372
|
-
svg:
|
|
371
|
+
sql: ze(),
|
|
372
|
+
svg: We(),
|
|
373
373
|
txt: Ge(),
|
|
374
374
|
tgz: Ze(),
|
|
375
375
|
tiff: Qe(),
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
onClick: q,
|
|
502
502
|
"aria-label": F,
|
|
503
503
|
appearance: "subtle"
|
|
504
|
-
}, t().createElement(
|
|
504
|
+
}, t().createElement(D(), {
|
|
505
505
|
"aria-label": (0, m._)("Retry")
|
|
506
506
|
})), !_ && (p === undefined && !o ? t().createElement(wn, {
|
|
507
507
|
"data-test": "remove",
|
|
@@ -577,12 +577,12 @@
|
|
|
577
577
|
search: ""
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function Dn() {
|
|
581
581
|
var e = typeof document !== "undefined" ? document : jn;
|
|
582
582
|
return e;
|
|
583
583
|
}
|
|
584
|
-
var
|
|
585
|
-
/* harmony default export */ const Mn = /* unused pure expression or super */ null &&
|
|
584
|
+
var Nn = Dn();
|
|
585
|
+
/* harmony default export */ const Mn = /* unused pure expression or super */ null && Nn;
|
|
586
586
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
587
587
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
588
588
|
var $n = {
|
|
@@ -658,13 +658,13 @@
|
|
|
658
658
|
return e;
|
|
659
659
|
}, Un.apply(null, arguments);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
return Vn(e) || Gn(e, n) ||
|
|
661
|
+
function zn(e, n) {
|
|
662
|
+
return Vn(e) || Gn(e, n) || Wn(e, n) || Hn();
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Hn() {
|
|
665
665
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Wn(e, n) {
|
|
668
668
|
if (e) {
|
|
669
669
|
if ("string" == typeof e) return Jn(e, n);
|
|
670
670
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -750,13 +750,13 @@
|
|
|
750
750
|
* file readers, only a reference to the file. This can be used to post binary content, or
|
|
751
751
|
* upload using an array buffer.
|
|
752
752
|
*/ function Yn(e) {
|
|
753
|
-
var n = e.accept, a = e.allowMultiple, o = e.children, s = e.disabled, u = e.dropAnywhere, d = e.elementRef, p = e.error, b = e.fullscreen, h = e.help, k = e.inputId, S = e.name, q = e.onRequestAdd, w = e.onRequestRemove, C = e.onRequestRetry, x = e.required, j = e.supportsMessage,
|
|
753
|
+
var n = e.accept, a = e.allowMultiple, o = e.children, s = e.disabled, u = e.dropAnywhere, d = e.elementRef, p = e.error, b = e.fullscreen, h = e.help, k = e.inputId, S = e.name, q = e.onRequestAdd, w = e.onRequestRemove, C = e.onRequestRetry, x = e.required, j = e.supportsMessage, D = Zn(e, [ "accept", "allowMultiple", "children", "disabled", "dropAnywhere", "elementRef", "error", "fullscreen", "help", "inputId", "name", "onRequestAdd", "onRequestRemove", "onRequestRetry", "required", "supportsMessage" ]);
|
|
754
754
|
// @docs-props-type FilePropsBase
|
|
755
|
-
var
|
|
756
|
-
var L = (0, r.useState)(false), X =
|
|
755
|
+
var N = (0, r.useState)(false), M = zn(N, 2), $ = M[0], B = M[1];
|
|
756
|
+
var L = (0, r.useState)(false), X = zn(L, 2), U = X[0], z = X[1];
|
|
757
757
|
/* Each time a file is uploaded this is incremented and used to generate the
|
|
758
|
-
* file input's key. In this way we get a new input without a value. */ var
|
|
759
|
-
r.useState)(0),
|
|
758
|
+
* file input's key. In this way we get a new input without a value. */ var H = (0,
|
|
759
|
+
r.useState)(0), W = zn(H, 2), J = W[0], G = W[1];
|
|
760
760
|
var V = (0, r.useMemo)((function() {
|
|
761
761
|
return k || (0, y.createDOMID)("file");
|
|
762
762
|
}), [ k ]);
|
|
@@ -780,10 +780,10 @@
|
|
|
780
780
|
Z((n = e.currentTarget.files) !== null && n !== void 0 ? n : undefined);
|
|
781
781
|
}), [ Z ]);
|
|
782
782
|
var Q = (0, r.useCallback)((function() {
|
|
783
|
-
|
|
783
|
+
z(true);
|
|
784
784
|
}), []);
|
|
785
785
|
var Y = (0, r.useCallback)((function() {
|
|
786
|
-
|
|
786
|
+
z(false);
|
|
787
787
|
}), []);
|
|
788
788
|
var ee = (0, r.useCallback)((function(e) {
|
|
789
789
|
if (!$) {
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
"data-test": "file",
|
|
857
857
|
"data-test-disabled": s ? "disabled" : undefined,
|
|
858
858
|
"data-test-error": !!p
|
|
859
|
-
},
|
|
859
|
+
}, D), t().createElement("label", {
|
|
860
860
|
htmlFor: V,
|
|
861
861
|
"data-test": "file-label"
|
|
862
862
|
}, t().createElement(O, {
|
package/LICENSE
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
|
188
188
|
identification within third-party archives.
|
|
189
189
|
|
|
190
|
-
Copyright
|
|
190
|
+
Copyright 2026 Cisco Systems, Inc.
|
|
191
191
|
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
193
|
you may not use this file except in compliance with the License.
|
package/MIGRATION.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
This document lists migration guidance for new features and breaking changes.
|
|
4
4
|
|
|
5
|
+
## 5.10.0
|
|
6
|
+
|
|
7
|
+
### Deprecated `ColumnLayout`
|
|
8
|
+
|
|
9
|
+
#### Change
|
|
10
|
+
`ColumnLayout` has been deprecated and will be removed in a future major version.
|
|
11
|
+
|
|
12
|
+
#### Context
|
|
13
|
+
`ColumnLayout` is a flexbox-based component that provides a 12-column grid abstraction. It exists for historical and backwards-compatibility reasons. We recommend migrating to CSS `grid` directly, which provides better styling control, supports intrinsic sizing, allows the use of design tokens for spacing, and avoids the overhead of a React component.
|
|
14
|
+
|
|
15
|
+
#### Migration steps
|
|
16
|
+
If you aren't familiar with CSS grid layout, explore some of the following resources before migrating:
|
|
17
|
+
- [CSS grid layout guide](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Grid_layout)
|
|
18
|
+
- [Basic concepts of grid layout](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts)
|
|
19
|
+
- [CSS grid property reference](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/grid)
|
|
20
|
+
|
|
21
|
+
Replace `ColumnLayout`, `ColumnLayout.Row`, and `ColumnLayout.Column` with CSS `grid`. Use `gridColumn` with `span` for column widths, and replace the `gutter` prop with `gap`:
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
// Before
|
|
25
|
+
<ColumnLayout gutter={8}>
|
|
26
|
+
<ColumnLayout.Row>
|
|
27
|
+
<ColumnLayout.Column span={3}>Column</ColumnLayout.Column>
|
|
28
|
+
<ColumnLayout.Column span={9}>Content</ColumnLayout.Column>
|
|
29
|
+
</ColumnLayout.Row>
|
|
30
|
+
</ColumnLayout>
|
|
31
|
+
|
|
32
|
+
// After
|
|
33
|
+
const StyledGrid = styled.div`
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-template-columns: repeat(12, 1fr);
|
|
36
|
+
gap: ${variables.spacingSmall};
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
<StyledGrid>
|
|
40
|
+
<div style={{ gridColumn: 'span 3' }}>Column</div>
|
|
41
|
+
<div style={{ gridColumn: 'span 9' }}>Content</div>
|
|
42
|
+
</StyledGrid>
|
|
43
|
+
```
|
|
44
|
+
|
|
5
45
|
## 5.5.0
|
|
6
46
|
|
|
7
47
|
### Deprecated `Switch`'s `selectedLabel`, `someSelectedLabel`, and `unselectedLabel` props
|