@splunk/react-ui 4.13.0 → 4.14.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/.storybook-visual/config/snapshotResolver.js +29 -0
- package/.storybook-visual/main.js +22 -0
- package/.storybook-visual/preview.jsx +31 -0
- package/.storybook-visual/scripts/test.sh +108 -0
- package/.storybook-visual/test-runner.js +108 -0
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +28 -28
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +16 -1
- package/Calendar.js +365 -70
- package/Card.js +30 -28
- package/CardLayout.js +2 -2
- package/Chip.js +10 -10
- package/Clickable.js +9 -9
- package/CloseButton.js +8 -8
- package/Code.js +4 -4
- package/CollapsiblePanel.js +15 -11
- package/Color.js +27 -27
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +19 -19
- package/Concertina.js +6 -6
- package/ControlGroup.js +14 -13
- package/Date.js +118 -55
- package/DefinitionList.js +2 -2
- package/Divider.js +194 -0
- package/Dropdown.js +13 -13
- package/EventListener.js +4 -4
- package/File.js +16 -16
- package/FormRows.js +14 -14
- package/Heading.js +2 -2
- package/Image.js +12 -12
- package/JSONTree.js +2 -2
- package/Layer.js +85 -8
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +18 -18
- package/Menu.js +32 -32
- package/Message.js +32 -32
- package/MessageBar.js +22 -22
- package/Modal.js +63 -37
- package/ModalLayer.js +11 -11
- package/Monogram.js +2 -2
- package/Multiselect.js +61 -61
- package/Number.js +8 -6
- package/Paginator.js +17 -17
- package/Paragraph.js +2 -2
- package/Popover.js +175 -17
- package/Progress.js +8 -8
- package/RadioBar.js +2 -2
- package/RadioList.js +4 -4
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +13 -13
- package/ScrollContainerContext.js +154 -3
- package/Search.js +28 -28
- package/Select.js +41 -41
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +11 -11
- package/SplitButton.js +12 -12
- package/StaticContent.js +2 -2
- package/StepBar.js +10 -10
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +6 -6
- package/Table.js +249 -67
- package/Text.js +31 -30
- package/TextArea.js +31 -31
- package/Tooltip.js +17 -11
- package/TransitionOpen.js +39 -15
- package/Typography.js +4 -4
- package/WaitSpinner.js +4 -70
- package/package.json +10 -12
- package/test-runner-jest.config.js +18 -5
- package/types/src/Calendar/Calendar.d.ts +15 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Date/Date.d.ts +17 -8
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
- package/types/src/Divider/Divider.d.ts +20 -0
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
- package/types/src/Divider/index.d.ts +1 -0
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +2 -2
- package/{useIsSsr.js → useKeyPress.js} +56 -49
- package/usePrevious.js +2 -2
- package/types/src/useIsSsr/index.d.ts +0 -2
- package/types/src/useIsSsr/useIsSsr.d.ts +0 -8
package/MessageBar.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 = 167);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 167:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -141,19 +141,19 @@ var ScreenReaderContent_ = __webpack_require__(14);
|
|
|
141
141
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: ./src/icons/AlertFilled.tsx
|
|
144
|
-
var AlertFilled = __webpack_require__(
|
|
144
|
+
var AlertFilled = __webpack_require__(73);
|
|
145
145
|
|
|
146
146
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
147
|
-
var CrossMark = __webpack_require__(
|
|
147
|
+
var CrossMark = __webpack_require__(22);
|
|
148
148
|
|
|
149
149
|
// EXTERNAL MODULE: ./src/icons/InfoFilled.tsx
|
|
150
|
-
var InfoFilled = __webpack_require__(
|
|
150
|
+
var InfoFilled = __webpack_require__(74);
|
|
151
151
|
|
|
152
152
|
// EXTERNAL MODULE: ./src/icons/SuccessFilled.tsx
|
|
153
|
-
var SuccessFilled = __webpack_require__(
|
|
153
|
+
var SuccessFilled = __webpack_require__(76);
|
|
154
154
|
|
|
155
155
|
// EXTERNAL MODULE: ./src/icons/WarningFilled.tsx
|
|
156
|
-
var WarningFilled = __webpack_require__(
|
|
156
|
+
var WarningFilled = __webpack_require__(77);
|
|
157
157
|
|
|
158
158
|
// EXTERNAL MODULE: external "styled-components"
|
|
159
159
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -384,14 +384,14 @@ module.exports = require("react");
|
|
|
384
384
|
|
|
385
385
|
/***/ }),
|
|
386
386
|
|
|
387
|
-
/***/
|
|
387
|
+
/***/ 22:
|
|
388
388
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
389
389
|
|
|
390
390
|
"use strict";
|
|
391
391
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
392
392
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
393
393
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
394
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
394
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
|
|
395
395
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
396
396
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
397
397
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -434,7 +434,7 @@ function CrossMark(props) {
|
|
|
434
434
|
|
|
435
435
|
/***/ }),
|
|
436
436
|
|
|
437
|
-
/***/
|
|
437
|
+
/***/ 23:
|
|
438
438
|
/***/ (function(module, exports) {
|
|
439
439
|
|
|
440
440
|
module.exports = require("@splunk/react-icons/Close");
|
|
@@ -455,14 +455,14 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
455
455
|
|
|
456
456
|
/***/ }),
|
|
457
457
|
|
|
458
|
-
/***/
|
|
458
|
+
/***/ 53:
|
|
459
459
|
/***/ (function(module, exports) {
|
|
460
460
|
|
|
461
461
|
module.exports = require("@splunk/react-icons/Error");
|
|
462
462
|
|
|
463
463
|
/***/ }),
|
|
464
464
|
|
|
465
|
-
/***/
|
|
465
|
+
/***/ 54:
|
|
466
466
|
/***/ (function(module, exports) {
|
|
467
467
|
|
|
468
468
|
module.exports = require("@splunk/react-icons/Success");
|
|
@@ -612,14 +612,14 @@ Icon.defaultProps = defaultProps;
|
|
|
612
612
|
|
|
613
613
|
/***/ }),
|
|
614
614
|
|
|
615
|
-
/***/
|
|
615
|
+
/***/ 73:
|
|
616
616
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
617
617
|
|
|
618
618
|
"use strict";
|
|
619
619
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AlertFilled; });
|
|
620
620
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
621
621
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
622
|
-
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
622
|
+
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
623
623
|
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__);
|
|
624
624
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
625
625
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -652,14 +652,14 @@ function AlertFilled(props) {
|
|
|
652
652
|
|
|
653
653
|
/***/ }),
|
|
654
654
|
|
|
655
|
-
/***/
|
|
655
|
+
/***/ 74:
|
|
656
656
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
657
657
|
|
|
658
658
|
"use strict";
|
|
659
659
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InfoFilled; });
|
|
660
660
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
661
661
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
662
|
-
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
662
|
+
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75);
|
|
663
663
|
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__);
|
|
664
664
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
665
665
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -692,21 +692,21 @@ function InfoFilled(props) {
|
|
|
692
692
|
|
|
693
693
|
/***/ }),
|
|
694
694
|
|
|
695
|
-
/***/
|
|
695
|
+
/***/ 75:
|
|
696
696
|
/***/ (function(module, exports) {
|
|
697
697
|
|
|
698
698
|
module.exports = require("@splunk/react-icons/InfoCircle");
|
|
699
699
|
|
|
700
700
|
/***/ }),
|
|
701
701
|
|
|
702
|
-
/***/
|
|
702
|
+
/***/ 76:
|
|
703
703
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
704
704
|
|
|
705
705
|
"use strict";
|
|
706
706
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SuccessFilled; });
|
|
707
707
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
708
708
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
709
|
-
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
709
|
+
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54);
|
|
710
710
|
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__);
|
|
711
711
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
712
712
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -739,14 +739,14 @@ function SuccessFilled(props) {
|
|
|
739
739
|
|
|
740
740
|
/***/ }),
|
|
741
741
|
|
|
742
|
-
/***/
|
|
742
|
+
/***/ 77:
|
|
743
743
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
744
744
|
|
|
745
745
|
"use strict";
|
|
746
746
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WarningFilled; });
|
|
747
747
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
748
748
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
749
|
-
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
749
|
+
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78);
|
|
750
750
|
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__);
|
|
751
751
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
752
752
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -779,7 +779,7 @@ function WarningFilled(props) {
|
|
|
779
779
|
|
|
780
780
|
/***/ }),
|
|
781
781
|
|
|
782
|
-
/***/
|
|
782
|
+
/***/ 78:
|
|
783
783
|
/***/ (function(module, exports) {
|
|
784
784
|
|
|
785
785
|
module.exports = require("@splunk/react-icons/Warning");
|
package/Modal.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 = 119);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/ui-utils/id");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 119:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -133,17 +133,17 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
133
133
|
var external_lodash_ = __webpack_require__(4);
|
|
134
134
|
|
|
135
135
|
// EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
|
|
136
|
-
var ModalLayer_ = __webpack_require__(
|
|
136
|
+
var ModalLayer_ = __webpack_require__(79);
|
|
137
137
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
140
|
-
var focus_ = __webpack_require__(
|
|
140
|
+
var focus_ = __webpack_require__(28);
|
|
141
141
|
|
|
142
142
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
143
|
-
var id_ = __webpack_require__(
|
|
143
|
+
var id_ = __webpack_require__(11);
|
|
144
144
|
|
|
145
145
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
146
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
146
|
+
var ScrollContainerContext_ = __webpack_require__(39);
|
|
147
147
|
|
|
148
148
|
// EXTERNAL MODULE: external "styled-components"
|
|
149
149
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -231,6 +231,10 @@ function Body(_ref) {
|
|
|
231
231
|
|
|
232
232
|
Body.propTypes = propTypes;
|
|
233
233
|
/* harmony default export */ var Modal_Body = (Body);
|
|
234
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/Divider"
|
|
235
|
+
var Divider_ = __webpack_require__(83);
|
|
236
|
+
var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
|
|
237
|
+
|
|
234
238
|
// CONCATENATED MODULE: ./src/Modal/FooterStyles.ts
|
|
235
239
|
|
|
236
240
|
|
|
@@ -238,17 +242,21 @@ Body.propTypes = propTypes;
|
|
|
238
242
|
var FooterStyles_StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
239
243
|
displayName: "FooterStyles__StyledBox",
|
|
240
244
|
componentId: "yszcmv-0"
|
|
241
|
-
})(["flex:0 0 auto;text-align:right;padding:", ";", "
|
|
245
|
+
})(["flex:0 0 auto;text-align:right;padding:", ";background-color:", ";& > button{min-width:80px;}"], Object(themes_["pick"])({
|
|
242
246
|
enterprise: themes_["variables"].spacing,
|
|
243
247
|
prisma: {
|
|
244
248
|
comfortable: '24px',
|
|
245
249
|
compact: '18px 24px'
|
|
246
250
|
}
|
|
247
251
|
}), Object(themes_["pick"])({
|
|
248
|
-
enterprise:
|
|
249
|
-
prisma:
|
|
252
|
+
enterprise: themes_["variables"].backgroundColor,
|
|
253
|
+
prisma: themes_["variables"].backgroundColorDialog
|
|
250
254
|
}));
|
|
251
255
|
|
|
256
|
+
// CONCATENATED MODULE: ./src/Modal/ModalContext.tsx
|
|
257
|
+
|
|
258
|
+
var ModalContext = /*#__PURE__*/Object(external_react_["createContext"])({});
|
|
259
|
+
/* harmony default export */ var Modal_ModalContext = (ModalContext);
|
|
252
260
|
// CONCATENATED MODULE: ./src/Modal/Footer.tsx
|
|
253
261
|
function Footer_extends() { Footer_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Footer_extends.apply(this, arguments); }
|
|
254
262
|
|
|
@@ -259,6 +267,8 @@ function Footer_objectWithoutPropertiesLoose(source, excluded) { if (source == n
|
|
|
259
267
|
|
|
260
268
|
|
|
261
269
|
|
|
270
|
+
|
|
271
|
+
|
|
262
272
|
var Footer_propTypes = {
|
|
263
273
|
children: external_prop_types_default.a.node
|
|
264
274
|
};
|
|
@@ -271,15 +281,21 @@ function Footer(_ref) {
|
|
|
271
281
|
otherProps = Footer_objectWithoutProperties(_ref, ["children"]);
|
|
272
282
|
|
|
273
283
|
// @docs-props-type FooterPropsBase
|
|
274
|
-
|
|
284
|
+
var _useContext = Object(external_react_["useContext"])(Modal_ModalContext),
|
|
285
|
+
dividerContext = _useContext.divider;
|
|
286
|
+
|
|
287
|
+
var hasDivider = dividerContext === 'both' || dividerContext === 'footer';
|
|
288
|
+
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, hasDivider && /*#__PURE__*/external_react_default.a.createElement(Divider_default.a, {
|
|
289
|
+
"aria-hidden": true
|
|
290
|
+
}), /*#__PURE__*/external_react_default.a.createElement(FooterStyles_StyledBox, Footer_extends({
|
|
275
291
|
"data-test": "footer"
|
|
276
|
-
}, otherProps), children);
|
|
292
|
+
}, otherProps), children));
|
|
277
293
|
}
|
|
278
294
|
|
|
279
295
|
Footer.propTypes = Footer_propTypes;
|
|
280
296
|
/* harmony default export */ var Modal_Footer = (Footer);
|
|
281
297
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
282
|
-
var CloseButton_ = __webpack_require__(
|
|
298
|
+
var CloseButton_ = __webpack_require__(69);
|
|
283
299
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
284
300
|
|
|
285
301
|
// CONCATENATED MODULE: ./src/Modal/HeaderStyles.ts
|
|
@@ -289,9 +305,7 @@ var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
|
289
305
|
var HeaderStyles_StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
290
306
|
displayName: "HeaderStyles__StyledBox",
|
|
291
307
|
componentId: "sc-1y722ut-0"
|
|
292
|
-
})(["flex:0 0 auto;
|
|
293
|
-
enterprise: Object(external_styled_components_["css"])(["border-bottom:1px solid ", ";"], themes_["variables"].borderColor)
|
|
294
|
-
}), Object(themes_["pick"])({
|
|
308
|
+
})(["", ";flex:0 0 auto;position:relative;min-height:", ";background-color:", ";padding:", ";align-items:center;padding-right:", ";"], themes_["mixins"].reset('flex'), Object(themes_["pick"])({
|
|
295
309
|
enterprise: '30px',
|
|
296
310
|
prisma: {
|
|
297
311
|
comfortable: '60px',
|
|
@@ -323,7 +337,7 @@ var StyledTitleWrapper = external_styled_components_default.a.div.withConfig({
|
|
|
323
337
|
var StyledIcon = external_styled_components_default.a.div.withConfig({
|
|
324
338
|
displayName: "HeaderStyles__StyledIcon",
|
|
325
339
|
componentId: "sc-1y722ut-2"
|
|
326
|
-
})(["
|
|
340
|
+
})(["", ";align-items:center;justify-content:center;margin-right:", ";", " width:", ";height:", ";flex-shrink:0;"], themes_["mixins"].reset('inline-flex'), themes_["variables"].spacingLarge, Object(themes_["pick"])({
|
|
327
341
|
prisma: Object(external_styled_components_["css"])(["background-color:", ";"], themes_["variables"].transparent)
|
|
328
342
|
}), Object(themes_["pick"])({
|
|
329
343
|
comfortable: '40px',
|
|
@@ -372,10 +386,6 @@ var StyledClose = external_styled_components_default.a.div.withConfig({
|
|
|
372
386
|
componentId: "sc-1y722ut-6"
|
|
373
387
|
})(["", ";position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"], themes_["mixins"].reset('block'));
|
|
374
388
|
|
|
375
|
-
// CONCATENATED MODULE: ./src/Modal/ModalContext.tsx
|
|
376
|
-
|
|
377
|
-
var ModalContext = /*#__PURE__*/Object(external_react_["createContext"])({});
|
|
378
|
-
/* harmony default export */ var Modal_ModalContext = (ModalContext);
|
|
379
389
|
// CONCATENATED MODULE: ./src/Modal/Header.tsx
|
|
380
390
|
function Header_extends() { Header_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Header_extends.apply(this, arguments); }
|
|
381
391
|
|
|
@@ -388,6 +398,7 @@ function Header_objectWithoutPropertiesLoose(source, excluded) { if (source == n
|
|
|
388
398
|
|
|
389
399
|
|
|
390
400
|
|
|
401
|
+
|
|
391
402
|
var Header_propTypes = {
|
|
392
403
|
children: external_prop_types_default.a.node,
|
|
393
404
|
icon: external_prop_types_default.a.node,
|
|
@@ -409,9 +420,11 @@ function Header(_ref) {
|
|
|
409
420
|
|
|
410
421
|
// @docs-props-type StepPropsBase
|
|
411
422
|
var _useContext = Object(external_react_["useContext"])(Modal_ModalContext),
|
|
412
|
-
titleIdContext = _useContext.titleId
|
|
423
|
+
titleIdContext = _useContext.titleId,
|
|
424
|
+
dividerContext = _useContext.divider;
|
|
413
425
|
|
|
414
|
-
|
|
426
|
+
var hasDivider = dividerContext === 'both' || dividerContext === 'header';
|
|
427
|
+
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(HeaderStyles_StyledBox, Header_extends({
|
|
415
428
|
$close: !!onRequestClose,
|
|
416
429
|
"data-test": "header"
|
|
417
430
|
}, otherProps), icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, null, icon), title ? /*#__PURE__*/external_react_default.a.createElement(StyledTitleWrapper, null, title && /*#__PURE__*/external_react_default.a.createElement(StyledTitle, {
|
|
@@ -422,13 +435,15 @@ function Header(_ref) {
|
|
|
422
435
|
}, subtitle)) : children, onRequestClose && /*#__PURE__*/external_react_default.a.createElement(StyledButtonsWrapper, null, onRequestClose && /*#__PURE__*/external_react_default.a.createElement(StyledClose, null, /*#__PURE__*/external_react_default.a.createElement(CloseButton_default.a, {
|
|
423
436
|
onClick: onRequestClose,
|
|
424
437
|
"data-test": "close"
|
|
425
|
-
}))))
|
|
438
|
+
})))), hasDivider && /*#__PURE__*/external_react_default.a.createElement(Divider_default.a, {
|
|
439
|
+
"aria-hidden": true
|
|
440
|
+
}));
|
|
426
441
|
}
|
|
427
442
|
|
|
428
443
|
Header.propTypes = Header_propTypes;
|
|
429
444
|
/* harmony default export */ var Modal_Header = (Header);
|
|
430
445
|
// EXTERNAL MODULE: external "react-spring"
|
|
431
|
-
var external_react_spring_ = __webpack_require__(
|
|
446
|
+
var external_react_spring_ = __webpack_require__(21);
|
|
432
447
|
|
|
433
448
|
// CONCATENATED MODULE: ./src/Modal/ModalStyles.ts
|
|
434
449
|
|
|
@@ -502,11 +517,13 @@ var Modal_propTypes = {
|
|
|
502
517
|
children: external_prop_types_default.a.node,
|
|
503
518
|
initialFocus: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.oneOf(['first', 'container'])]),
|
|
504
519
|
onRequestClose: external_prop_types_default.a.func,
|
|
505
|
-
open: external_prop_types_default.a.bool
|
|
520
|
+
open: external_prop_types_default.a.bool,
|
|
521
|
+
divider: external_prop_types_default.a.oneOf(['header', 'footer', 'both', 'none'])
|
|
506
522
|
};
|
|
507
523
|
var defaultProps = {
|
|
508
524
|
initialFocus: 'first',
|
|
509
|
-
open: false
|
|
525
|
+
open: false,
|
|
526
|
+
divider: 'both'
|
|
510
527
|
};
|
|
511
528
|
|
|
512
529
|
var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
@@ -609,7 +626,8 @@ var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
|
609
626
|
_defineProperty(_assertThisInitialized(_this), "renderModal", function (interpolatedStyle) {
|
|
610
627
|
var _this$props3 = _this.props,
|
|
611
628
|
style = _this$props3.style,
|
|
612
|
-
children = _this$props3.children
|
|
629
|
+
children = _this$props3.children,
|
|
630
|
+
divider = _this$props3.divider;
|
|
613
631
|
var top = interpolatedStyle.top,
|
|
614
632
|
opacity = interpolatedStyle.opacity;
|
|
615
633
|
var clonedChildren = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]);
|
|
@@ -627,7 +645,8 @@ var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
|
627
645
|
"aria-labelledby": _this.headerTitleId
|
|
628
646
|
}, Object(external_lodash_["omit"])(_this.props, [].concat(_toConsumableArray(Object(external_lodash_["keys"])(Modal.propTypes)), ['style']))), /*#__PURE__*/external_react_default.a.createElement(Modal_ModalContext.Provider, {
|
|
629
647
|
value: {
|
|
630
|
-
titleId: _this.headerTitleId
|
|
648
|
+
titleId: _this.headerTitleId,
|
|
649
|
+
divider: divider
|
|
631
650
|
}
|
|
632
651
|
}, clonedChildren));
|
|
633
652
|
});
|
|
@@ -688,21 +707,21 @@ _defineProperty(Modal_Modal, "Footer", Modal_Footer);
|
|
|
688
707
|
|
|
689
708
|
/***/ }),
|
|
690
709
|
|
|
691
|
-
/***/
|
|
710
|
+
/***/ 2:
|
|
692
711
|
/***/ (function(module, exports) {
|
|
693
712
|
|
|
694
|
-
module.exports = require("react
|
|
713
|
+
module.exports = require("react");
|
|
695
714
|
|
|
696
715
|
/***/ }),
|
|
697
716
|
|
|
698
|
-
/***/
|
|
717
|
+
/***/ 21:
|
|
699
718
|
/***/ (function(module, exports) {
|
|
700
719
|
|
|
701
|
-
module.exports = require("react");
|
|
720
|
+
module.exports = require("react-spring");
|
|
702
721
|
|
|
703
722
|
/***/ }),
|
|
704
723
|
|
|
705
|
-
/***/
|
|
724
|
+
/***/ 28:
|
|
706
725
|
/***/ (function(module, exports) {
|
|
707
726
|
|
|
708
727
|
module.exports = require("@splunk/ui-utils/focus");
|
|
@@ -716,7 +735,7 @@ module.exports = require("styled-components");
|
|
|
716
735
|
|
|
717
736
|
/***/ }),
|
|
718
737
|
|
|
719
|
-
/***/
|
|
738
|
+
/***/ 39:
|
|
720
739
|
/***/ (function(module, exports) {
|
|
721
740
|
|
|
722
741
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
@@ -730,14 +749,14 @@ module.exports = require("lodash");
|
|
|
730
749
|
|
|
731
750
|
/***/ }),
|
|
732
751
|
|
|
733
|
-
/***/
|
|
752
|
+
/***/ 69:
|
|
734
753
|
/***/ (function(module, exports) {
|
|
735
754
|
|
|
736
755
|
module.exports = require("@splunk/react-ui/CloseButton");
|
|
737
756
|
|
|
738
757
|
/***/ }),
|
|
739
758
|
|
|
740
|
-
/***/
|
|
759
|
+
/***/ 79:
|
|
741
760
|
/***/ (function(module, exports) {
|
|
742
761
|
|
|
743
762
|
module.exports = require("@splunk/react-ui/ModalLayer");
|
|
@@ -749,6 +768,13 @@ module.exports = require("@splunk/react-ui/ModalLayer");
|
|
|
749
768
|
|
|
750
769
|
module.exports = require("@splunk/react-ui/Box");
|
|
751
770
|
|
|
771
|
+
/***/ }),
|
|
772
|
+
|
|
773
|
+
/***/ 83:
|
|
774
|
+
/***/ (function(module, exports) {
|
|
775
|
+
|
|
776
|
+
module.exports = require("@splunk/react-ui/Divider");
|
|
777
|
+
|
|
752
778
|
/***/ })
|
|
753
779
|
|
|
754
780
|
/******/ });
|
package/ModalLayer.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 = 168);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 168:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -120,10 +120,10 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
120
120
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
121
121
|
|
|
122
122
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
123
|
-
var Animation_ = __webpack_require__(
|
|
123
|
+
var Animation_ = __webpack_require__(34);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
126
|
-
var Layer_ = __webpack_require__(
|
|
126
|
+
var Layer_ = __webpack_require__(60);
|
|
127
127
|
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -131,7 +131,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
131
131
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: external "react-spring"
|
|
134
|
-
var external_react_spring_ = __webpack_require__(
|
|
134
|
+
var external_react_spring_ = __webpack_require__(21);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
137
137
|
var themes_ = __webpack_require__(0);
|
|
@@ -310,17 +310,17 @@ _defineProperty(ModalLayer_ModalLayer, "getDerivedStateFromProps", function (pro
|
|
|
310
310
|
|
|
311
311
|
/***/ }),
|
|
312
312
|
|
|
313
|
-
/***/
|
|
313
|
+
/***/ 2:
|
|
314
314
|
/***/ (function(module, exports) {
|
|
315
315
|
|
|
316
|
-
module.exports = require("react
|
|
316
|
+
module.exports = require("react");
|
|
317
317
|
|
|
318
318
|
/***/ }),
|
|
319
319
|
|
|
320
|
-
/***/
|
|
320
|
+
/***/ 21:
|
|
321
321
|
/***/ (function(module, exports) {
|
|
322
322
|
|
|
323
|
-
module.exports = require("react");
|
|
323
|
+
module.exports = require("react-spring");
|
|
324
324
|
|
|
325
325
|
/***/ }),
|
|
326
326
|
|
|
@@ -331,14 +331,14 @@ module.exports = require("styled-components");
|
|
|
331
331
|
|
|
332
332
|
/***/ }),
|
|
333
333
|
|
|
334
|
-
/***/
|
|
334
|
+
/***/ 34:
|
|
335
335
|
/***/ (function(module, exports) {
|
|
336
336
|
|
|
337
337
|
module.exports = require("@splunk/react-ui/Animation");
|
|
338
338
|
|
|
339
339
|
/***/ }),
|
|
340
340
|
|
|
341
|
-
/***/
|
|
341
|
+
/***/ 60:
|
|
342
342
|
/***/ (function(module, exports) {
|
|
343
343
|
|
|
344
344
|
module.exports = require("@splunk/react-ui/Layer");
|
package/Monogram.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 = 169);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 169:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|