@splunk/react-ui 4.16.3 → 4.17.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 +13 -13
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +98 -244
- package/ButtonGroup.js +4 -4
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +43 -2
- package/Calendar.js +73 -274
- package/Card.js +75 -227
- package/CardLayout.js +2 -2
- package/Chip.js +40 -211
- package/Clickable.js +10 -10
- package/CloseButton.js +34 -202
- package/Code.js +27 -20
- package/CollapsiblePanel.js +74 -228
- package/Color.js +62 -319
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +32 -32
- package/Concertina.js +38 -38
- package/ControlGroup.js +20 -20
- package/Date.js +22 -22
- package/DefinitionList.js +2 -2
- package/Divider.js +2 -2
- package/Dropdown.js +29 -29
- package/DualListbox.d.ts +2 -0
- package/DualListbox.js +1780 -0
- package/EventListener.js +4 -4
- package/File.js +85 -250
- package/FormRows.js +60 -215
- package/Heading.js +39 -27
- package/Image.js +73 -227
- package/JSONTree.js +18 -18
- package/Layer.js +30 -30
- package/Link.js +60 -28
- package/List.js +9 -9
- package/MIGRATION.md +28 -0
- package/Markdown.js +21 -21
- package/Menu.js +180 -371
- package/Message.js +137 -407
- package/MessageBar.js +168 -398
- package/Modal.js +31 -31
- package/ModalLayer.js +6 -6
- package/Monogram.js +4 -4
- package/Multiselect.js +2297 -2525
- package/Number.js +32 -32
- package/Paginator.js +92 -321
- package/Paragraph.js +2 -2
- package/Popover.js +123 -123
- package/Progress.js +15 -15
- package/RadioBar.js +23 -19
- package/RadioList.js +13 -12
- package/Resize.js +18 -18
- package/ResultsMenu.js +21 -21
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +33 -33
- package/ScrollContainerContext.js +13 -13
- package/Search.js +34 -32
- package/Select.js +220 -367
- package/SidePanel.js +12 -12
- package/Slider.js +28 -28
- package/SlidingPanels.js +29 -29
- package/SplitButton.js +59 -62
- package/StaticContent.js +4 -4
- package/StepBar.js +35 -238
- package/Switch.js +23 -23
- package/TabBar.js +30 -44
- package/TabLayout.js +30 -28
- package/Table.js +292 -586
- package/Text.js +109 -322
- package/TextArea.js +160 -366
- package/Tooltip.js +23 -23
- package/TransitionOpen.js +21 -21
- package/Typography.js +32 -28
- package/WaitSpinner.js +2 -2
- package/docker-compose.yml +19 -7
- package/package.json +10 -11
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/Button/icons/CaretSmallDown.d.ts +2 -0
- package/types/src/Button/icons/External.d.ts +2 -0
- package/types/src/Code/Code.d.ts +6 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +0 -1
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +11 -0
- package/types/src/Date/Icon.d.ts +1 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -0
- package/types/src/DualListbox/DualListbox.d.ts +87 -0
- package/types/src/DualListbox/DualListboxContext.d.ts +27 -0
- package/types/src/DualListbox/Label.d.ts +37 -0
- package/types/src/DualListbox/Listbox.d.ts +54 -0
- package/types/src/DualListbox/ListboxContext.d.ts +32 -0
- package/types/src/DualListbox/Option.d.ts +35 -0
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +4 -0
- package/types/src/DualListbox/ToolbarButton.d.ts +38 -0
- package/types/src/DualListbox/ToolbarContext.d.ts +21 -0
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -0
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -0
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -0
- package/types/src/DualListbox/index.d.ts +2 -0
- package/types/src/DualListbox/listboxUtils.d.ts +4 -0
- package/types/src/File/Icon.d.ts +1 -1
- package/types/src/File/IconCloud.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +1 -1
- package/types/src/File/Retry.d.ts +1 -1
- package/types/src/File/Trash.d.ts +1 -1
- package/types/src/File/docs/examples/Progress.d.ts +1 -15
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -0
- package/types/src/Heading/Heading.d.ts +12 -4
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -0
- package/types/src/Image/Image.d.ts +1 -1
- package/types/src/Image/icons/Cross.d.ts +2 -0
- package/types/src/Link/icons/External.d.ts +2 -0
- package/types/src/Menu/Divider.d.ts +1 -0
- package/types/src/Menu/Heading.d.ts +1 -0
- package/types/src/Menu/Item.d.ts +5 -2
- package/types/src/Menu/Menu.d.ts +3 -1
- package/types/src/Menu/icons/External.d.ts +2 -0
- package/types/src/Number/IncrementIcon.d.ts +1 -1
- package/types/src/RadioBar/RadioBar.d.ts +1 -1
- package/types/src/Search/Option.d.ts +9 -0
- package/types/src/Select/OptionBase.d.ts +9 -0
- package/types/src/Select/icons/CaretSmallDown.d.ts +2 -0
- package/types/src/Select/icons/Search.d.ts +2 -0
- package/types/src/SplitButton/SplitButton.d.ts +8 -3
- package/types/src/SplitButton/docs/examples/Block.d.ts +1 -0
- package/types/src/TabLayout/TabLayout.d.ts +0 -1
- package/types/src/Table/HeadInner.d.ts +2 -2
- package/types/src/Table/icons/ExpansionRow.d.ts +6 -0
- package/types/src/Table/icons/HeadExpandRows.d.ts +1 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -1
- package/types/src/Text/IconOutlinedView.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +4 -7
- package/types/src/useRovingFocus/index.d.ts +2 -0
- package/types/src/useRovingFocus/useRovingFocus.d.ts +27 -0
- package/useForceUpdate.js +2 -2
- package/useKeyPress.js +2 -2
- package/usePrevious.js +2 -2
- package/useRovingFocus.d.ts +2 -0
- package/useRovingFocus.js +237 -0
- package/Dockerfile.enterprise.storybook +0 -7
- package/Dockerfile.prisma.storybook +0 -7
- package/Dockerfile.visual +0 -10
- package/types/src/File/docs/examples/CustomChildren.d.ts +0 -12
- package/types/src/File/docs/examples/prisma/Progress.d.ts +0 -1
- package/types/src/Select/matchUtils.d.ts +0 -12
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +0 -1
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +0 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
- package/types/src/icons/Alert.d.ts +0 -2
- package/types/src/icons/AlertFilled.d.ts +0 -2
- package/types/src/icons/CaretDown.d.ts +0 -2
- package/types/src/icons/CaretRight.d.ts +0 -2
- package/types/src/icons/Check.d.ts +0 -2
- package/types/src/icons/ChevronDown.d.ts +0 -2
- package/types/src/icons/ChevronLeft.d.ts +0 -2
- package/types/src/icons/ChevronRight.d.ts +0 -2
- package/types/src/icons/CrossMark.d.ts +0 -2
- package/types/src/icons/External.d.ts +0 -2
- package/types/src/icons/InfoFilled.d.ts +0 -2
- package/types/src/icons/More.d.ts +0 -2
- package/types/src/icons/MoreVertical.d.ts +0 -2
- package/types/src/icons/Plus.d.ts +0 -2
- package/types/src/icons/SVG.d.ts +0 -4
- package/types/src/icons/Search.d.ts +0 -2
- package/types/src/icons/Sort.d.ts +0 -2
- package/types/src/icons/SortedDown.d.ts +0 -2
- package/types/src/icons/SortedUp.d.ts +0 -2
- package/types/src/icons/Success.d.ts +0 -2
- package/types/src/icons/SuccessFilled.d.ts +0 -2
- package/types/src/icons/ThemedIcon.d.ts +0 -29
- package/types/src/icons/WarningFilled.d.ts +0 -2
- package/types/src/icons/types.d.ts +0 -11
package/Layer.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 220);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,21 @@ module.exports = require("lodash/pull");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 15:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 16:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("lodash/includes");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 166:
|
|
112
126
|
/***/ (function(module, exports) {
|
|
113
127
|
|
|
114
128
|
var g;
|
|
@@ -133,20 +147,6 @@ try {
|
|
|
133
147
|
module.exports = g;
|
|
134
148
|
|
|
135
149
|
|
|
136
|
-
/***/ }),
|
|
137
|
-
|
|
138
|
-
/***/ 17:
|
|
139
|
-
/***/ (function(module, exports) {
|
|
140
|
-
|
|
141
|
-
module.exports = require("@splunk/react-ui/EventListener");
|
|
142
|
-
|
|
143
|
-
/***/ }),
|
|
144
|
-
|
|
145
|
-
/***/ 18:
|
|
146
|
-
/***/ (function(module, exports) {
|
|
147
|
-
|
|
148
|
-
module.exports = require("lodash/includes");
|
|
149
|
-
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
152
|
/***/ 2:
|
|
@@ -156,7 +156,7 @@ module.exports = require("react");
|
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
159
|
-
/***/
|
|
159
|
+
/***/ 220:
|
|
160
160
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
161
161
|
|
|
162
162
|
"use strict";
|
|
@@ -174,18 +174,18 @@ var external_react_ = __webpack_require__(2);
|
|
|
174
174
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
175
175
|
|
|
176
176
|
// EXTERNAL MODULE: external "react-dom"
|
|
177
|
-
var external_react_dom_ = __webpack_require__(
|
|
177
|
+
var external_react_dom_ = __webpack_require__(91);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: external "prop-types"
|
|
180
180
|
var external_prop_types_ = __webpack_require__(1);
|
|
181
181
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
182
182
|
|
|
183
183
|
// EXTERNAL MODULE: external "lodash/includes"
|
|
184
|
-
var includes_ = __webpack_require__(
|
|
184
|
+
var includes_ = __webpack_require__(16);
|
|
185
185
|
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
186
186
|
|
|
187
187
|
// EXTERNAL MODULE: external "lodash/last"
|
|
188
|
-
var last_ = __webpack_require__(
|
|
188
|
+
var last_ = __webpack_require__(92);
|
|
189
189
|
var last_default = /*#__PURE__*/__webpack_require__.n(last_);
|
|
190
190
|
|
|
191
191
|
// EXTERNAL MODULE: external "lodash/pull"
|
|
@@ -193,14 +193,14 @@ var pull_ = __webpack_require__(119);
|
|
|
193
193
|
var pull_default = /*#__PURE__*/__webpack_require__.n(pull_);
|
|
194
194
|
|
|
195
195
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
196
|
-
var keyboard_ = __webpack_require__(
|
|
196
|
+
var keyboard_ = __webpack_require__(7);
|
|
197
197
|
|
|
198
198
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
199
|
-
var EventListener_ = __webpack_require__(
|
|
199
|
+
var EventListener_ = __webpack_require__(15);
|
|
200
200
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
201
201
|
|
|
202
202
|
// EXTERNAL MODULE: ./src/Layer/LayerStack.tsx
|
|
203
|
-
var LayerStack = __webpack_require__(
|
|
203
|
+
var LayerStack = __webpack_require__(93);
|
|
204
204
|
|
|
205
205
|
// EXTERNAL MODULE: external "styled-components"
|
|
206
206
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -221,7 +221,7 @@ var StyledLayer = external_styled_components_default.a.div.withConfig({
|
|
|
221
221
|
});
|
|
222
222
|
|
|
223
223
|
// EXTERNAL MODULE: ./src/utils/ssrDocument.ts
|
|
224
|
-
var ssrDocument = __webpack_require__(
|
|
224
|
+
var ssrDocument = __webpack_require__(27);
|
|
225
225
|
|
|
226
226
|
// CONCATENATED MODULE: ./src/Layer/Layer.tsx
|
|
227
227
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -428,7 +428,7 @@ _defineProperty(Layer_Layer, "contextType", LayerStack["b" /* LayerStackContext
|
|
|
428
428
|
|
|
429
429
|
/***/ }),
|
|
430
430
|
|
|
431
|
-
/***/
|
|
431
|
+
/***/ 27:
|
|
432
432
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
433
433
|
|
|
434
434
|
"use strict";
|
|
@@ -506,28 +506,28 @@ module.exports = require("styled-components");
|
|
|
506
506
|
|
|
507
507
|
/***/ }),
|
|
508
508
|
|
|
509
|
-
/***/
|
|
509
|
+
/***/ 7:
|
|
510
510
|
/***/ (function(module, exports) {
|
|
511
511
|
|
|
512
512
|
module.exports = require("@splunk/ui-utils/keyboard");
|
|
513
513
|
|
|
514
514
|
/***/ }),
|
|
515
515
|
|
|
516
|
-
/***/
|
|
516
|
+
/***/ 91:
|
|
517
517
|
/***/ (function(module, exports) {
|
|
518
518
|
|
|
519
519
|
module.exports = require("react-dom");
|
|
520
520
|
|
|
521
521
|
/***/ }),
|
|
522
522
|
|
|
523
|
-
/***/
|
|
523
|
+
/***/ 92:
|
|
524
524
|
/***/ (function(module, exports) {
|
|
525
525
|
|
|
526
526
|
module.exports = require("lodash/last");
|
|
527
527
|
|
|
528
528
|
/***/ }),
|
|
529
529
|
|
|
530
|
-
/***/
|
|
530
|
+
/***/ 93:
|
|
531
531
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
532
532
|
|
|
533
533
|
"use strict";
|
|
@@ -586,7 +586,7 @@ function LayerStackGlobalProvider(_ref) {
|
|
|
586
586
|
|
|
587
587
|
LayerStackGlobalProvider.propTypes = propTypes;
|
|
588
588
|
|
|
589
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
589
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(166)))
|
|
590
590
|
|
|
591
591
|
/***/ })
|
|
592
592
|
|
package/Link.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 200);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
@@ -115,7 +115,7 @@ module.exports = require("react");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 200:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -134,30 +134,65 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
134
134
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
137
|
-
var Dropdown_ = __webpack_require__(
|
|
138
|
-
|
|
139
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
140
|
-
var i18n_ = __webpack_require__(4);
|
|
137
|
+
var Dropdown_ = __webpack_require__(22);
|
|
141
138
|
|
|
142
139
|
// EXTERNAL MODULE: external "styled-components"
|
|
143
140
|
var external_styled_components_ = __webpack_require__(3);
|
|
144
141
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
145
142
|
|
|
146
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/
|
|
147
|
-
var
|
|
148
|
-
var
|
|
143
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowSquareTopRight"
|
|
144
|
+
var ArrowSquareTopRight_ = __webpack_require__(94);
|
|
145
|
+
var ArrowSquareTopRight_default = /*#__PURE__*/__webpack_require__.n(ArrowSquareTopRight_);
|
|
149
146
|
|
|
150
|
-
// EXTERNAL MODULE: external "@splunk/react-
|
|
151
|
-
var
|
|
152
|
-
var
|
|
147
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/External"
|
|
148
|
+
var External_ = __webpack_require__(62);
|
|
149
|
+
var External_default = /*#__PURE__*/__webpack_require__.n(External_);
|
|
153
150
|
|
|
154
151
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
155
152
|
var themes_ = __webpack_require__(0);
|
|
156
153
|
|
|
157
|
-
//
|
|
154
|
+
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
155
|
+
var i18n_ = __webpack_require__(4);
|
|
156
|
+
|
|
157
|
+
// CONCATENATED MODULE: ./src/Link/icons/External.tsx
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
158
162
|
|
|
159
163
|
|
|
160
164
|
|
|
165
|
+
var label = Object(i18n_["_"])('Open externally');
|
|
166
|
+
|
|
167
|
+
var iconStyles = Object(external_styled_components_["css"])(["width:0.8em;height:0.8em;vertical-align:baseline;"]);
|
|
168
|
+
var StyledEnterprise = external_styled_components_default()(External_default.a).withConfig({
|
|
169
|
+
displayName: "External__StyledEnterprise",
|
|
170
|
+
componentId: "sc-13bdx45-0"
|
|
171
|
+
})(["", " margin:0 0 0 3px;"], iconStyles);
|
|
172
|
+
var StyledPrisma = external_styled_components_default()(ArrowSquareTopRight_default.a).withConfig({
|
|
173
|
+
displayName: "External__StyledPrisma",
|
|
174
|
+
componentId: "sc-13bdx45-1"
|
|
175
|
+
})(["", " margin:0 0 0 4px;"], iconStyles);
|
|
176
|
+
|
|
177
|
+
function External() {
|
|
178
|
+
var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
|
|
179
|
+
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
180
|
+
|
|
181
|
+
return isEnterprise ? /*#__PURE__*/external_react_default.a.createElement(StyledEnterprise, {
|
|
182
|
+
screenReaderText: label
|
|
183
|
+
}) : /*#__PURE__*/external_react_default.a.createElement(StyledPrisma, {
|
|
184
|
+
"aria-label": label
|
|
185
|
+
}, /*#__PURE__*/external_react_default.a.createElement("title", null, label));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* harmony default export */ var icons_External = (External);
|
|
189
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
190
|
+
var Clickable_ = __webpack_require__(12);
|
|
191
|
+
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
192
|
+
|
|
193
|
+
// CONCATENATED MODULE: ./src/Link/LinkStyles.ts
|
|
194
|
+
|
|
195
|
+
|
|
161
196
|
|
|
162
197
|
var StyledClickable = external_styled_components_default()(Clickable_default.a).withConfig({
|
|
163
198
|
displayName: "LinkStyles__StyledClickable",
|
|
@@ -172,13 +207,6 @@ var StyledClickable = external_styled_components_default()(Clickable_default.a).
|
|
|
172
207
|
enterprise: Object(external_styled_components_["css"])(["&:hover{text-decoration:underline;}"]),
|
|
173
208
|
prisma: Object(external_styled_components_["css"])(["&:hover:not(:focus),&:active{text-decoration:underline;text-underline-position:under;}"])
|
|
174
209
|
}), themes_["variables"].focusShadow, themes_["variables"].contentColorDisabled);
|
|
175
|
-
var StyledExternal = external_styled_components_default()(External_default.a).withConfig({
|
|
176
|
-
displayName: "LinkStyles__StyledExternal",
|
|
177
|
-
componentId: "sc-1hhltcf-1"
|
|
178
|
-
})(["vertical-align:baseline;margin:", ";"], Object(themes_["pick"])({
|
|
179
|
-
enterprise: '0 0 0 3px',
|
|
180
|
-
prisma: '0 0 0 4px'
|
|
181
|
-
}));
|
|
182
210
|
|
|
183
211
|
// CONCATENATED MODULE: ./src/Link/Link.tsx
|
|
184
212
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -280,10 +308,7 @@ var Link_Link = /*#__PURE__*/function (_Component) {
|
|
|
280
308
|
"data-test": "link",
|
|
281
309
|
ref: this.handleMount,
|
|
282
310
|
openInNewContext: openInNewContext
|
|
283
|
-
}, otherProps), children, openInNewContext && /*#__PURE__*/external_react_default.a.createElement(
|
|
284
|
-
screenReaderText: Object(i18n_["_"])('Open externally'),
|
|
285
|
-
size: 0.8
|
|
286
|
-
}));
|
|
311
|
+
}, otherProps), children, openInNewContext && /*#__PURE__*/external_react_default.a.createElement(icons_External, null));
|
|
287
312
|
}
|
|
288
313
|
}]);
|
|
289
314
|
|
|
@@ -302,7 +327,7 @@ _defineProperty(Link_Link, Dropdown_["legacyRefMode"], true);
|
|
|
302
327
|
|
|
303
328
|
/***/ }),
|
|
304
329
|
|
|
305
|
-
/***/
|
|
330
|
+
/***/ 22:
|
|
306
331
|
/***/ (function(module, exports) {
|
|
307
332
|
|
|
308
333
|
module.exports = require("@splunk/react-ui/Dropdown");
|
|
@@ -323,10 +348,17 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
323
348
|
|
|
324
349
|
/***/ }),
|
|
325
350
|
|
|
326
|
-
/***/
|
|
351
|
+
/***/ 62:
|
|
352
|
+
/***/ (function(module, exports) {
|
|
353
|
+
|
|
354
|
+
module.exports = require("@splunk/react-icons/enterprise/External");
|
|
355
|
+
|
|
356
|
+
/***/ }),
|
|
357
|
+
|
|
358
|
+
/***/ 94:
|
|
327
359
|
/***/ (function(module, exports) {
|
|
328
360
|
|
|
329
|
-
module.exports = require("@splunk/react-icons/
|
|
361
|
+
module.exports = require("@splunk/react-icons/ArrowSquareTopRight");
|
|
330
362
|
|
|
331
363
|
/***/ })
|
|
332
364
|
|
package/List.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 201);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 2:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 201:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -216,13 +223,6 @@ List.Item = List_Item;
|
|
|
216
223
|
|
|
217
224
|
|
|
218
225
|
|
|
219
|
-
/***/ }),
|
|
220
|
-
|
|
221
|
-
/***/ 2:
|
|
222
|
-
/***/ (function(module, exports) {
|
|
223
|
-
|
|
224
|
-
module.exports = require("react");
|
|
225
|
-
|
|
226
226
|
/***/ }),
|
|
227
227
|
|
|
228
228
|
/***/ 3:
|
package/MIGRATION.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
This document lists migration guidance for new features and breaking changes.
|
|
4
4
|
|
|
5
|
+
## 4.17.0
|
|
6
|
+
|
|
7
|
+
### `Typography` `weight` prop
|
|
8
|
+
**Change:**
|
|
9
|
+
`Typography` no longer supports numerical values for `weight`.
|
|
10
|
+
|
|
11
|
+
**Context:**
|
|
12
|
+
Supporting both numerical and keyword values creates confusion on which is correct to use.
|
|
13
|
+
Themes has new variables in version 4.17.0 that support all of the weight values in the design system.
|
|
14
|
+
This aligns with the existing API for `variant` in this component.
|
|
15
|
+
|
|
16
|
+
**Migration steps:**
|
|
17
|
+
Convert any usage of a number to the keyword value using the following table based on (MDN)[https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#common_weight_name_mapping]:
|
|
18
|
+
|Number|Key-word |
|
|
19
|
+
|------|------------|
|
|
20
|
+
| 300 | 'light' |
|
|
21
|
+
| 400 | 'normal' |
|
|
22
|
+
| 500 | 'semiBold' |
|
|
23
|
+
| 600 | 'semiBold' |
|
|
24
|
+
| 700 | 'bold' |
|
|
25
|
+
| 800 | 'extraBold'|
|
|
26
|
+
| 900 | 'heavy' |
|
|
27
|
+
|
|
28
|
+
For example, convert:
|
|
29
|
+
`<Typography as="p" weight={700} />`
|
|
30
|
+
to:
|
|
31
|
+
`<Typography as="p" weight='bold' />`
|
|
32
|
+
|
|
5
33
|
## 4.12.0
|
|
6
34
|
|
|
7
35
|
### Multiline `Text` to `TextArea`
|
package/Markdown.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 170);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,35 +108,35 @@ module.exports = require("@splunk/react-ui/List");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 138:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("commonmark-react-renderer");
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 139:
|
|
119
119
|
/***/ (function(module, exports) {
|
|
120
120
|
|
|
121
121
|
module.exports = require("commonmark");
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 140:
|
|
126
126
|
/***/ (function(module, exports) {
|
|
127
127
|
|
|
128
128
|
module.exports = require("@splunk/react-ui/Code");
|
|
129
129
|
|
|
130
130
|
/***/ }),
|
|
131
131
|
|
|
132
|
-
/***/
|
|
132
|
+
/***/ 141:
|
|
133
133
|
/***/ (function(module, exports) {
|
|
134
134
|
|
|
135
135
|
module.exports = require("@splunk/react-ui/Paragraph");
|
|
136
136
|
|
|
137
137
|
/***/ }),
|
|
138
138
|
|
|
139
|
-
/***/
|
|
139
|
+
/***/ 170:
|
|
140
140
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
141
141
|
|
|
142
142
|
"use strict";
|
|
@@ -165,15 +165,15 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
165
165
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
166
166
|
|
|
167
167
|
// EXTERNAL MODULE: external "commonmark-react-renderer"
|
|
168
|
-
var external_commonmark_react_renderer_ = __webpack_require__(
|
|
168
|
+
var external_commonmark_react_renderer_ = __webpack_require__(138);
|
|
169
169
|
var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_);
|
|
170
170
|
|
|
171
171
|
// EXTERNAL MODULE: external "commonmark"
|
|
172
|
-
var external_commonmark_ = __webpack_require__(
|
|
172
|
+
var external_commonmark_ = __webpack_require__(139);
|
|
173
173
|
var external_commonmark_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_);
|
|
174
174
|
|
|
175
175
|
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
176
|
-
var Box_ = __webpack_require__(
|
|
176
|
+
var Box_ = __webpack_require__(6);
|
|
177
177
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -258,7 +258,7 @@ function MarkdownCode(_ref) {
|
|
|
258
258
|
MarkdownCode.propTypes = MarkdownCode_propTypes;
|
|
259
259
|
/* harmony default export */ var renderers_MarkdownCode = (MarkdownCode);
|
|
260
260
|
// EXTERNAL MODULE: external "@splunk/react-ui/Code"
|
|
261
|
-
var Code_ = __webpack_require__(
|
|
261
|
+
var Code_ = __webpack_require__(140);
|
|
262
262
|
var Code_default = /*#__PURE__*/__webpack_require__.n(Code_);
|
|
263
263
|
|
|
264
264
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
@@ -292,7 +292,7 @@ function MarkdownCodeBlock(_ref) {
|
|
|
292
292
|
MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
|
|
293
293
|
/* harmony default export */ var renderers_MarkdownCodeBlock = (MarkdownCodeBlock);
|
|
294
294
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
295
|
-
var Heading_ = __webpack_require__(
|
|
295
|
+
var Heading_ = __webpack_require__(76);
|
|
296
296
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
297
297
|
|
|
298
298
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
|
|
@@ -363,7 +363,7 @@ function MarkdownImage(_ref) {
|
|
|
363
363
|
MarkdownImage.propTypes = MarkdownImage_propTypes;
|
|
364
364
|
/* harmony default export */ var renderers_MarkdownImage = (MarkdownImage);
|
|
365
365
|
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
366
|
-
var Link_ = __webpack_require__(
|
|
366
|
+
var Link_ = __webpack_require__(39);
|
|
367
367
|
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
368
368
|
|
|
369
369
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
|
|
@@ -433,7 +433,7 @@ function MarkdownItem(_ref) {
|
|
|
433
433
|
MarkdownItem.propTypes = MarkdownItem_propTypes;
|
|
434
434
|
/* harmony default export */ var renderers_MarkdownItem = (MarkdownItem);
|
|
435
435
|
// EXTERNAL MODULE: external "@splunk/react-ui/Paragraph"
|
|
436
|
-
var Paragraph_ = __webpack_require__(
|
|
436
|
+
var Paragraph_ = __webpack_require__(141);
|
|
437
437
|
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_);
|
|
438
438
|
|
|
439
439
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
|
|
@@ -575,31 +575,31 @@ module.exports = require("styled-components");
|
|
|
575
575
|
|
|
576
576
|
/***/ }),
|
|
577
577
|
|
|
578
|
-
/***/
|
|
578
|
+
/***/ 39:
|
|
579
579
|
/***/ (function(module, exports) {
|
|
580
580
|
|
|
581
|
-
module.exports = require("@splunk/ui
|
|
581
|
+
module.exports = require("@splunk/react-ui/Link");
|
|
582
582
|
|
|
583
583
|
/***/ }),
|
|
584
584
|
|
|
585
|
-
/***/
|
|
585
|
+
/***/ 4:
|
|
586
586
|
/***/ (function(module, exports) {
|
|
587
587
|
|
|
588
|
-
module.exports = require("@splunk/
|
|
588
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
589
589
|
|
|
590
590
|
/***/ }),
|
|
591
591
|
|
|
592
|
-
/***/
|
|
592
|
+
/***/ 6:
|
|
593
593
|
/***/ (function(module, exports) {
|
|
594
594
|
|
|
595
|
-
module.exports = require("@splunk/react-ui/
|
|
595
|
+
module.exports = require("@splunk/react-ui/Box");
|
|
596
596
|
|
|
597
597
|
/***/ }),
|
|
598
598
|
|
|
599
|
-
/***/
|
|
599
|
+
/***/ 76:
|
|
600
600
|
/***/ (function(module, exports) {
|
|
601
601
|
|
|
602
|
-
module.exports = require("@splunk/react-ui/
|
|
602
|
+
module.exports = require("@splunk/react-ui/Heading");
|
|
603
603
|
|
|
604
604
|
/***/ }),
|
|
605
605
|
|