@splunk/react-ui 4.20.0 → 4.21.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 +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Progress.js
CHANGED
|
@@ -1,241 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
18
28
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/
|
|
32
|
-
/******/
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 228);
|
|
86
|
-
/******/ })
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 2:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("react");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 228:
|
|
112
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
|
-
|
|
114
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
115
49
|
// ESM COMPAT FLAG
|
|
116
50
|
__webpack_require__.r(__webpack_exports__);
|
|
117
51
|
|
|
118
52
|
// EXPORTS
|
|
119
|
-
__webpack_require__.d(__webpack_exports__,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var external_react_ = __webpack_require__(2);
|
|
123
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
124
|
-
|
|
125
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
126
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
127
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
|
-
|
|
129
|
-
// EXTERNAL MODULE: external "lodash/isNumber"
|
|
130
|
-
var isNumber_ = __webpack_require__(77);
|
|
131
|
-
var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber_);
|
|
132
|
-
|
|
133
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
134
|
-
var AnimationToggle_ = __webpack_require__(51);
|
|
135
|
-
|
|
136
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
137
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
138
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
139
|
-
|
|
140
|
-
// EXTERNAL MODULE: external "tinycolor2"
|
|
141
|
-
var external_tinycolor2_ = __webpack_require__(69);
|
|
142
|
-
var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_);
|
|
143
|
-
|
|
144
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
145
|
-
var Tooltip_ = __webpack_require__(45);
|
|
146
|
-
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
147
|
-
|
|
148
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
149
|
-
var Box_ = __webpack_require__(6);
|
|
150
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
151
|
-
|
|
152
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
153
|
-
var themes_ = __webpack_require__(0);
|
|
154
|
-
|
|
155
|
-
// CONCATENATED MODULE: ./src/Progress/ProgressStyles.ts
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"default": () => (/* reexport */ Progress_Progress)
|
|
55
|
+
});
|
|
160
56
|
|
|
161
|
-
|
|
57
|
+
;// CONCATENATED MODULE: external "react"
|
|
58
|
+
const external_react_namespaceObject = require("react");
|
|
59
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
60
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
61
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
62
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
63
|
+
;// CONCATENATED MODULE: external "lodash/isNumber"
|
|
64
|
+
const isNumber_namespaceObject = require("lodash/isNumber");
|
|
65
|
+
var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber_namespaceObject);
|
|
66
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
67
|
+
const AnimationToggle_namespaceObject = require("@splunk/react-ui/AnimationToggle");
|
|
68
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
69
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
70
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
71
|
+
;// CONCATENATED MODULE: external "tinycolor2"
|
|
72
|
+
const external_tinycolor2_namespaceObject = require("tinycolor2");
|
|
73
|
+
var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_namespaceObject);
|
|
74
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
|
|
75
|
+
const Tooltip_namespaceObject = require("@splunk/react-ui/Tooltip");
|
|
76
|
+
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_namespaceObject);
|
|
77
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
78
|
+
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
79
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
80
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
81
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
82
|
+
;// CONCATENATED MODULE: ./src/Progress/ProgressStyles.ts
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var StyledBox = external_styled_components_default()((Box_default())).withConfig({
|
|
162
89
|
displayName: "ProgressStyles__StyledBox",
|
|
163
90
|
componentId: "csowex-0"
|
|
164
|
-
})(["background-color:", ";"],
|
|
165
|
-
enterprise:
|
|
166
|
-
prisma:
|
|
91
|
+
})(["background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
92
|
+
enterprise: themes_namespaceObject.variables.transparent,
|
|
93
|
+
prisma: themes_namespaceObject.variables.neutral200
|
|
167
94
|
}));
|
|
168
|
-
var StyledTooltip = external_styled_components_default()(Tooltip_default
|
|
95
|
+
var StyledTooltip = external_styled_components_default()((Tooltip_default())).withConfig({
|
|
169
96
|
displayName: "ProgressStyles__StyledTooltip",
|
|
170
97
|
componentId: "csowex-1"
|
|
171
|
-
})(["background-color:", ";height:", ";position:relative;overflow:hidden;padding-left:", ";", ";"],
|
|
172
|
-
enterprise:
|
|
173
|
-
prisma:
|
|
174
|
-
info:
|
|
175
|
-
success:
|
|
176
|
-
warning:
|
|
177
|
-
error:
|
|
98
|
+
})(["background-color:", ";height:", ";position:relative;overflow:hidden;padding-left:", ";", ";"], (0,themes_namespaceObject.pick)({
|
|
99
|
+
enterprise: themes_namespaceObject.variables.accentColorD10,
|
|
100
|
+
prisma: (0,themes_namespaceObject.pickVariant)('$type', {
|
|
101
|
+
info: themes_namespaceObject.variables.interactiveColorPrimary,
|
|
102
|
+
success: themes_namespaceObject.variables.accentColorPositive,
|
|
103
|
+
warning: themes_namespaceObject.variables.accentColorWarning,
|
|
104
|
+
error: themes_namespaceObject.variables.accentColorNegative
|
|
178
105
|
})
|
|
179
|
-
}),
|
|
106
|
+
}), (0,themes_namespaceObject.pick)({
|
|
180
107
|
enterprise: '3px',
|
|
181
108
|
prisma: '4px'
|
|
182
|
-
}),
|
|
183
|
-
enterprise:
|
|
109
|
+
}), (0,themes_namespaceObject.pick)({
|
|
110
|
+
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
184
111
|
prisma: '10px'
|
|
185
112
|
}), function (_ref) {
|
|
186
113
|
var $animated = _ref.$animated;
|
|
187
|
-
return $animated &&
|
|
114
|
+
return $animated && (0,external_styled_components_namespaceObject.css)(["transition:width 300ms;"]);
|
|
188
115
|
});
|
|
189
|
-
var pulse =
|
|
190
|
-
var slide =
|
|
191
|
-
var StyledPuck = external_styled_components_default.
|
|
116
|
+
var pulse = (0,external_styled_components_namespaceObject.keyframes)(["from{opacity:0;}to{opacity:1;}"]);
|
|
117
|
+
var slide = (0,external_styled_components_namespaceObject.keyframes)(["from{background-position:130%;}to{background-position:-30%;}"]);
|
|
118
|
+
var StyledPuck = external_styled_components_default().div.withConfig({
|
|
192
119
|
displayName: "ProgressStyles__StyledPuck",
|
|
193
120
|
componentId: "csowex-2"
|
|
194
|
-
})(["height:", ";width:", ";position:absolute;right:0;top:0;background:", ";", ""],
|
|
121
|
+
})(["height:", ";width:", ";position:absolute;right:0;top:0;background:", ";", ""], (0,themes_namespaceObject.pick)({
|
|
195
122
|
enterprise: '3px',
|
|
196
123
|
prisma: '4px'
|
|
197
|
-
}),
|
|
124
|
+
}), (0,themes_namespaceObject.pick)({
|
|
198
125
|
enterprise: '300px',
|
|
199
126
|
prisma: '100%'
|
|
200
|
-
}),
|
|
201
|
-
enterprise:
|
|
127
|
+
}), (0,themes_namespaceObject.pick)({
|
|
128
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["linear-gradient( 90deg,", ",", ",40%,", ",80%,", " )"], themes_namespaceObject.variables.accentColorD10, themes_namespaceObject.variables.accentColorL10, themes_namespaceObject.variables.accentColorL40, themes_namespaceObject.variables.accentColorL40),
|
|
202
129
|
prisma: function prisma(_ref2) {
|
|
203
130
|
var $animated = _ref2.$animated;
|
|
204
|
-
var primaryColor =
|
|
205
|
-
info:
|
|
206
|
-
success:
|
|
207
|
-
warning:
|
|
208
|
-
error:
|
|
131
|
+
var primaryColor = (0,themes_namespaceObject.pickVariant)('$type', {
|
|
132
|
+
info: themes_namespaceObject.variables.interactiveColorPrimary,
|
|
133
|
+
success: themes_namespaceObject.variables.accentColorPositive,
|
|
134
|
+
warning: themes_namespaceObject.variables.accentColorWarning,
|
|
135
|
+
error: themes_namespaceObject.variables.accentColorNegative
|
|
209
136
|
});
|
|
210
137
|
|
|
211
138
|
if ($animated) {
|
|
212
|
-
var highlightColor =
|
|
213
|
-
info:
|
|
214
|
-
success:
|
|
215
|
-
warning:
|
|
216
|
-
error:
|
|
139
|
+
var highlightColor = (0,themes_namespaceObject.pickVariant)('$type', {
|
|
140
|
+
info: themes_namespaceObject.variables.statusColorInfo,
|
|
141
|
+
success: themes_namespaceObject.variables.statusColorNormal,
|
|
142
|
+
warning: themes_namespaceObject.variables.statusColorMedium,
|
|
143
|
+
error: themes_namespaceObject.variables.statusColorHigh
|
|
217
144
|
});
|
|
218
|
-
return
|
|
145
|
+
return (0,external_styled_components_namespaceObject.css)(["radial-gradient(circle at center,", ",", " 30%);"], highlightColor, primaryColor);
|
|
219
146
|
}
|
|
220
147
|
|
|
221
148
|
return primaryColor;
|
|
222
149
|
}
|
|
223
150
|
}), function (props) {
|
|
224
|
-
return props.$animated &&
|
|
225
|
-
enterprise:
|
|
151
|
+
return props.$animated && (0,themes_namespaceObject.pick)({
|
|
152
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["animation-duration:1500ms;animation-name:", ";animation-iteration-count:infinite;animation-direction:alternate;"], pulse),
|
|
226
153
|
prisma: function prisma() {
|
|
227
|
-
var accentColor =
|
|
228
|
-
info:
|
|
229
|
-
success:
|
|
230
|
-
warning:
|
|
231
|
-
error:
|
|
154
|
+
var accentColor = (0,themes_namespaceObject.pickVariant)('$type', {
|
|
155
|
+
info: themes_namespaceObject.variables.statusColorInfo,
|
|
156
|
+
success: themes_namespaceObject.variables.statusColorNormal,
|
|
157
|
+
warning: themes_namespaceObject.variables.statusColorMedium,
|
|
158
|
+
error: themes_namespaceObject.variables.statusColorHigh
|
|
232
159
|
})(props);
|
|
233
|
-
return
|
|
160
|
+
return (0,external_styled_components_namespaceObject.css)(["background-size:200% 100%;animation:", " 1500ms infinite cubic-bezier(0.33,0,0.67,1);&::after{content:'';display:block;width:60px;background:linear-gradient( to right,rgba(255,255,255,0),", " 70%,rgba(255,255,255,0.75) );height:100%;position:absolute;right:0;}"], slide, external_tinycolor2_default()(accentColor(props)).setAlpha(0.75).toRgbString());
|
|
234
161
|
}
|
|
235
162
|
});
|
|
236
163
|
});
|
|
237
164
|
|
|
238
|
-
|
|
165
|
+
;// CONCATENATED MODULE: ./src/Progress/Progress.tsx
|
|
239
166
|
function _extends() { _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 _extends.apply(this, arguments); }
|
|
240
167
|
|
|
241
168
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -260,10 +187,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
260
187
|
|
|
261
188
|
|
|
262
189
|
var propTypes = {
|
|
263
|
-
elementRef: external_prop_types_default.
|
|
264
|
-
percentage: external_prop_types_default.
|
|
265
|
-
tooltip: external_prop_types_default.
|
|
266
|
-
type: external_prop_types_default.
|
|
190
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
191
|
+
percentage: (external_prop_types_default()).number,
|
|
192
|
+
tooltip: (external_prop_types_default()).node,
|
|
193
|
+
type: external_prop_types_default().oneOf(['info', 'success', 'warning', 'error'])
|
|
267
194
|
};
|
|
268
195
|
|
|
269
196
|
function Progress(_ref) {
|
|
@@ -276,25 +203,25 @@ function Progress(_ref) {
|
|
|
276
203
|
// @docs-props-type ProgressPropsBase
|
|
277
204
|
if (false) {}
|
|
278
205
|
|
|
279
|
-
var _useState =
|
|
206
|
+
var _useState = (0,external_react_namespaceObject.useState)(false),
|
|
280
207
|
_useState2 = _slicedToArray(_useState, 2),
|
|
281
208
|
tooltipOpen = _useState2[0],
|
|
282
209
|
setTooltipOpen = _useState2[1];
|
|
283
210
|
|
|
284
|
-
var animated =
|
|
285
|
-
var handleMouseEnter =
|
|
211
|
+
var animated = (0,AnimationToggle_namespaceObject.useAnimationToggle)() === 'on';
|
|
212
|
+
var handleMouseEnter = (0,external_react_namespaceObject.useCallback)(function () {
|
|
286
213
|
setTooltipOpen(true);
|
|
287
214
|
}, []);
|
|
288
|
-
var handleMouseLeave =
|
|
215
|
+
var handleMouseLeave = (0,external_react_namespaceObject.useCallback)(function () {
|
|
289
216
|
setTooltipOpen(false);
|
|
290
217
|
}, []);
|
|
291
218
|
var content = tooltip || "".concat(percentage, "%");
|
|
292
|
-
return /*#__PURE__*/external_react_default.
|
|
219
|
+
return /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
|
|
293
220
|
$animated: animated,
|
|
294
221
|
"data-test": "progress",
|
|
295
222
|
onMouseEnter: handleMouseEnter,
|
|
296
223
|
onMouseLeave: handleMouseLeave
|
|
297
|
-
}, otherProps), isNumber_default()(percentage) && /*#__PURE__*/external_react_default.
|
|
224
|
+
}, otherProps), isNumber_default()(percentage) && /*#__PURE__*/external_react_default().createElement(StyledTooltip, {
|
|
298
225
|
inline: false,
|
|
299
226
|
open: tooltipOpen,
|
|
300
227
|
content: content,
|
|
@@ -307,59 +234,16 @@ function Progress(_ref) {
|
|
|
307
234
|
"aria-valuemax": 100,
|
|
308
235
|
$animated: animated,
|
|
309
236
|
$type: type
|
|
310
|
-
}, /*#__PURE__*/external_react_default.
|
|
237
|
+
}, /*#__PURE__*/external_react_default().createElement(StyledPuck, {
|
|
311
238
|
$animated: animated,
|
|
312
239
|
$type: type
|
|
313
240
|
})));
|
|
314
241
|
}
|
|
315
242
|
|
|
316
243
|
Progress.propTypes = propTypes;
|
|
317
|
-
/* harmony default export */
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/***/ }),
|
|
322
|
-
|
|
323
|
-
/***/ 3:
|
|
324
|
-
/***/ (function(module, exports) {
|
|
325
|
-
|
|
326
|
-
module.exports = require("styled-components");
|
|
327
|
-
|
|
328
|
-
/***/ }),
|
|
329
|
-
|
|
330
|
-
/***/ 45:
|
|
331
|
-
/***/ (function(module, exports) {
|
|
332
|
-
|
|
333
|
-
module.exports = require("@splunk/react-ui/Tooltip");
|
|
334
|
-
|
|
335
|
-
/***/ }),
|
|
336
|
-
|
|
337
|
-
/***/ 51:
|
|
338
|
-
/***/ (function(module, exports) {
|
|
339
|
-
|
|
340
|
-
module.exports = require("@splunk/react-ui/AnimationToggle");
|
|
341
|
-
|
|
342
|
-
/***/ }),
|
|
343
|
-
|
|
344
|
-
/***/ 6:
|
|
345
|
-
/***/ (function(module, exports) {
|
|
346
|
-
|
|
347
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
348
|
-
|
|
349
|
-
/***/ }),
|
|
350
|
-
|
|
351
|
-
/***/ 69:
|
|
352
|
-
/***/ (function(module, exports) {
|
|
353
|
-
|
|
354
|
-
module.exports = require("tinycolor2");
|
|
355
|
-
|
|
356
|
-
/***/ }),
|
|
357
|
-
|
|
358
|
-
/***/ 77:
|
|
359
|
-
/***/ (function(module, exports) {
|
|
360
|
-
|
|
361
|
-
module.exports = require("lodash/isNumber");
|
|
362
|
-
|
|
363
|
-
/***/ })
|
|
244
|
+
/* harmony default export */ const Progress_Progress = (Progress);
|
|
245
|
+
;// CONCATENATED MODULE: ./src/Progress/index.ts
|
|
364
246
|
|
|
365
|
-
|
|
247
|
+
module.exports = __webpack_exports__;
|
|
248
|
+
/******/ })()
|
|
249
|
+
;
|