@splunk/react-ui 4.13.0 → 4.15.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/.dockerignore +2 -0
- package/Accordion.js +41 -16
- package/Anchor.js +9 -9
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +9 -9
- package/Button.js +47 -46
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +14 -14
- package/CHANGELOG.md +46 -1
- package/Calendar.js +460 -147
- package/Card.js +85 -83
- package/CardLayout.js +9 -9
- package/Chip.js +23 -23
- package/Clickable.js +39 -15
- package/CloseButton.js +23 -23
- package/Code.js +484 -436
- package/CollapsiblePanel.js +64 -35
- package/Color.js +298 -188
- package/ColumnLayout.js +18 -17
- package/ComboBox.js +81 -32
- package/Concertina.js +89 -28
- package/ControlGroup.js +85 -27
- package/Date.js +134 -58
- package/DefinitionList.js +14 -8
- package/Divider.d.ts +2 -0
- package/Divider.js +194 -0
- package/Dockerfile.enterprise.storybook +7 -0
- package/Dockerfile.prisma.storybook +7 -0
- package/Dockerfile.visual +10 -0
- package/Dropdown.js +79 -19
- package/EventListener.js +17 -17
- package/File.js +96 -43
- package/FormRows.js +40 -39
- package/Heading.js +83 -55
- package/Image.js +67 -42
- package/JSONTree.js +106 -21
- package/Layer.js +130 -28
- package/Link.js +17 -17
- package/List.js +3 -3
- package/Markdown.js +71 -65
- package/Menu.js +155 -121
- package/Message.js +135 -135
- package/MessageBar.js +136 -136
- package/Modal.js +99 -48
- package/ModalLayer.js +15 -15
- package/Monogram.js +18 -17
- package/Multiselect.js +2788 -2310
- package/Number.js +76 -37
- package/Paginator.js +99 -86
- package/Paragraph.js +10 -10
- package/Popover.js +343 -48
- package/Progress.js +23 -22
- package/RadioBar.js +32 -14
- package/RadioList.js +17 -11
- package/Resize.js +34 -21
- package/ResultsMenu.js +44 -31
- package/ScreenReaderContent.js +9 -9
- package/Scroll.js +52 -27
- package/ScrollContainerContext.js +157 -6
- package/Search.js +71 -34
- package/Select.js +347 -69
- package/SidePanel.js +37 -24
- package/Slider.js +50 -20
- package/SlidingPanels.js +56 -18
- package/SplitButton.js +27 -26
- package/StaticContent.js +9 -9
- package/StepBar.js +22 -22
- package/Switch.js +18 -13
- package/TabBar.js +28 -28
- package/TabLayout.js +43 -18
- package/Table.js +549 -158
- package/Text.js +93 -50
- package/TextArea.d.ts +2 -0
- package/TextArea.js +134 -56
- package/Tooltip.js +246 -63
- package/TransitionOpen.js +63 -26
- package/Typography.d.ts +2 -0
- package/Typography.js +17 -16
- package/WaitSpinner.js +15 -81
- package/docker-compose.yml +42 -0
- package/package.json +20 -20
- package/test-runner-jest.config.js +23 -5
- package/types/src/Accordion/AccordionContext.d.ts +1 -0
- package/types/src/Button/docs/examples/Selected.d.ts +2 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +1 -0
- package/types/src/Calendar/Calendar.d.ts +17 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CardLayout/CardLayoutContext.d.ts +1 -0
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Concertina/ConcertinaContext.d.ts +1 -0
- package/types/src/ControlGroup/ControlGroup.d.ts +15 -8
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -0
- 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/File/File.d.ts +4 -2
- package/types/src/File/FileContext.d.ts +1 -0
- package/types/src/FormRows/FormRowsContext.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +1 -1
- package/types/src/Menu/MenuContext.d.ts +1 -0
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Multiselect/Compact.d.ts +10 -1
- package/types/src/Multiselect/Multiselect.d.ts +12 -1
- package/types/src/Multiselect/Normal.d.ts +2 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/Popover/Popover.d.ts +25 -5
- package/types/src/Popover/PopoverContext.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -3
- package/types/src/RadioBar/RadioBarContext.d.ts +1 -0
- package/types/src/RadioList/RadioList.d.ts +5 -1
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/Select/SelectBase.d.ts +2 -0
- package/types/src/Slider/Slider.d.ts +5 -3
- 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/StepBar/StepBarContext.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +2 -0
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/TableContext.d.ts +1 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Text/Text.d.ts +5 -3
- package/types/src/TextArea/TextArea.d.ts +5 -3
- package/types/src/Tooltip/Tooltip.d.ts +26 -9
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useForceUpdate/useForceUpdate.d.ts +1 -0
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +9 -9
- package/{useIsSsr.js → useKeyPress.js} +56 -49
- package/usePrevious.js +9 -9
- package/types/src/useIsSsr/index.d.ts +0 -2
- package/types/src/useIsSsr/useIsSsr.d.ts +0 -8
package/FormRows.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 = 176);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,28 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 107:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react-sortable-hoc");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 130:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("@splunk/react-icons/Plus");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 16:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 176:
|
|
105
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
127
|
|
|
107
128
|
"use strict";
|
|
@@ -121,13 +142,13 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
121
142
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
122
143
|
|
|
123
144
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
124
|
-
var i18n_ = __webpack_require__(
|
|
145
|
+
var i18n_ = __webpack_require__(4);
|
|
125
146
|
|
|
126
147
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
127
148
|
var keyboard_ = __webpack_require__(9);
|
|
128
149
|
|
|
129
150
|
// EXTERNAL MODULE: external "@splunk/react-icons/Plus"
|
|
130
|
-
var Plus_ = __webpack_require__(
|
|
151
|
+
var Plus_ = __webpack_require__(130);
|
|
131
152
|
var Plus_default = /*#__PURE__*/__webpack_require__.n(Plus_);
|
|
132
153
|
|
|
133
154
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -174,17 +195,18 @@ function Plus(props) {
|
|
|
174
195
|
}, props));
|
|
175
196
|
}
|
|
176
197
|
// EXTERNAL MODULE: external "react-sortable-hoc"
|
|
177
|
-
var external_react_sortable_hoc_ = __webpack_require__(
|
|
198
|
+
var external_react_sortable_hoc_ = __webpack_require__(107);
|
|
178
199
|
|
|
179
|
-
// EXTERNAL MODULE: external "lodash"
|
|
180
|
-
var
|
|
200
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
201
|
+
var omit_ = __webpack_require__(5);
|
|
202
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
181
203
|
|
|
182
204
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
183
|
-
var CloseButton_ = __webpack_require__(
|
|
205
|
+
var CloseButton_ = __webpack_require__(92);
|
|
184
206
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
185
207
|
|
|
186
208
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
187
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
209
|
+
var ScreenReaderContent_ = __webpack_require__(16);
|
|
188
210
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
189
211
|
|
|
190
212
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -196,7 +218,7 @@ var Box_ = __webpack_require__(8);
|
|
|
196
218
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
197
219
|
|
|
198
220
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
199
|
-
var Button_ = __webpack_require__(
|
|
221
|
+
var Button_ = __webpack_require__(19);
|
|
200
222
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
201
223
|
|
|
202
224
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -407,7 +429,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
407
429
|
onKeyDown: this.handleKeyDown // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
408
430
|
,
|
|
409
431
|
tabIndex: sortableContext ? 0 : undefined
|
|
410
|
-
},
|
|
432
|
+
}, omit_default()(otherProps, ['onKeyDown', 'onRequestRemove', 'rowIndex'])), sortableContext && /*#__PURE__*/external_react_default.a.createElement(DragHandle, null), children, onRequestRemoveExists && /*#__PURE__*/external_react_default.a.createElement(StyledButton, null, /*#__PURE__*/external_react_default.a.createElement(CloseButton_default.a, {
|
|
411
433
|
disabled: disabledDeleteButtonContext,
|
|
412
434
|
"data-test": "remove",
|
|
413
435
|
onClick: this.handleRequestRemove,
|
|
@@ -705,14 +727,7 @@ FormRows_defineProperty(FormRows_FormRows, "Row", FormRows_Row);
|
|
|
705
727
|
|
|
706
728
|
/***/ }),
|
|
707
729
|
|
|
708
|
-
/***/
|
|
709
|
-
/***/ (function(module, exports) {
|
|
710
|
-
|
|
711
|
-
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
712
|
-
|
|
713
|
-
/***/ }),
|
|
714
|
-
|
|
715
|
-
/***/ 16:
|
|
730
|
+
/***/ 19:
|
|
716
731
|
/***/ (function(module, exports) {
|
|
717
732
|
|
|
718
733
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -736,14 +751,14 @@ module.exports = require("styled-components");
|
|
|
736
751
|
/***/ 4:
|
|
737
752
|
/***/ (function(module, exports) {
|
|
738
753
|
|
|
739
|
-
module.exports = require("
|
|
754
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
740
755
|
|
|
741
756
|
/***/ }),
|
|
742
757
|
|
|
743
758
|
/***/ 5:
|
|
744
759
|
/***/ (function(module, exports) {
|
|
745
760
|
|
|
746
|
-
module.exports = require("
|
|
761
|
+
module.exports = require("lodash/omit");
|
|
747
762
|
|
|
748
763
|
/***/ }),
|
|
749
764
|
|
|
@@ -772,13 +787,6 @@ function SVG(props) {
|
|
|
772
787
|
|
|
773
788
|
/***/ }),
|
|
774
789
|
|
|
775
|
-
/***/ 67:
|
|
776
|
-
/***/ (function(module, exports) {
|
|
777
|
-
|
|
778
|
-
module.exports = require("@splunk/react-ui/CloseButton");
|
|
779
|
-
|
|
780
|
-
/***/ }),
|
|
781
|
-
|
|
782
790
|
/***/ 7:
|
|
783
791
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
784
792
|
|
|
@@ -897,13 +905,6 @@ Icon.defaultProps = defaultProps;
|
|
|
897
905
|
|
|
898
906
|
/***/ }),
|
|
899
907
|
|
|
900
|
-
/***/ 79:
|
|
901
|
-
/***/ (function(module, exports) {
|
|
902
|
-
|
|
903
|
-
module.exports = require("react-sortable-hoc");
|
|
904
|
-
|
|
905
|
-
/***/ }),
|
|
906
|
-
|
|
907
908
|
/***/ 8:
|
|
908
909
|
/***/ (function(module, exports) {
|
|
909
910
|
|
|
@@ -911,17 +912,17 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
911
912
|
|
|
912
913
|
/***/ }),
|
|
913
914
|
|
|
914
|
-
/***/
|
|
915
|
+
/***/ 9:
|
|
915
916
|
/***/ (function(module, exports) {
|
|
916
917
|
|
|
917
|
-
module.exports = require("@splunk/
|
|
918
|
+
module.exports = require("@splunk/ui-utils/keyboard");
|
|
918
919
|
|
|
919
920
|
/***/ }),
|
|
920
921
|
|
|
921
|
-
/***/
|
|
922
|
+
/***/ 92:
|
|
922
923
|
/***/ (function(module, exports) {
|
|
923
924
|
|
|
924
|
-
module.exports = require("@splunk/ui
|
|
925
|
+
module.exports = require("@splunk/react-ui/CloseButton");
|
|
925
926
|
|
|
926
927
|
/***/ })
|
|
927
928
|
|
package/Heading.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 = 212);
|
|
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
|
+
/***/ 212:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -129,66 +136,94 @@ var themes_ = __webpack_require__(0);
|
|
|
129
136
|
// CONCATENATED MODULE: ./src/Heading/HeadingStyles.ts
|
|
130
137
|
|
|
131
138
|
|
|
132
|
-
var section = Object(external_styled_components_["css"])(["margin:0.707em 0 0.2em;"]);
|
|
133
139
|
var StyledH1 = external_styled_components_default.a.h1.withConfig({
|
|
134
140
|
displayName: "HeadingStyles__StyledH1",
|
|
135
141
|
componentId: "sc-15s3yx3-0"
|
|
136
|
-
})(["", ";margin:1.414em 0 0.4em;text-rendering:optimizelegibility;
|
|
137
|
-
"true": Object(themes_["pick"])({
|
|
138
|
-
enterprise: {
|
|
139
|
-
dark: themes_["variables"].gray80,
|
|
140
|
-
light: themes_["variables"].gray45
|
|
141
|
-
},
|
|
142
|
-
prisma: themes_["variables"].contentColorDefault
|
|
143
|
-
}),
|
|
144
|
-
"false": {
|
|
145
|
-
prisma: themes_["variables"].contentColorActive
|
|
146
|
-
}
|
|
147
|
-
}), Object(themes_["pick"])({
|
|
148
|
-
prisma: Object(external_styled_components_["css"])(["line-height:", ";"], Object(themes_["pickVariant"])('as', {
|
|
149
|
-
h1: '48px',
|
|
150
|
-
h2: '24px',
|
|
151
|
-
h3: '24px',
|
|
152
|
-
h4: '24px',
|
|
153
|
-
h5: '16px'
|
|
154
|
-
}))
|
|
155
|
-
}), function (_ref) {
|
|
156
|
-
var $isSection = _ref.$isSection;
|
|
157
|
-
return $isSection && section;
|
|
158
|
-
}, Object(themes_["pickVariant"])('as', {
|
|
142
|
+
})(["", ";", " margin:1.414em 0 0.4em;text-rendering:optimizelegibility;", " ", ""], themes_["mixins"].reset('block'), Object(themes_["pickVariant"])('as', {
|
|
159
143
|
h1: {
|
|
160
|
-
enterprise: themes_["
|
|
161
|
-
|
|
144
|
+
enterprise: themes_["mixins"].typography('title1', {
|
|
145
|
+
lineHeight: 20,
|
|
146
|
+
size: 24,
|
|
147
|
+
weight: 500
|
|
148
|
+
}),
|
|
149
|
+
prisma: Object(external_styled_components_["css"])(["", " line-height:48px;"], themes_["mixins"].typography('title1'))
|
|
162
150
|
},
|
|
163
151
|
h2: {
|
|
164
|
-
enterprise: themes_["
|
|
165
|
-
|
|
152
|
+
enterprise: themes_["mixins"].typography('title2', {
|
|
153
|
+
lineHeight: 20,
|
|
154
|
+
size: 18,
|
|
155
|
+
weight: 500
|
|
156
|
+
}),
|
|
157
|
+
prisma: themes_["mixins"].typography('title2', {
|
|
158
|
+
lineHeight: 24,
|
|
159
|
+
size: 24
|
|
160
|
+
})
|
|
166
161
|
},
|
|
167
162
|
h3: {
|
|
168
|
-
enterprise: themes_["
|
|
169
|
-
|
|
163
|
+
enterprise: themes_["mixins"].typography('title3', {
|
|
164
|
+
lineHeight: 20,
|
|
165
|
+
size: 16,
|
|
166
|
+
weight: 500
|
|
167
|
+
}),
|
|
168
|
+
prisma: themes_["mixins"].typography('title3')
|
|
170
169
|
},
|
|
171
170
|
h4: {
|
|
172
|
-
enterprise:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
enterprise: {
|
|
172
|
+
compact: function compact(_ref) {
|
|
173
|
+
var $isSection = _ref.$isSection;
|
|
174
|
+
return $isSection ? themes_["mixins"].typography('title4', {
|
|
175
|
+
lineHeight: 20,
|
|
176
|
+
size: 12,
|
|
177
|
+
weight: 500
|
|
178
|
+
}) : themes_["mixins"].typography('title4', {
|
|
179
|
+
lineHeight: 20,
|
|
180
|
+
size: 12
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
comfortable: function comfortable(_ref2) {
|
|
184
|
+
var $isSection = _ref2.$isSection;
|
|
185
|
+
return $isSection ? themes_["mixins"].typography('title4', {
|
|
186
|
+
lineHeight: 20,
|
|
187
|
+
size: 14,
|
|
188
|
+
weight: 500
|
|
189
|
+
}) : themes_["mixins"].typography('title4', {
|
|
190
|
+
lineHeight: 20,
|
|
191
|
+
size: 14
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
prisma: function prisma(_ref3) {
|
|
196
|
+
var $isSection = _ref3.$isSection;
|
|
197
|
+
return $isSection ? themes_["mixins"].typography('title4', {
|
|
198
|
+
color: 'default',
|
|
199
|
+
lineHeight: 24,
|
|
200
|
+
size: 14
|
|
201
|
+
}) : themes_["mixins"].typography('title4', {
|
|
202
|
+
lineHeight: 24,
|
|
203
|
+
size: 16
|
|
204
|
+
});
|
|
176
205
|
}
|
|
177
206
|
},
|
|
178
|
-
h5:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
207
|
+
h5: {
|
|
208
|
+
enterprise: themes_["mixins"].typography('title5', {
|
|
209
|
+
size: 12,
|
|
210
|
+
weight: 500
|
|
211
|
+
}),
|
|
212
|
+
prisma: Object(external_styled_components_["css"])(["", " font-size:13px;"], themes_["mixins"].typography('title5', {
|
|
213
|
+
color: 'default',
|
|
214
|
+
lineHeight: 16
|
|
215
|
+
}))
|
|
216
|
+
}
|
|
217
|
+
}), Object(themes_["pickVariant"])('$isSection', {
|
|
218
|
+
"true": {
|
|
219
|
+
enterprise: {
|
|
220
|
+
dark: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].gray80),
|
|
221
|
+
light: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].gray45)
|
|
222
|
+
}
|
|
184
223
|
}
|
|
185
224
|
}), function (_ref4) {
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
return asElement === 'h4' && !$isSection ? 'bold' : Object(themes_["pick"])({
|
|
189
|
-
enterprise: themes_["variables"].fontWeightSemiBold,
|
|
190
|
-
prisma: themes_["variables"].fontWeightBold
|
|
191
|
-
});
|
|
225
|
+
var $isSection = _ref4.$isSection;
|
|
226
|
+
return $isSection && Object(external_styled_components_["css"])(["margin:0.707em 0 0.2em;"]);
|
|
192
227
|
});
|
|
193
228
|
|
|
194
229
|
// CONCATENATED MODULE: ./src/Heading/Heading.tsx
|
|
@@ -242,13 +277,6 @@ Heading.propTypes = propTypes;
|
|
|
242
277
|
// CONCATENATED MODULE: ./src/Heading/index.ts
|
|
243
278
|
|
|
244
279
|
|
|
245
|
-
/***/ }),
|
|
246
|
-
|
|
247
|
-
/***/ 2:
|
|
248
|
-
/***/ (function(module, exports) {
|
|
249
|
-
|
|
250
|
-
module.exports = require("react");
|
|
251
|
-
|
|
252
280
|
/***/ }),
|
|
253
281
|
|
|
254
282
|
/***/ 3:
|
package/Image.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 = 213);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,42 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 131:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("lodash/endsWith");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 132:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("@splunk/react-ui/File");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 133:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("@splunk/react-ui/Message");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 14:
|
|
105
126
|
/***/ (function(module, exports) {
|
|
106
127
|
|
|
107
128
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
129
|
|
|
109
130
|
/***/ }),
|
|
110
131
|
|
|
111
|
-
/***/
|
|
132
|
+
/***/ 2:
|
|
133
|
+
/***/ (function(module, exports) {
|
|
134
|
+
|
|
135
|
+
module.exports = require("react");
|
|
136
|
+
|
|
137
|
+
/***/ }),
|
|
138
|
+
|
|
139
|
+
/***/ 213:
|
|
112
140
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
141
|
|
|
114
142
|
"use strict";
|
|
@@ -126,32 +154,41 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
126
154
|
var external_prop_types_ = __webpack_require__(1);
|
|
127
155
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
156
|
|
|
129
|
-
// EXTERNAL MODULE: external "lodash"
|
|
130
|
-
var
|
|
157
|
+
// EXTERNAL MODULE: external "lodash/endsWith"
|
|
158
|
+
var endsWith_ = __webpack_require__(131);
|
|
159
|
+
var endsWith_default = /*#__PURE__*/__webpack_require__.n(endsWith_);
|
|
160
|
+
|
|
161
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
162
|
+
var omit_ = __webpack_require__(5);
|
|
163
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
164
|
+
|
|
165
|
+
// EXTERNAL MODULE: external "lodash/toLower"
|
|
166
|
+
var toLower_ = __webpack_require__(36);
|
|
167
|
+
var toLower_default = /*#__PURE__*/__webpack_require__.n(toLower_);
|
|
131
168
|
|
|
132
169
|
// EXTERNAL MODULE: external "@splunk/ui-utils/format"
|
|
133
|
-
var format_ = __webpack_require__(
|
|
170
|
+
var format_ = __webpack_require__(58);
|
|
134
171
|
|
|
135
172
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
136
|
-
var i18n_ = __webpack_require__(
|
|
173
|
+
var i18n_ = __webpack_require__(4);
|
|
137
174
|
|
|
138
175
|
// EXTERNAL MODULE: external "@splunk/react-ui/File"
|
|
139
|
-
var File_ = __webpack_require__(
|
|
176
|
+
var File_ = __webpack_require__(132);
|
|
140
177
|
var File_default = /*#__PURE__*/__webpack_require__.n(File_);
|
|
141
178
|
|
|
142
179
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
143
|
-
var CrossMark = __webpack_require__(
|
|
180
|
+
var CrossMark = __webpack_require__(27);
|
|
144
181
|
|
|
145
182
|
// EXTERNAL MODULE: external "styled-components"
|
|
146
183
|
var external_styled_components_ = __webpack_require__(3);
|
|
147
184
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
148
185
|
|
|
149
186
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
150
|
-
var Clickable_ = __webpack_require__(
|
|
187
|
+
var Clickable_ = __webpack_require__(14);
|
|
151
188
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
152
189
|
|
|
153
190
|
// EXTERNAL MODULE: external "@splunk/react-ui/Message"
|
|
154
|
-
var Message_ = __webpack_require__(
|
|
191
|
+
var Message_ = __webpack_require__(133);
|
|
155
192
|
var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
|
|
156
193
|
|
|
157
194
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -272,6 +309,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
272
309
|
|
|
273
310
|
|
|
274
311
|
|
|
312
|
+
|
|
313
|
+
|
|
275
314
|
var propTypes = {
|
|
276
315
|
allowExtensions: external_prop_types_default.a.arrayOf(external_prop_types_default.a.string),
|
|
277
316
|
defaultFilename: external_prop_types_default.a.string,
|
|
@@ -304,7 +343,7 @@ var Image_Image = /*#__PURE__*/function (_Component) {
|
|
|
304
343
|
// @docs-props-type ImagePropsBase
|
|
305
344
|
value: function isAllowedFilename(filename, allowExtensions) {
|
|
306
345
|
return !!filename && allowExtensions.some(function (extension) {
|
|
307
|
-
return
|
|
346
|
+
return endsWith_default()(toLower_default()(filename), ".".concat(toLower_default()(extension)));
|
|
308
347
|
});
|
|
309
348
|
}
|
|
310
349
|
}]);
|
|
@@ -399,7 +438,7 @@ var Image_Image = /*#__PURE__*/function (_Component) {
|
|
|
399
438
|
});
|
|
400
439
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
401
440
|
"data-test": "image"
|
|
402
|
-
}, /*#__PURE__*/external_react_default.a.createElement(File_default.a, _extends({},
|
|
441
|
+
}, /*#__PURE__*/external_react_default.a.createElement(File_default.a, _extends({}, omit_default()(this.props, ['allowExtensions', 'defaultFilename', 'defaultImageDataURI', 'maxHeight', 'onImageChange']), {
|
|
403
442
|
accept: accept,
|
|
404
443
|
allowMultiple: false,
|
|
405
444
|
error: hasError,
|
|
@@ -440,21 +479,14 @@ _defineProperty(Image_Image, "defaultProps", defaultProps);
|
|
|
440
479
|
|
|
441
480
|
/***/ }),
|
|
442
481
|
|
|
443
|
-
/***/
|
|
444
|
-
/***/ (function(module, exports) {
|
|
445
|
-
|
|
446
|
-
module.exports = require("react");
|
|
447
|
-
|
|
448
|
-
/***/ }),
|
|
449
|
-
|
|
450
|
-
/***/ 20:
|
|
482
|
+
/***/ 27:
|
|
451
483
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
452
484
|
|
|
453
485
|
"use strict";
|
|
454
486
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
455
487
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
456
488
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
457
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
489
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
|
|
458
490
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
459
491
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
460
492
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -497,7 +529,7 @@ function CrossMark(props) {
|
|
|
497
529
|
|
|
498
530
|
/***/ }),
|
|
499
531
|
|
|
500
|
-
/***/
|
|
532
|
+
/***/ 29:
|
|
501
533
|
/***/ (function(module, exports) {
|
|
502
534
|
|
|
503
535
|
module.exports = require("@splunk/react-icons/Close");
|
|
@@ -511,24 +543,31 @@ module.exports = require("styled-components");
|
|
|
511
543
|
|
|
512
544
|
/***/ }),
|
|
513
545
|
|
|
514
|
-
/***/
|
|
546
|
+
/***/ 36:
|
|
515
547
|
/***/ (function(module, exports) {
|
|
516
548
|
|
|
517
|
-
module.exports = require("lodash");
|
|
549
|
+
module.exports = require("lodash/toLower");
|
|
518
550
|
|
|
519
551
|
/***/ }),
|
|
520
552
|
|
|
521
|
-
/***/
|
|
553
|
+
/***/ 4:
|
|
522
554
|
/***/ (function(module, exports) {
|
|
523
555
|
|
|
524
|
-
module.exports = require("@splunk/ui-utils/
|
|
556
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
525
557
|
|
|
526
558
|
/***/ }),
|
|
527
559
|
|
|
528
560
|
/***/ 5:
|
|
529
561
|
/***/ (function(module, exports) {
|
|
530
562
|
|
|
531
|
-
module.exports = require("
|
|
563
|
+
module.exports = require("lodash/omit");
|
|
564
|
+
|
|
565
|
+
/***/ }),
|
|
566
|
+
|
|
567
|
+
/***/ 58:
|
|
568
|
+
/***/ (function(module, exports) {
|
|
569
|
+
|
|
570
|
+
module.exports = require("@splunk/ui-utils/format");
|
|
532
571
|
|
|
533
572
|
/***/ }),
|
|
534
573
|
|
|
@@ -673,20 +712,6 @@ function Icon(_ref) {
|
|
|
673
712
|
Icon.propTypes = propTypes;
|
|
674
713
|
Icon.defaultProps = defaultProps;
|
|
675
714
|
|
|
676
|
-
/***/ }),
|
|
677
|
-
|
|
678
|
-
/***/ 90:
|
|
679
|
-
/***/ (function(module, exports) {
|
|
680
|
-
|
|
681
|
-
module.exports = require("@splunk/react-ui/File");
|
|
682
|
-
|
|
683
|
-
/***/ }),
|
|
684
|
-
|
|
685
|
-
/***/ 91:
|
|
686
|
-
/***/ (function(module, exports) {
|
|
687
|
-
|
|
688
|
-
module.exports = require("@splunk/react-ui/Message");
|
|
689
|
-
|
|
690
715
|
/***/ })
|
|
691
716
|
|
|
692
717
|
/******/ });
|