@splunk/react-ui 4.29.0 → 4.31.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/Accordion.js +1 -0
- package/CHANGELOG.md +39 -3
- package/Card.js +17 -17
- package/Chip.js +5 -5
- package/Clickable.js +107 -87
- package/Code.js +10 -22
- package/CollapsiblePanel.js +8 -8
- package/ComboBox.js +43 -38
- package/Date.js +6 -6
- package/Divider.js +96 -45
- package/DualListbox.js +1 -1
- package/Link.js +77 -75
- package/MIGRATION.mdx +51 -1
- package/Markdown.js +10 -9
- package/Menu.js +5 -5
- package/Message.js +160 -149
- package/ModalLayer.js +2 -1
- package/Multiselect.js +9 -6
- package/Number.js +19 -18
- package/Paginator.js +239 -223
- package/RadioBar.js +43 -39
- package/ResultsMenu.js +14 -11
- package/Search.js +227 -220
- package/Select.js +77 -72
- package/SidePanel.js +1 -1
- package/StepBar.js +1 -1
- package/Table.js +2082 -1594
- package/Text.js +1 -0
- package/TextArea.d.ts +1 -1
- package/cypress/support/component.ts +2 -2
- package/package.json +21 -20
- package/test-runner-jest.config.js +1 -0
- package/types/src/Accordion/Accordion.d.ts +3 -7
- package/types/src/Accordion/Panel.d.ts +2 -2
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/AnimationToggle/AnimationToggle.d.ts +3 -3
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Button/Button.d.ts +5 -5
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +10 -10
- package/types/src/Calendar/Calendar.d.ts +3 -3
- package/types/src/Calendar/DateTable.d.ts +2 -2
- package/types/src/Calendar/Day.d.ts +3 -3
- package/types/src/Calendar/MonthHeader.d.ts +6 -6
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +6 -6
- package/types/src/Card/Footer.d.ts +1 -1
- package/types/src/Card/Header.d.ts +1 -1
- package/types/src/CardLayout/CardLayout.d.ts +4 -4
- package/types/src/Chip/Chip.d.ts +5 -5
- package/types/src/Clickable/Clickable.d.ts +12 -4
- package/types/src/Clickable/NavigationProvider.d.ts +26 -5
- package/types/src/CloseButton/CloseButton.d.ts +1 -1
- package/types/src/Code/Code.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +9 -5
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -1
- package/types/src/Color/Color.d.ts +8 -8
- package/types/src/Color/Swatch.d.ts +2 -2
- package/types/src/ColumnLayout/Column.d.ts +1 -1
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -1
- package/types/src/ComboBox/ComboBox.d.ts +7 -6
- package/types/src/ComboBox/Option.d.ts +3 -3
- package/types/src/Concertina/Concertina.d.ts +2 -2
- package/types/src/Concertina/Heading.d.ts +3 -3
- package/types/src/Concertina/Panel.d.ts +4 -4
- package/types/src/Concertina/types.d.ts +1 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +5 -5
- package/types/src/Date/Date.d.ts +10 -10
- package/types/src/DefinitionList/DefinitionList.d.ts +2 -2
- package/types/src/DefinitionList/Description.d.ts +1 -1
- package/types/src/DefinitionList/Term.d.ts +1 -1
- package/types/src/Divider/Divider.d.ts +7 -2
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -0
- package/types/src/Dropdown/Dropdown.d.ts +10 -10
- package/types/src/DualListbox/DualListbox.d.ts +4 -4
- package/types/src/DualListbox/DualListboxContext.d.ts +7 -7
- package/types/src/DualListbox/Label.d.ts +2 -2
- package/types/src/DualListbox/Listbox.d.ts +4 -4
- package/types/src/DualListbox/ListboxContext.d.ts +3 -3
- package/types/src/DualListbox/Option.d.ts +2 -2
- package/types/src/DualListbox/ToolbarButton.d.ts +3 -3
- package/types/src/DualListbox/ToolbarContext.d.ts +3 -3
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +8 -8
- package/types/src/File/Item.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +6 -6
- package/types/src/FormRows/Row.d.ts +2 -2
- package/types/src/FormRows/RowInternal.d.ts +1 -1
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/SortableRow.d.ts +3 -3
- package/types/src/Heading/Heading.d.ts +2 -2
- package/types/src/Image/Image.d.ts +2 -2
- package/types/src/JSONTree/JSONTree.d.ts +6 -6
- package/types/src/JSONTree/JSONTreeItem.d.ts +3 -3
- package/types/src/JSONTree/renderTreeItems.d.ts +1 -1
- package/types/src/Layer/Layer.d.ts +3 -3
- package/types/src/Link/Link.d.ts +4 -4
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +3 -3
- package/types/src/Markdown/Markdown.d.ts +18 -12
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownList.d.ts +3 -3
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -1
- package/types/src/Menu/Divider.d.ts +1 -1
- package/types/src/Menu/Heading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +10 -10
- package/types/src/Menu/Menu.d.ts +9 -9
- package/types/src/Message/Link.d.ts +3 -3
- package/types/src/Message/Message.d.ts +1 -1
- package/types/src/MessageBar/MessageBar.d.ts +2 -2
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +1 -1
- package/types/src/Modal/Header.d.ts +1 -1
- package/types/src/Modal/Modal.d.ts +4 -4
- package/types/src/ModalLayer/ModalLayer.d.ts +3 -3
- package/types/src/Monogram/Monogram.d.ts +5 -5
- package/types/src/Multiselect/Compact.d.ts +2 -2
- package/types/src/Multiselect/Multiselect.d.ts +7 -7
- package/types/src/Multiselect/Normal.d.ts +2 -2
- package/types/src/Multiselect/Option.d.ts +3 -3
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -1
- package/types/src/Number/Number.d.ts +22 -22
- package/types/src/Paginator/Button.d.ts +3 -3
- package/types/src/Paginator/Compact.d.ts +4 -4
- package/types/src/Paginator/PageControl.d.ts +2 -2
- package/types/src/Paginator/PageSelect.d.ts +2 -2
- package/types/src/Paginator/Paginator.d.ts +2 -2
- package/types/src/Paragraph/Paragraph.d.ts +1 -1
- package/types/src/Popover/Popover.d.ts +11 -11
- package/types/src/Popover/PopoverHitArea.d.ts +1 -1
- package/types/src/Progress/Progress.d.ts +1 -1
- package/types/src/RadioBar/Option.d.ts +8 -4
- package/types/src/RadioBar/RadioBar.d.ts +8 -8
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +3 -3
- package/types/src/Resize/Resize.d.ts +4 -4
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +7 -5
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -2
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +2 -2
- package/types/src/Scroll/Inner.d.ts +3 -3
- package/types/src/Scroll/Scroll.d.ts +2 -2
- package/types/src/Search/Option.d.ts +8 -8
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Select/Option.d.ts +2 -2
- package/types/src/Select/OptionBase.d.ts +8 -8
- package/types/src/Select/Select.d.ts +5 -5
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +9 -8
- package/types/src/SidePanel/SidePanel.d.ts +3 -3
- package/types/src/Slider/Slider.d.ts +8 -8
- package/types/src/SlidingPanels/Panel.d.ts +2 -2
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -2
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +1 -1
- package/types/src/Switch/Switch.d.ts +4 -8
- package/types/src/TabBar/Tab.d.ts +7 -8
- package/types/src/TabBar/TabBar.d.ts +5 -5
- package/types/src/TabLayout/Panel.d.ts +2 -2
- package/types/src/TabLayout/TabLayout.d.ts +3 -3
- package/types/src/Table/Body.d.ts +4 -8
- package/types/src/Table/Caption.d.ts +2 -2
- package/types/src/Table/Cell.d.ts +3 -3
- package/types/src/Table/DragHandle.d.ts +1 -1
- package/types/src/Table/Head.d.ts +6 -6
- package/types/src/Table/HeadCell.d.ts +9 -9
- package/types/src/Table/HeadDropdownCell.d.ts +11 -11
- package/types/src/Table/HeadInner.d.ts +5 -5
- package/types/src/Table/HeadTable.d.ts +2 -2
- package/types/src/Table/KeyboardSensor.d.ts +79 -0
- package/types/src/Table/Row.d.ts +12 -14
- package/types/src/Table/RowDragCell.d.ts +9 -40
- package/types/src/Table/Table.d.ts +12 -10
- package/types/src/Table/Toggle.d.ts +1 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -1
- package/types/src/Text/Text.d.ts +13 -11
- package/types/src/TextArea/TextArea.d.ts +10 -10
- package/types/src/Tooltip/Tooltip.d.ts +9 -9
- package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -2
- package/types/src/Tree/Tree.d.ts +3 -3
- package/types/src/Tree/TreeItem.d.ts +4 -4
- package/types/src/Typography/Typography.d.ts +5 -5
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -2
- package/types/src/useKeyPress/index.d.ts +2 -2
- package/types/src/utils/types.d.ts +4 -4
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +0 -2
- package/types/src/Resize/docs/examples/Typical.d.ts +0 -2
package/Message.js
CHANGED
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
Link: () => /* reexport */
|
|
65
|
-
default: () => /* reexport */
|
|
64
|
+
Link: () => /* reexport */ z,
|
|
65
|
+
default: () => /* reexport */ pe
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const a = require("react");
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
var l = e.n(c);
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
80
80
|
const p = require("@splunk/react-icons/enterprise/Close");
|
|
81
|
-
var
|
|
81
|
+
var u = e.n(p);
|
|
82
82
|
// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
|
|
83
|
-
const
|
|
84
|
-
var d = e.n(
|
|
83
|
+
const v = require("@splunk/react-icons/ExclamationCircle");
|
|
84
|
+
var d = e.n(v);
|
|
85
85
|
// CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
|
|
86
86
|
const b = require("@splunk/react-icons/InformationCircle");
|
|
87
87
|
var g = e.n(b);
|
|
@@ -103,23 +103,28 @@
|
|
|
103
103
|
// CONCATENATED MODULE: external "@splunk/react-ui/MessageBar"
|
|
104
104
|
const j = require("@splunk/react-ui/MessageBar");
|
|
105
105
|
var q = e.n(j);
|
|
106
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
107
|
+
const _ = require("@splunk/react-ui/ScreenReaderContent");
|
|
108
|
+
var E = e.n(_);
|
|
106
109
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
107
|
-
const
|
|
110
|
+
const P = require("@splunk/themes");
|
|
111
|
+
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
112
|
+
const I = require("@splunk/ui-utils/i18n");
|
|
108
113
|
// CONCATENATED MODULE: external "styled-components"
|
|
109
|
-
const
|
|
110
|
-
var
|
|
114
|
+
const R = require("styled-components");
|
|
115
|
+
var L = e.n(R);
|
|
111
116
|
// CONCATENATED MODULE: external "@splunk/react-ui/Link"
|
|
112
|
-
const
|
|
113
|
-
var
|
|
117
|
+
const T = require("@splunk/react-ui/Link");
|
|
118
|
+
var $ = e.n(T);
|
|
114
119
|
// CONCATENATED MODULE: ./src/Message/LinkStyles.ts
|
|
115
|
-
var
|
|
120
|
+
var M = L()($()).withConfig({
|
|
116
121
|
displayName: "LinkStyles__StyledLink",
|
|
117
122
|
componentId: "w06zjv-0"
|
|
118
123
|
})([ "" ]);
|
|
119
124
|
// CONCATENATED MODULE: ./src/Message/Link.tsx
|
|
120
|
-
function
|
|
125
|
+
function A(e, r) {
|
|
121
126
|
if (e == null) return {};
|
|
122
|
-
var a =
|
|
127
|
+
var a = N(e, r);
|
|
123
128
|
var i, n;
|
|
124
129
|
if (Object.getOwnPropertySymbols) {
|
|
125
130
|
var s = Object.getOwnPropertySymbols(e);
|
|
@@ -132,7 +137,7 @@
|
|
|
132
137
|
}
|
|
133
138
|
return a;
|
|
134
139
|
}
|
|
135
|
-
function
|
|
140
|
+
function N(e, r) {
|
|
136
141
|
if (e == null) return {};
|
|
137
142
|
var a = {};
|
|
138
143
|
var i = Object.keys(e);
|
|
@@ -144,7 +149,7 @@
|
|
|
144
149
|
}
|
|
145
150
|
return a;
|
|
146
151
|
}
|
|
147
|
-
var
|
|
152
|
+
var W = {
|
|
148
153
|
children: s().node,
|
|
149
154
|
elementRef: s().oneOfType([ s().func, s().object ]),
|
|
150
155
|
openInNewContext: s().bool,
|
|
@@ -154,168 +159,168 @@
|
|
|
154
159
|
* @deprecated `Message.Link` is deprecated and will be removed in a future major version. Use `Link` instead.
|
|
155
160
|
*
|
|
156
161
|
* A `Link` styled to work with `Message`'s `banner` appearance.
|
|
157
|
-
*/ function
|
|
158
|
-
var r = e.children, a =
|
|
162
|
+
*/ function X(e) {
|
|
163
|
+
var r = e.children, a = A(e, [ "children" ]);
|
|
159
164
|
// @docs-props-type LinkPropsBase
|
|
160
165
|
if (false) {}
|
|
161
166
|
|
|
162
|
-
return i().createElement(
|
|
167
|
+
return i().createElement(M, a, r);
|
|
163
168
|
}
|
|
164
|
-
|
|
165
|
-
/* harmony default export */ const
|
|
169
|
+
X.propTypes = W;
|
|
170
|
+
/* harmony default export */ const z = X;
|
|
166
171
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
167
|
-
const
|
|
168
|
-
var
|
|
172
|
+
const V = require("@splunk/react-ui/Box");
|
|
173
|
+
var B = e.n(V);
|
|
169
174
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
170
|
-
const
|
|
171
|
-
var
|
|
175
|
+
const D = require("@splunk/react-ui/Clickable");
|
|
176
|
+
var H = e.n(D);
|
|
172
177
|
// CONCATENATED MODULE: ./src/Message/TitleStyles.ts
|
|
173
|
-
var
|
|
178
|
+
var F = L().p.withConfig({
|
|
174
179
|
displayName: "TitleStyles__StyledTitle",
|
|
175
180
|
componentId: "sc-6gbjha-0"
|
|
176
|
-
})([ "", " ", "" ],
|
|
177
|
-
prisma: (0,
|
|
181
|
+
})([ "", " ", "" ], P.mixins.reset("block"), (0, P.pick)({
|
|
182
|
+
prisma: (0, R.css)([ "font-size:14px;line-height:20px;" ])
|
|
178
183
|
}));
|
|
179
184
|
// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
|
|
180
|
-
var
|
|
185
|
+
var G = L().div.withConfig({
|
|
181
186
|
displayName: "MessageStyles__StyledContent",
|
|
182
187
|
componentId: "eg66af-0"
|
|
183
|
-
})([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0,
|
|
184
|
-
prisma: (0,
|
|
185
|
-
enterprise: (0,
|
|
186
|
-
}), (0,
|
|
187
|
-
prisma: (0,
|
|
188
|
-
enterprise: (0,
|
|
188
|
+
})([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0, P.pick)({
|
|
189
|
+
prisma: (0, R.css)([ "padding:", " 0;color:", ";" ], P.variables.spacingMedium, P.variables.contentColorActive),
|
|
190
|
+
enterprise: (0, R.css)([ "padding:12px 0;" ])
|
|
191
|
+
}), (0, P.pick)({
|
|
192
|
+
prisma: (0, R.css)([ "padding-left:", ";" ], P.variables.spacingXSmall),
|
|
193
|
+
enterprise: (0, R.css)([ "padding-left:15px;" ])
|
|
189
194
|
}), (function(e) {
|
|
190
195
|
var r = e.$fillStyle;
|
|
191
|
-
return r && (0,
|
|
192
|
-
prisma: (0,
|
|
196
|
+
return r && (0, P.pick)({
|
|
197
|
+
prisma: (0, R.css)([ "padding-left:", ";" ], P.variables.spacingMedium)
|
|
193
198
|
});
|
|
194
199
|
}));
|
|
195
|
-
var
|
|
200
|
+
var J = L()(H()).withConfig({
|
|
196
201
|
displayName: "MessageStyles__StyledRemove",
|
|
197
202
|
componentId: "eg66af-1"
|
|
198
|
-
})([ "", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", "" ],
|
|
199
|
-
|
|
203
|
+
})([ "", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", "" ], P.mixins.reset("flex"), (0,
|
|
204
|
+
P.pick)({
|
|
200
205
|
prisma: "50%",
|
|
201
|
-
enterprise:
|
|
202
|
-
}), (0,
|
|
203
|
-
prisma:
|
|
206
|
+
enterprise: P.variables.borderRadius
|
|
207
|
+
}), (0, P.pick)({
|
|
208
|
+
prisma: P.variables.contentColorMuted,
|
|
204
209
|
enterprise: {
|
|
205
|
-
dark:
|
|
206
|
-
light:
|
|
210
|
+
dark: P.variables.gray96,
|
|
211
|
+
light: P.variables.gray45
|
|
207
212
|
}
|
|
208
213
|
}), (function(e) {
|
|
209
214
|
var r = e.$appearance;
|
|
210
|
-
return r === "banner" && (0,
|
|
211
|
-
prisma: (0,
|
|
215
|
+
return r === "banner" && (0, P.pick)({
|
|
216
|
+
prisma: (0, R.css)([ "color:", ";" ], P.variables.contentColorInverted)
|
|
212
217
|
});
|
|
213
|
-
}), (0,
|
|
214
|
-
prisma: (0,
|
|
215
|
-
enterprise: (0,
|
|
216
|
-
}), (0,
|
|
217
|
-
prisma:
|
|
218
|
+
}), (0, P.pick)({
|
|
219
|
+
prisma: (0, R.css)([ "top:3px;right:2px;" ]),
|
|
220
|
+
enterprise: (0, R.css)([ "top:8px;right:8px;" ])
|
|
221
|
+
}), (0, P.pick)({
|
|
222
|
+
prisma: P.variables.interactiveColorOverlayHover,
|
|
218
223
|
enterprise: {
|
|
219
|
-
dark:
|
|
220
|
-
light:
|
|
224
|
+
dark: P.variables.gray30,
|
|
225
|
+
light: P.variables.gray92
|
|
221
226
|
}
|
|
222
|
-
}), (0,
|
|
223
|
-
prisma: (0,
|
|
224
|
-
enterprise: (0,
|
|
225
|
-
}), (0,
|
|
227
|
+
}), (0, P.pick)({
|
|
228
|
+
prisma: (0, R.css)([ "1px solid inherit" ]),
|
|
229
|
+
enterprise: (0, R.css)([ "1px solid ", "" ], P.variables.gray80)
|
|
230
|
+
}), (0, P.pick)({
|
|
226
231
|
enterprise: {
|
|
227
|
-
dark:
|
|
228
|
-
light:
|
|
232
|
+
dark: P.variables.gray96,
|
|
233
|
+
light: P.variables.linkColor
|
|
229
234
|
},
|
|
230
|
-
prisma:
|
|
231
|
-
}), (0,
|
|
232
|
-
prisma: (0,
|
|
233
|
-
enterprise: (0,
|
|
234
|
-
}), (0,
|
|
235
|
-
prisma: (0,
|
|
235
|
+
prisma: P.variables.contentColorActive
|
|
236
|
+
}), (0, P.pick)({
|
|
237
|
+
prisma: (0, R.css)([ "background:", ";" ], P.variables.interactiveColorOverlayActive),
|
|
238
|
+
enterprise: (0, R.css)([ "box-shadow:", ";" ], P.variables.focusShadow)
|
|
239
|
+
}), (0, P.pick)({
|
|
240
|
+
prisma: (0, R.css)([ "&:focus{box-shadow:0 0 0 3px ", ";}" ], P.variables.focusColor)
|
|
236
241
|
}));
|
|
237
|
-
var
|
|
242
|
+
var K = L().span.withConfig({
|
|
238
243
|
displayName: "MessageStyles__StyledIconWrapper",
|
|
239
244
|
componentId: "eg66af-2"
|
|
240
245
|
})([ "position:relative;min-width:", ";text-align:center;color:", ";", " ", "" ], (0,
|
|
241
|
-
|
|
242
|
-
prisma:
|
|
246
|
+
P.pick)({
|
|
247
|
+
prisma: P.variables.spacingXLarge,
|
|
243
248
|
enterprise: "25px"
|
|
244
|
-
}),
|
|
245
|
-
enterprise: (0,
|
|
246
|
-
prisma: (0,
|
|
247
|
-
}), (0,
|
|
248
|
-
info: (0,
|
|
249
|
-
prisma:
|
|
250
|
-
enterprise:
|
|
249
|
+
}), P.variables.white, (0, P.pick)({
|
|
250
|
+
enterprise: (0, R.css)([ "top:-2px;" ]),
|
|
251
|
+
prisma: (0, R.css)([ "top:-1.8px;" ])
|
|
252
|
+
}), (0, P.pickVariant)("$type", {
|
|
253
|
+
info: (0, R.css)([ "color:", ";" ], (0, P.pick)({
|
|
254
|
+
prisma: P.variables.contentColorMuted,
|
|
255
|
+
enterprise: P.variables.infoColor
|
|
251
256
|
})),
|
|
252
|
-
success: (0,
|
|
253
|
-
warning: (0,
|
|
254
|
-
error: (0,
|
|
257
|
+
success: (0, R.css)([ "color:", ";" ], P.variables.accentColorPositive),
|
|
258
|
+
warning: (0, R.css)([ "color:", ";" ], P.variables.accentColorWarning),
|
|
259
|
+
error: (0, R.css)([ "color:", ";" ], P.variables.accentColorNegative)
|
|
255
260
|
}));
|
|
256
|
-
var
|
|
261
|
+
var Q = L()(B()).withConfig({
|
|
257
262
|
displayName: "MessageStyles__StyledBox",
|
|
258
263
|
componentId: "eg66af-3"
|
|
259
|
-
})([ "", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", "" ],
|
|
260
|
-
|
|
261
|
-
prisma:
|
|
264
|
+
})([ "", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", "" ], P.mixins.reset("flex"), (0,
|
|
265
|
+
P.pick)({
|
|
266
|
+
prisma: P.variables.borderRadius,
|
|
262
267
|
enterprise: "5px"
|
|
263
|
-
}),
|
|
268
|
+
}), P.variables.spacingSmall, (0, P.pickVariant)("$hasRemoveIcon", {
|
|
264
269
|
true: {
|
|
265
|
-
prisma: (0,
|
|
266
|
-
enterprise: (0,
|
|
270
|
+
prisma: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingXXXLarge),
|
|
271
|
+
enterprise: (0, R.css)([ "padding-right:40px;" ])
|
|
267
272
|
},
|
|
268
273
|
false: {
|
|
269
|
-
prisma: (0,
|
|
270
|
-
enterprise: (0,
|
|
274
|
+
prisma: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingSmall),
|
|
275
|
+
enterprise: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingHalf)
|
|
271
276
|
}
|
|
272
277
|
}), (function(e) {
|
|
273
278
|
var r = e.$fillStyle;
|
|
274
|
-
return r && (0,
|
|
275
|
-
enterprise: (0,
|
|
279
|
+
return r && (0, P.pick)({
|
|
280
|
+
enterprise: (0, R.css)([ "& > ", "{left:", ";}", "" ],
|
|
276
281
|
/* sc-sel */
|
|
277
|
-
|
|
278
|
-
info: (0,
|
|
279
|
-
light: (0,
|
|
280
|
-
dark: (0,
|
|
282
|
+
K, P.variables.spacingXSmall, (0, P.pickVariant)("$type", {
|
|
283
|
+
info: (0, R.css)([ "", "" ], (0, P.pick)({
|
|
284
|
+
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.infoColorL50, P.variables.infoColor),
|
|
285
|
+
dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.infoColor, .5))
|
|
281
286
|
})),
|
|
282
|
-
success: (0,
|
|
283
|
-
light: (0,
|
|
284
|
-
dark: (0,
|
|
287
|
+
success: (0, R.css)([ "", "" ], (0, P.pick)({
|
|
288
|
+
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.successColorL50, P.variables.successColor),
|
|
289
|
+
dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.successColor, .5))
|
|
285
290
|
})),
|
|
286
|
-
warning: (0,
|
|
287
|
-
light: (0,
|
|
288
|
-
dark: (0,
|
|
291
|
+
warning: (0, R.css)([ "", "" ], (0, P.pick)({
|
|
292
|
+
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.warningColorL50, P.variables.warningColor),
|
|
293
|
+
dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.warningColor, .5))
|
|
289
294
|
})),
|
|
290
|
-
error: (0,
|
|
291
|
-
light: (0,
|
|
292
|
-
dark: (0,
|
|
295
|
+
error: (0, R.css)([ "", "" ], (0, P.pick)({
|
|
296
|
+
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.errorColorL50, P.variables.errorColor),
|
|
297
|
+
dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.errorColor, .5))
|
|
293
298
|
}))
|
|
294
299
|
})),
|
|
295
|
-
prisma: (0,
|
|
296
|
-
|
|
297
|
-
info: (0,
|
|
298
|
-
success: (0,
|
|
299
|
-
warning: (0,
|
|
300
|
-
error: (0,
|
|
301
|
-
}),
|
|
300
|
+
prisma: (0, R.css)([ "background:linear-gradient( to right,", " ", " ", ",", " 100% );box-shadow:", ";& > ", "{color:", ";}" ], (0,
|
|
301
|
+
P.pickVariant)("$type", {
|
|
302
|
+
info: (0, R.css)([ "", " 0,", " ", "," ], P.variables.contentColorActive, P.variables.contentColorActive, P.variables.spacingXLarge),
|
|
303
|
+
success: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorPositive, P.variables.accentColorPositive, P.variables.spacingXLarge),
|
|
304
|
+
warning: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorWarning, P.variables.accentColorWarning, P.variables.spacingXLarge),
|
|
305
|
+
error: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorNegative, P.variables.accentColorNegative, P.variables.spacingXLarge)
|
|
306
|
+
}), P.variables.backgroundColorPopup, P.variables.spacingXLarge, P.variables.backgroundColorPopup, P.variables.embossShadow,
|
|
302
307
|
/* sc-sel */
|
|
303
|
-
|
|
308
|
+
K, P.variables.backgroundColorPopup)
|
|
304
309
|
});
|
|
305
|
-
}), (0,
|
|
306
|
-
prisma: (0,
|
|
310
|
+
}), (0, P.pick)({
|
|
311
|
+
prisma: (0, R.css)([ "& ", "{color:", ";}" ],
|
|
307
312
|
/* sc-sel */
|
|
308
|
-
|
|
309
|
-
info:
|
|
310
|
-
warning:
|
|
311
|
-
error:
|
|
312
|
-
success:
|
|
313
|
+
F, (0, P.pickVariant)("$type", {
|
|
314
|
+
info: P.variables.contentColorActive,
|
|
315
|
+
warning: P.variables.accentColorWarning,
|
|
316
|
+
error: P.variables.accentColorNegative,
|
|
317
|
+
success: P.variables.accentColorPositive
|
|
313
318
|
}))
|
|
314
319
|
}));
|
|
315
320
|
// CONCATENATED MODULE: ./src/Message/Title.tsx
|
|
316
|
-
function
|
|
321
|
+
function U(e, r) {
|
|
317
322
|
if (e == null) return {};
|
|
318
|
-
var a =
|
|
323
|
+
var a = Y(e, r);
|
|
319
324
|
var i, n;
|
|
320
325
|
if (Object.getOwnPropertySymbols) {
|
|
321
326
|
var s = Object.getOwnPropertySymbols(e);
|
|
@@ -328,7 +333,7 @@
|
|
|
328
333
|
}
|
|
329
334
|
return a;
|
|
330
335
|
}
|
|
331
|
-
function
|
|
336
|
+
function Y(e, r) {
|
|
332
337
|
if (e == null) return {};
|
|
333
338
|
var a = {};
|
|
334
339
|
var i = Object.keys(e);
|
|
@@ -340,22 +345,22 @@
|
|
|
340
345
|
}
|
|
341
346
|
return a;
|
|
342
347
|
}
|
|
343
|
-
var
|
|
348
|
+
var Z = {
|
|
344
349
|
children: s().node
|
|
345
350
|
};
|
|
346
351
|
/**
|
|
347
352
|
* A title component for use in `Message`.
|
|
348
|
-
*/ function
|
|
349
|
-
var r = e.children, a =
|
|
353
|
+
*/ function ee(e) {
|
|
354
|
+
var r = e.children, a = U(e, [ "children" ]);
|
|
350
355
|
// @docs-props-type TitleProps
|
|
351
356
|
|
|
352
|
-
return i().createElement(
|
|
357
|
+
return i().createElement(F, a, r);
|
|
353
358
|
}
|
|
354
|
-
|
|
355
|
-
/* harmony default export */ const
|
|
359
|
+
ee.propTypes = Z;
|
|
360
|
+
/* harmony default export */ const re = ee;
|
|
356
361
|
// CONCATENATED MODULE: ./src/Message/Message.tsx
|
|
357
|
-
function
|
|
358
|
-
|
|
362
|
+
function ae() {
|
|
363
|
+
ae = Object.assign || function(e) {
|
|
359
364
|
for (var r = 1; r < arguments.length; r++) {
|
|
360
365
|
var a = arguments[r];
|
|
361
366
|
for (var i in a) {
|
|
@@ -366,11 +371,11 @@
|
|
|
366
371
|
}
|
|
367
372
|
return e;
|
|
368
373
|
};
|
|
369
|
-
return
|
|
374
|
+
return ae.apply(this, arguments);
|
|
370
375
|
}
|
|
371
|
-
function
|
|
376
|
+
function ie(e, r) {
|
|
372
377
|
if (e == null) return {};
|
|
373
|
-
var a =
|
|
378
|
+
var a = ne(e, r);
|
|
374
379
|
var i, n;
|
|
375
380
|
if (Object.getOwnPropertySymbols) {
|
|
376
381
|
var s = Object.getOwnPropertySymbols(e);
|
|
@@ -383,7 +388,7 @@
|
|
|
383
388
|
}
|
|
384
389
|
return a;
|
|
385
390
|
}
|
|
386
|
-
function
|
|
391
|
+
function ne(e, r) {
|
|
387
392
|
if (e == null) return {};
|
|
388
393
|
var a = {};
|
|
389
394
|
var i = Object.keys(e);
|
|
@@ -395,29 +400,35 @@
|
|
|
395
400
|
}
|
|
396
401
|
return a;
|
|
397
402
|
}
|
|
398
|
-
var
|
|
403
|
+
var se = {
|
|
399
404
|
appearance: s().oneOf([ "default", "fill", "banner" ]),
|
|
400
405
|
children: s().node,
|
|
401
406
|
elementRef: s().oneOfType([ s().func, s().object ]),
|
|
402
407
|
onRequestRemove: s().func,
|
|
403
408
|
type: s().oneOf([ "info", "success", "warning", "error" ])
|
|
404
409
|
};
|
|
405
|
-
var
|
|
410
|
+
var oe = Object.freeze({
|
|
411
|
+
info: (0, I._)("Info"),
|
|
412
|
+
warning: (0, I._)("Warning"),
|
|
413
|
+
error: (0, I._)("Alert"),
|
|
414
|
+
success: (0, I._)("Success")
|
|
415
|
+
});
|
|
416
|
+
var te = Object.freeze({
|
|
406
417
|
info: C(),
|
|
407
418
|
warning: S(),
|
|
408
419
|
error: k(),
|
|
409
420
|
success: w()
|
|
410
421
|
});
|
|
411
|
-
var
|
|
422
|
+
var ce = Object.freeze({
|
|
412
423
|
info: g(),
|
|
413
424
|
warning: m(),
|
|
414
425
|
error: d(),
|
|
415
426
|
success: t()
|
|
416
427
|
});
|
|
417
|
-
function
|
|
418
|
-
var r = e.appearance, n = r === void 0 ? "default" : r, s = e.children, o = e.type, t = o === void 0 ? "warning" : o, c = e.onRequestRemove, p =
|
|
428
|
+
function le(e) {
|
|
429
|
+
var r = e.appearance, n = r === void 0 ? "default" : r, s = e.children, o = e.type, t = o === void 0 ? "warning" : o, c = e.onRequestRemove, p = ie(e, [ "appearance", "children", "type", "onRequestRemove" ]);
|
|
419
430
|
// @docs-props-type MessagePropsBase
|
|
420
|
-
var
|
|
431
|
+
var v = (0, P.useSplunkTheme)(), d = v.isEnterprise;
|
|
421
432
|
if (false) {}
|
|
422
433
|
// double check this can only be button
|
|
423
434
|
var b = (0, a.useCallback)((function(e) {
|
|
@@ -425,25 +436,25 @@
|
|
|
425
436
|
}), [ c ]);
|
|
426
437
|
if (n === "banner") {
|
|
427
438
|
|
|
428
|
-
return i().createElement(q(),
|
|
439
|
+
return i().createElement(q(), ae({
|
|
429
440
|
type: t,
|
|
430
441
|
"data-test": "banner",
|
|
431
442
|
onRequestClose: b
|
|
432
443
|
}, p), s);
|
|
433
444
|
}
|
|
434
|
-
var g = d ?
|
|
445
|
+
var g = d ? te : ce;
|
|
435
446
|
var f = g[t];
|
|
436
447
|
var m = n === "fill";
|
|
437
448
|
var y = n === "default" || n === "fill";
|
|
438
449
|
|
|
439
|
-
return i().createElement(
|
|
450
|
+
return i().createElement(Q, ae({
|
|
440
451
|
$appearance: n,
|
|
441
452
|
$fillStyle: m,
|
|
442
453
|
$hasRemoveIcon: !!c,
|
|
443
454
|
$type: t,
|
|
444
455
|
"data-test-type": t,
|
|
445
456
|
"data-test": "message"
|
|
446
|
-
}, p), y && i().createElement(
|
|
457
|
+
}, p), y && i().createElement(K, {
|
|
447
458
|
$fillStyle: m,
|
|
448
459
|
$type: t
|
|
449
460
|
}, d ? i().createElement(f, {
|
|
@@ -453,14 +464,14 @@
|
|
|
453
464
|
screenReaderText: null
|
|
454
465
|
}) : i().createElement(f, {
|
|
455
466
|
variant: "filled"
|
|
456
|
-
})), i().createElement(
|
|
467
|
+
}), i().createElement(E(), null, oe[t])), i().createElement(G, {
|
|
457
468
|
"data-test": "content",
|
|
458
469
|
$fillStyle: m
|
|
459
|
-
}, s), c && i().createElement(
|
|
470
|
+
}, s), c && i().createElement(J, {
|
|
460
471
|
"data-test": "remove",
|
|
461
472
|
onClick: b,
|
|
462
473
|
$appearance: n
|
|
463
|
-
}, d ? i().createElement(
|
|
474
|
+
}, d ? i().createElement(u(), {
|
|
464
475
|
height: "12px",
|
|
465
476
|
hideDefaultTooltip: true,
|
|
466
477
|
screenReaderText: null,
|
|
@@ -470,10 +481,10 @@
|
|
|
470
481
|
width: "20px"
|
|
471
482
|
})));
|
|
472
483
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
/* harmony default export */ const
|
|
484
|
+
le.propTypes = se;
|
|
485
|
+
le.Title = re;
|
|
486
|
+
le.Link = z;
|
|
487
|
+
/* harmony default export */ const pe = le;
|
|
477
488
|
// CONCATENATED MODULE: ./src/Message/index.ts
|
|
478
489
|
module.exports = r;
|
|
479
490
|
/******/})();
|
package/ModalLayer.js
CHANGED
|
@@ -262,6 +262,7 @@
|
|
|
262
262
|
R(k(o), "renderLayer", (function() {
|
|
263
263
|
var e = o.props, t = e.getDefaultMotionStyle, n = e.getMotionStyle, i = e.renderModal, c = e.scrim;
|
|
264
264
|
var l = o.props.open || o.state.animating;
|
|
265
|
+
var u = l && c !== "hidden";
|
|
265
266
|
|
|
266
267
|
return r().createElement(a.Spring, {
|
|
267
268
|
from: m(m({}, t === null || t === void 0 ? void 0 : t()), {}, {
|
|
@@ -277,7 +278,7 @@
|
|
|
277
278
|
|
|
278
279
|
return r().createElement("div", null,
|
|
279
280
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
280
|
-
i(e),
|
|
281
|
+
i(e), u && r().createElement(d, {
|
|
281
282
|
"data-test": "modal-overlay",
|
|
282
283
|
onMouseDown: c === "interactive" ? o.handleClickAway : undefined,
|
|
283
284
|
key: "clickAway",
|
package/Multiselect.js
CHANGED
|
@@ -686,7 +686,7 @@
|
|
|
686
686
|
componentId: "sc-4kc053-2"
|
|
687
687
|
})([ "position:absolute;", " color:", ";" ], (0, Ae.pick)({
|
|
688
688
|
prisma: (0, Le.css)([ "right:16px;" ]),
|
|
689
|
-
enterprise: (0, Le.css)([ "
|
|
689
|
+
enterprise: (0, Le.css)([ "right:3px;left:8px;" ])
|
|
690
690
|
}), (0, Ae.pick)({
|
|
691
691
|
prisma: Ae.variables.contentColorActive,
|
|
692
692
|
enterprise: Ae.variables.accentColorL10
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
var et = Fe().span.withConfig({
|
|
808
808
|
displayName: "ItemStyles__StyledTitleAndDescriptionWrapper",
|
|
809
809
|
componentId: "sc-4kc053-7"
|
|
810
|
-
})([ "max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;", "" ], (function(e) {
|
|
810
|
+
})([ "display:flex;flex-wrap:wrap;flex-direction:column;max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;", "" ], (function(e) {
|
|
811
811
|
var t = e.$truncate;
|
|
812
812
|
return t && (0, Le.css)([ "white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" ]);
|
|
813
813
|
}));
|
|
@@ -1449,6 +1449,7 @@
|
|
|
1449
1449
|
Jt($t(a), "firstSelectedEnabledOption", null);
|
|
1450
1450
|
Jt($t(a), "firstSelectedOptionIndex", void 0);
|
|
1451
1451
|
Jt($t(a), "menuId", void 0);
|
|
1452
|
+
Jt($t(a), "menuListboxId", void 0);
|
|
1452
1453
|
Jt($t(a), "previousActiveIndex", null);
|
|
1453
1454
|
Jt($t(a), "selectedOptionCount", void 0);
|
|
1454
1455
|
Jt($t(a), "optionRefsByKey", void 0);
|
|
@@ -1763,7 +1764,6 @@
|
|
|
1763
1764
|
"aria-describedby": p,
|
|
1764
1765
|
"aria-label": "".concat(y ? "".concat(y, ", ") : "").concat(j),
|
|
1765
1766
|
"aria-labelledby": y ? undefined : b,
|
|
1766
|
-
"aria-multiselectable": m || undefined,
|
|
1767
1767
|
"aria-required": w,
|
|
1768
1768
|
"data-select-appearance": l,
|
|
1769
1769
|
"data-test": m ? "multiselect" : "select",
|
|
@@ -2053,6 +2053,7 @@
|
|
|
2053
2053
|
if (false) {}
|
|
2054
2054
|
o.validateAppearance(e);
|
|
2055
2055
|
a.menuId = (0, be.createDOMID)("menu");
|
|
2056
|
+
a.menuListboxId = (0, be.createDOMID)("menu-listbox");
|
|
2056
2057
|
a.activeItemId = (0, be.createDOMID)("active-item");
|
|
2057
2058
|
return a;
|
|
2058
2059
|
}
|
|
@@ -2181,8 +2182,9 @@
|
|
|
2181
2182
|
placeholder: (0, u._)("filter"),
|
|
2182
2183
|
role: "combobox",
|
|
2183
2184
|
"aria-expanded": "true",
|
|
2185
|
+
"aria-controls": this.menuListboxId,
|
|
2184
2186
|
"aria-label": (0, u._)("Filter"),
|
|
2185
|
-
"aria-activedescendant": this.activeItemId,
|
|
2187
|
+
"aria-activedescendant": this.state.textHasFocus && n ? this.activeItemId : undefined,
|
|
2186
2188
|
inputRef: s,
|
|
2187
2189
|
inputId: l,
|
|
2188
2190
|
canClear: true,
|
|
@@ -2225,7 +2227,8 @@
|
|
|
2225
2227
|
onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
|
|
2226
2228
|
"data-test": "results-menu",
|
|
2227
2229
|
isLoading: o.props.isLoadingOptions,
|
|
2228
|
-
id: o.menuId
|
|
2230
|
+
id: o.menuId,
|
|
2231
|
+
menuId: o.menuListboxId
|
|
2229
2232
|
}, pe()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), {}, {
|
|
2230
2233
|
style: l,
|
|
2231
2234
|
tabIndex: s
|
|
@@ -3626,7 +3629,7 @@
|
|
|
3626
3629
|
useClickawayOverlay: false
|
|
3627
3630
|
};
|
|
3628
3631
|
function Fr(e) {
|
|
3629
|
-
return e
|
|
3632
|
+
return (e === null || e === void 0 ? void 0 : e.compact) === true;
|
|
3630
3633
|
}
|
|
3631
3634
|
var Kr = function(e) {
|
|
3632
3635
|
Ar(n, e);
|